lexxy-variables 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/lexxy_variables/version.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/cache/json-2.21.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/lexxy-0.9.24.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/rubocop-1.88.2.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/rubocop-rails-2.36.0.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/{json-2.20.0 → json-2.21.1}/gem_make.out +10 -11
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/json-2.21.1/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/json-2.21.1/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/{json-2.20.0 → json-2.21.1}/mkmf.log +4 -25
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/{lexxy-0.9.23 → lexxy-0.9.24}/gem_make.out +2 -2
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/nio4r-2.7.5/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/websocket-driver-0.8.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/CHANGES.md +12 -0
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/README.md +5 -5
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/generator/generator.c +72 -3
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/json.h +4 -0
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/parser/Makefile +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/parser/extconf.rb +0 -16
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/parser/parser.c +129 -39
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/common.rb +9 -0
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/ext/generator/state.rb +1 -0
- data/vendor/bundle/ruby/3.4.0/gems/json-2.21.1/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/json-2.21.1/lib/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/ext.rb +26 -0
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/truffle_ruby/generator.rb +36 -1
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/version.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json.rb +5 -1
- data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/README.md +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/app/assets/javascript/lexxy.js +287 -155
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.24/app/assets/javascript/lexxy.js.br +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.24/app/assets/javascript/lexxy.js.gz +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.24/app/assets/javascript/lexxy.js.map +1 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.24/app/assets/javascript/lexxy.min.js +11 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.24/app/assets/javascript/lexxy.min.js.br +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.24/app/assets/javascript/lexxy.min.js.gz +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.24/lib/lexxy/version.rb +3 -0
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/config/default.yml +2 -0
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/base.rb +13 -8
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/commissioner.rb +13 -11
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/duplicated_assignment.rb +12 -2
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/comment_indentation.rb +9 -2
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/else_alignment.rb +1 -14
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/line_length.rb +10 -5
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_method_call_indentation.rb +6 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/debugger.rb +13 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/numeric_operation_with_constant_result.rb +7 -0
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/to_json.rb +8 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/unreachable_code.rb +9 -4
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_numeric_operation.rb +10 -10
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/void.rb +2 -2
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/allowed_methods.rb +5 -5
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/allowed_pattern.rb +5 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/forbidden_pattern.rb +5 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/statement_modifier.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/arguments_forwarding.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/array_intersect.rb +4 -4
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/collection_compact.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/def_with_parentheses.rb +6 -2
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/documentation_method.rb +5 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_conversion.rb +14 -6
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_lookup_method.rb +2 -6
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/identical_conditional_branches.rb +15 -4
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/if_unless_modifier.rb +4 -4
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/invertible_unless_condition.rb +25 -5
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/lambda_call.rb +11 -0
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/method_call_without_args_parentheses.rb +5 -3
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/method_def_parentheses.rb +4 -0
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/missing_respond_to_missing.rb +10 -7
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/mixin_usage.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/module_function.rb +4 -2
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_current_directory_in_path.rb +13 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb +6 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/struct_inheritance.rb +3 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trivial_accessors.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/team.rb +18 -4
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/runner.rb +50 -10
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/version.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/eager_evaluation_log_message.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/reversible_migration.rb +8 -0
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/safe_navigation.rb +33 -5
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/rails/migration_file_skippable.rb +0 -4
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/rails/version.rb +1 -1
- data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop-rails.rb +10 -1
- data/vendor/bundle/ruby/3.4.0/specifications/{json-2.20.0.gemspec → json-2.21.1.gemspec} +0 -0
- data/vendor/bundle/ruby/3.4.0/specifications/{lexxy-0.9.23.gemspec → lexxy-0.9.24.gemspec} +2 -2
- data/vendor/bundle/ruby/3.4.0/specifications/{rubocop-1.88.1.gemspec → rubocop-1.88.2.gemspec} +3 -3
- data/vendor/bundle/ruby/3.4.0/specifications/{rubocop-rails-2.35.5.gemspec → rubocop-rails-2.36.0.gemspec} +3 -3
- data/vendor/javascript/lexxy_variables.js +0 -69
- metadata +1175 -1175
- data/vendor/bundle/ruby/3.4.0/cache/json-2.20.0.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/lexxy-0.9.23.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/rubocop-1.88.1.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/cache/rubocop-rails-2.35.5.gem +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/json-2.20.0/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/json-2.20.0/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/json-2.20.0/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/json-2.20.0/lib/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.23/app/assets/javascript/lexxy.js.br +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.23/app/assets/javascript/lexxy.js.gz +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.23/app/assets/javascript/lexxy.js.map +0 -1
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.23/app/assets/javascript/lexxy.min.js +0 -11
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.23/app/assets/javascript/lexxy.min.js.br +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.23/app/assets/javascript/lexxy.min.js.gz +0 -0
- data/vendor/bundle/ruby/3.4.0/gems/lexxy-0.9.23/lib/lexxy/version.rb +0 -3
- /data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/{json-2.20.0 → json-2.21.1}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/{lexxy-0.9.23 → lexxy-0.9.24}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/BSDL +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/COPYING +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/LEGAL +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/fbuffer/fbuffer.h +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/generator/Makefile +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/generator/extconf.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/simd/conf.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/simd/simd.h +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/vendor/fast_float_parser.h +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/vendor/fpconv.c +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/ext/json/ext/vendor/jeaiii-ltoa.h +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/json.gemspec +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/bigdecimal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/complex.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/core.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/date.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/date_time.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/exception.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/ostruct.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/rational.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/regexp.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/set.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/string.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/struct.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/symbol.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/add/time.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{json-2.20.0 → json-2.21.1}/lib/json/generic_object.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/MIT-LICENSE +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/Rakefile +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/app/assets/stylesheets/lexxy-content.css +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/app/assets/stylesheets/lexxy-editor.css +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/app/assets/stylesheets/lexxy-variables.css +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/app/assets/stylesheets/lexxy.css +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/app/views/action_text/attachables/_remote_video.html.erb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/config/ci.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/ext/Rakefile +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/action_text/attachables/remote_video.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/action_text/editor/lexxy_editor.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/active_storage/blob_with_preview_url.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/lexxy/action_text_tag.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/lexxy/attachable.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/lexxy/engine.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/lexxy/form_builder.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/lexxy/form_helper.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/lexxy/rich_text_area_tag.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/lexxy.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{lexxy-0.9.23 → lexxy-0.9.24}/lib/tasks/actiontext/lexical_tasks.rake +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/README.md +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/assets/logo.png +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/assets/output.css.erb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/assets/output.html.erb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/config/internal_affairs.yml +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/config/obsoletion.yml +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/exe/rubocop +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/arguments_env.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/arguments_file.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/ast_aliases.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cache_config.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cached_data.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/auto_generate_config.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/base.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/execute_runner.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/init_dotfile.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/list_enabled_cops_for.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/lsp.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/mcp.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/show_cops.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/show_docs_url.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/suggest_extensions.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command/version.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/command.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli/environment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cli.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/comment_config.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_finder.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_loader.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_loader_resolver.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion/changed_enforced_styles.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion/changed_parameter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion/cop_rule.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion/extracted_cop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion/parameter_rule.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion/removed_cop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion/renamed_cop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion/rule.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion/split_cop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_obsoletion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_regeneration.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_store.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/config_validator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/autocorrect_logic.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/badge.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/bundler/duplicated_gem.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/bundler/duplicated_group.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/bundler/gem_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/bundler/gem_filename.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/bundler/gem_version.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/bundler/insecure_protocol_source.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/bundler/ordered_gems.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/cop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/alignment_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/condition_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/each_to_for_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/empty_line_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/for_to_each_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/if_then_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/lambda_literal_to_method_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/line_break_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/multiline_literal_brace_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/ordered_gem_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/parentheses_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/percent_literal_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/punctuation_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/require_library_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/space_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/string_literal_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors/unused_arg_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/correctors.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/documentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/exclude_limit.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/force.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/add_runtime_dependency.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/attribute_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/dependency_version.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/deprecated_attribute_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/development_dependencies.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/ordered_dependencies.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/require_mfa.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/required_ruby_version.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/gemspec/ruby_version_globals_usage.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/generator/configuration_injector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/generator/require_file_injector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/generator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/ignored_node.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/cop_description.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/cop_enabled.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/create_empty_file.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/empty_line_between_expect_offense_and_correction.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/example_description.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/example_heredoc_delimiter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/inherit_deprecated_cop_class.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/itblock_handler.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/lambda_or_proc.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/location_exists.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/location_expression.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/location_line_equality_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/method_name_end_with.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/method_name_equal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/node_destructuring.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/node_first_or_last_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/node_matcher_directive.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_processor.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/node_pattern_groups/ast_walker.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/node_pattern_groups.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/node_type_group.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/node_type_multiple_predicates.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/node_type_predicate.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/numblock_handler.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/offense_location_keyword.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/on_send_without_on_csend.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/operator_keyword.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/plugin.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/processed_source_buffer_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/redundant_context_config_parameter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/redundant_described_class_as_subject.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/redundant_expect_offense_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/redundant_let_rubocop_config_new.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/redundant_location_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/redundant_message_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/redundant_method_dispatch_node.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/redundant_source_range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/single_line_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/style_detected_api_use.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/undefined_config.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/useless_message_assertion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs/useless_restrict_on_send.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/internal_affairs.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/access_modifier_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/argument_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/array_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/assignment_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/begin_end_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/block_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/block_end_newline.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/case_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/class_structure.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/closing_heredoc_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/closing_parenthesis_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/condition_position.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/def_end_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/dot_position.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_line_after_guard_clause.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_line_after_magic_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_line_after_multiline_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_line_between_defs.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_after_module_inclusion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_around_access_modifier.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_around_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_around_attribute_accessor.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_around_begin_body.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_around_block_body.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_around_class_body.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_around_method_body.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/empty_lines_around_module_body.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/end_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/end_of_line.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/extra_spacing.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/first_argument_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/first_array_element_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/first_array_element_line_break.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/first_hash_element_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/first_hash_element_line_break.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/first_method_argument_line_break.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/first_method_parameter_line_break.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/first_parameter_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/hash_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/heredoc_argument_closing_parenthesis.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/heredoc_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/indentation_consistency.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/indentation_style.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/indentation_width.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/initial_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/leading_comment_space.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/leading_empty_lines.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/line_continuation_leading_space.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/line_continuation_spacing.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/line_end_string_concatenation_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_array_brace_layout.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_array_line_breaks.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_assignment_layout.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_block_layout.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_hash_brace_layout.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_hash_key_line_breaks.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_method_argument_line_breaks.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_method_call_brace_layout.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_method_definition_brace_layout.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_method_parameter_line_breaks.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/multiline_operation_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/parameter_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/redundant_line_break.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/rescue_ensure_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/single_line_block_chain.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_after_colon.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_after_comma.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_after_method_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_after_not.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_after_semicolon.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_around_block_parameters.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_around_equals_in_parameter_default.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_around_keyword.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_around_method_call_operator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_around_operators.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_before_block_braces.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_before_brackets.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_before_comma.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_before_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_before_first_arg.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_before_semicolon.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_in_lambda_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_inside_array_literal_brackets.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_inside_array_percent_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_inside_block_braces.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_inside_hash_literal_braces.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_inside_parens.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_inside_percent_literal_delimiters.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_inside_range_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_inside_reference_brackets.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/space_inside_string_interpolation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/trailing_empty_lines.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/layout/trailing_whitespace.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/legacy/corrections_proxy.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/legacy/corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/ambiguous_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/ambiguous_block_association.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/ambiguous_operator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/ambiguous_operator_precedence.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/ambiguous_range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/ambiguous_regexp_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/array_literal_in_regexp.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/assignment_in_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/big_decimal_new.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/binary_operator_with_identical_operands.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/boolean_symbol.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/circular_argument_reference.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/constant_definition_in_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/constant_overwritten_in_rescue.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/constant_reassignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/constant_resolution.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/cop_directive_syntax.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/data_define_override.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/deprecated_class_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/deprecated_constants.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/deprecated_open_ssl_constant.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/disjunctive_assignment_in_constructor.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_branch.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_case_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_elsif_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_hash_key.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_magic_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_match_pattern.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_regexp_character_class_element.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_require.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_rescue_exception.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/duplicate_set_element.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/each_with_object_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/else_layout.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/empty_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/empty_class.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/empty_conditional_body.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/empty_ensure.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/empty_expression.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/empty_file.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/empty_in_pattern.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/empty_interpolation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/empty_when.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/ensure_return.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/erb_new_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/flip_flop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/float_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/float_out_of_range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/format_parameter_mismatch.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/hash_compare_by_identity.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/hash_new_with_keyword_arguments_as_default.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/heredoc_method_call_position.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/identity_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/implicit_string_concatenation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/incompatible_io_select_with_fiber_scheduler.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/ineffective_access_modifier.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/inherit_exception.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/interpolation_check.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/it_without_arguments_in_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/lambda_without_literal_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/literal_as_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/literal_assignment_in_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/literal_in_interpolation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/loop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/missing_cop_enable_directive.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/missing_super.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/mixed_case_range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/mixed_regexp_capture_types.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/multiple_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/nested_method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/nested_percent_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/next_without_accumulator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/no_return_in_begin_end_blocks.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/non_atomic_file_operation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/non_deterministic_require_order.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/non_local_exit_from_iterator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/number_conversion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/numbered_parameter_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/or_assignment_to_constant.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/ordered_magic_comments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/out_of_range_regexp_ref.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/parentheses_as_grouped_expression.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/percent_string_array.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/percent_symbol_array.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/raise_exception.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/rand_one.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_cop_disable_directive.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_cop_enable_directive.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_dir_glob_sort.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_regexp_quantifiers.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_require_statement.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_safe_navigation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_splat_expansion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_string_coercion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_type_conversion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_with_index.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/redundant_with_object.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/refinement_import_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/regexp_as_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/require_parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/require_range_parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/require_relative_self_path.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/rescue_exception.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/rescue_type.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/return_in_void_context.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/safe_navigation_chain.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/safe_navigation_consistency.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/safe_navigation_with_empty.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/script_permission.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/self_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/send_with_mixin_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/shadowed_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/shadowed_exception.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/shadowing_outer_local_variable.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/shared_mutable_default.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/struct_new_override.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/suppressed_exception.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/suppressed_exception_in_number_conversion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/symbol_conversion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/syntax.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/to_enum_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/top_level_return_with_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/trailing_comma_in_attribute_declaration.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/triple_quotes.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/underscore_prefixed_variable_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/unescaped_bracket_in_regexp.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/unexpected_block_arity.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/unified_integer.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/unmodified_reduce_accumulator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/unreachable_loop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/unreachable_pattern_branch.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/unused_block_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/unused_method_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/uri_escape_unescape.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/uri_regexp.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_access_modifier.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_constant_scoping.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_default_value_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_defined.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_else_without_rescue.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_or.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_rescue.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_ruby2_keywords.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_setter_call.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/useless_times.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/lint/utils/nil_receiver_checker.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/message_annotator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/abc_size.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/block_length.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/block_nesting.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/class_length.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/collection_literal_length.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/cyclomatic_complexity.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/method_length.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/module_length.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/parameter_lists.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/perceived_complexity.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/utils/abc_size_calculator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/utils/code_length_calculator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/utils/iterating_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/utils/repeated_attribute_discount.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/metrics/utils/repeated_csend_discount.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/migration/department_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/allowed_identifiers.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/allowed_receivers.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/annotation_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/array_min_size.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/array_syntax.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/auto_corrector.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/check_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/check_line_breakable.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/check_single_line_suitability.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/code_length.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/comments_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/configurable_enforced_style.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/configurable_formatting.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/configurable_max.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/configurable_naming.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/configurable_numbering.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/def_node.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/dig_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/documentation_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/duplication.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/empty_lines_around_body.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/empty_parameter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/end_keyword_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/endless_method_rewriter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/enforce_superclass.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/first_element_line_break.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/forbidden_identifiers.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/frozen_string_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/gem_declaration.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/gemspec_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/hash_alignment_styles.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/hash_shorthand_syntax.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/hash_subset.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/hash_transform_method/autocorrection.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/hash_transform_method.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/heredoc.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/integer_node.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/interpolation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/line_length_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/match_range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/method_complexity.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/method_preference.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/min_body_length.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/min_branches_count.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/multiline_element_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/multiline_element_line_breaks.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/multiline_expression_indentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/multiline_literal_brace_layout.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/negative_conditional.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/nil_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/on_normal_if_unless.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/ordered_gem_node.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/percent_array.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/percent_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/preceding_following_alignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/preferred_delimiters.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/project_index_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/range_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/rational_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/require_library.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/rescue_node.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/safe_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/space_after_punctuation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/space_before_punctuation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/string_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/string_literals_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/surrounding_space.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/symbol_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/target_ruby_version.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/trailing_body.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/trailing_comma.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/uncommunicative_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/unused_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin/visibility_help.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/mixin.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/accessor_method_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/ascii_identifiers.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/binary_operator_parameter_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/block_forwarding.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/block_parameter_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/class_and_module_camel_case.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/constant_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/file_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/heredoc_delimiter_case.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/heredoc_delimiter_naming.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/inclusive_language.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/memoized_instance_variable_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/method_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/method_parameter_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/predicate_method.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/predicate_prefix.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/rescued_exceptions_variable_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/variable_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/naming/variable_number.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/offense.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/registry.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/security/compound_hash.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/security/eval.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/security/io_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/security/json_load.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/security/marshal_load.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/security/open.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/security/yaml_load.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/severity.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/access_modifier_declarations.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/accessor_grouping.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/alias.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/ambiguous_endless_method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/and_or.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/array_coercion.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/array_first_last.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/array_intersect_with_single_element.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/array_join.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/ascii_comments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/attr.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/auto_resource_cleanup.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/bare_percent_literals.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/begin_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/bisected_attr_accessor/macro.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/bisected_attr_accessor.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/bitwise_predicate.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/block_comments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/block_delimiters.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/case_equality.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/case_like_if.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/character_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/class_and_module_children.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/class_check.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/class_equality_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/class_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/class_methods_definitions.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/class_vars.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/collection_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/collection_querying.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/colon_method_call.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/colon_method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/combinable_defined.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/combinable_loops.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/command_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/comment_annotation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/commented_keyword.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/comparable_between.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/comparable_clamp.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/concat_array_literals.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/conditional_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/constant_visibility.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/copyright.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/data_inheritance.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/date_time.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/dig_chain.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/dir.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/dir_empty.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/document_dynamic_eval_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/documentation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/double_cop_disable_directive.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/double_negation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/each_for_simple_loop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/each_with_object.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/empty_block_parameter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/empty_case_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/empty_class_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/empty_else.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/empty_heredoc.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/empty_lambda_parameter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/empty_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/empty_method.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/empty_string_inside_interpolation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/encoding.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/end_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/endless_method.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/env_home.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/eval_with_location.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/even_odd.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/exact_regexp_match.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/expand_path_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/explicit_block_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/exponential_notation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/fetch_env_var.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/file_empty.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/file_null.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/file_open.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/file_read.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/file_touch.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/file_write.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/float_division.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/for.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/format_string.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/format_string_token.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/frozen_string_literal_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/global_std_stream.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/global_vars.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/guard_clause.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_as_last_array_item.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_each_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_except.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_fetch_chain.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_like_case.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_slice.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_syntax.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_transform_keys.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/hash_transform_values.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/if_inside_else.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/if_with_boolean_literal_branches.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/if_with_semicolon.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/implicit_runtime_error.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/in_pattern_then.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/infinite_loop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/inline_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/inverse_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/ip_addresses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/it_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/it_block_parameter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/keyword_arguments_merging.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/keyword_parameters_order.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/lambda.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/line_end_concatenation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/magic_comment_format.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/map_compact_with_conditional_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/map_into_array.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/map_join.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/map_to_hash.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/map_to_set.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/method_call_with_args_parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/method_called_on_do_end_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/min_max.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/min_max_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/missing_else.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/mixin_grouping.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/module_member_existence_check.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/multiline_block_chain.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/multiline_if_modifier.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/multiline_if_then.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/multiline_in_pattern_then.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/multiline_memoization.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/multiline_method_signature.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/multiline_ternary_operator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/multiline_when_then.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/multiple_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/mutable_constant.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/negated_if.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/negated_if_else_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/negated_unless.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/negated_while.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/negative_array_index.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/nested_file_dirname.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/nested_modifier.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/nested_parenthesized_calls.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/nested_ternary_operator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/next.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/nil_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/nil_lambda.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/non_nil_check.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/not.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/numbered_parameters.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/numbered_parameters_limit.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/numeric_literal_prefix.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/numeric_literals.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/numeric_predicate.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/object_then.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/one_class_per_file.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/one_line_conditional.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/open_struct_use.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/operator_method_call.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/option_hash.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/optional_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/optional_boolean_parameter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/or_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/parallel_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/parentheses_around_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/partition_instead_of_double_select.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/percent_literal_delimiters.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/percent_q_literals.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/perl_backrefs.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/predicate_with_kind.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/preferred_hash_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/proc.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/quoted_symbols.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/raise_args.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/random_with_offset.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/reduce_to_hash.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_array_constructor.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_array_flatten.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_begin.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_capital_w.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_conditional.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_constant_base.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_each.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_exception.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_fetch_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_file_extension_in_require.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_filter_chain.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_format.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_freeze.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_initialize.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_interpolation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_line_continuation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_min_max_by.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_percent_q.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_regexp_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_regexp_character_class.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_regexp_constructor.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_regexp_escape.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_return.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_self.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_self_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_self_assignment_branch.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_sort.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_sort_by.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_string_escape.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/redundant_struct_keyword_init.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/regexp_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/require_order.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/rescue_modifier.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/rescue_standard_error.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/return_nil.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/reverse_find.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/safe_navigation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/safe_navigation_chain_length.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/sample.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/select_by_kind.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/select_by_range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/select_by_regexp.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/self_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/semicolon.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/send.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/send_with_literal_method_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/signal_exception.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/single_argument_dig.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/single_line_block_params.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/single_line_do_end_block.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/single_line_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/slicing_with_range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/sole_nested_conditional.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/special_global_vars.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/stabby_lambda_parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/static_class.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/stderr_puts.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/string_chars.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/string_concatenation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/string_hash_keys.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/string_literals.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/string_literals_in_interpolation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/string_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/strip.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/super_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/super_with_args_parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/swap_values.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/symbol_array.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/symbol_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/symbol_proc.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/tally_method.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/ternary_parentheses.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/top_level_method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trailing_body_on_class.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trailing_body_on_method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trailing_body_on_module.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trailing_comma_in_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trailing_comma_in_array_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trailing_comma_in_block_args.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trailing_method_end_statement.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/trailing_underscore_variable.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/unless_else.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/unless_logical_operators.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/unpack_first.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/variable_interpolation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/when_then.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/while_until_do.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/while_until_modifier.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/word_array.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/yaml_file_read.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/yoda_condition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/yoda_expression.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/style/zero_length_predicate.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/util.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/utils/format_string.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/variable_force/assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/variable_force/branch.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/variable_force/branchable.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/variable_force/reference.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/variable_force/scope.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/variable_force/variable.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/variable_force/variable_table.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cop/variable_force.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/cops_documentation_generator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/core_ext/string.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/directive_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/error.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/ext/comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/ext/processed_source.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/ext/range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/ext/regexp_node.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/ext/regexp_parser.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/feature_loader.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/file_finder.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/file_patterns.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/auto_gen_config_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/base_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/clang_style_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/colorizable.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/disabled_config_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/emacs_style_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/file_list_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/formatter_set.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/fuubar_style_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/github_actions_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/html_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/json_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/junit_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/markdown_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/offense_count_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/pacman_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/progress_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/quiet_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/simple_text_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/tap_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/text_util.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter/worst_offenders_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lockfile.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lsp/diagnostic.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lsp/disable_comment_edits.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lsp/logger.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lsp/routes.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lsp/runtime.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lsp/server.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lsp/severity.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lsp/stdin_runner.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/lsp.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/magic_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/mcp/server.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/name_similarity.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/options.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/path_util.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/pending_cops_reporter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/platform.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/plugin/configuration_integrator.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/plugin/load_error.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/plugin/loader.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/plugin/not_supported_error.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/plugin.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/project_index_loader.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/rake_task.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/remote_config.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/result_cache.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/rspec/cop_helper.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/rspec/expect_offense.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/rspec/parallel_formatter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/rspec/shared_contexts.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/rspec/support.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/cache.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/cli.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/client_command/base.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/client_command/exec.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/client_command/restart.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/client_command/start.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/client_command/status.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/client_command/stop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/client_command.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/core.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/errors.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/helper.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/server_command/base.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/server_command/exec.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/server_command/stop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/server_command.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server/socket_reader.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/server.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/string_interpreter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/target_finder.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/target_ruby.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/util.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/warning.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop/yaml_duplication_checker.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/rubocop.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/ruby_lsp/rubocop/addon.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-1.88.1 → rubocop-1.88.2}/lib/ruby_lsp/rubocop/runtime_adapter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/README.md +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/config/default.yml +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/config/obsoletion.yml +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/mixin/active_record_helper.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/mixin/active_record_migrations_helper.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/mixin/class_send_node_helper.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/mixin/database_type_resolvable.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/mixin/enforce_superclass.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/mixin/index_method.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/mixin/migrations_helper.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/mixin/routes_helper.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/mixin/target_rails_version.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/action_controller_flash_before_render.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/action_controller_test_case.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/action_filter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/action_order.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/active_record_aliases.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/active_record_callbacks_order.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/active_record_override.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/active_support_aliases.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/active_support_on_load.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/add_column_index.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/after_commit_override.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/application_controller.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/application_job.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/application_mailer.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/application_record.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/arel_star.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/assert_not.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/attribute_default_block_value.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/belongs_to.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/blank.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/bulk_change_table.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/compact_blank.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/content_tag.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/create_table_with_timestamps.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/dangerous_column_names.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/date.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/default_scope.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/delegate.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/delegate_allow_blank.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/deprecated_active_model_errors_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/dot_separated_keys.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/duplicate_association.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/duplicate_scope.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/duration_arithmetic.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/dynamic_find_by.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/enum_hash.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/enum_syntax.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/enum_uniqueness.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/env.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/env_local.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/environment_comparison.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/environment_variable_access.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/exit.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/expanded_date_range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/file_path.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/find_by.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/find_by_id.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/find_by_or_assignment_memoization.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/find_each.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/freeze_time.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/has_and_belongs_to_many.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/helper_instance_variable.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/http_positional_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/http_status.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/http_status_name_consistency.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/i18n_lazy_lookup.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/i18n_locale_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/i18n_locale_texts.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/ignored_columns_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/ignored_skip_action_filter_option.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/index_by.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/index_with.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/inquiry.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/inverse_of.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/lexically_scoped_action_filter.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/link_to_blank.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/mailer_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/match_route.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/migration_class_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/multiple_route_paths.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/negate_include.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/not_null_column.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/order_arguments.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/order_by_id.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/output.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/output_safety.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/pick.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/pluck.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/pluck_id.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/pluck_in_where.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/pluralization_grammar.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/presence.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/present.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/rake_environment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/read_write_attribute.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/redirect_back_or_to.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/redundant_active_record_all_method.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/redundant_allow_nil.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/redundant_foreign_key.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/redundant_receiver_in_with_options.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/redundant_travel_back.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/reflection_class_name.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/refute_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/relative_date_constant.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/render_inline.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/render_plain_text.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/request_referer.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/require_dependency.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/response_parsed_body.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/reversible_migration_method_definition.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/root_join_chain.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/root_pathname_methods.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/root_public_path.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/safe_navigation_with_blank.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/save_bang.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/schema_comment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/scope_args.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/select_map.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/short_i18n.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/skips_model_validations.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/squished_sql_heredocs.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/strip_heredoc.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/strong_parameters_expect.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/table_name_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/three_state_boolean_column.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/time_zone.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/time_zone_assignment.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/to_formatted_s.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/to_s_with_argument.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/top_level_hash_with_indifferent_access.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/transaction_exit_statement.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/uniq_before_pluck.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/unique_validation_without_index.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/unknown_env.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/unused_ignored_columns.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/unused_render_content.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/validation.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/where_equals.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/where_exists.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/where_missing.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/where_not.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/where_not_with_multiple_conditions.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails/where_range.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/cop/rails_cops.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/rails/plugin.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/rails/schema_loader/schema.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/rails/schema_loader.rb +0 -0
- /data/vendor/bundle/ruby/3.4.0/gems/{rubocop-rails-2.35.5 → rubocop-rails-2.36.0}/lib/rubocop/rails.rb +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r={exports:{}};var i,o=(n||(n=1,function(t){var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var s in r={},n[o]=r,t)t.hasOwnProperty(s)&&(r[s]=e(t[s],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],s={};for(var l in o)if(o.hasOwnProperty(l)){if(l==t)for(var a in n)n.hasOwnProperty(a)&&(s[a]=n[a]);n.hasOwnProperty(l)||(s[l]=o[l])}var c=r[e];return r[e]=s,i.languages.DFS(i.languages,(function(t,n){n===c&&t!=e&&(this[t]=s)})),s},DFS:function e(t,n,r,o){o=o||{};var s=i.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],r||l);var a=t[l],c=i.util.type(a);"Object"!==c||o[s(a)]?"Array"!==c||o[s(a)]||(o[s(a)]=!0,e(a,n,l,o)):(o[s(a)]=!0,e(a,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,s=0;o=r.elements[s++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,n,r){var o=i.util.getLanguage(t),s=i.languages[o];i.util.setLanguage(t,o);var l=t.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&i.util.setLanguage(l,o);var a={element:t,language:o,grammar:s,code:t.textContent};function c(e){a.highlightedCode=e,i.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,i.hooks.run("after-highlight",a),i.hooks.run("complete",a),r&&r.call(a.element)}if(i.hooks.run("before-sanity-check",a),(l=a.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!a.code)return i.hooks.run("complete",a),void(r&&r.call(a.element));if(i.hooks.run("before-highlight",a),a.grammar)if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))}else c(i.highlight(a.code,a.grammar,a.language));else c(i.util.encode(a.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new a;return c(i,i.head,e),l(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function s(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function l(e,t,n,r,a,d){for(var h in n)if(n.hasOwnProperty(h)&&n[h]){var g=n[h];g=Array.isArray(g)?g:[g];for(var p=0;p<g.length;++p){if(d&&d.cause==h+","+p)return;var f=g[p],m=f.inside,y=!!f.lookbehind,b=!!f.greedy,_=f.alias;if(b&&!f.pattern.global){var C=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,C+"g")}for(var x=f.pattern||f,S=r.next,v=a;S!==t.tail&&!(d&&v>=d.reach);v+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof o)){var k,E=1;if(b){if(!(k=s(x,v,e,y))||k.index>=e.length)break;var T=k.index,N=k.index+k[0].length,A=v;for(A+=S.value.length;T>=A;)A+=(S=S.next).value.length;if(v=A-=S.value.length,S.value instanceof o)continue;for(var L=S;L!==t.tail&&(A<N||"string"==typeof L.value);L=L.next)E++,A+=L.value.length;E--,w=e.slice(v,A),k.index-=v}else if(!(k=s(x,0,w,y)))continue;T=k.index;var O=k[0],I=w.slice(0,T),R=w.slice(T+O.length),F=v+w.length;d&&F>d.reach&&(d.reach=F);var M=S.prev;if(I&&(M=c(t,M,I),v+=I.length),u(t,M,E),S=c(t,M,new o(h,m?i.tokenize(O,m):O,_,O)),R&&c(t,S,R),E>1){var P={cause:h+","+p,reach:F};l(e,t,n,S.prev,v,P),d&&P.reach>d.reach&&(d.reach=P.reach)}}}}}}function a(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(o.classes,s):o.classes.push(s)),i.hooks.run("wrap",o);var l="";for(var a in o.attributes)l+=" "+a+'="'+(o.attributes[a]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+l+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,s=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),s&&e.close()}),!1),i):i;var d=i.util.currentScript();function h(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var g=document.readyState;"loading"===g||"interactive"===g&&d&&d.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
2
|
+
/**
|
|
3
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
4
|
+
*
|
|
5
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
6
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
7
|
+
* @namespace
|
|
8
|
+
* @public
|
|
9
|
+
*/t.exports&&(t.exports=n),void 0!==e&&(e.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\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:/<!\[CDATA\[[\s\S]*?\]\]>/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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(e,t){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:n.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(n),n.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|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,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:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.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:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.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:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.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:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.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")),n.languages.js=n.languages.javascript,function(){if(void 0!==n&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",r="loading",i="loaded",o="pre[data-src]:not(["+t+'="'+i+'"]):not(['+t+'="'+r+'"])';n.hooks.add("before-highlightall",(function(e){e.selector+=", "+o})),n.hooks.add("before-sanity-check",(function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(t,r);var a=l.appendChild(document.createElement("CODE"));a.textContent="Loading…";var c=l.getAttribute("data-src"),u=s.language;if("none"===u){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];u=e[d]||d}n.util.setLanguage(a,u),n.util.setLanguage(l,u);var h=n.plugins.autoloader;h&&h.loadLanguages(u),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(c,(function(e){l.setAttribute(t,i);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}(l.getAttribute("data-range"));if(r){var o=e.split(/\r\n?|\n/g),s=r[0],c=null==r[1]?o.length:r[1];s<0&&(s+=o.length),s=Math.max(0,Math.min(s-1,o.length)),c<0&&(c+=o.length),c=Math.max(0,Math.min(c,o.length)),e=o.slice(s,c).join("\n"),l.hasAttribute("data-start")||l.setAttribute("data-start",String(s+1))}a.textContent=e,n.highlightElement(a)}),(function(e){l.setAttribute(t,"failed"),a.textContent=e}))}})),n.plugins.fileHighlight={highlight:function(e){for(var t,r=(e||document).querySelectorAll(o),i=0;t=r[i++];)n.highlightElement(t)}};var s=!1;n.fileHighlight=function(){s||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),s=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(r)),r.exports),s=t(o);s.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|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(s),s.languages.javascript=s.languages.extend("clike",{"class-name":[s.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,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:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),s.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,s.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:s.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:s.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:s.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:s.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:s.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),s.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:s.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),s.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),s.languages.markup&&(s.languages.markup.tag.addInlined("script","javascript"),s.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")),s.languages.js=s.languages.javascript,s.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\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:/<!\[CDATA\[[\s\S]*?\]\]>/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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},s.languages.markup.tag.inside["attr-value"].inside.entity=s.languages.markup.entity,s.languages.markup.doctype.inside["internal-subset"].inside=s.languages.markup,s.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(s.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:s.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:s.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},s.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(s.languages.markup.tag,"addAttribute",{value:function(e,t){s.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\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:s.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),s.languages.html=s.languages.markup,s.languages.mathml=s.languages.markup,s.languages.svg=s.languages.markup,s.languages.xml=s.languages.extend("markup",{}),s.languages.ssml=s.languages.xml,s.languages.atom=s.languages.xml,s.languages.rss=s.languages.xml,function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var i=t[n];if("code"===i.type){var o=i.content[1],s=i.content[3];if(o&&s&&"code-language"===o.type&&"code-block"===s.type&&"string"==typeof o.content){var l=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),a="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());s.alias?"string"==typeof s.alias?s.alias=[s.alias,a]:s.alias.push(a):s.alias=[a]}}else e(i.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,i=t.classes.length;r<i;r++){var o=t.classes[r],c=/language-(.+)/.exec(o);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){var t=e.replace(s,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),a(n);var r=l[t];return r||e})),t}(t.content),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var s=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(s),s.languages.c=s.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),s.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),s.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},s.languages.c.string],char:s.languages.c.char,comment:s.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:s.languages.c}}}}),s.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete s.languages.c.boolean,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(s),s.languages.objectivec=s.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete s.languages.objectivec["class-name"],s.languages.objc=s.languages.objectivec,s.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(i=s.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/}).string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:i},boolean:i.boolean,variable:i.variable};var l;l||(l=1,s.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},s.languages.python["string-interpolation"].inside.interpolation.inside.rest=s.languages.python,s.languages.py=s.languages.python);var a;a||(a=1,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(s)),s.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},s.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=s.languages.swift}));var c;c||(c=1,function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(s));var u;u||(u=1,function(e){var t=/\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(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[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",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,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},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),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":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(s));var d;d||(d=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(s)),function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,i,o){if(n.language===r){var s=n.tokenStack=[];n.code=n.code.replace(i,(function(e){if("function"==typeof o&&!o(e))return e;for(var i,l=s.length;-1!==n.code.indexOf(i=t(r,l));)++l;return s[l]=e,i})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var i=0,o=Object.keys(n.tokenStack);!function s(l){for(var a=0;a<l.length&&!(i>=o.length);a++){var c=l[a];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[i],d=n.tokenStack[u],h="string"==typeof c?c:c.content,g=t(r,u),p=h.indexOf(g);if(p>-1){++i;var f=h.substring(0,p),m=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),y=h.substring(p+g.length),b=[];f&&b.push.apply(b,s([f])),b.push(m),y&&b.push.apply(b,s([y])),"string"==typeof c?l.splice.apply(l,[a,1].concat(b)):c.content=b}}else c.content&&s(c.content)}return l}(n.tokens)}}}})}(s);var h;h||(h=1,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(s));var g;g||(g=1,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(s)),s.languages.go=s.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,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(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),s.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete s.languages.go["class-name"],function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,s=0;s<i.length;s++)o[i[s]]=e.languages.bash[i[s]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(s),s.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},s.languages.webmanifest=s.languages.json,function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(s),window.Prism||={},window.Prism.manual=!0;
|
|
10
|
+
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
|
|
11
|
+
const{entries:p,setPrototypeOf:f,isFrozen:m,getPrototypeOf:y,getOwnPropertyDescriptor:b}=Object;let{freeze:_,seal:C,create:x}=Object,{apply:S,construct:v}="undefined"!=typeof Reflect&&Reflect;_||(_=function(e){return e}),C||(C=function(e){return e}),S||(S=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),v||(v=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const w=$(Array.prototype.forEach),k=$(Array.prototype.lastIndexOf),E=$(Array.prototype.pop),T=$(Array.prototype.push),N=$(Array.prototype.splice),A=$(String.prototype.toLowerCase),L=$(String.prototype.toString),O=$(String.prototype.match),I=$(String.prototype.replace),R=$(String.prototype.indexOf),F=$(String.prototype.trim),M=$(Object.prototype.hasOwnProperty),P=$(RegExp.prototype.test),D=(B=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v(B,t)});var B;function $(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return S(e,t,r)}}function z(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;f&&f(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(m(t)||(t[r]=e),i=e)}e[i]=!0}return e}function H(e){for(let t=0;t<e.length;t++){M(e,t)||(e[t]=null)}return e}function K(e){const t=x(null);for(const[n,r]of p(e)){M(e,n)&&(Array.isArray(r)?t[n]=H(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=K(r):t[n]=r)}return t}function U(e,t){for(;null!==e;){const n=b(e,t);if(n){if(n.get)return $(n.get);if("function"==typeof n.value)return $(n.value)}e=y(e)}return function(){return null}}const W=_(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V=_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),j=_(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),G=_(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=_(["#text"]),J=_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),X=_(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Q=_(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ee=_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),te=C(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ne=C(/<%[\w\W]*|[\w\W]*%>/gm),re=C(/\$\{[\w\W]*/gm),ie=C(/^data-[\-\w.\u00B7-\uFFFF]+$/),oe=C(/^aria-[\-\w]+$/),se=C(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),le=C(/^(?:\w+script|data):/i),ae=C(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ce=C(/^html$/i),ue=C(/^[a-z][.\w]*(-[.\w]+)+$/i);var de=Object.freeze({__proto__:null,ARIA_ATTR:oe,ATTR_WHITESPACE:ae,CUSTOM_ELEMENT:ue,DATA_ATTR:ie,DOCTYPE_NAME:ce,ERB_EXPR:ne,IS_ALLOWED_URI:se,IS_SCRIPT_OR_DATA:le,MUSTACHE_EXPR:te,TMPLIT_EXPR:re});const he=1,ge=3,pe=7,fe=8,me=9,ye=function(){return"undefined"==typeof window?null:window};var be=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye();const n=t=>e(t);if(n.version="3.3.0",n.removed=[],!t||!t.document||t.document.nodeType!==me||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:a,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:g,trustedTypes:f}=t,m=c.prototype,y=U(m,"cloneNode"),b=U(m,"remove"),C=U(m,"nextSibling"),S=U(m,"childNodes"),v=U(m,"parentNode");if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let B,$="";const{implementation:H,createNodeIterator:te,createDocumentFragment:ne,getElementsByTagName:re}=r,{importNode:ie}=i;let oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof p&&"function"==typeof v&&H&&void 0!==H.createHTMLDocument;const{MUSTACHE_EXPR:le,ERB_EXPR:ae,TMPLIT_EXPR:ue,DATA_ATTR:be,ARIA_ATTR:_e,IS_SCRIPT_OR_DATA:Ce,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:Se}=de;let{IS_ALLOWED_URI:ve}=de,we=null;const ke=z({},[...W,...V,...q,...G,...Y]);let Ee=null;const Te=z({},[...J,...X,...Q,...ee]);let Ne=Object.seal(x(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ae=null,Le=null;const Oe=Object.seal(x(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Re=!0,Fe=!1,Me=!0,Pe=!1,De=!0,Be=!1,$e=!1,ze=!1,He=!1,Ke=!1,Ue=!1,We=!0,Ve=!1,qe=!0,je=!1,Ge={},Ze=null;const Ye=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Je=null;const Xe=z({},["audio","video","img","source","image","track"]);let Qe=null;const et=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let it=rt,ot=!1,st=null;const lt=z({},[tt,nt,rt],L);let at=z({},["mi","mo","mn","ms","mtext"]),ct=z({},["annotation-xml"]);const ut=z({},["title","style","font","a","script"]);let dt=null;const ht=["application/xhtml+xml","text/html"];let gt=null,pt=null;const ft=r.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"==typeof e||(e={}),e=K(e),dt=-1===ht.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,gt="application/xhtml+xml"===dt?L:A,we=M(e,"ALLOWED_TAGS")?z({},e.ALLOWED_TAGS,gt):ke,Ee=M(e,"ALLOWED_ATTR")?z({},e.ALLOWED_ATTR,gt):Te,st=M(e,"ALLOWED_NAMESPACES")?z({},e.ALLOWED_NAMESPACES,L):lt,Qe=M(e,"ADD_URI_SAFE_ATTR")?z(K(et),e.ADD_URI_SAFE_ATTR,gt):et,Je=M(e,"ADD_DATA_URI_TAGS")?z(K(Xe),e.ADD_DATA_URI_TAGS,gt):Xe,Ze=M(e,"FORBID_CONTENTS")?z({},e.FORBID_CONTENTS,gt):Ye,Ae=M(e,"FORBID_TAGS")?z({},e.FORBID_TAGS,gt):K({}),Le=M(e,"FORBID_ATTR")?z({},e.FORBID_ATTR,gt):K({}),Ge=!!M(e,"USE_PROFILES")&&e.USE_PROFILES,Ie=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,Fe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Be=e.WHOLE_DOCUMENT||!1,He=e.RETURN_DOM||!1,Ke=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,ze=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,qe=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||se,it=e.NAMESPACE||rt,at=e.MATHML_TEXT_INTEGRATION_POINTS||at,ct=e.HTML_INTEGRATION_POINTS||ct,Ne=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ne.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ne.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ne.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Re=!1),Ke&&(He=!0),Ge&&(we=z({},Y),Ee=[],!0===Ge.html&&(z(we,W),z(Ee,J)),!0===Ge.svg&&(z(we,V),z(Ee,X),z(Ee,ee)),!0===Ge.svgFilters&&(z(we,q),z(Ee,X),z(Ee,ee)),!0===Ge.mathMl&&(z(we,G),z(Ee,Q),z(Ee,ee))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Oe.tagCheck=e.ADD_TAGS:(we===ke&&(we=K(we)),z(we,e.ADD_TAGS,gt))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Oe.attributeCheck=e.ADD_ATTR:(Ee===Te&&(Ee=K(Ee)),z(Ee,e.ADD_ATTR,gt))),e.ADD_URI_SAFE_ATTR&&z(Qe,e.ADD_URI_SAFE_ATTR,gt),e.FORBID_CONTENTS&&(Ze===Ye&&(Ze=K(Ze)),z(Ze,e.FORBID_CONTENTS,gt)),qe&&(we["#text"]=!0),Be&&z(we,["html","head","body"]),we.table&&(z(we,["tbody"]),delete Ae.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw D('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=e.TRUSTED_TYPES_POLICY,$=B.createHTML("")}else void 0===B&&(B=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(f,o)),null!==B&&"string"==typeof $&&($=B.createHTML(""));_&&_(e),pt=e}},bt=z({},[...V,...q,...j]),_t=z({},[...G,...Z]),Ct=function(e){T(n.removed,{element:e});try{v(e).removeChild(e)}catch(t){b(e)}},xt=function(e,t){try{T(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(He||Ke)try{Ct(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},St=function(e){let t=null,n=null;if(ze)e="<remove></remove>"+e;else{const t=O(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===dt&&it===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=B?B.createHTML(e):e;if(it===rt)try{t=(new g).parseFromString(i,dt)}catch(e){}if(!t||!t.documentElement){t=H.createDocument(it,"template",null);try{t.documentElement.innerHTML=ot?$:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),it===rt?re.call(t,Be?"html":"body")[0]:Be?t.documentElement:o},vt=function(e){return te.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},kt=function(e){return"function"==typeof a&&e instanceof a};function Et(e,t,r){w(e,(e=>{e.call(n,t,r,pt)}))}const Tt=function(e){let t=null;if(Et(oe.beforeSanitizeElements,e,null),wt(e))return Ct(e),!0;const r=gt(e.nodeName);if(Et(oe.uponSanitizeElement,e,{tagName:r,allowedTags:we}),De&&e.hasChildNodes()&&!kt(e.firstElementChild)&&P(/<[/\w!]/g,e.innerHTML)&&P(/<[/\w!]/g,e.textContent))return Ct(e),!0;if(e.nodeType===pe)return Ct(e),!0;if(De&&e.nodeType===fe&&P(/<[/\w]/g,e.data))return Ct(e),!0;if(!(Oe.tagCheck instanceof Function&&Oe.tagCheck(r))&&(!we[r]||Ae[r])){if(!Ae[r]&&At(r)){if(Ne.tagNameCheck instanceof RegExp&&P(Ne.tagNameCheck,r))return!1;if(Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(r))return!1}if(qe&&!Ze[r]){const t=v(e)||e.parentNode,n=S(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=y(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,C(e))}}}return Ct(e),!0}return e instanceof c&&!function(e){let t=v(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=A(e.tagName),r=A(t.tagName);return!!st[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(bt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&ct[r]:Boolean(_t[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!ct[r])&&!(t.namespaceURI===tt&&!at[r])&&!_t[n]&&(ut[n]||!bt[n]):!("application/xhtml+xml"!==dt||!st[e.namespaceURI]))}(e)?(Ct(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!P(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&e.nodeType===ge&&(t=e.textContent,w([le,ae,ue],(e=>{t=I(t,e," ")})),e.textContent!==t&&(T(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et(oe.afterSanitizeElements,e,null),!1):(Ct(e),!0)},Nt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in r||n in ft))return!1;if(Re&&!Le[t]&&P(be,t));else if(Ie&&P(_e,t));else if(Oe.attributeCheck instanceof Function&&Oe.attributeCheck(t,e));else if(!Ee[t]||Le[t]){if(!(At(e)&&(Ne.tagNameCheck instanceof RegExp&&P(Ne.tagNameCheck,e)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(e))&&(Ne.attributeNameCheck instanceof RegExp&&P(Ne.attributeNameCheck,t)||Ne.attributeNameCheck instanceof Function&&Ne.attributeNameCheck(t,e))||"is"===t&&Ne.allowCustomizedBuiltInElements&&(Ne.tagNameCheck instanceof RegExp&&P(Ne.tagNameCheck,n)||Ne.tagNameCheck instanceof Function&&Ne.tagNameCheck(n))))return!1}else if(Qe[t]);else if(P(ve,I(n,xe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!Je[e]){if(Fe&&!P(Ce,I(n,xe,"")));else if(n)return!1}else;return!0},At=function(e){return"annotation-xml"!==e&&O(e,Se)},Lt=function(e){Et(oe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||wt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:s,namespaceURI:l,value:a}=o,c=gt(s),u=a;let d="value"===s?u:F(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Et(oe.uponSanitizeAttribute,e,r),d=r.attrValue,!Ve||"id"!==c&&"name"!==c||(xt(s,e),d="user-content-"+d),De&&P(/((--!?|])>)|<\/(style|title|textarea)/i,d)){xt(s,e);continue}if("attributename"===c&&O(d,"href")){xt(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){xt(s,e);continue}if(!Me&&P(/\/>/i,d)){xt(s,e);continue}Pe&&w([le,ae,ue],(e=>{d=I(d,e," ")}));const h=gt(e.nodeName);if(Nt(h,c,d)){if(B&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(l);else switch(f.getAttributeType(h,c)){case"TrustedHTML":d=B.createHTML(d);break;case"TrustedScriptURL":d=B.createScriptURL(d)}if(d!==u)try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),wt(e)?Ct(e):E(n.removed)}catch(t){xt(s,e)}}else xt(s,e)}Et(oe.afterSanitizeAttributes,e,null)},Ot=function e(t){let n=null;const r=vt(t);for(Et(oe.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Et(oe.uponSanitizeShadowNode,n,null),Tt(n),Lt(n),n.content instanceof s&&e(n.content);Et(oe.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,l=null,c=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!kt(e)){if("function"!=typeof e.toString)throw D("toString is not a function");if("string"!=typeof(e=e.toString()))throw D("dirty is not a string, aborting")}if(!n.isSupported)return e;if($e||yt(t),n.removed=[],"string"==typeof e&&(je=!1),je){if(e.nodeName){const t=gt(e.nodeName);if(!we[t]||Ae[t])throw D("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)r=St("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===he&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!He&&!Pe&&!Be&&-1===e.indexOf("<"))return B&&Ue?B.createHTML(e):e;if(r=St(e),!r)return He?null:Ue?$:""}r&&ze&&Ct(r.firstChild);const u=vt(je?e:r);for(;l=u.nextNode();)Tt(l),Lt(l),l.content instanceof s&&Ot(l.content);if(je)return e;if(He){if(Ke)for(c=ne.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Ee.shadowroot||Ee.shadowrootmode)&&(c=ie.call(i,c,!0)),c}let d=Be?r.outerHTML:r.innerHTML;return Be&&we["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&P(ce,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Pe&&w([le,ae,ue],(e=>{d=I(d,e," ")})),B&&Ue?B.createHTML(d):d},n.setConfig=function(){yt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),$e=!0},n.clearConfig=function(){pt=null,$e=!1},n.isValidAttribute=function(e,t,n){pt||yt({});const r=gt(e),i=gt(t);return Nt(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&T(oe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=k(oe[e],t);return-1===n?void 0:N(oe[e],n,1)[0]}return E(oe[e])},n.removeHooks=function(e){oe[e]=[]},n.removeAllHooks=function(){oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function _e(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ce(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const xe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Se=xe&&"documentMode"in document?document.documentMode:null,ve=xe&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),we=xe&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ke=!(!xe||!("InputEvent"in window)||Se)&&"getTargetRanges"in new window.InputEvent("input"),Ee=xe&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Te=xe&&/Android/.test(navigator.userAgent),Ne=xe&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!Te,Ae=xe&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Le=xe&&Te&&Ae,Oe=xe&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&ve&&!Ae,Ie=0,Re=1,Fe=2,Me=1,Pe=2,De=3,Be=4,$e=5,ze=6,He=Ne||Ee||Oe?" ":"",Ke="\n\n",Ue=we?" ":He,We="֑-߿יִ-﷽ﹰ-ﻼ",Ve="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",qe=new RegExp("^[^"+Ve+"]*["+We+"]"),je=new RegExp("^[^"+We+"]*["+Ve+"]"),Ge={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Ze={directionless:1,unmergeable:2},Ye={center:2,end:6,justify:4,left:1,right:3,start:5},Je={[Pe]:"center",[ze]:"end",[Be]:"justify",[Me]:"left",[De]:"right",[$e]:"start"},Xe={normal:0,segmented:2,token:1},Qe={[Ie]:"normal",[Fe]:"segmented",[Re]:"token"},et="$config";let tt=class{_front=new Set;_back=new Set;_cache;get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){const e=Array.from(this._front).reverse();for(const t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}};function nt(e,t,n,r,i,o){let s=e.getFirstChild();for(;null!==s;){const e=s.__key;s.__parent===t&&(Ko(s)&&nt(s,e,n,r,i,o),n.has(e)||o.delete(e),i.push(e)),s=s.getNextSibling()}}let rt=!1,it=0;function ot(e){it=e.timeStamp}function st(e,t,n){const r="BR"===e.nodeName,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&void 0!==Bs(e,n)}function lt(e,t,n){const r=Ol(xl(n));let i=null,o=null;null!==r&&r.anchorNode===e&&(i=r.anchorOffset,o=r.focusOffset);const s=e.nodeValue;null!==s&&Js(t,s,i,o,!1)}function at(e,t,n){if(Di(e)){const t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return Es(t)&&n.isAttached()}function ct(e,t,n,r){for(let i=e;i&&!Yl(i);i=pl(i)){const e=Bs(i,t);if(void 0!==e){const t=Ps(e,n);if(t)return Vo(t)||!Ml(i)?void 0:[i,t]}else if(i===r)return[r,Us(n)]}}function ut(e,t,n){rt=!0;const r=performance.now()-it>100;try{Bo(e,(()=>{const i=to()||function(e){return e.getEditorState().read((()=>{const e=to();return null!==e?e.clone():null}))}(e),o=new Map,s=e.getRootElement(),l=e._editorState,a=e._blockCursorElement;let c=!1,u="";for(let n=0;n<t.length;n++){const d=t[n],h=d.type,g=d.target,p=ct(g,e,l,s);if(!p)continue;const[f,m]=p;if("characterData"===h)r&&Ti(m)&&Es(g)&&at(i,g,m)&<(g,m,e);else if("childList"===h){c=!0;const t=d.addedNodes;for(let n=0;n<t.length;n++){const r=t[n],i=Ds(r),o=r.parentNode;if(null!=o&&r!==a&&null===i&&!st(r,o,e)){if(we){const e=(Ml(r)?r.innerText:null)||r.nodeValue;e&&(u+=e)}o.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){const r=n[i];(st(r,g,e)||a===r)&&(g.appendChild(r),t++)}r!==t&&o.set(f,m)}}}if(o.size>0)for(const[t,n]of o)n.reconcileObservedMutation(t,e);const d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){const n=d[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){const n=r[t],o=n.parentNode;null==o||"BR"!==n.nodeName||st(n,i,e)||o.removeChild(n)}}n.takeRecords()}null!==i&&(c&&Ws(i),we&&dl(e)&&i.insertRawText(u))}))}finally{rt=!1}}function dt(e){const t=e._observer;null!==t&&ut(e,t.takeRecords(),t)}function ht(e){!function(e){0===it&&xl(e).addEventListener("textInput",ot,!0)}(e),e._observer=new MutationObserver(((t,n)=>{ut(e,t,n)}))}let gt=class{key;parse;unparse;isEqual;defaultValue;resetOnCopyNode;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||St).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}};function pt(e,t){return new gt(e,t)}function ft(e,t,n="latest"){const r=("latest"===n?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}function mt(e,t,n){let r;if(xo(),"function"==typeof n){const i=e.getLatest(),o=ft(i,t);if(r=n(o),t.isEqual(o,r))return i}else r=n;const i=e.getWritable();return _t(i).updateFromKnown(t,r),i}function yt(e){const t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){const{ownNodeConfig:e}=Xl(r);if(e&&e.stateConfigs)for(const r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}let bt=class e{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n=void 0,r=new Map,i=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;const{sharedConfigMap:o}=this.sharedNodeState,s=void 0!==i?i:function(e,t,n){let r=n.size;if(t)for(const i in t){const t=e.get(i);t&&n.has(t)||r++}return r}(o,n,r);this.size=s}getValue(e){const t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(const n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return xt(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;const{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new e(t,n,function(e,t,n){let r;if(n)for(const[i,o]of Object.entries(n)){const n=e.get(i);n?t.has(n)||t.set(n,n.parse(o)):(r=r||{},r[i]=o)}return r}(n.sharedConfigMap,i,r),i,this.size)}resetOnCopyNode(){for(const e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){const n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);const{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=xt(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){const n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}};function _t(e){const t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new bt(t,Ct(t));return t.__state=n,n}function Ct(e){return e.__state?e.__state.sharedNodeState:ps(Hl(),e.getType()).sharedNodeState}function xt(e){if(e)for(const t in e)return e}function St(e){return e}function vt(e,t,n){for(const[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);const t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function wt(e,t,n){const{unknownState:r}=t,i=n?n.unknownState:void 0;if(r)for(const[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0;return!1}function kt(e,t){const n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Et(e,t){const n=e.__mode,r=e.__format,i=e.__style,o=t.__mode,s=t.__format,l=t.__style,a=e.__state,c=t.__state;return(null===n||n===o)&&(null===r||r===s)&&(null===i||i===l)&&(null===e.__state||a===c||function(e,t){if(e===t)return!0;const n=new Set;return!(e&&vt(n,e,t)||t&&vt(n,t,e)||e&&wt(n,e,t)||t&&wt(n,t,e))}(a,c))}function Tt(e,t){const n=e.mergeWithSibling(t),r=wo()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Nt(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&Ti(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){if(Et(t,r)){r=Tt(t,r);break}break}t.remove()}for(;null!==(n=r.getNextSibling())&&Ti(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(Et(r,n)){r=Tt(r,n);break}break}n.remove()}}else r.remove()}function At(e){return Lt(e.anchor),Lt(e.focus),e}function Lt(e){for(;"element"===e.type;){const t=e.getNode(),n=e.offset;let r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),Ti(r)){e.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!Ko(r))break;e.set(r.__key,i?r.getChildrenSize():0,"element",!0)}}let Ot,It,Rt,Ft,Mt,Pt,Dt,Bt,$t,zt,Ht,Kt="",Ut=null,Wt=null,Vt=!1,qt=!1;function jt(e,t){const n=Dt.get(e);if(null!==t){const n=cn(e);n.parentNode===t&&t.removeChild(n)}if(Bt.has(e)||It._keyToDOMMap.delete(e),Ko(n)){const e=ta(n,Dt);Gt(e,0,e.length-1,null)}void 0!==n&&al(zt,Rt,Ft,n,"destroyed")}function Gt(e,t,n,r){for(let i=t;i<=n;++i){const t=e[i];void 0!==t&&jt(t,r)}}function Zt(e,t){e.setProperty("text-align",t)}const Yt="40px";function Jt(e,t){const n=Ot.theme.indent;if("string"==typeof n){const r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}if(0===t)return void e.style.setProperty("padding-inline-start","");const r=getComputedStyle(It._rootElement||e).getPropertyValue("--lexical-indent-base-value")||Yt;e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function Xt(e,t){const n=e.style;0===t?Zt(n,""):1===t?Zt(n,"left"):2===t?Zt(n,"center"):3===t?Zt(n,"right"):4===t?Zt(n,"justify"):5===t?Zt(n,"start"):6===t&&Zt(n,"end")}function Qt(e,t){const n=function(e){const t=e.__dir;if(null!==t)return t;if(jo(e))return null;const n=e.getParentOrThrow();return jo(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function en(e,t){const n=Bt.get(e);void 0===n&&_e(60);const r=Ht.$createDOM(n,It);if(function(e,t,n){const r=n._keyToDOMMap;(function(e,t,n){e[`__lexicalKey_${t._key}`]=n})(t,n,e),r.set(e,t)}(e,r,It),Ti(n)?r.setAttribute("data-lexical-text","true"):Vo(n)&&r.setAttribute("data-lexical-decorator","true"),Ko(n)){const e=n.__indent,t=n.__size;if(Qt(r,n),0!==e&&Jt(r,e),0!==t){const e=t-1;tn(ta(n,Bt),n,0,e,Ht.$getDOMSlot(n,r,It))}const i=n.__format;0!==i&&Xt(r,i),n.isInline()||rn(null,n,r)}else{const t=n.getTextContent();if(Vo(n)){const t=n.decorate(It,Ot);null!==t&&sn(e,t),r.contentEditable="false"}Kt+=t}return null!==t&&t.insertChild(r),Ht.$decorateDOM(n,null,r,It),al(zt,Rt,Ft,n,"created"),r}function tn(e,t,n,r,i){const o=Kt;Kt="";let s=n;for(;s<=r;++s){en(e[s],i);const t=Bt.get(e[s]);null!==t&&Ti(t)?null===Ut&&(Ut=t.getFormat(),Wt=t.getStyle()):Ko(t)&&s<r&&!t.isInline()&&(Kt+=Ke)}i.element.__lexicalTextContent=Kt,Kt=o+Kt}function nn(e,t){if(e){const n=e.__last;if(n){const e=t.get(n);if(e)return ci(e)?"line-break":Vo(e)&&e.isInline()?"decorator":null}return"empty"}return null}function rn(e,t,n){const r=nn(e,Dt),i=nn(t,Bt);r!==i&&Ht.$getDOMSlot(t,n,It).setManagedLineBreak(i)}function on(e,t){const n=Dt.get(e);let r=Bt.get(e);void 0!==n&&void 0!==r||_e(61);const i=Vt||Pt.has(e)||Mt.has(e),o=gl(It,e);if(n===r&&!i){let e;if(Ko(n)){const t=o.__lexicalTextContent;"string"==typeof t?e=t:(e=n.getTextContent(),o.__lexicalTextContent=e)}else e=n.getTextContent();return Kt+=e,o}if(n!==r&&i&&al(zt,Rt,Ft,r,"updated"),Ht.$updateDOM(r,n,o,It)){const n=en(e,null);return null===t&&_e(62),t.replaceChild(n,o),jt(e,null),n}if(Ko(n)){Ko(r)||_e(334,e);const t=r.__indent;(Vt||t!==n.__indent)&&Jt(o,t);const s=r.__format;if((Vt||s!==n.__format)&&Xt(o,s),i)(function(e,t,n){var r;Ut=null,Wt=null,function(e,t,n){const r=Kt,i=e.__size,o=t.__size;Kt="";const s=n.element;if(1===i&&1===o){const n=e.__first,i=t.__first;if(n===i)on(n,s);else{const e=cn(n),t=en(i,null);try{s.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r){const o=`${r.toString()} Parent: ${s.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw new Error(o)}throw r}jt(n,null)}const o=Bt.get(i);Ti(o)&&null===Ut&&(Ut=o.getFormat(),Wt=o.getStyle())}else{const r=ta(e,Dt),l=ta(t,Bt);if(r.length!==i&&_e(227),l.length!==o&&_e(228),0===i)0!==o&&tn(l,0,0,o-1,n);else if(0===o){if(0!==i){const e=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;Gt(r,0,i-1,e?null:s),e&&(s.textContent="")}}else!function(e,t,n,r,i,o){const s=r-1,l=i-1;let a,c,u=o.getFirstChild(),d=0,h=0;for(;d<=s&&h<=l;){const e=t[d],r=n[h];if(e===r)u=ln(on(r,o.element)),d++,h++;else{if(void 0===c&&(c=an(n,h)),void 0===a)a=an(t,d);else if(!a.has(e)){d++;continue}if(!c.has(e)){u=ln(cn(e)),jt(e,o.element),d++,a.delete(e);continue}if(a.has(r)){const e=gl(It,r);e!==u&&o.withBefore(u).insertChild(e),u=ln(on(r,o.element)),d++,h++}else en(r,o.withBefore(u)),h++}const i=Bt.get(r);null!==i&&Ti(i)?null===Ut&&(Ut=i.getFormat(),Wt=i.getStyle()):Ko(i)&&h<=l&&!i.isInline()&&(Kt+=Ke)}const g=d>s,p=h>l;if(g&&!p){const e=n[l+1],t=void 0===e?null:It.getElementByKey(e);tn(n,0,h,l,o.withBefore(t))}else p&&!g&&Gt(t,d,s,o.element)}(0,r,l,i,o,n)}s.__lexicalTextContent=Kt,Kt=r+Kt}(e,t,Ht.$getDOMSlot(t,n,It)),r=t,null==Ut||Ut===r.__textFormat||qt||r.setTextFormat(Ut),function(e){null==Wt||Wt===e.__textStyle||qt||e.setTextStyle(Wt)}(t)})(n,r,o),jo(r)||r.isInline()||rn(n,r,o);else{const e=o.__lexicalTextContent;let t;"string"==typeof e?t=e:(t=n.getTextContent(),o.__lexicalTextContent=t),Kt+=t}if((Vt||r.__dir!==n.__dir)&&(Qt(o,r),jo(r)&&!Vt))for(const e of r.getChildren())Ko(e)&&Qt(gl(It,e.getKey()),e)}else{const t=r.getTextContent();if(Vo(r)){const t=r.decorate(It,Ot);null!==t&&sn(e,t)}Kt+=t}if(!qt&&jo(r)&&r.__cachedText!==Kt){const e=r.getWritable();e.__cachedText=Kt,r=e}return Ht.$decorateDOM(r,n,o,It),o}function sn(e,t){let n=It._pendingDecorators;const r=It._decorators;if(null===n){if(r[e]===t)return;n=zs(It)}n[e]=t}function ln(e){let t=e.nextSibling;return null!==t&&t===It._blockCursorElement&&(t=t.nextSibling),t}function an(e,t){const n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function cn(e){const t=$t.get(e);return void 0===t&&_e(75,e),t}function un(e){return{type:e}}const dn=un("SELECTION_CHANGE_COMMAND"),hn=un("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),gn=un("CLICK_COMMAND"),pn=un("BEFORE_INPUT_COMMAND"),fn=un("INPUT_COMMAND"),mn=un("COMPOSITION_START_COMMAND"),yn=un("COMPOSITION_END_COMMAND"),bn=un("DELETE_CHARACTER_COMMAND"),_n=un("INSERT_LINE_BREAK_COMMAND"),Cn=un("INSERT_PARAGRAPH_COMMAND"),xn=un("CONTROLLED_TEXT_INSERTION_COMMAND"),Sn=un("PASTE_COMMAND"),vn=un("REMOVE_TEXT_COMMAND"),wn=un("DELETE_WORD_COMMAND"),kn=un("DELETE_LINE_COMMAND"),En=un("FORMAT_TEXT_COMMAND"),Tn=un("UNDO_COMMAND"),Nn=un("REDO_COMMAND"),An=un("KEYDOWN_COMMAND"),Ln=un("KEY_ARROW_RIGHT_COMMAND"),On=un("MOVE_TO_END"),In=un("KEY_ARROW_LEFT_COMMAND"),Rn=un("MOVE_TO_START"),Fn=un("KEY_ARROW_UP_COMMAND"),Mn=un("KEY_ARROW_DOWN_COMMAND"),Pn=un("KEY_ENTER_COMMAND"),Dn=un("KEY_SPACE_COMMAND"),Bn=un("KEY_BACKSPACE_COMMAND"),$n=un("KEY_ESCAPE_COMMAND"),zn=un("KEY_DELETE_COMMAND"),Hn=un("KEY_TAB_COMMAND"),Kn=un("INSERT_TAB_COMMAND"),Un=un("INDENT_CONTENT_COMMAND"),Wn=un("OUTDENT_CONTENT_COMMAND"),Vn=un("DROP_COMMAND"),qn=un("FORMAT_ELEMENT_COMMAND"),jn=un("DRAGSTART_COMMAND"),Gn=un("DRAGOVER_COMMAND"),Zn=un("DRAGEND_COMMAND"),Yn=un("COPY_COMMAND"),Jn=un("CUT_COMMAND"),Xn=un("SELECT_ALL_COMMAND"),Qn=un("CLEAR_EDITOR_COMMAND"),er=un("CLEAR_HISTORY_COMMAND"),tr=un("CAN_REDO_COMMAND"),nr=un("CAN_UNDO_COMMAND"),rr=un("FOCUS_COMMAND"),ir=un("BLUR_COMMAND"),or=un("KEY_MODIFIER_COMMAND"),sr=Object.freeze({}),lr=[["keydown",function(e,t){ar=e.timeStamp,cr=e.key,t.isComposing()||hl(t,An,e)}],["pointerdown",function(e,t){const n=e.target,r=e.pointerType;Pl(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&Bo(t,(()=>{ys(n)||(fr=!0)}))}],["compositionstart",function(e,t){hl(t,mn,e)}],["compositionend",function(e,t){we?yr=!0:Ee||!Ne&&!Oe?hl(t,yn,e):(br=!0,_r=e.data)}],["input",function(e,t){e.stopPropagation(),Bo(t,(()=>{t.dispatchCommand(fn,e)}),{event:e}),dr=null}],["click",function(e,t){Bo(t,(()=>{const n=to(),r=Ol(xl(t)),i=no();if(r)if(Di(n)){const t=n.anchor,o=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!jo(o)&&1===Ks().getChildrenSize()&&o.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&o!==n.focus.getNode()){const e=ea(o,(e=>Ko(e)&&!e.isInline()));Ko(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){const n=r.anchorNode;(Ml(n)||Es(n))&&Ws(eo(i,r,t,e))}hl(t,gn,e)}))}],["cut",sr],["copy",sr],["dragstart",sr],["dragover",sr],["dragend",sr],["paste",sr],["focus",sr],["blur",sr],["drop",sr]];ke&&lr.push(["beforeinput",(e,t)=>function(e,t){const n=e.inputType;"deleteCompositionText"===n||we&&dl(t)||"insertCompositionText"!==n&&hl(t,pn,e)}(e,t)]);let ar=0,cr=null,ur=0,dr=null;const hr=new WeakMap,gr=new WeakMap;let pr=!1,fr=!1,mr=!1,yr=!1,br=!1,_r="",Cr=null,xr=[0,"",0,"root",0];function Sr(e,t,n,r,i){const o=e.anchor,s=e.focus,l=o.getNode(),a=wo(),c=Ol(xl(a)),u=null!==c?c.anchorNode:null,d=o.key,h=a.getElementByKey(d),g=n.length;return d!==s.key||!Ti(l)||(!i&&(!ke||ur<r+50)||l.isDirty()&&g<2||qs(n))&&o.offset!==s.offset&&!l.isComposing()||ks(l)||l.isDirty()&&g>1||(i||!ke)&&null!==h&&!l.isComposing()&&u!==Ns(h)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||!l.isComposing()&&(l.getFormat()!==e.format||l.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;const n=e.anchor.offset,r=t.getParentOrThrow(),i=ws(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){const t=e.getPreviousSibling();return(Ti(t)||Ko(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,l)}function vr(e,t){return Es(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function wr(e,t,n){const{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:s}=e;pr&&(pr=!1,vr(r,i)&&vr(o,s)&&!Cr)||Bo(t,(()=>{if(!n)return void Ws(null);if(!_s(t,r,o))return;let l=to();if(Cr&&Di(l)&&l.isCollapsed()){const e=l.anchor,t=Cr.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&(l=Cr.clone(),Ws(l))}if(Cr=null,Di(l)){const n=l.anchor,r=n.getNode();if(l.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(l.dirty=!0);const i=xl(t).event,o=i?i.timeStamp:performance.now(),[s,a,c,u,d]=xr,h=Ks(),g=!1===t.isComposing()&&""===h.getTextContent();if(o<d+200&&n.offset===c&&n.key===u)kr(l,s,a);else if("text"===n.type)Ti(r)||_e(141),Er(l,r);else if("element"===n.type&&!g){Ko(r)||_e(259);const e=n.getNode();e.isEmpty()?function(e,t){kr(e,t.getTextFormat(),t.getTextStyle())}(l,e):kr(l,l.format,"")}}else{const e=n.key,t=l.focus.key,r=l.getNodes(),o=r.length,a=l.isBackward(),c=a?s:i,u=a?i:s,d=a?t:e,h=a?e:t;let g=2047,p=!1;for(let e=0;e<o;e++){const t=r[e],n=t.getTextContentSize();if(Ti(t)&&0!==n&&!(0===e&&t.__key===d&&c===n||e===o-1&&t.__key===h&&0===u)&&(p=!0,g&=t.getFormat(),0===g))break}l.format=p?g:0}}hl(t,dn,void 0)}))}function kr(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Er(e,t){kr(e,t.getFormat(),t.getStyle())}function Tr(e){if(!e.getTargetRanges)return null;const t=e.getTargetRanges();return 0===t.length?null:t[0]}function Nr(e){const t=e.inputType,n=Tr(e),r=wo(),i=to();if("deleteContentBackward"===t){if(null===i){const e=no();if(!Di(e))return!0;Ws(e.clone())}if(Di(i)){const t=i.anchor.key===i.focus.key;if(o=e.timeStamp,"MediaLast"===cr&&o<ar+30&&r.isComposing()&&t){if(Fs(null),ar=0,setTimeout((()=>{Bo(r,(()=>{Fs(null)}))}),30),Di(i)){const e=i.anchor.getNode();e.markDirty(),Ti(e)||_e(142),Er(i,e)}}else{Fs(null),e.preventDefault();const n=i.anchor.getNode(),o=n.getTextContent(),s=n.canInsertTextAfter(),l=0===i.anchor.offset&&i.focus.offset===o.length;let a=Le&&t&&!l&&s;if(a&&i.isCollapsed()&&(a=!Vo(ul(i.anchor,!0))),!a){hl(r,bn,!0);const e=to();Le&&Di(e)&&e.isCollapsed()&&(Cr=e,setTimeout((()=>Cr=null)))}}return!0}}var o;if(!Di(i))return!0;const s=e.data;null!==dr&&Ys(!1,r,dr),i.dirty&&null===dr||!i.isCollapsed()||jo(i.anchor.getNode())||null===n||i.applyDOMRange(n),dr=null;const l=i.anchor,a=i.focus,c=l.getNode(),u=a.getNode();if("insertText"===t||"insertTranspose"===t){if("\n"===s)e.preventDefault(),hl(r,_n,!1);else if(s===Ke)e.preventDefault(),hl(r,Cn,void 0);else if(null==s&&e.dataTransfer){const t=e.dataTransfer.getData("text/plain");e.preventDefault(),i.insertRawText(t)}else null!=s&&Sr(i,n,s,e.timeStamp,!0)?(e.preventDefault(),hl(r,xn,s)):dr=s;return ur=e.timeStamp,!0}switch(e.preventDefault(),t){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":hl(r,xn,e);break;case"insertFromComposition":Fs(null),hl(r,xn,e);break;case"insertLineBreak":Fs(null),hl(r,_n,!1);break;case"insertParagraph":Fs(null),mr&&!Ee?(mr=!1,hl(r,_n,!1)):hl(r,Cn,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":hl(r,Sn,e);break;case"deleteByComposition":(function(e,t){return e!==t||Ko(e)||Ko(t)||!ws(e)||!ws(t)})(c,u)&&hl(r,vn,e);break;case"deleteByDrag":yl(Qr),hl(r,vn,e);break;case"deleteByCut":hl(r,vn,e);break;case"deleteContent":hl(r,bn,!1);break;case"deleteWordBackward":hl(r,wn,!0);break;case"deleteWordForward":hl(r,wn,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":hl(r,kn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":hl(r,kn,!1);break;case"formatStrikeThrough":hl(r,En,"strikethrough");break;case"formatBold":hl(r,En,"bold");break;case"formatItalic":hl(r,En,"italic");break;case"formatUnderline":hl(r,En,"underline");break;case"historyUndo":hl(r,Tn,void 0);break;case"historyRedo":hl(r,Nn,void 0)}return!0}function Ar(e){if(Ml(e.target)&&ys(e.target))return!0;const t=wo(),n=to(),r=e.data,i=Tr(e);if(null!=r&&Di(n)&&Sr(n,i,r,e.timeStamp,!1)){yr&&(Ir(t,r),yr=!1);const i=n.anchor.getNode(),o=Ol(xl(t));if(null===o)return!0;const s=n.isBackward(),l=s?n.anchor.offset:n.focus.offset,a=s?n.focus.offset:n.anchor.offset;ke&&!n.isCollapsed()&&Ti(i)&&null!==o.anchorNode&&i.getTextContent().slice(0,l)+r+i.getTextContent().slice(l+a)===Zs(o.anchorNode)||hl(t,xn,r);const c=r.length;we&&c>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=c),Le&&t.isComposing()&&(ar=0,Fs(null))}else Ys(!1,t,null!==r?r:void 0),yr&&(Ir(t,r||void 0),yr=!1);return function(){xo();dt(wo())}(),!0}function Lr(e){const t=wo(),n=to();if(Di(n)&&!t.isComposing()){const r=n.anchor,i=n.anchor.getNode();Fs(r.key),yl(ei),(e.timeStamp<ar+30||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||Ti(i)&&i.getStyle()!==n.style)&&hl(t,xn,Ue)}return!0}function Or(e){return Ir(wo(),e.data),yl(ti),!0}function Ir(e,t){const n=e._compositionKey;if(Fs(null),null!==n&&null!=t){if(""===t){const t=Ps(n),r=Ns(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&Ti(t)){const n=Ol(xl(e));let i=null,o=null;null!==n&&n.anchorNode===r&&(i=n.anchorOffset,o=n.focusOffset),Js(t,r.nodeValue,i,o,!0)}return}if("\n"===t[t.length-1]){const t=to();if(Di(t)||$i(t)){if(Di(t)){const e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void hl(e,Pn,null)}}}Ys(!0,e,t)}function Rr(e){const t=wo();if(null==e.key)return!0;if(br){if(il(e))return Bo(t,(()=>{Ir(t,_r)})),br=!1,_r="",!0;br=!1,_r=""}if(function(e){return tl(e,"ArrowRight",{shiftKey:"any"})}(e))hl(t,Ln,e);else if(function(e){return tl(e,"ArrowRight",nl)}(e))hl(t,On,e);else if(function(e){return tl(e,"ArrowLeft",{shiftKey:"any"})}(e))hl(t,In,e);else if(function(e){return tl(e,"ArrowLeft",nl)}(e))hl(t,Rn,e);else if(function(e){return tl(e,"ArrowUp",{altKey:"any",shiftKey:"any"})}(e))hl(t,Fn,e);else if(function(e){return tl(e,"ArrowDown",{altKey:"any",shiftKey:"any"})}(e))hl(t,Mn,e);else if(function(e){return tl(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(e))mr=!0,hl(t,Pn,e);else if(function(e){return" "===e.key}(e))hl(t,Dn,e);else if(function(e){return ve&&tl(e,"o",{ctrlKey:!0})}(e))e.preventDefault(),mr=!0,hl(t,_n,!0);else if(function(e){return tl(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(e))mr=!1,hl(t,Pn,e);else if(function(e){return tl(e,"Backspace",{shiftKey:"any"})||ve&&tl(e,"h",{ctrlKey:!0})}(e))il(e)?hl(t,Bn,e):(e.preventDefault(),hl(t,bn,!0));else if(function(e){return"Escape"===e.key}(e))hl(t,$n,e);else if(function(e){return tl(e,"Delete",{})||ve&&tl(e,"d",{ctrlKey:!0})}(e))!function(e){return"Delete"===e.key}(e)?(e.preventDefault(),hl(t,bn,!1)):hl(t,zn,e);else if(function(e){return tl(e,"Backspace",rl)}(e))e.preventDefault(),hl(t,wn,!0);else if(function(e){return tl(e,"Delete",rl)}(e))e.preventDefault(),hl(t,wn,!1);else if(function(e){return ve&&tl(e,"Backspace",{metaKey:!0})}(e))e.preventDefault(),hl(t,kn,!0);else if(function(e){return ve&&(tl(e,"Delete",{metaKey:!0})||tl(e,"k",{ctrlKey:!0}))}(e))e.preventDefault(),hl(t,kn,!1);else if(function(e){return tl(e,"b",nl)}(e))e.preventDefault(),hl(t,En,"bold");else if(function(e){return tl(e,"u",nl)}(e))e.preventDefault(),hl(t,En,"underline");else if(function(e){return tl(e,"i",nl)}(e))e.preventDefault(),hl(t,En,"italic");else if(function(e){return tl(e,"Tab",{shiftKey:"any"})}(e))hl(t,Hn,e);else if(function(e){return tl(e,"z",nl)}(e))e.preventDefault(),hl(t,Tn,void 0);else if(function(e){return ve?tl(e,"z",{metaKey:!0,shiftKey:!0}):tl(e,"y",{ctrlKey:!0})||tl(e,"z",{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),hl(t,Nn,void 0);else{const n=t._editorState._selection;null===n||Di(n)?ol(e)&&(e.preventDefault(),hl(t,Xn,e)):function(e){return tl(e,"c",nl)}(e)?(e.preventDefault(),hl(t,Yn,e)):function(e){return tl(e,"x",nl)}(e)?(e.preventDefault(),hl(t,Jn,e)):ol(e)&&(e.preventDefault(),hl(t,Xn,e))}return function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}(e)&&t.dispatchCommand(or,e),!0}function Fr(e){let t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}const Mr=new Map;function Pr(e){const t=Il(e.target);if(null===t)return;const n=xs(t.anchorNode);if(null===n)return;fr&&(fr=!1,Bo(n,(()=>{const r=no(),i=t.anchorNode;(Ml(i)||Es(i))&&Ws(eo(r,t,n,e))})));const r=js(n),i=r[r.length-1],o=i._key,s=Mr.get(o),l=s||i;l!==n&&wr(t,l,!1),wr(t,n,!0),n!==i?Mr.set(o,n):s&&Mr.delete(o)}function Dr(e){e._lexicalHandled=!0}function Br(e){return!0===e._lexicalHandled}function $r(e){const t=hr.get(e);if(void 0===t)return;const n=gr.get(t);if(void 0===n)return;const r=n-1;r>=0||_e(164),hr.delete(e),gr.set(t,r),0===r&&t.removeEventListener("selectionchange",Pr);const i=Ss(e);Cs(i)?(function(e){if(null!==e._parentEditor){const t=js(e),n=t[t.length-1]._key;Mr.get(n)===e&&Mr.delete(n)}else Mr.delete(e._key)}(i),e.__lexicalEditor=null):i&&_e(198);const o=Fr(e);for(let e=0;e<o.length;e++)o[e]();e.__lexicalEventHandles=[]}function zr(e,t,n){xo();const r=e.__key,i=e.getParent();if(null===i)return;const o=function(e){const t=to();if(!Di(t)||!Ko(e))return t;const{anchor:n,focus:r}=t,i=n.getNode(),o=r.getNode();return _l(i,e)&&n.set(e.__key,0,"element"),_l(o,e)&&r.set(e.__key,0,"element"),t}(e);let s=!1;if(Di(o)&&t){const t=o.anchor,n=o.focus;t.key===r&&(oo(t,e,i,e.getPreviousSibling(),e.getNextSibling()),s=!0),n.key===r&&(oo(n,e,i,e.getPreviousSibling(),e.getNextSibling()),s=!0)}else $i(o)&&t&&e.isSelected()&&e.selectPrevious();if(Di(o)&&t&&!s){const t=e.getIndexWithinParent();Is(e),ro(o,i,t,-1)}else Is(e);n||wl(i)||i.canBeEmpty()||!i.isEmpty()||zr(i,t),t&&o&&jo(i)&&i.isEmpty()&&i.selectEnd()}function Hr(e){return e}const Kr=Symbol.for("ephemeral");function Ur(e){return e[Kr]||!1}let Wr=class{__type;__key;__parent;__prev;__next;__state;static getType(){const{ownNodeType:e}=Xl(this);return void 0===e&&_e(64,this.name),e}static clone(e){_e(65,this.name)}$config(){return{}}config(e,t){const n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),Os(this,e)}getType(){return this.__type}isInline(){_e(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;const t=Ps(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){const t=e||to();if(null==t)return!1;const n=t.getNodes().some((e=>e.__key===this.__key));if(Ti(this))return n;if(Di(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;const e=this.getParent();if(Vo(this)&&this.isInline()&&e){const n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(null===e)return-1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return null===e?null:Ps(e)}getParentOrThrow(){const e=this.getParent();return null===e&&_e(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){const t=e.getParent();if(wl(t))return Ko(e)||e===this&&Vo(e)||_e(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return null===e&&_e(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return null===e?null:Ps(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return null===e?null:Ps(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=Ko(this)?this:this.getParent(),n=Ko(e)?e:e.getParent(),r=t&&n?Ra(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){const t=Ra(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===La(t):("same"!==t.type&&"ancestor"!==t.type&&_e(279),!1)))}isParentOf(e){const t=Ra(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){const t=this.isBefore(e),n=[],r=new Set;let i=this;for(;null!==i;){const o=i.__key;if(r.has(o)||(r.add(o),n.push(i)),i===e)break;const s=Ko(i)?t?i.getFirstChild():i.getLastChild():null;if(null!==s){i=s;continue}const l=t?i.getNextSibling():i.getPreviousSibling();if(null!==l){i=l;continue}const a=i.getParentOrThrow();if(r.has(a.__key)||n.push(a),a===e)break;let c=null,u=a;do{if(null===u&&_e(68),c=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),null===u)break;null!==c||r.has(u.__key)||n.push(u)}while(null===c);i=c}return t||n.reverse(),n}isDirty(){const e=wo()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(Ur(this))return this;const e=Ps(this.__key);return null===e&&_e(113),e}getWritable(){if(Ur(this))return this;xo();const e=vo(),t=wo(),n=e._nodeMap,r=this.__key,i=this.getLatest(),o=t._cloneNotNeeded,s=to();if(null!==s&&s.setCachedNodes(null),o.has(r))return Rs(i),i;const l=ql(i);return o.add(r),Rs(l),n.set(r,l),l}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){_e(70)}updateDOM(e,t,n){_e(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){_e(18,this.name)}updateFromJSON(e){return function(e,t){const n=e.getWritable(),r=t.$;let i=r;for(const e of Ct(n).flatKeys)e in t&&(void 0!==i&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&_t(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){zr(this,!0,e)}replace(e,t){xo();let n=to();null!==n&&(n=n.clone()),Tl(this,e);const r=this.getLatest(),i=this.__key,o=e.__key,s=e.getWritable(),l=this.getParentOrThrow().getWritable(),a=l.__size;Is(s);const c=r.getPreviousSibling(),u=r.getNextSibling(),d=r.__prev,h=r.__next,g=r.__parent;if(zr(r,!1,!0),null===c?l.__first=o:c.getWritable().__next=o,s.__prev=d,null===u?l.__last=o:u.getWritable().__prev=o,s.__next=h,s.__parent=g,l.__size=a,t&&(Ko(this)&&Ko(s)||_e(139),this.getChildren().forEach((e=>{s.append(e)}))),Di(n)){Ws(n);const e=n.anchor,t=n.focus;e.key===i&&Mi(e,s),t.key===i&&Mi(t,s)}return Ms()===i&&Fs(o),s}insertAfter(e,t=!0){xo(),Tl(this,e);const n=this.getWritable(),r=e.getWritable(),i=r.getParent(),o=to();let s=!1,l=!1;if(null!==i){const t=e.getIndexWithinParent();if(Is(r),Di(o)){const e=i.__key,n=o.anchor,r=o.focus;s="element"===n.type&&n.key===e&&n.offset===t+1,l="element"===r.type&&r.key===e&&r.offset===t+1}}const a=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(null===a?c.__last=u:a.getWritable().__prev=u,c.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&Di(o)){const e=this.getIndexWithinParent();ro(o,c,e+1);const t=c.__key;s&&o.anchor.set(t,e+2,"element"),l&&o.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){xo(),Tl(this,e);const n=this.getWritable(),r=e.getWritable(),i=r.__key;Is(r);const o=this.getPreviousSibling(),s=this.getParentOrThrow().getWritable(),l=n.__prev,a=this.getIndexWithinParent();null===o?s.__first=i:o.getWritable().__next=i,s.__size++,n.__prev=i,r.__prev=l,r.__next=n.__key,r.__parent=n.__parent;const c=to();return t&&Di(c)&&ro(c,this.getParentOrThrow(),a),e}isParentRequired(){return!1}createParentElementNode(){return ns()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){xo();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(Ko(n))return n.select();if(!Ti(n)){const e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){xo();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(Ko(n))return n.select(0,0);if(!Ti(n)){const e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}};function Vr(e){return e instanceof Wr}const qr="historic",jr="history-push",Gr="history-merge",Zr="paste",Yr="collaboration",Jr="skip-scroll-into-view",Xr="skip-dom-selection",Qr="skip-selection-focus",ei="composition-start",ti="composition-end",ni=/\s*!important\s*$/i;function ri(e){const t={};if(!e)return t;let n="",r="",i=null,o=!1,s=!1,l=!1,a=0;for(let c=0;c<e.length;c++){const u=e[c];if(o)"*"===u&&"/"===e[c+1]&&(o=!1,c++);else if(s)l?r+=u:n+=u,s=!1;else if(null===i)if("/"!==u||"*"!==e[c+1])if('"'!==u&&"'"!==u)if("("!==u)if(")"!==u)if(l||":"!==u||0!==a){if(";"===u&&0===a){const e=n.trim(),i=r.trim();""!==e&&""!==i&&(t[e]=i),n="",r="",l=!1;continue}l?r+=u:n+=u}else l=!0;else a=Math.max(0,a-1),l?r+=u:n+=u;else a++,l?r+=u:n+=u;else i=u,l?r+=u:n+=u;else o=!0,c++;else l?r+=u:n+=u,"\\"===u?s=!0:u===i&&(i=null)}const c=n.trim(),u=r.trim();return""!==c&&""!==u&&(t[c]=u),t}function ii(e,t,n){const r=ni.test(n)?"important":"",i=""===r?n:n.replace(ni,"").trim();e.setProperty(t,i,r)}function oi(e,t,n=""){if(t===n)return;const r=ri(n),i=ri(t);for(const t in i)delete r[t],ii(e,t,i[t]);for(const t in r)e.removeProperty(t)}class si extends Wr{static getType(){return"linebreak"}static clone(e){return new si(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){const t=e.parentElement;if(null!==t&&$l(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&ui(n)){const n=t.lastChild;if(n===e||n.previousSibling===e&&ui(n))return!0}}return!1}(e)||function(e){const t=e.parentElement;if(null!==t&&$l(t)){const n=t.firstChild;if(n===e||n.nextSibling===e&&ui(n))return!1;const r=t.lastChild;if(r===e||r.previousSibling===e&&ui(r))return!0}return!1}(e)?null:{conversion:li,priority:0}}}static importJSON(e){return ai().updateFromJSON(e)}}function li(e){return{node:ai()}}function ai(){return El(new si)}function ci(e){return e instanceof si}function ui(e){return Es(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function di(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function hi(e,t){return 1&t?"strong":2&t?"em":"span"}function gi(e,t,n,r,i){const o=r.classList;let s=ll(i,"base");void 0!==s&&o.add(...s),s=ll(i,"underlineStrikethrough");let l=!1;const a=8&t&&4&t;void 0!==s&&(8&n&&4&n?(l=!0,a||o.add(...s)):a&&o.remove(...s));for(const e in Ge){const r=Ge[e];if(s=ll(i,e),void 0!==s)if(n&r){if(l&&("underline"===e||"strikethrough"===e)){t&r&&o.remove(...s);continue}(0===(t&r)||a&&"underline"===e||"strikethrough"===e)&&o.add(...s)}else t&r&&o.remove(...s)}}function pi(e,t,n){const r=t.firstChild,i=n.isComposing(),o=e+(i?He:"");if(null==r)t.textContent=o;else{const e=r.nodeValue;if(e!==o)if(i||we){const[t,n,i]=function(e,t){const n=e.length,r=t.length;let i=0,o=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;o+i<n&&o+i<r&&e[n-o-1]===t[r-o-1];)o++;return[i,n-i-o,t.slice(i,r-o)]}(e,o);0!==n&&r.deleteData(t,n),r.insertData(t,i)}else r.nodeValue=o}}function fi(e,t,n,r,i,o){pi(i,e,t);const s=o.theme.text;void 0!==s&&gi(0,0,r,e,s)}function mi(e,t){const n=document.createElement(t);return n.appendChild(e),n}class yi extends Wr{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new yi(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return Qe[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===Ms()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=Ge[e];return 0!==(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return As(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){const n=this.__format,r=di(0,n),i=hi(0,n),o=null===r?i:r,s=document.createElement(o);let l=s;this.hasFormat("code")&&s.setAttribute("spellcheck","false"),null!==r&&(l=document.createElement(i),s.appendChild(l)),fi(l,this,0,n,this.__text,e);const a=this.__style;return""!==a&&oi(s.style,a),s}updateDOM(e,t,n){const r=this.__text,i=e.__format,o=this.__format,s=di(0,i),l=di(0,o),a=hi(0,i),c=hi(0,o);if((null===s?a:s)!==(null===l?c:l))return!0;if(s===l&&a!==c){const e=t.firstChild;null==e&&_e(48);const i=document.createElement(c);return fi(i,this,0,o,r,n),t.replaceChild(i,e),!1}let u=t;null!==l&&null!==s&&(u=t.firstChild,null==u&&_e(49)),pi(r,u,this);const d=n.theme.text;void 0!==d&&i!==o&&gi(0,i,o,u,d);const h=e.__style,g=this.__style;return h!==g&&oi(t.style,g,h),!1}static importDOM(){return{"#text":()=>({conversion:Si,priority:0}),b:()=>({conversion:_i,priority:0}),code:()=>({conversion:ki,priority:0}),em:()=>({conversion:ki,priority:0}),i:()=>({conversion:ki,priority:0}),mark:()=>({conversion:ki,priority:0}),s:()=>({conversion:ki,priority:0}),span:()=>({conversion:bi,priority:0}),strong:()=>({conversion:ki,priority:0}),sub:()=>({conversion:ki,priority:0}),sup:()=>({conversion:ki,priority:0}),u:()=>({conversion:ki,priority:0})}}static importJSON(e){return Ei().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return Ml(t)||_e(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=mi(t,"b")),this.hasFormat("italic")&&(t=mi(t,"i")),this.hasFormat("strikethrough")&&(t=mi(t,"s")),this.hasFormat("underline")&&(t=mi(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format="string"==typeof e?Ge[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail="string"==typeof e?Ze[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=As(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=Xe[e];if(this.__mode===t)return this;const n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){xo();let n=e,r=t;const i=to(),o=this.getTextContent(),s=this.__key;if("string"==typeof o){const e=o.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!Di(i))return Yi(s,n,s,r,"text","text");{const e=Ms();e!==i.anchor.key&&e!==i.focus.key||Fs(s),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){const i=this.getWritable(),o=i.__text,s=n.length;let l=e;l<0&&(l=s+l,l<0&&(l=0));const a=to();if(r&&Di(a)){const t=e+s;a.setTextNodeRange(i,t,i,t)}const c=o.slice(0,l)+n+o.slice(l+t);return i.__text=c,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){xo();const t=this.getLatest(),n=t.getTextContent();if(""===n)return[];const r=t.__key,i=Ms(),o=n.length;e.sort(((e,t)=>e-t)),e.push(o);const s=[],l=e.length;for(let t=0,r=0;t<o&&r<=l;r++){const i=e[r];i>t&&(s.push(n.slice(t,i)),t=i)}const a=s.length;if(1===a)return[t];const c=s[0],u=t.getParent();let d;const h=t.getFormat(),g=t.getStyle(),p=t.__detail;let f=!1,m=null,y=null;const b=to();if(Di(b)){const[e,t]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];"text"===e.type&&e.key===r&&(m=e),"text"===t.type&&t.key===r&&(y=t)}t.isSegmented()?(d=Ei(c),d.__format=h,d.__style=g,d.__detail=p,d.__state=kt(t,d),f=!0):d=t.setTextContent(c);const _=[d];for(let e=1;e<a;e++){const n=Ei(s[e]);n.__format=h,n.__style=g,n.__detail=p,n.__state=kt(t,n);const o=n.__key;i===r&&Fs(o),_.push(n)}const C=m?m.offset:null,x=y?y.offset:null;let S=0;for(const e of _){if(!m&&!y)break;const t=S+e.getTextContentSize();if(null!==m&&null!==C&&C<=t&&C>=S&&(m.set(e.getKey(),C-S,"text"),C<t&&(m=null)),null!==y&&null!==x&&x<=t&&x>=S){y.set(e.getKey(),x-S,"text");break}S=t}if(null!==u){!function(e){const t=e.getPreviousSibling(),n=e.getNextSibling();null!==t&&Rs(t),null!==n&&Rs(n)}(this);const e=u.getWritable(),t=this.getIndexWithinParent();f?(e.splice(t,0,_),this.remove()):e.splice(t,1,_),Di(b)&&ro(b,u,t,a-1)}return _}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||_e(50);const n=this.__key,r=e.__key,i=this.__text,o=i.length;Ms()===r&&Fs(n);const s=to();if(Di(s)){const i=s.anchor,l=s.focus;null!==i&&i.key===r&&so(i,t,n,e,o),null!==l&&l.key===r&&so(l,t,n,e,o)}const l=e.__text,a=t?l+i:i+l;this.setTextContent(a);const c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function bi(e){return{forChild:Ni(e.style),node:null}}function _i(e){const t=e,n="normal"===t.style.fontWeight;return{forChild:Ni(t.style,n?void 0:"bold"),node:null}}const Ci=new WeakMap;function xi(e){if(!Ml(e))return!1;if("PRE"===e.nodeName)return!0;const t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}function Si(e){const t=e;null===e.parentElement&&_e(129);let n=t.textContent||"";if(null!==function(e){let t,n=e.parentNode;const r=[e];for(;null!==n&&void 0===(t=Ci.get(n))&&!xi(n);)r.push(n),n=n.parentNode;const i=void 0===t?n:t;for(let e=0;e<r.length;e++)Ci.set(r[e],i);return i}(t)){const e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){const r=e[n];"\n"===r||"\r\n"===r?t.push(ai()):"\t"===r?t.push(Li()):""!==r&&t.push(Ei(r))}return{node:t}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let e=t,r=!0;for(;null!==e&&null!==(e=vi(e,!1));){const t=e.textContent||"";if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let e=t,r=!0;for(;null!==e&&null!==(e=vi(e,!0));)if((e.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:Ei(n)}}function vi(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){const e=n.parentElement;if(null===e)return null;n=e}if(n=e,Ml(n)){const e=n.style.display;if(""===e&&!Bl(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(Es(n))return n;if("BR"===n.nodeName)return null}}const wi={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function ki(e){const t=wi[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:Ni(e.style,t),node:null}}function Ei(e=""){return El(new yi(e))}function Ti(e){return e instanceof yi}function Ni(e,t){const n=e.fontWeight,r=e.textDecoration.split(" "),i="700"===n||"bold"===n,o=r.includes("line-through"),s="italic"===e.fontStyle,l=r.includes("underline"),a=e.verticalAlign;return e=>Ti(e)?(i&&!e.hasFormat("bold")&&e.toggleFormat("bold"),o&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),s&&!e.hasFormat("italic")&&e.toggleFormat("italic"),l&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==a||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==a||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}class Ai extends yi{static getType(){return"tab"}static clone(e){return new Ai(e.__key)}constructor(e){super("\t",e),this.__detail=2}static importDOM(){return null}createDOM(e){const t=super.createDOM(e),n=ll(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return Li().updateFromJSON(e)}setTextContent(e){return"\t"!==e&&""!==e&&Ce(126),super.setTextContent("\t")}spliceText(e,t,n,r){return""===n&&0===t||"\t"===n&&1===t||_e(286),this}setDetail(e){return 2!==e&&_e(127),this}setMode(e){return"normal"!==e&&_e(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Li(){return El(new Ai)}function Oi(e){return e instanceof Ai}class Ii{key;offset;type;_selection;constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Aa(Ua(Fa(this,"next")),Ua(Fa(e,"next")))<0}getNode(){const e=Ps(this.key);return null===e&&_e(20),e}set(e,t,n,r){const i=this._selection,o=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,Co()||(Ms()===o&&Fs(e),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function Ri(e,t,n){return new Ii(e,t,n)}function Fi(e,t){let n=t.__key,r=e.offset,i="element";if(Ti(t)){i="text";const e=t.getTextContentSize();r>e&&(r=e)}else if(!Ko(t)){const e=t.getNextSibling();if(Ti(e))n=e.__key,r=0,i="text";else{const e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function Mi(e,t){if(Ko(t)){const n=t.getLastDescendant();Ko(n)||Ti(n)?Fi(e,n):Fi(e,t)}else Fi(e,t)}class Pi{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!$i(e))return!1;const t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Pi(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),n=t.length,r=t[n-1];let i;if(Ti(r))i=r.select();else{const e=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(e,e)}i.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=this._nodes,n=[];for(const e of t){const t=Ps(e);null!==t&&n.push(t)}return Co()||(this._cachedNodes=n),n}getTextContent(){const e=this.getNodes();let t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){const e=this.getNodes();if((to()||no())===this&&e[0]){const t=ma(e[0],"next");Pa(Ta(t,t))}for(const t of e)t.remove()}}function Di(e){return e instanceof Bi}class Bi{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!Di(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(null!==e)return e;const t=function(e){const t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);const i=new Set,o=new Set;for(const n of e)if(ha(n)){const{origin:e}=n;0===t.length?i.add(e):(o.add(e),t.push(e))}else{const{origin:e}=n;Ko(e)&&o.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),da(e.focus)&&Ko(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=Ca(e.focus.origin,"previous");ha(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Sa(n))i.delete(n.origin),t.pop();for(;t.length>1;){const e=t[t.length-1];if(!Ko(e)||o.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){const n=Ua(e.anchor),r=Ua(e.anchor.getFlipped()),i=e=>ua(e)?e.origin:e.getNodeAtCaret(),o=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(o)}return t}(qa(Ba(this),"next"));return Co()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){const e=this.getNodes();if(0===e.length)return"";const t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,o=r.isBefore(i),[s,l]=Hi(this);let a="",c=!0;for(let u=0;u<e.length;u++){const d=e[u];if(Ko(d)&&!d.isInline())c||(a+="\n"),c=!d.isEmpty();else if(c=!1,Ti(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(e=s<l?e.slice(s,l):e.slice(l,s)):e=o?e.slice(s):e.slice(l):d===n&&(e=o?e.slice(0,l):e.slice(0,s)),a+=e}else!Vo(d)&&!ci(d)||d===n&&this.isCollapsed()||(a+=d.getTextContent())}return a}applyDOMRange(e){const t=wo(),n=t.getEditorState()._selection,r=Gi(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;const[i,o]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(o.key,o.offset,o.type,!0),At(this)}clone(){const e=this.anchor,t=this.focus;return new Bi(Ri(e.key,e.offset,e.type),Ri(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=As(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=Ge[e];return 0!==(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){const r=t[e];"\n"===r||"\r\n"===r?n.push(ai()):"\t"===r?n.push(Li()):n.push(Ei(r))}this.insertNodes(n)}insertText(e){const t=this.anchor,n=this.focus,r=this.format,i=this.style;let o=t,s=n;!this.isCollapsed()&&n.isBefore(t)&&(o=n,s=t),"element"===o.type&&function(e,t,n,r){const i=e.getNode(),o=i.getChildAtIndex(e.offset),s=Ei();if(s.setFormat(n),s.setStyle(r),rs(o))o.splice(0,0,[s]);else{const e=jo(i)?ns().append(s):s;null===o?i.append(e):o.insertBefore(e)}e.is(t)&&t.set(s.__key,0,"text"),e.set(s.__key,0,"text")}(o,s,r,i),"element"===s.type&&Ma(s,Ua(Fa(s,"next")));const l=o.offset;let a=s.offset;const c=this.getNodes(),u=c.length;let d=c[0];Ti(d)||_e(26);const h=d.getTextContent().length,g=d.getParentOrThrow();let p=c[u-1];if(1===u&&"element"===s.type&&(a=h,s.set(o.key,a,"text")),this.isCollapsed()&&l===h&&(ks(d)||!d.canInsertTextAfter()||!g.canInsertTextAfter()&&null===d.getNextSibling())){let t=d.getNextSibling();if(Ti(t)&&t.canInsertTextBefore()&&!ks(t)||(t=Ei(),t.setFormat(r),t.setStyle(i),g.canInsertTextAfter()?d.insertAfter(t):g.insertAfter(t)),t.select(0,0),d=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===l&&(ks(d)||!d.canInsertTextBefore()||!g.canInsertTextBefore()&&null===d.getPreviousSibling())){let t=d.getPreviousSibling();if(Ti(t)&&!ks(t)||(t=Ei(),t.setFormat(r),g.canInsertTextBefore()?d.insertBefore(t):g.insertBefore(t)),t.select(),d=t,""!==e)return void this.insertText(e)}else if(d.isSegmented()&&l!==h){const e=Ei(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&""!==e){const t=p.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||Ko(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),ji(this.anchor,this.focus),void this.insertText(e)}if(1===u){if(ws(d)){const t=Ei(e);return t.select(),void d.replace(t)}const t=d.getFormat(),n=d.getStyle();if(l!==a||t===r&&n===i){if(Oi(d)){const t=Ei(e);return t.setFormat(r),t.setStyle(i),t.select(),void d.replace(t)}}else{if(""!==d.getTextContent()){const t=Ei(e);if(t.setFormat(r),t.setStyle(i),t.select(),0===l)d.insertBefore(t,!1);else{const[e]=d.splitText(l);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}d.setFormat(r),d.setStyle(i)}const o=a-l;d=d.spliceText(l,o,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,d.isComposing()&&(this.anchor.offset-=e.length))}else{const t=new Set([...d.getParentKeys(),...p.getParentKeys()]),n=Ko(d)?d:d.getParentOrThrow();let r=Ko(p)?p:p.getParentOrThrow(),i=p;if(!n.is(r)&&r.isInline())do{i=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===s.type&&(0!==a||""===p.getTextContent())||"element"===s.type&&p.getIndexWithinParent()<a)if(Ti(p)&&!ws(p)&&a!==p.getTextContentSize()){if(p.isSegmented()){const e=Ei(p.getTextContent());p.replace(e),p=e}jo(s.getNode())||"text"!==s.type||(p=p.spliceText(0,a,"")),t.add(p.__key)}else{const e=p.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?p.remove():e.remove()}else t.add(p.__key);const o=r.getChildren(),g=new Set(c),f=n.is(r),m=n.isInline()&&null===d.getNextSibling()?n:d;for(let e=o.length-1;e>=0;e--){const t=o[e];if(t.is(d)||Ko(t)&&t.isParentOf(d))break;t.isAttached()&&(!g.has(t)||t.is(i)?f||m.insertAfter(t,!1):t.remove())}if(!f){let e=r,n=null;for(;null!==e;){const r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(ws(d))if(l===h)d.select();else{const t=Ei(e);t.select(),d.replace(t)}else d=d.spliceText(l,h-l,e,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(this.format=d.getFormat(),this.style=d.getStyle(),d.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<u;e++){const n=c[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){const e=to()===this;Da(this,Ka(Ba(this))),e&&to()!==this&&Ws(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void Fs(null);const n=this.getNodes(),r=[];for(const e of n)Ti(e)&&r.push(e);const i=t=>{n.forEach((n=>{if(Ko(n)){const r=n.getFormatFlags(e,t);n.setTextFormat(r)}}))},o=r.length;if(0===o)return this.toggleFormat(e),Fs(null),void i(t);const s=this.anchor,l=this.focus,a=this.isBackward(),c=a?l:s,u=a?s:l;let d=0,h=r[0],g="element"===c.type?0:c.offset;if("text"===c.type&&g===h.getTextContentSize()&&(d=1,h=r[1],g=0),null==h)return;const p=h.getFormatFlags(e,t);i(p);const f=o-1;let m=r[f];const y="text"===u.type?u.offset:m.getTextContentSize();if(h.is(m)){if(g===y)return;if(ks(h)||0===g&&y===h.getTextContentSize())h.setFormat(p);else{const e=h.splitText(g,y),t=0===g?e[0]:e[1];t.setFormat(p),"text"===c.type&&c.set(t.__key,0,"text"),"text"===u.type&&u.set(t.__key,y-g,"text")}return void(this.format=p)}0===g||ks(h)||([,h]=h.splitText(g),g=0),h.setFormat(p);const b=m.getFormatFlags(e,p);y>0&&(y===m.getTextContentSize()||ks(m)||([m]=m.splitText(y)),m.setFormat(b));for(let t=d+1;t<f;t++){const n=r[t],i=n.getFormatFlags(e,b);n.setFormat(i)}"text"===c.type&&c.set(h.__key,g,"text"),"text"===u.type&&u.set(m.__key,y,"text"),this.format=p|b}insertNodes(e){if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();const t=to();return Di(t)||_e(134),t.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),n=ea(t,zl),r=e[e.length-1];if(Ko(n)&&"__language"in n){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const t=uo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some((e=>(Ko(e)||Vo(e))&&!e.isInline()))){Ko(n)||_e(211,t.constructor.name,t.getType());const i=uo(this);return n.splice(i,0,e),void r.selectEnd()}const i=function(e){const t=ns();let n=null;for(let r=0;r<e.length;r++){const i=e[r],o=ci(i);if(o||Vo(i)&&i.isInline()||Ko(i)&&i.isInline()||Ti(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),t.append(n),o))continue;null!==n&&n.append(i)}else t.append(i),n=null}return t}(e),o=i.getLastDescendant(),s=i.getChildren(),l=Ko(n)&&n.isEmpty()?null:this.insertParagraph(),a=s[s.length-1];let c=s[0];var u;Ko(u=c)&&zl(u)&&!u.isEmpty()&&Ko(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(Ko(n)||_e(211,t.constructor.name,t.getType()),n.append(...c.getChildren()),c=s[1]),c&&(null===n&&_e(212,t.constructor.name,t.getType()),function(e,t){const n=t.getParentOrThrow().getLastChild();let r=t;const i=[t];for(;r!==n;)r.getNextSibling()||_e(140),r=r.getNextSibling(),i.push(r);let o=e;for(const e of i)o=o.insertAfter(e)}(n,c));const d=ea(o,zl);l&&Ko(d)&&(l.canMergeWhenEmpty()||zl(a))&&(d.append(...l.getChildren()),l.remove()),Ko(n)&&n.isEmpty()&&n.remove(),o.selectEnd();const h=Ko(n)?n.getLastChild():null;ci(h)&&d!==n&&h.remove()}insertParagraph(){if("root"===this.anchor.key){const e=ns();return Ks().splice(this.anchor.offset,0,[e]),e.select(),e}const e=uo(this),t=ea(this.anchor.getNode(),zl);Ko(t)||_e(213);const n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...r),i.selectStart(),i):null}insertLineBreak(e){const t=ai();if(this.insertNodes([t]),e){const e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){const e=[...this.getNodes()],t=e.length;let n=e[0],r=e[t-1];const[i,o]=Hi(this),s=this.isBackward(),[l,a]=s?[this.focus,this.anchor]:[this.anchor,this.focus],[c,u]=s?[o,i]:[i,o];if(0===t)return[];if(1===t){if(Ti(n)&&!this.isCollapsed()){const e=n.splitText(c,u),t=0===c?e[0]:e[1];return t?(l.set(t.getKey(),0,"text"),a.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(Ti(n)&&(c===n.getTextContentSize()?e.shift():0!==c&&([,n]=n.splitText(c),e[0]=n,l.set(n.getKey(),0,"text"))),Ti(r)){const t=r.getTextContent().length;0===u?e.pop():u!==t&&([r]=r.splitText(u),e[e.length-1]=r,a.set(r.getKey(),r.getTextContentSize(),"text"))}return e}modify(e,t,n){if(go(this,e,t,n))return;const r="move"===e,i=wo(),o=Ol(xl(i));if(!o)return;const s=i._blockCursorElement,l=i._rootElement,a=this.focus.getNode();if(null===l||null===s||!Ko(a)||a.isInline()||a.canBeEmpty()||Ll(s,i,l),this.dirty){let e=gl(i,this.anchor.key),t=gl(i,this.focus.key);"text"===this.anchor.type&&(e=Ns(e)),"text"===this.focus.type&&(t=Ns(t)),e&&t&&lo(o,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(o,e,t?"backward":"forward",n),o.rangeCount>0){const e=o.getRangeAt(0),n=this.anchor.getNode(),i=jo(n)?n:vl(n);if(this.applyDOMRange(e),this.dirty=!0,!r){const n=this.getNodes(),r=[];let s=!1;for(let e=0;e<n.length;e++){const t=n[e];_l(t,i)?r.push(t):s=!0}if(s&&r.length>0)if(t){const e=r[0];Ko(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{const e=r[r.length-1];Ko(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}o.anchorNode===e.startContainer&&o.anchorOffset===e.startOffset||function(e){const t=e.focus,n=e.anchor,r=n.key,i=n.offset,o=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,o,!0)}(this)}}"lineboundary"===n&&go(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&Ko(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){const e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(Ko(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const t=this.anchor;let n=t.getNode();if(this.forwardDeletion(t,n,e))return;const r=ka(Fa(t,e?"previous":"next"));if(r.getTextSlices().every((e=>null===e||0===e.distance))){let e={type:"initial"};for(const t of r.iterNodeCarets("shadowRoot"))if(ha(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(Ko(r.anchor.origin)&&r.anchor.origin.isEmpty()){const e=Ua(t);Da(this,Ta(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(da(t)){if(Ko(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(Vo(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&Ko(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();const e=Xi();e.add(t.origin.getKey()),Ws(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){const{caret:t,block:n}=e;return Da(this,Ta(!t.origin.isEmpty()&&n.isEmpty()?$a(ma(n,t.direction)):r.anchor,t)),this.removeText()}}const i=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&Ki(this,t.getNode()))return}else{const r="text"===i.type?i.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){const t=i.offset,o=r.getTextContentSize();if(r.is(n)||e&&t!==o||!e&&0!==t)return void Wi(r,e,t)}else if(null!==n&&n.isSegmented()){const i=t.offset,o=n.getTextContentSize();if(n.is(r)||e&&0!==i||!e&&i!==o)return void Wi(n,e,i)}!function(e,t){const n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&"text"===n.type&&"text"===r.type){const e=n.offset,o=r.offset,s=e<o,l=s?e:o,a=s?o:e,c=a-1;l!==c&&function(e){return!(qs(e)||Ui(e))}(i.getTextContent().slice(l,a))&&(t?r.set(r.key,c,r.type):n.set(n.key,c,n.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const e=this.anchor.getNode();e.isEmpty()&&jo(e.getParent())&&null===e.getPreviousSibling()&&Ki(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.isCollapsed()?this.deleteCharacter(e):this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function $i(e){return e instanceof Pi}function zi(e){const t=e.offset;if("text"===e.type)return t;const n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Hi(e){const t=e.getStartEndPoints();if(null===t)return[0,0];const[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[zi(n),zi(r)]}function Ki(e,t){for(let n=t;n;n=n.getParent()){if(Ko(n)){if(n.collapseAtStart(e))return!0;if(wl(n))break}if(n.getPreviousSibling())break}return!1}const Ui=(()=>{try{const e=new RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function Wi(e,t,n){const r=e,i=r.getTextContent().split(/(?=\s)/g),o=i.length;let s=0,l=0;for(let e=0;e<o;e++){const r=e===o-1;if(l=s,s+=i[e].length,t&&s===n||s>n||r){i.splice(e,1),r&&(l=void 0);break}}const a=i.join("").trim();""===a?r.remove():(r.setTextContent(a),r.select(l,l))}function Vi(e,t,n,r){let i,o=t;if(Ml(e)){let s=!1;const l=e.childNodes,a=l.length,c=r._blockCursorElement;o===a&&(s=!0,o=a-1);let u=l[o],d=!1;if(u===c)u=l[o+1],d=!0;else if(null!==c){const n=c.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,c)&&o--}if(i=Vs(u),Ti(i))o=ba(i,s?"next":"previous");else{let l=Vs(e);if(null===l)return null;if(Ko(l)){const a=r.getElementByKey(l.getKey());null===a&&_e(214);const c=Kl(r).$getDOMSlot(l,a,r);[l,o]=c.resolveChildIndex(l,a,e,t),Ko(l)||_e(215),s&&o>=l.getChildrenSize()&&(o=Math.max(0,l.getChildrenSize()-1));let u=l.getChildAtIndex(o);if(Ko(u)&&function(e,t,n){const r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){const e=s?u.getLastDescendant():u.getFirstDescendant();null===e?l=u:(u=e,l=Ko(u)?u:u.getParentOrThrow()),o=0}Ti(u)?(i=u,l=null,o=ba(u,s?"next":"previous")):u!==l&&s&&!d&&(Ko(l)||_e(216),o=Math.min(l.getChildrenSize(),o+1))}else{const n=l.getIndexWithinParent();o=0===t&&Vo(l)&&Vs(e)===l?n:n+1,l=l.getParentOrThrow()}if(Ko(l))return Ri(l.__key,o,"element")}}else i=Vs(e);return Ti(i)?Ri(i.__key,ba(i,o,"clamp"),"text"):null}function qi(e,t,n){const r=e.offset,i=e.getNode();if(0===r){const r=i.getPreviousSibling(),o=i.getParent();if(t){if((n||!t)&&null===r&&Ko(o)&&o.isInline()){const t=o.getPreviousSibling();Ti(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else Ko(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):Ti(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===i.getTextContent().length){const r=i.getNextSibling(),o=i.getParent();if(t&&Ko(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&Ko(o)&&o.isInline()&&!o.canInsertTextAfter()){const t=o.getNextSibling();Ti(t)&&e.set(t.__key,0,"text")}}}function ji(e,t,n){if("text"===e.type&&"text"===t.type){const n=e.isBefore(t),r=e.is(t);qi(e,n,r),qi(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function Gi(e,t,n,r,i,o){if(null===e||null===n||!_s(i,e,n))return null;const s=Vi(e,t,Di(o)?o.anchor:null,i);if(null===s)return null;const l=Vi(n,r,Di(o)?o.focus:null,i);if(null===l)return null;if("element"===s.type&&"element"===l.type){const t=Vs(e),r=Vs(n);if(Vo(t)&&Vo(r))return null}return ji(s,l),[s,l]}function Zi(e){return Ko(e)&&!e.isInline()}function Yi(e,t,n,r,i,o){const s=vo(),l=new Bi(Ri(e,t,i),Ri(n,r,o),0,"");return l.dirty=!0,s._selection=l,l}function Ji(){const e=Ri("root",0,"element"),t=Ri("root",0,"element");return new Bi(e,t,0,"")}function Xi(){return new Pi(new Set)}function Qi(e,t){return eo(null,e,t,null)}function eo(e,t,n,r){const i=n._window;if(null===i)return null;const o=r||i.event,s=o?o.type:void 0,l="selectionchange"===s,a=!rt&&(l||"beforeinput"===s||"compositionstart"===s||"compositionend"===s||"click"===s&&o&&3===o.detail||"drop"===s||void 0===s);let c,u,d,h;if(Di(e)&&!a)return e.clone();if(null===t)return null;if(c=t.anchorNode,u=t.focusNode,d=t.anchorOffset,h=t.focusOffset,(l||void 0===s)&&Di(e)&&!_s(n,c,u))return e.clone();const g=Gi(c,d,u,h,n,e);if(null===g)return null;const[p,f]=g;let m=0,y="";if(Di(e)){const t=e.anchor;if(p.key===t.key)m=e.format,y=e.style;else{const e=p.getNode();Ti(e)?(m=e.getFormat(),y=e.getStyle()):Ko(e)&&(m=e.getTextFormat(),y=e.getTextStyle())}}return new Bi(p,f,m,y)}function to(){return vo()._selection}function no(){return wo()._editorState._selection}function ro(e,t,n,r=1){const i=e.anchor,o=e.focus,s=i.getNode(),l=o.getNode();if(!t.is(s)&&!t.is(l))return;const a=t.__key;if(e.isCollapsed()){const t=i.offset;if(n<=t&&r>0||n<t&&r<0){const n=Math.max(0,t+r);i.set(a,n,"element"),o.set(a,n,"element"),io(e)}}else{const s=e.isBackward(),l=s?o:i,c=l.getNode(),u=s?i:o,d=u.getNode();if(t.is(c)){const e=l.offset;(n<=e&&r>0||n<e&&r<0)&&l.set(a,Math.max(0,e+r),"element")}if(t.is(d)){const e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(a,Math.max(0,e+r),"element")}}io(e)}function io(e){const t=e.anchor,n=t.offset,r=e.focus,i=r.offset,o=t.getNode(),s=r.getNode();if(e.isCollapsed()){if(!Ko(o))return;const e=o.getChildrenSize(),i=n>=e,s=i?o.getChildAtIndex(e-1):o.getChildAtIndex(n);if(Ti(s)){let e=0;i&&(e=s.getTextContentSize()),t.set(s.__key,e,"text"),r.set(s.__key,e,"text")}}else{if(Ko(o)){const e=o.getChildrenSize(),r=n>=e,i=r?o.getChildAtIndex(e-1):o.getChildAtIndex(n);if(Ti(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,"text")}}if(Ko(s)){const e=s.getChildrenSize(),t=i>=e,n=t?s.getChildAtIndex(e-1):s.getChildAtIndex(i);if(Ti(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function oo(e,t,n,r,i){let o=null,s=0,l=null;null!==r?(o=r.__key,Ti(r)?(s=r.getTextContentSize(),l="text"):Ko(r)&&(s=r.getChildrenSize(),l="element")):null!==i&&(o=i.__key,Ti(i)?l="text":Ko(i)&&(l="element")),null!==o&&null!==l?e.set(o,s,l):(s=t.getIndexWithinParent(),-1===s&&(s=n.getChildrenSize()),e.set(n.__key,s,"element"))}function so(e,t,n,r,i){"text"===e.type?e.set(n,e.offset+(t?0:i),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function lo(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch(e){}}function ao(e,t,n){const r=gl(e,t.getKey());if(Ko(t)){const i=Kl(e).$getDOMSlot(t,r,e);return[i.element,n+i.getFirstChildOffset()]}return[r,n]}function co(e){let t=to()||no();null===t&&(t=Ks().selectEnd()),t.insertNodes(e)}function uo(e){let t=e;e.isCollapsed()||t.removeText();const n=to();Di(n)&&(t=n),Di(t)||_e(161);const r=t.anchor;let i=r.getNode(),o=r.offset;for(;!zl(i);){const e=i;if([i,o]=ho(i,o),e.is(i))break}return o}function ho(e,t){const n=e.getParent();if(!n){const e=ns();return Ks().append(e),e.select(),[Ks(),0]}if(Ti(e)){const r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];const i=0===t?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!Ko(e)||0===t)return[n,e.getIndexWithinParent()];const r=e.getChildAtIndex(t);if(r){const n=new Bi(Ri(e.__key,t,"element"),Ri(e.__key,t,"element"),0,""),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function go(e,t,n,r,i="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){const[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}const o=Fa(e.focus,n?"previous":"next"),s="lineboundary"===r,l="move"===t;let a=o,c="decorators-and-blocks"===i;if(!Wa(a)){for(const e of a){c=!1;const{origin:t}=e;if(!Vo(t)||t.isIsolated()||(a=e,!s||!t.isInline()))break}if(c)for(const e of ka(o).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(ha(e))e.origin.isInline()||(a=e);else{if(Ko(e.origin))continue;Vo(e.origin)&&!e.origin.isInline()&&(a=e)}break}}if(a===o)return!1;if(l&&!s&&Vo(a.origin)&&a.origin.isKeyboardSelectable()){const e=Xi();return e.add(a.origin.getKey()),Ws(e),!0}return a=Ua(a),l&&Ma(e.anchor,a),Ma(e.focus,a),c||!s}let po=null,fo=null,mo=!1,yo=!1,bo=0;const _o={characterData:!0,childList:!0,subtree:!0};function Co(){return mo||null!==po&&po._readOnly}function xo(){mo&&_e(13)}function So(){bo>99&&_e(14)}function vo(){return null===po&&_e(195,ko()),po}function wo(){return null===fo&&_e(337,ko()),fo}function ko(){let e=0;const t=new Set,n=us.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const i=Ss(r);if(Cs(i))e++;else if(i){let e=String(i.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function Eo(e,t,n){const r=t.__type,i=ps(e,r);let o=n.get(r);void 0===o&&(o=Array.from(i.transforms),n.set(r,o));const s=o.length;for(let e=0;e<s&&(o[e](t),t.isAttached());e++);}function To(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function No(e,t){if(!t)return;const n=e._updateTags;let r=t;Array.isArray(t)||(r=[t]);for(const e of r)n.add(e)}function Ao(e){return Lo(e,wo()._nodes)}function Lo(e,t){const n=e.type,r=t.get(n);void 0===r&&_e(17,n);const i=r.klass;e.type!==i.getType()&&_e(18,i.name);const o=i.importJSON(e),s=e.children;if(Ko(o)&&Array.isArray(s))for(let e=0;e<s.length;e++){const n=Lo(s[e],t);o.append(n)}return o}function Oo(e,t,n){const r=po,i=mo,o=fo;po=t,mo=!0,fo=e;try{return n()}finally{po=r,mo=i,fo=o}}function Io(e,t){const n=e._pendingEditorState,r=e._rootElement,i=e._headless||null===r;if(null===n)return void(e._deferred.length>0&&Mo(e,e._deferred));const o=e._editorState,s=o._selection,l=n._selection,a=0!==e._dirtyType,c=po,u=mo,d=fo,h=e._updating,g=e._observer;let p=null;if(e._pendingEditorState=null,e._editorState=n,!i&&a&&null!==g){fo=e,po=n,mo=!1,e._updating=!0;try{const t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;g.disconnect(),p=function(e,t,n,r,i,o){Kt="",Vt=2===r,It=n,Ot=n._config,Ht=n._config.dom||ss,Rt=n._nodes,Ft=It._listeners.mutation,Mt=i,Pt=o,Dt=e._nodeMap,Bt=t._nodeMap,qt=t._readOnly,$t=new Map(n._keyToDOMMap);const s=new Map;return zt=s,on("root",null),It=void 0,Rt=void 0,Mt=void 0,Pt=void 0,Dt=void 0,Bt=void 0,Ot=void 0,$t=void 0,zt=void 0,Ht=ss,s}(o,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),yo)throw t;return is(e,null,r,n),ht(e),e._dirtyType=2,yo=!0,Io(e,o),void(yo=!1)}finally{g.observe(r,_o),e._updating=h,po=c,mo=u,fo=d}}n._readOnly||(n._readOnly=!0);const f=e._dirtyLeaves,m=e._dirtyElements,y=e._normalizedNodes,b=e._updateTags,_=e._deferred;a&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){const n=e._decorators;let r=e._pendingDecorators||n;const i=t._nodeMap;let o;for(o in r)i.has(o)||(r===n&&(r=zs(e)),delete r[o])}(e,n);const C=i?null:Ol(xl(e));if(e._editable&&null!==C&&(a||null===l||l.dirty||!l.is(s))&&null!==r&&!b.has(Xr)){fo=e,po=n;try{if(null!==g&&g.disconnect(),a||null===l||l.dirty){const t=e._blockCursorElement;null!==t&&Ll(t,e,r),function(e,t,n,r,i,o){const s=r.anchorNode,l=r.focusNode,a=r.anchorOffset,c=r.focusOffset,u=document.activeElement;if(i.has(Yr)&&u!==o||null!==u&&bs(u))return;if(!Di(t))return void(null!==e&&_s(n,s,l)&&r.removeAllRanges());const d=t.anchor,h=t.focus,g=d.getNode(),p=h.getNode(),[f,m]=ao(n,g,d.offset),[y,b]=ao(n,p,h.offset),_=t.format,C=t.style,x=t.isCollapsed();let S=f,v=y,w=!1;var k,E,T,N,A;if("text"===d.type?(S=Ns(f),w=g.getFormat()!==_||g.getStyle()!==C):Di(e)&&"text"===e.anchor.type&&(w=!0),"text"===h.type&&(v=Ns(y)),null!==S&&null!==v&&(x&&(null===e||w||Di(e)&&(e.format!==_||e.style!==C))&&(k=_,E=C,T=m,N=d.key,A=performance.now(),xr=[k,E,T,N,A]),a!==m||c!==b||s!==S||l!==v||"Range"===r.type&&x||(null!==u&&o.contains(u)||i.has(Qr)||o.focus({preventScroll:!0}),"element"===d.type))){if(lo(r,S,m,v,b),!we||!t.isCollapsed()||null===o||i.has(Qr)||null!==document.activeElement&&o.contains(document.activeElement)||o.focus({preventScroll:!0}),!i.has(Jr)&&t.isCollapsed()&&null!==o&&o===document.activeElement){const e=Di(t)&&"element"===t.anchor.type?S.childNodes[m]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){const n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){const r=fl(n),i=Cl(r);if(null===r||null===i)return;let{top:o,bottom:s}=t,l=0,a=0,c=n;for(;null!==c;){const t=c===r.body;if(t){l=0,a=xl(e).innerHeight;const t=i.getComputedStyle(r.documentElement),n=parseFloat(t.scrollPaddingTop),o=parseFloat(t.scrollPaddingBottom);isFinite(n)&&(l+=n),isFinite(o)&&(a-=o)}else{const e=c.getBoundingClientRect();l=e.top,a=e.bottom}let n=0;if(o<l?n=-(l-o):s>a&&(n=s-a),0!==n)if(t)i.scrollBy(0,n);else{const e=c.scrollTop;c.scrollTop+=n;const t=c.scrollTop-e;o-=t,s-=t}if(t)break;c=pl(c)}}(n,t,o)}}pr=!0}}(s,l,e,C,b,r)}!function(e,t,n){let r=e._blockCursorElement;if(Di(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){const i=n.anchor,o=i.getNode(),s=i.offset;let l=!1,a=null;if(s===o.getChildrenSize())Al(o.getChildAtIndex(s-1))&&(l=!0);else{const t=o.getChildAtIndex(s);if(null!==t&&Al(t)){const n=t.getPreviousSibling();(null===n||Al(n))&&(l=!0,a=e.getElementByKey(t.__key))}}if(l){const n=e.getElementByKey(o.__key);return null===r&&(e._blockCursorElement=r=function(e){const t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;if(void 0!==r){if("string"==typeof r){const e=nc(r);r=t.blockCursor=e}void 0!==r&&n.classList.add(...r)}return n}(e._config)),t.style.caretColor="transparent",void(null===a?n.appendChild(r):n.insertBefore(r,a))}}null!==r&&Ll(r,e,t)}(e,r,l)}finally{null!==g&&g.observe(r,_o),fo=d,po=c}}null!==p&&function(e,t,n,r,i){const o=Array.from(e._listeners.mutation),s=o.length;for(let e=0;e<s;e++){const[s,l]=o[e];for(const e of l){const o=t.get(e);void 0!==o&&s(o,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,p,b,f,o),Di(l)||null===l||null!==s&&s.is(l)||e.dispatchCommand(dn,void 0);const x=e._pendingDecorators;null!==x&&(e._decorators=x,e._pendingDecorators=null,Ro("decorator",e,!0,x)),function(e,t,n){const r=Hs(t),i=Hs(n);r!==i&&Ro("textcontent",e,!0,i)}(e,t||o,n),Ro("update",e,!0,{dirtyElements:m,dirtyLeaves:f,editorState:n,mutatedNodes:p,normalizedNodes:y,prevEditorState:t||o,tags:b}),Mo(e,_),function(e){const t=e._updates;if(0!==t.length){const n=t.shift();if(n){const[t,r]=n;Do(e,t,r)}}}(e)}function Ro(e,t,n,...r){const i=t._updating;t._updating=n;try{const n=t._listeners[e],i=Array.from(n);for(const[e,t]of i){t&&t();const i=e(...r);n.has(e)?n.set(e,i):i&&i()}}finally{t._updating=i}}function Fo(e,t,n,r){const i=js(e);let o;for(let e=4;e>=0;e--)for(let s=0;s<i.length;s++){const l=i[s];if(s>0&&l._updating){o=l;break}const a=l._commands.get(t);if(void 0!==a){const t=a[e];if(t.size>0){let e=!1;if(Bo(l,(()=>{for(const i of t)if(i(n,r))return void(e=!0)})),e)return e}}}return o&&o.update((()=>{Fo(o,t,n,r)})),!1}function Mo(e,t){if(e._deferred=[],0!==t.length){const n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}function Po(e,t){const n=e._updates;let r=t||!1;for(;0!==n.length;){const t=n.shift();if(t){const[n,i]=t,o=e._pendingEditorState;let s;void 0!==i&&(s=i.onUpdate,i.skipTransforms&&(r=!0),i.discrete&&(null===o&&_e(191),o._flushSync=!0),s&&e._deferred.push(s),No(e,i.tag)),null==o?Do(e,n,i):n()}}return r}function Do(e,t,n){const r=e._updateTags;let i,o=!1,s=!1;void 0!==n&&(i=n.onUpdate,No(e,n.tag),o=n.skipTransforms||!1,s=n.discrete||!1),i&&e._deferred.push(i);const l=e._editorState;let a=e._pendingEditorState,c=!1;(null===a||a._readOnly)&&(a=e._pendingEditorState=Go(a||l),c=!0),a._flushSync=s;const u=po,d=mo,h=fo,g=e._updating;po=a,mo=!1,e._updating=!0,fo=e;const p=e._headless||null===e.getRootElement();hs(null);try{c&&(p?null!==l._selection&&(a._selection=l._selection.clone()):a._selection=function(e,t){const n=e.getEditorState()._selection,r=Ol(xl(e));return Di(n)||null==n?eo(n,r,e,t):n.clone()}(e,n&&n.event||null));const r=e._compositionKey;t(),o=Po(e,o),function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(Di(r)){const e=r.anchor,t=r.focus;let i;if("text"===e.type&&(i=e.getNode(),i.selectionTransform(n,r)),"text"===t.type){const e=t.getNode();i!==e&&e.selectionTransform(n,r)}}}(a,e),0!==e._dirtyType&&(o?function(e,t){const n=t._dirtyLeaves,r=e._nodeMap;for(const e of n){const t=r.get(e);Ti(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Nt(t)}}(a,e):function(e,t){const n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,o=Ms(),s=new Map;let l=n,a=l.size,c=r,u=c.size;for(;a>0||u>0;){if(a>0){t._dirtyLeaves=new Set;for(const e of l){const r=i.get(e);Ti(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Nt(r),void 0!==r&&To(r,o)&&Eo(t,r,s),n.add(e)}if(l=t._dirtyLeaves,a=l.size,a>0){bo++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,c.delete("root")&&c.set("root",!0);for(const e of c){const n=e[0],l=e[1];if(r.set(n,l),!l)continue;const a=i.get(n);void 0!==a&&To(a,o)&&Eo(t,a,s)}l=t._dirtyLeaves,a=l.size,c=t._dirtyElements,u=c.size,bo++}t._dirtyLeaves=n,t._dirtyElements=r}(a,e),Po(e),function(e,t,n,r){const i=e._nodeMap,o=t._nodeMap,s=[];for(const[e]of r){const t=o.get(e);void 0!==t&&(t.isAttached()||(Ko(t)&&nt(t,e,i,o,s,r),i.has(e)||r.delete(e),s.push(e)))}for(const e of s)o.delete(e);for(const e of n){const t=o.get(e);void 0===t||t.isAttached()||(i.has(e)||n.delete(e),o.delete(e))}}(l,a,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(a._flushSync=!0);const i=a._selection;if(Di(i)){const e=a._nodeMap,t=i.anchor.key,n=i.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||_e(19)}else $i(i)&&0===i._nodes.size&&(a._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=l,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Io(e)}finally{po=u,mo=d,fo=h,e._updating=g,bo=0}const f=0!==e._dirtyType||e._deferred.length>0||function(e,t){const n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(a,e);f?a._flushSync?(a._flushSync=!1,Io(e)):c&&ms((()=>{Io(e)})):(a._flushSync=!1,c&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Bo(e,t,n){fo===e&&void 0===n?t():Do(e,t,n)}class $o{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new $o(this.element,e,this.after)}withAfter(e){return new $o(this.element,this.before,e)}withElement(e){return this.element===e?this:new $o(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&_e(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&_e(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&_e(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(null===e)this.removeManagedLineBreak();else{const t="decorator"===e&&(Oe||Ee||Ne);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),e){const e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.setProperty("display","inline","important"),e.style.setProperty("border","0px","important"),e.style.setProperty("margin","0px","important"),e.alt="",n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){const t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}const i=zo(t,n);i.push(r);const o=zo(t,this.element);let s=e.getIndexWithinParent();for(let e=0;e<o.length;e++){const t=i[e],n=o[e];if(void 0===t||t<n)break;if(t>n){s+=1;break}}return[e.getParentOrThrow(),s]}}function zo(e,t){const n=[];let r=t;for(;r!==e&&null!==r;r=r.parentNode){let e=0;for(let t=r.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return r!==e&&_e(225),n.reverse()}class Ho extends Wr{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return Je[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const e=wo()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;null!==t;){if(Ti(t)&&e.push(t),Ko(t)){const n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;Ko(e);){const t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;Ko(e);){const t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),n=t.length;if(e>=n){const e=t[n-1];return Ko(e)&&e.getLastDescendant()||e||null}const r=t[e];return Ko(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const e=this.getLatest().__first;return null===e?null:Ps(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return null===e&&_e(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return null===e?null:Ps(e)}getLastChildOrThrow(){const e=this.getLastChild();return null===e&&_e(96,this.__key),e}getChildAtIndex(e){const t=this.getChildrenSize();let n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;null!==n&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e="";const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const i=t[r];e+=i.getTextContent(),Ko(i)&&r!==n-1&&!i.isInline()&&(e+=Ke)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){const i=t[r];e+=i.getTextContentSize(),Ko(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){const t=Ye[e];return 0!==(this.getFormat()&t)}return!1}hasTextFormat(e){const t=Ge[e];return 0!==(this.getTextFormat()&t)}getFormatFlags(e,t){return As(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){xo();const n=to();let r=e,i=t;const o=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){const e=this.getFirstChild();if(Ti(e)||Ko(e))return e.select(0,0)}else if(!(void 0!==e&&e!==o||void 0!==t&&t!==o)){const e=this.getLastChild();if(Ti(e)||Ko(e))return e.select()}void 0===r&&(r=o),void 0===i&&(i=o);const s=this.__key;return Di(n)?(n.anchor.set(s,r,"element"),n.focus.set(s,i,"element"),n.dirty=!0,n):Yi(s,r,s,i,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach((e=>e.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e&&Ye[e]||0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){Ur(this)&&_e(324,this.__key,this.__type);const r=this.getChildrenSize(),i=this.getWritable();e+t<=r||_e(226,String(e),String(t),String(r));const o=i.__key,s=[],l=[],a=this.getChildAtIndex(e+t);let c=null,u=r-t+n.length;if(0!==e)if(e===r)c=this.getLastChild();else{const t=this.getChildAtIndex(e);null!==t&&(c=t.getPreviousSibling())}if(t>0){let e=null===c?this.getFirstChild():c.getNextSibling();for(let n=0;n<t;n++){null===e&&_e(100);const t=e.getNextSibling(),n=e.__key;Is(e.getWritable()),l.push(n),e=t}}let d=c;for(const e of n){null!==d&&e.is(d)&&(c=d=d.getPreviousSibling());const t=e.getWritable();t.__parent===o&&u--,Is(t);const n=e.__key;if(null===d)i.__first=n,t.__prev=null;else{const e=d.getWritable();e.__next=n,t.__prev=e.__key}e.__key===o&&_e(76),t.__parent=o,s.push(n),d=e}if(e+t===r)null!==d&&(d.getWritable().__next=null,i.__last=d.__key);else if(null!==a){const e=a.getWritable();if(null!==d){const t=d.getWritable();e.__prev=d.__key,t.__next=a.__key}else e.__prev=null}if(i.__size=u,l.length){const e=to();if(Di(e)){const t=new Set(l),n=new Set(s),{anchor:r,focus:i}=e;Uo(r,t,n)&&oo(r,r.getNode(),this,c,a),Uo(i,t,n)&&oo(i,i.getNode(),this,c,a),0!==u||this.canBeEmpty()||wl(this)||this.remove()}}return i}getDOMSlot(e){return new $o(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ml(t)){const e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");const n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0===t&&""===n||wl(this)||this.getChildren().some(Ti)||(0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const n=Kl(t).$getDOMSlot(this,e,t);let r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){const i=t.getElementByKey(e.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}}function Ko(e){return e instanceof Ho}function Uo(e,t,n){let r=e.getNode();for(;r;){const e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class Wo extends Wr{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Vo(e){return e instanceof Wo}class qo extends Ho{__cachedText;static getType(){return"root"}static clone(){return new qo}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){_e(51)}getTextContent(){const e=this.__cachedText;return!Co()&&0!==wo()._dirtyType||null===e?super.getTextContent():e}remove(){_e(52)}replace(e){_e(53)}insertBefore(e){_e(54)}insertAfter(e){_e(55)}updateDOM(e,t){return!1}splice(e,t,n){for(const e of n)Ko(e)||Vo(e)||_e(282);return super.splice(e,t,n)}static importJSON(e){return Ks().updateFromJSON(e)}collapseAtStart(){return!0}}function jo(e){return e instanceof qo}function Go(e){return new Xo(new Map(e._nodeMap))}function Zo(){return new Xo(new Map([["root",new qo]]))}function Yo(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&_e(130,n.name),Ko(e)){const r=t.children;Array.isArray(r)||_e(59,n.name);const i=e.getChildren();for(let e=0;e<i.length;e++){const t=Yo(i[e]);r.push(t)}}return t}function Jo(e){return e instanceof Xo}class Xo{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return Oo(t&&t.editor||null,this,e)}clone(e){const t=new Xo(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return Oo(null,this,(()=>({root:Yo(Ks())})))}}class Qo extends Ho{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class es extends Ho{static getType(){return"paragraph"}static clone(e){return new es(e.__key)}createDOM(e){const t=document.createElement("p"),n=ll(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:ts,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ml(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return ns().updateFromJSON(e)}exportJSON(){const e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){const t=this.getChildren().find(Ti);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){const n=ns();n.setTextFormat(e.format),n.setTextStyle(e.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){const e=this.getChildren();if(0===e.length||Ti(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function ts(e){const t=ns();if(e.style&&(t.setFormat(e.style.textAlign),Gl(e,t)),""===t.getFormatType()){const n=e.getAttribute("align");n&&n&&n in Ye&&t.setFormat(n)}return{node:t}}function ns(){return El(new es)}function rs(e){return e instanceof es}function is(e,t,n,r){const i=e._keyToDOMMap;i.clear(),e._editorState=Zo(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;const o=e._observer;null!==o&&(o.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}function os(e){const t=new Set,n=new Set;let r=e;for(;r;){const{ownNodeConfig:e}=Xl(r),i=r.transform;if(!n.has(i)){n.add(i);const e=r.transform();e&&t.add(e)}if(e){const n=e.$transform;n&&t.add(n),r=e.extends}else{const e=Object.getPrototypeOf(r);r=e.prototype instanceof Wr&&e!==Wr?e:void 0}}return t}const ss={$createDOM:(e,t)=>e.createDOM(t._config,t),$decorateDOM:(e,t,n,r)=>{},$exportDOM:(e,t)=>{const n=fs(t,e.getType());return n&&void 0!==n.exportDOM?n.exportDOM(t,e):e.exportDOM(t)},$extractWithChild:(e,t,n,r,i)=>Ko(e)&&e.extractWithChild(t,n,r),$getDOMSlot:(e,t,n)=>(Ko(e)||_e(336,e.getKey(),e.getType()),e.getDOMSlot(t)),$shouldExclude:(e,t,n)=>Ko(e)&&e.excludeFromCopy("html"),$shouldInclude:(e,t,n)=>!t||e.isSelected(t),$updateDOM:(e,t,n,r)=>e.updateDOM(t,n,r._config)};function ls(e){const t=e||{},n=fo,r=t.theme||{},i=void 0===e?n:t.parentEditor||null,o=t.disableEvents||!1,s=Zo(),l=t.namespace||(null!==i?i._config.namespace:Gs()),a=t.editorState,c=[qo,yi,si,Ai,es,Qo,...t.nodes||[]],{onError:u,html:d}=t,h=void 0===t.editable||t.editable;let g;if(void 0===e&&null!==n)g=n._nodes;else{g=new Map;for(let e=0;e<c.length;e++){let t=c[e],n=null,r=null;if("function"!=typeof t){const e=t;t=e.replace,n=e.with,r=e.withKlass||null}Xl(t);const i=t.getType(),o=os(t);g.set(i,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:yt(c[e]),transforms:o})}}const p=new us(s,i,g,{disableEvents:o,dom:{...ss,...e&&e.dom},namespace:l,theme:r},u||console.error,function(e,t){const n=new Map,r=new Set,i=e=>{Object.keys(e).forEach((t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])}))};return e.forEach((e=>{const t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);const n=t.call(e.klass);null!==n&&i(n)})),t&&i(t),n}(g,d?d.import:void 0),h,e);return void 0!==a&&(p._pendingEditorState=a,p._dirtyType=2),function(e){e.registerCommand(pn,Nr,0),e.registerCommand(fn,Ar,0),e.registerCommand(mn,Lr,0),e.registerCommand(yn,Or,0),e.registerCommand(An,Rr,0)}(p),p}function as(e,t){const n=e.get(t);e.delete(t),n&&n()}function cs(e,t,n){return e.set(t,n),as.bind(null,e,t)}class us{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,n,r,i,o,s,l){this._createEditorArgs=l,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Gs(),this._onError=i,this._htmlConversions=o,this._editable=s,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){return cs(this._listeners.update,e)}registerEditableListener(e){return cs(this._listeners.editable,e)}registerDecoratorListener(e){return cs(this._listeners.decorator,e)}registerTextContentListener(e){return cs(this._listeners.textcontent,e)}registerRootListener(e){const t=this._listeners.root;return oc(cs(t,e,e(this._rootElement,null)||void 0),(()=>function(e,t,n){const r=e.get(t);r&&r(),e.set(t,t(...n)||void 0)}(t,e,[null,this._rootElement])))}registerCommand(e,t,n){void 0===n&&_e(35);const r=this._commands;r.has(e)||r.set(e,[new tt,new tt,new tt,new tt,new tt]);const i=r.get(e);void 0===i&&_e(36,String(e));const o=function(e){return 7&e}(n),s=i[o];return o!==n?s.addFront(t):s.addBack(t),()=>{s.delete(t),i.every((e=>0===e.size))&&r.delete(e)}}registerMutationListener(e,t,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;let o=i.get(t);void 0===o&&(o=new Set,i.set(t,o)),o.add(r);const s=n&&n.skipInitialization;return void 0!==s&&s||this.initializeMutationListener(t,r),()=>{o.delete(r),0===o.size&&i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return void 0===t&&_e(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const n=this._editorState,r=Vl(n).get(t.getType());if(!r)return;const i=new Map;for(const e of r.keys())i.set(e,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){const n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(null!=i){const e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){const n=Vl(e.getEditorState()),r=[];for(const e of t){const t=n.get(e);t&&r.push(t)}0!==r.length&&e.update((()=>{for(const e of r)for(const t of e.keys()){const e=Ps(t);e&&e.markDirty()}}),null===e._pendingEditorState?{tag:Gr}:void 0)}(this,r.map((e=>e.klass.getType()))),()=>{r.forEach((e=>e.transforms.delete(t)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return hl(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const n=ll(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,is(this,t,e,r),null!==t&&(this._config.disableEvents||$r(t),null!=n&&t.classList.remove(...n)),null!==e){const t=Cl(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,ht(this),this._updateTags.add(Gr),Io(this),this._config.disableEvents||function(e,t){const n=e.ownerDocument;hr.set(e,n);const r=gr.get(n)??0;r<1&&n.addEventListener("selectionchange",Pr),gr.set(n,r+1),e.__lexicalEditor=t;const i=Fr(e);for(let n=0;n<lr.length;n++){const[r,o]=lr[n],s="function"==typeof o?e=>{Br(e)||(Dr(e),(t.isEditable()||"click"===r)&&o(e,t))}:e=>{if(Br(e))return;Dr(e);const n=t.isEditable();switch(r){case"cut":return n&&hl(t,Jn,e);case"copy":return hl(t,Yn,e);case"paste":return n&&hl(t,Sn,e);case"dragstart":return n&&hl(t,jn,e);case"dragover":return n&&hl(t,Gn,e);case"dragend":return n&&hl(t,Zn,e);case"focus":return n&&hl(t,rr,e);case"blur":return n&&hl(t,ir,e);case"drop":return n&&hl(t,Vn,e)}};e.addEventListener(r,s),i.push((()=>{e.removeEventListener(r,s)}))}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add(Gr),Io(this);Ro("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&_e(38);let n=e;n._readOnly&&(n=Go(e),n._selection=e._selection?e._selection.clone():null),dt(this);const r=this._pendingEditorState,i=this._updateTags,o=void 0!==t?t.tag:null;null===r||r.isEmpty()||(null!=o&&i.add(o),Io(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&i.add(o),this._updating||Io(this)}parseEditorState(e,t){return function(e,t,n){const r=Zo(),i=po,o=mo,s=fo,l=t._dirtyElements,a=t._dirtyLeaves,c=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,po=r,mo=!1,fo=t,hs(null);try{const i=t._nodes;Lo(e.root,i),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=l,t._dirtyLeaves=a,t._cloneNotNeeded=c,t._dirtyType=u,po=i,mo=o,fo=s}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return Io(this),this.getEditorState().read(e,{editor:this})}update(e,t){!function(e,t,n){e._updating?e._updates.push([t,n]):Do(e,t,n)}(this,e,t)}focus(e,t={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Bo(this,(()=>{const r=to(),i=Ks();null!==r?r.dirty||Ws(r.clone()):0!==i.getChildrenSize()&&("rootStart"===t.defaultSelection?i.selectStart():i.selectEnd()),yl("focus"),bl((()=>{n.removeAttribute("autocapitalize"),e&&e()}))})),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;null!==e&&e.blur();const t=Ol(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Ro("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}us.version="0.44.0+prod.esm";let ds=null;function hs(e){ds=e}let gs=1;function ps(e,t){const n=fs(e,t);return void 0===n&&_e(30,t),n}function fs(e,t){return e._nodes.get(t)}const ms="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function ys(e){return Vo($s(e))}function bs(e){const t=document.activeElement;if(!Ml(t))return!1;const n=t.nodeName;return Vo($s(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==Ss(t))}function _s(e,t,n){const r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!bs(t)&&xs(t)===e}catch(e){return!1}}function Cs(e){return e instanceof us}function xs(e){let t=e;for(;null!=t;){const e=Ss(t);if(Cs(e))return e;t=pl(t)}return null}function Ss(e){return e?e.__lexicalEditor:null}function vs(e){return qe.test(e)?"rtl":je.test(e)?"ltr":null}function ws(e){return Oi(e)||e.isToken()}function ks(e){return ws(e)||e.isSegmented()}function Es(e){return Pl(e)&&3===e.nodeType}function Ts(e){return Pl(e)&&9===e.nodeType}function Ns(e){let t=e;for(;null!=t;){if(Es(t))return t;t=t.firstChild}return null}function As(e,t,n){const r=Ge[t];if(null!==n&&(e&r)===(n&r))return e;let i=e^r;return"subscript"===t?i&=~Ge.superscript:"superscript"===t?i&=~Ge.subscript:"lowercase"===t?(i&=~Ge.uppercase,i&=~Ge.capitalize):"uppercase"===t?(i&=~Ge.lowercase,i&=~Ge.capitalize):"capitalize"===t&&(i&=~Ge.lowercase,i&=~Ge.uppercase),i}function Ls(e){return Ti(e)||ci(e)||Vo(e)}function Os(e,t){const n=function(){const e=ds;return ds=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);xo(),So();const r=wo(),i=vo(),o=""+gs++;i._nodeMap.set(o,e),Ko(e)?r._dirtyElements.set(o,!0):r._dirtyLeaves.add(o),r._cloneNotNeeded.add(o),r._dirtyType=1,e.__key=o}function Is(e){const t=e.getParent();if(null!==t){const n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),o=e.getNextSibling(),s=null!==o?o.__key:null,l=null!==i?i.__key:null,a=null!==i?i.getWritable():null,c=null!==o?o.getWritable():null;null===i&&(r.__first=s),null===o&&(r.__last=l),null!==a&&(a.__next=s),null!==c&&(c.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function Rs(e){So(),Ur(e)&&_e(323,e.__key,e.__type);const t=e.getLatest(),n=t.__parent,r=vo(),i=wo(),o=r._nodeMap,s=i._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;const e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,o,s);const l=t.__key;i._dirtyType=1,Ko(e)?s.set(l,!0):i._dirtyLeaves.add(l)}function Fs(e){xo();const t=wo(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){const e=Ps(n);null!==e&&e.getWritable()}if(null!==e){const t=Ps(e);null!==t&&t.getWritable()}}}function Ms(){return Co()?null:wo()._compositionKey}function Ps(e,t){const n=(t||vo())._nodeMap.get(e);return void 0===n?null:n}function Ds(e,t){const n=Bs(e,wo());return void 0!==n?Ps(n,t):null}function Bs(e,t){return e[`__lexicalKey_${t._key}`]}function $s(e,t){let n=e;for(;null!=n;){const e=Ds(n,t);if(null!==e)return e;n=pl(n)}return null}function zs(e){const t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function Hs(e){return e.read((()=>Ks().getTextContent()))}function Ks(){return Us(vo())}function Us(e){return e._nodeMap.get("root")}function Ws(e){xo();const t=vo();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Vs(e){const t=wo(),n=function(e,t){let n=e;for(;null!=n;){const e=Bs(n,t);if(void 0!==e)return e;n=pl(n)}return null}(e,t);return null===n?e===t.getRootElement()?Ps("root"):null:Ps(n)}function qs(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function js(e){const t=[];for(let n=e;null!==n;n=n._parentEditor)t.push(n);return t}function Gs(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Zs(e){return Es(e)?e.nodeValue:null}function Ys(e,t,n){const r=Ol(xl(t));if(null===r)return;const i=r.anchorNode;let{anchorOffset:o,focusOffset:s}=r;if(null!==i){let t=Zs(i);const r=$s(i);if(null!==t&&Ti(r)){if((t===He||t===Ue)&&n){const e=n.length;t=n,o=e,s=e}null!==t&&Js(r,t,o,s,e)}}}function Js(e,t,n,r,i){let o=e;if(o.isAttached()&&(i||!o.isDirty())){const s=o.isComposing();let l=t;if((s||i)&&(t.endsWith(He)&&(l=t.slice(0,-He.length)),i)){const e=Ue;let t;for(;-1!==(t=l.indexOf(e));)l=l.slice(0,t)+l.slice(t+e.length),null!==n&&n>t&&(n=Math.max(t,n-e.length)),null!==r&&r>t&&(r=Math.max(t,r-e.length))}const a=o.getTextContent();if(i||l!==a){if(""===l){if(Fs(null),Ne||Ee||Oe)o.remove();else{const e=wo();setTimeout((()=>{e.update((()=>{o.isAttached()&&o.remove()}))}),20)}return}const t=o.getParent(),i=no(),a=o.getTextContentSize(),c=Ms(),u=o.getKey();if(o.isToken()||null!==c&&u===c&&!s||Di(i)&&(null!==t&&!t.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===e.__key&&0===i.anchor.offset&&!o.canInsertTextBefore()&&!s||i.focus.key===e.__key&&i.focus.offset===a&&!o.canInsertTextAfter()&&!s))return void o.markDirty();const d=to();if(!Di(d)||null===n||null===r)return void Xs(o,l,d);if(d.setTextNodeRange(o,n,o,r),o.isSegmented()){const e=Ei(o.getTextContent());o.replace(e),o=e}Xs(o,l,d)}}}function Xs(e,t,n){if(e.setTextContent(t),Di(n)){const t=e.getKey();for(const r of["anchor","focus"]){const i=n[r];"text"===i.type&&i.key===t&&(i.offset=ba(e,i.offset,"clamp"))}}}function Qs(e,t,n){const r=t[n]||!1;return"any"===r||r===e[n]}function el(e,t){return Qs(e,t,"altKey")&&Qs(e,t,"ctrlKey")&&Qs(e,t,"shiftKey")&&Qs(e,t,"metaKey")}function tl(e,t,n){if(!el(e,n))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1)return!1;if(1===e.key.length&&e.key.charCodeAt(0)<=127)return!1;if(e.code.startsWith("Digit")&&/^\d$/.test(t))return e.code===`Digit${t}`;const r="Key"+t.toUpperCase();return e.code===r}const nl={ctrlKey:!ve,metaKey:ve},rl={altKey:ve,ctrlKey:!ve};function il(e){return"Backspace"===e.key}function ol(e){return tl(e,"a",nl)}function sl(e){const t=Ks();if(Di(e)){const t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),At(e),e}{const e=t.select(0,t.getChildrenSize());return Ws(At(e)),e}}function ll(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});const n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;const i=e[t];if("string"==typeof i){const e=nc(i);return n[t]=e,e}return i}function al(e,t,n,r,i){if(0===n.size)return;const o=r.__type,s=r.__key,l=t.get(o);void 0===l&&_e(33,o);const a=l.klass;let c=e.get(a);void 0===c&&(c=new Map,e.set(a,c));const u=c.get(s),d="destroyed"===u&&"created"===i;(void 0===u||d)&&c.set(s,d?"updated":i)}function cl(e,t,n){const r=e.getParent();let i=n,o=e;return null!==r&&(t&&0===n?(i=o.getIndexWithinParent(),o=r):t||n!==o.getChildrenSize()||(i=o.getIndexWithinParent()+1,o=r)),o.getChildAtIndex(t?i-1:i)}function ul(e,t){const n=e.offset;if("element"===e.type)return cl(e.getNode(),t,n);{const r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){const e=t?r.getPreviousSibling():r.getNextSibling();return null===e?cl(r.getParentOrThrow(),t,r.getIndexWithinParent()+(t?0:1)):e}}return null}function dl(e){const t=xl(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function hl(e,t,n){return Fo(e,t,n,e)}function gl(e,t){const n=e._keyToDOMMap.get(t);return void 0===n&&_e(75,t),n}function pl(e){const t=e.assignedSlot||e.parentElement;return Dl(t)?t.host:t}function fl(e){return Ts(e)?e:Ml(e)?e.ownerDocument:null}function ml(e){return wo()._updateTags.has(e)}function yl(e){xo(),wo()._updateTags.add(e)}function bl(e){xo(),wo()._deferred.push(e)}function _l(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function Cl(e){const t=fl(e);return t?t.defaultView:null}function xl(e){const t=e._window;return null===t&&_e(78),t}function Sl(e){return Ko(e)&&e.isInline()||Vo(e)&&e.isInline()}function vl(e){let t=e.getParentOrThrow();for(;null!==t;){if(wl(t))return t;t=t.getParentOrThrow()}return t}function wl(e){return jo(e)||Ko(e)&&e.isShadowRoot()}function kl(e,t=!1){const n=e.constructor.clone(e);return Os(n,null),n.afterCloneFrom(e),t||n.resetOnCopyNodeFrom(e),n}function El(e){const t=wo(),n=e.getType(),r=fs(t,n);void 0===r&&_e(200,e.constructor.name,n);const{replace:i,replaceWithKlass:o}=r;if(null!==i){const t=i(e),r=t.constructor;return null!==o?t instanceof o||_e(201,o.name,o.getType(),r.name,r.getType(),e.constructor.name,n):t instanceof e.constructor&&r!==e.constructor||_e(202,r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&_e(203,e.constructor.name,n,r.name,r.getType()),t}return e}function Tl(e,t){!jo(e.getParent())||Ko(t)||Vo(t)||_e(99)}function Nl(e){const t=Ps(e);return null===t&&_e(63,e),t}function Al(e){return(Vo(e)||Ko(e)&&!e.canBeEmpty())&&!e.isInline()}function Ll(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;const r=e.parentElement;null!==r&&r.removeChild(e)}function Ol(e){return xe?(e||window).getSelection():null}function Il(e){const t=Cl(e);return t?t.getSelection():null}function Rl(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),wl(e)&&_e(102);const r=e=>{const t=e.getParentOrThrow(),i=wl(t),o=e!==n||i?kl(e):e;if(i)return Ko(e)&&Ko(o)||_e(133),e.insertAfter(o),[e,o,o];{const[n,i,s]=r(t),l=e.getNextSiblings();return s.append(o,...l),[n,i,o]}},[i,o]=r(n);return[i,o]}function Fl(e){return Ml(e)&&"A"===e.tagName}function Ml(e){return Pl(e)&&1===e.nodeType}function Pl(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function Dl(e){return Pl(e)&&11===e.nodeType}function Bl(e){const t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function $l(e){const t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function zl(e){if(Vo(e)&&!e.isInline())return!0;if(!Ko(e)||wl(e))return!1;const t=e.getFirstChild(),n=null===t||ci(t)||Ti(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function Hl(){return wo()}function Kl(e=Hl()){return e._config.dom||ss}const Ul=new WeakMap,Wl=new Map;function Vl(e){if(!e._readOnly&&e.isEmpty())return Wl;e._readOnly||_e(192);let t=Ul.get(e);return t||(t=function(e){const t=new Map;for(const[n,r]of e._nodeMap){const e=r.__type;let i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),Ul.set(e,t)),t}function ql(e){const t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function jl(e){return(t=ql(e))[Kr]=!0,t;var t}function Gl(e,t){const n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Zl(e){e.__lexicalUnmanaged=!0}function Yl(e){return!0===e.__lexicalUnmanaged}function Jl(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==Wr[t]}function Xl(e){const t=et in e.prototype?e.prototype[et]():void 0,n=function(e){if(!(e===Wr||e.prototype instanceof Wr)){let t="<unknown>",n="<unknown>";try{t=e.getType()}catch(e){}try{us.version&&(n=JSON.parse(us.version))}catch(e){}_e(290,e.name,t,n)}return e===Wo||e===Ho||e===Wr}(e),r=!n&&Jl(e,"getType")?e.getType():void 0;let i,o=r;if(t)if(r)i=t[r];else for(const[e,n]of Object.entries(t))o=e,i=n;if(!n&&o&&(Jl(e,"getType")||(e.getType=()=>o),Jl(e,"clone")||(e.clone=t=>(hs(t),new e)),Jl(e,"importJSON")||(e.importJSON=i&&i.$importJSON||(t=>(new e).updateFromJSON(t))),!Jl(e,"importDOM")&&i)){const{importDOM:t}=i;t&&(e.importDOM=()=>t)}return{ownNodeConfig:i,ownNodeType:o}}function Ql(e){const t=Hl();return xo(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e)).klass)}const ea=(e,t)=>{let n=e;for(;null!=n&&!jo(n);){if(t(n))return n;n=n.getParent()}return null};function ta(e,t){const n=[];let r=e.__first;for(;null!==r;){const e=null===t?Ps(r):t.get(r);null==e&&_e(174),n.push(r),r=e.__next}return n}const na={next:"previous",previous:"next"};class ra{origin;constructor(e){this.origin=e}[Symbol.iterator](){return Na({hasNext:da,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return ma(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return ma(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){const r=n===this.direction?t:Array.from(t).reverse();let i=this;const o=this.getParentAtCaret(),s=new Map;for(let t=i.getAdjacentCaret();null!==t&&s.size<e;t=t.getAdjacentCaret()){const e=t.origin.getWritable();s.set(e.getKey(),e)}for(const e of r){if(s.size>0){const t=i.getNodeAtCaret();if(t)if(s.delete(t.getKey()),s.delete(e.getKey()),t.is(e)||i.origin.is(e));else{const n=e.getParent();n&&n.is(o)&&e.remove(),t.replace(e)}else null===t&&_e(263,Array.from(s).join(" "))}else i.insert(e);i=ma(e,this.direction)}for(const e of s.values())e.remove();return this}}class ia extends ra{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:Ca(e,this.direction)}getParentCaret(e="root"){return ma(la(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=sa(this.direction);return ma(this.getNodeAtCaret(),e)||Ca(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof ia&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const oa={root:jo,shadowRoot:wl};function sa(e){return na[e]}function la(e,t="root"){return oa[t](e)?null:e}class aa extends ra{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ma(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Ko(this.origin)?Ca(this.origin,this.direction):null}getParentCaret(e="root"){return ma(la(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=sa(this.direction);return ma(this.getNodeAtCaret(),e)||Ca(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof aa&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof aa||e instanceof ca)&&this.direction===e.direction&&this.origin.is(e.origin)}}class ca extends ra{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ya(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return ma(la(this.getParentAtCaret(),e),this.direction)}getFlipped(){return ya(this.origin,sa(this.direction),this.offset)}isSamePointCaret(e){return e instanceof ca&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof aa||e instanceof ca)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return ma(this.origin,this.direction)}}function ua(e){return e instanceof ca}function da(e){return e instanceof aa}function ha(e){return e instanceof ia}const ga={next:class extends ca{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ca{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},pa={next:class extends aa{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends aa{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},fa={next:class extends ia{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends ia{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function ma(e,t){return e?new pa[t](e):null}function ya(e,t,n){return e?new ga[t](e,ba(e,n)):null}function ba(e,t,n="error"){const r=e.getTextContentSize();let i="next"===t?r:"previous"===t?0:t;return(i<0||i>r)&&("clamp"!==n&&Ce(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function _a(e,t){return new wa(e,t)}function Ca(e,t){return Ko(e)?new fa[t](e):null}function xa(e){return e&&e.getChildCaret()||e}function Sa(e){return e&&xa(e.getAdjacentCaret())}class va{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new va(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=e=>{const t=this[e].getLatest();return ua(t)?function(e,t){const{direction:n,origin:r}=e;return _a(e,ba(r,"focus"===t?sa(n):n)-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){const{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[_a(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){const t=ua(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=ua(n),i=t=>t.isSameNodeCaret(n)?null:Sa(t)||t.getParentCaret(e);return Na({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class wa{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return ya(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}}function ka(e){return Ta(e,ma(Ks(),e.direction))}function Ea(e){return Ta(e,e)}function Ta(e,t){return e.direction!==t.direction&&_e(265),new va(e,t,e.direction)}function Na(e){const{initial:t,hasNext:n,step:r,map:i}=e;let o=t;return{[Symbol.iterator](){return this},next(){if(!n(o))return{done:!0,value:void 0};const e={done:!1,value:i(o)};return o=r(o),e}}}function Aa(e,t){const n=Ra(e.origin,t.origin);switch(null===n&&_e(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{const n="text"===e.type,r="text"===t.type;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return La(n)}}function La(e){const{a:t,b:n}=e,r=t.__key,i=n.__key;let o=t,s=n;for(;o&&s;o=o.getNextSibling(),s=s.getNextSibling()){if(o.__key===i)return-1;if(s.__key===r)return 1}return null===o?1:-1}function Oa(e,t){return t.is(e)}function Ia(e){return Ko(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function Ra(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};const n=new Map;for(let[t,r]=Ia(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,i]=Ia(t);r;i=r,r=r.getParent()){const o=n.get(r);if(void 0!==o)return null===o?(Oa(e,r)||_e(276),{commonAncestor:r,type:"ancestor"}):null===i?(Oa(t,r)||_e(277),{commonAncestor:r,type:"descendant"}):((Ko(o)||Oa(e,o))&&(Ko(i)||Oa(t,i))&&r.is(o.getParent())&&r.is(i.getParent())||_e(278),{a:o,b:i,commonAncestor:r,type:"branch"})}return null}function Fa(e,t){const{type:n,key:r,offset:i}=e,o=Nl(e.key);return"text"===n?(Ti(o)||_e(266,o.getType(),r),ya(o,t,i)):(Ko(o)||_e(267,o.getType(),r),ja(o,e.offset,t))}function Ma(e,t){const{origin:n,direction:r}=t,i="next"===r;ua(t)?e.set(n.getKey(),t.offset,"text"):da(t)?Ti(n)?e.set(n.getKey(),ba(n,r),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):(ha(t)&&Ko(n)||_e(268),e.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function Pa(e){const t=to(),n=Di(t)?t:Ji();return Da(n,e),Ws(n),n}function Da(e,t){Ma(e.anchor,t.anchor),Ma(e.focus,t.focus)}function Ba(e){const{anchor:t,focus:n}=e,r=Fa(t,"next"),i=Fa(n,"next"),o=Aa(r,i)<=0?"next":"previous";return Ta(Va(r,o),Va(i,o))}function $a(e){const{direction:t,origin:n}=e,r=ma(n,sa(t)).getNodeAtCaret();return r?ma(r,t):Ca(n.getParentOrThrow(),t)}function za(e,t="root"){const n=[e];for(let r=ha(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;r=r.getParentCaret(t))n.push($a(r));return n}function Ha(e){return!!e&&e.origin.isAttached()}function Ka(e,t="removeEmptySlices"){if(e.isCollapsed())return e;const n="root",r="next";let i=t;const o=qa(e,r),s=za(o.anchor,n),l=za(o.focus.getFlipped(),n),a=new Set,c=[];for(const e of o.iterNodeCarets(n))if(ha(e))a.add(e.origin.getKey());else if(da(e)){const{origin:t}=e;Ko(t)&&!a.has(t.getKey())||c.push(t)}for(const e of c)e.remove();for(const e of o.getTextSlices()){if(!e)continue;const{origin:t}=e.caret,n=t.getTextContentSize(),o=$a(ma(t,r)),a=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===i||"token"===a&&0!==e.distance)o.remove();else if(0!==e.distance){i="removeEmptySlices";let t=e.removeTextSlice();const n=e.caret.origin;if("segmented"===a){const e=t.origin,n=Ei(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());o.replaceOrInsert(n),t=ya(n,r,t.offset)}n.is(s[0].origin)&&(s[0]=t),n.is(l[0].origin)&&(l[0]=t.getFlipped())}}let u,d;for(const e of s)if(Ha(e)){u=Ua(e);break}for(const e of l)if(Ha(e)){d=Ua(e);break}const h=function(e,t,n){if(!e||!t)return null;const r=e.getParentAtCaret(),i=t.getParentAtCaret();if(!r||!i)return null;const o=r.getParents().reverse();o.push(r);const s=i.getParents().reverse();s.push(i);const l=Math.min(o.length,s.length);let a;for(a=0;a<l&&o[a]===s[a];a++);const c=(e,t)=>{let n;for(let r=a;r<e.length;r++){const i=e[r];if(wl(i))return;!n&&t(i)&&(n=i)}return n},u=c(o,zl),d=u&&c(s,(e=>n.has(e.getKey())&&zl(e)));return u&&d?[u,d]:null}(u,d,a);if(h){const[e,t]=h;Ca(e,"previous").splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){const e=n;n=n.getParent(),e.remove(!0)}}const g=[u,d,...s,...l].find(Ha);if(g)return Ea(Va(Ua(g),e.direction));_e(269,JSON.stringify(s.map((e=>e.origin.__key))))}function Ua(e){const t=function(e){let t=e;for(;ha(t);){const e=Sa(t);if(!ha(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(Ti(t.origin))return ua(t)?t:ya(t.origin,n,n);const r=t.getAdjacentCaret();return da(r)&&Ti(r.origin)?ya(r.origin,n,sa(n)):t}function Wa(e){return ua(e)&&e.offset!==ba(e.origin,e.direction)}function Va(e,t){return e.direction===t?e:e.getFlipped()}function qa(e,t){return e.direction===t?e:Ta(Va(e.focus,t),Va(e.anchor,t))}function ja(e,t,n){let r=Ca(e,"next");for(let e=0;e<t;e++){const e=r.getAdjacentCaret();if(null===e)break;r=e}return Va(r,n)}function Ga(e,t="root"){let n=0,r=e,i=Sa(r);for(;null===i;){if(n--,i=r.getParentCaret(t),!i)return null;r=i,i=Sa(r)}return i&&[i,n]}function Za(e){const{origin:t,offset:n,direction:r}=e;if(n===ba(t,r))return e.getSiblingCaret();if(n===ba(t,sa(r)))return $a(e.getSiblingCaret());const[i]=t.splitText(n);return Ti(i)||_e(281),Va(ma(i,"next"),r)}function Ya(e,t){return!0}function Ja(e,{$copyElementNode:t=kl,$splitTextPointCaretNext:n=Za,rootMode:r="shadowRoot",$shouldSplit:i=Ya,removeEmptyDestination:o=!1}={}){if(ua(e))return n(e);const s=e.getParentCaret(r);if(s){const{origin:n}=s;if(ha(e)){const e=$a(s);if(o&&n.isEmpty())return n.remove(),e;if(!n.canBeEmpty()||!i(n,"first"))return e}const r=function(e){const t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||!o&&n.canBeEmpty()&&i(n,"last"))&&s.insert(t(n).splice(0,0,r))}return s}function Xa(e){return e}function Qa(...e){return e}function ec(e){return e}function tc(e,t){if(!t||e===t)return e;for(const n in t)if(e[n]!==t[n])return{...e,...t};return e}function nc(...e){const t=[];for(const n of e)if(n&&"string"==typeof n)for(const[e]of n.matchAll(/\S+/g))t.push(e);return t}function rc(e,...t){const n=nc(...t);n.length>0&&e.classList.add(...n)}function ic(e,...t){const n=nc(...t);n.length>0&&e.classList.remove(...n)}function oc(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}var sc=Object.freeze({__proto__:null,$addUpdateTag:yl,$applyNodeReplacement:El,$caretFromPoint:Fa,$caretRangeFromSelection:Ba,$cloneWithProperties:ql,$cloneWithPropertiesEphemeral:jl,$comparePointCaretNext:Aa,$copyNode:kl,$create:Ql,$createChildrenArray:ta,$createLineBreakNode:ai,$createNodeSelection:Xi,$createParagraphNode:ns,$createPoint:Ri,$createRangeSelection:Ji,$createRangeSelectionFromDom:Qi,$createTabNode:Li,$createTextNode:Ei,$extendCaretToRange:ka,$findMatchingParent:ea,$getAdjacentChildCaret:Sa,$getAdjacentNode:ul,$getAdjacentSiblingOrParentSiblingCaret:Ga,$getCaretInDirection:Va,$getCaretRange:Ta,$getCaretRangeInDirection:qa,$getCharacterOffsets:Hi,$getChildCaret:Ca,$getChildCaretAtIndex:ja,$getChildCaretOrSelf:xa,$getCollapsedCaretRange:Ea,$getCommonAncestor:Ra,$getCommonAncestorResultBranchOrder:La,$getEditor:Hl,$getEditorDOMRenderConfig:Kl,$getNearestNodeFromDOMNode:$s,$getNearestRootOrShadowRoot:vl,$getNodeByKey:Ps,$getNodeByKeyOrThrow:Nl,$getNodeFromDOMNode:Ds,$getPreviousSelection:no,$getRoot:Ks,$getSelection:to,$getSiblingCaret:ma,$getState:ft,$getStateChange:function(e,t,n){const r=ft(e,n,"direct"),i=ft(t,n,"direct");return n.isEqual(r,i)?null:[r,i]},$getTextContent:function(){const e=to();return null===e?"":e.getTextContent()},$getTextNodeOffset:ba,$getTextPointCaret:ya,$getTextPointCaretSlice:_a,$getWritableNodeState:_t,$hasAncestor:_l,$hasUpdateTag:ml,$insertNodes:co,$isBlockElementNode:Zi,$isChildCaret:ha,$isDecoratorNode:Vo,$isEditorState:Jo,$isElementNode:Ko,$isExtendableTextPointCaret:Wa,$isInlineElementOrDecoratorNode:Sl,$isLeafNode:Ls,$isLexicalNode:Vr,$isLineBreakNode:ci,$isNodeCaret:function(e){return e instanceof ra},$isNodeSelection:$i,$isParagraphNode:rs,$isRangeSelection:Di,$isRootNode:jo,$isRootOrShadowRoot:wl,$isSiblingCaret:da,$isTabNode:Oi,$isTextNode:Ti,$isTextPointCaret:ua,$isTextPointCaretSlice:function(e){return e instanceof wa},$isTokenOrSegmented:ks,$isTokenOrTab:ws,$nodesOfType:function(e){const t=e.getType(),n=vo();if(n._readOnly){const e=Vl(n).get(t);return e?Array.from(e.values()):[]}const r=n._nodeMap,i=[];for(const[,n]of r)n instanceof e&&n.__type===t&&n.isAttached()&&i.push(n);return i},$normalizeCaret:Ua,$normalizeSelection__EXPERIMENTAL:At,$onUpdate:bl,$parseSerializedNode:Ao,$removeTextFromCaretRange:Ka,$rewindSiblingCaret:$a,$selectAll:sl,$setCompositionKey:Fs,$setPointFromCaret:Ma,$setSelection:Ws,$setSelectionFromCaretRange:Pa,$setState:mt,$splitAtPointCaretNext:Ja,$splitNode:Rl,$updateRangeSelectionFromCaretRange:Da,ArtificialNode__DO_NOT_USE:Qo,BEFORE_INPUT_COMMAND:pn,BLUR_COMMAND:ir,CAN_REDO_COMMAND:tr,CAN_UNDO_COMMAND:nr,CLEAR_EDITOR_COMMAND:Qn,CLEAR_HISTORY_COMMAND:er,CLICK_COMMAND:gn,COLLABORATION_TAG:Yr,COMMAND_PRIORITY_BEFORE_CRITICAL:-4,COMMAND_PRIORITY_BEFORE_EDITOR:-8,COMMAND_PRIORITY_BEFORE_HIGH:-5,COMMAND_PRIORITY_BEFORE_LOW:-7,COMMAND_PRIORITY_BEFORE_NORMAL:-6,COMMAND_PRIORITY_CRITICAL:4,COMMAND_PRIORITY_EDITOR:0,COMMAND_PRIORITY_HIGH:3,COMMAND_PRIORITY_LOW:1,COMMAND_PRIORITY_NORMAL:2,COMPOSITION_END_COMMAND:yn,COMPOSITION_END_TAG:ti,COMPOSITION_START_COMMAND:mn,COMPOSITION_START_TAG:ei,CONTROLLED_TEXT_INSERTION_COMMAND:xn,COPY_COMMAND:Yn,CUT_COMMAND:Jn,DEFAULT_EDITOR_DOM_CONFIG:ss,DELETE_CHARACTER_COMMAND:bn,DELETE_LINE_COMMAND:kn,DELETE_WORD_COMMAND:wn,DRAGEND_COMMAND:Zn,DRAGOVER_COMMAND:Gn,DRAGSTART_COMMAND:jn,DROP_COMMAND:Vn,DecoratorNode:Wo,ElementNode:Ho,FOCUS_COMMAND:rr,FORMAT_ELEMENT_COMMAND:qn,FORMAT_TEXT_COMMAND:En,HISTORIC_TAG:qr,HISTORY_MERGE_TAG:Gr,HISTORY_PUSH_TAG:jr,INDENT_CONTENT_COMMAND:Un,INPUT_COMMAND:fn,INSERT_LINE_BREAK_COMMAND:_n,INSERT_PARAGRAPH_COMMAND:Cn,INSERT_TAB_COMMAND:Kn,INTERNAL_$isBlock:zl,IS_ALL_FORMATTING:2047,IS_BOLD:1,IS_CODE:16,IS_HIGHLIGHT:128,IS_ITALIC:2,IS_STRIKETHROUGH:4,IS_SUBSCRIPT:32,IS_SUPERSCRIPT:64,IS_UNDERLINE:8,KEY_ARROW_DOWN_COMMAND:Mn,KEY_ARROW_LEFT_COMMAND:In,KEY_ARROW_RIGHT_COMMAND:Ln,KEY_ARROW_UP_COMMAND:Fn,KEY_BACKSPACE_COMMAND:Bn,KEY_DELETE_COMMAND:zn,KEY_DOWN_COMMAND:An,KEY_ENTER_COMMAND:Pn,KEY_ESCAPE_COMMAND:$n,KEY_MODIFIER_COMMAND:or,KEY_SPACE_COMMAND:Dn,KEY_TAB_COMMAND:Hn,LineBreakNode:si,MOVE_TO_END:On,MOVE_TO_START:Rn,NODE_STATE_KEY:"$",OUTDENT_CONTENT_COMMAND:Wn,PASTE_COMMAND:Sn,PASTE_TAG:Zr,ParagraphNode:es,REDO_COMMAND:Nn,REMOVE_TEXT_COMMAND:vn,RootNode:qo,SELECTION_CHANGE_COMMAND:dn,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:hn,SELECT_ALL_COMMAND:Xn,SKIP_COLLAB_TAG:"skip-collab",SKIP_DOM_SELECTION_TAG:Xr,SKIP_SCROLL_INTO_VIEW_TAG:Jr,SKIP_SELECTION_FOCUS_TAG:Qr,TEXT_TYPE_TO_FORMAT:Ge,TabNode:Ai,TextNode:yi,UNDO_COMMAND:Tn,addClassNamesToElement:rc,buildImportMap:Hr,configExtension:Qa,createCommand:un,createEditor:ls,createSharedNodeState:yt,createState:pt,declarePeerDependency:function(e,t){return[e,t]},defineExtension:Xa,flipDirection:sa,getDOMOwnerDocument:fl,getDOMSelection:Ol,getDOMSelectionFromTarget:Il,getDOMTextNode:Ns,getEditorPropertyFromDOMNode:Ss,getNearestEditorFromDOMNode:xs,getRegisteredNode:fs,getRegisteredNodeOrThrow:ps,getStaticNodeConfig:Xl,getStyleObjectFromCSS:ri,getTextDirection:vs,getTransformSetFromKlass:os,isBlockDomNode:$l,isCurrentlyReadOnlyMode:Co,isDOMDocumentNode:Ts,isDOMNode:Pl,isDOMTextNode:Es,isDOMUnmanaged:Yl,isDocumentFragment:Dl,isExactShortcutMatch:tl,isHTMLAnchorElement:Fl,isHTMLElement:Ml,isInlineDomNode:Bl,isLexicalEditor:Cs,isModifierMatch:el,isSelectionCapturedInDecoratorInput:bs,isSelectionWithinEditor:_s,makeStepwiseIterator:Na,mergeRegister:oc,normalizeClassNames:nc,removeClassNamesFromElement:ic,removeFromParent:Is,resetRandomKey:function(){gs=1},safeCast:ec,setDOMStyleFromCSS:oi,setDOMStyleObject:function(e,t){for(const n in t){const r=t[n];null==r?e.removeProperty(n):ii(e,n,r)}},setDOMUnmanaged:Zl,setNodeIndentFromDOM:Gl,shallowMergeConfig:tc,toggleTextFormatType:As});function lc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function ac(e){let t="";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}function cc(e){const t=Hl().getElementByKey(e.getKey());if(null===t)return null;const n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function uc(e){return cc(jo(e)?e:e.getParentOrThrow())}function dc(e){const t=uc(e);return null!==t&&"rtl"===t.direction}function hc(e,t,n="self"){const r=e.getStartEndPoints();if(t.isSelected(e)&&!ks(t)&&null!==r){const[i,o]=r,s=e.isBackward(),l=i.getNode(),a=o.getNode(),c=t.is(l),u=t.is(a);if(c||u){const[r,i]=Hi(e),o=l.is(a),c=t.is(s?a:l),u=t.is(s?l:a);let d,h=0;o?(h=r>i?i:r,d=r>i?r:i):c?(h=s?i:r,d=void 0):u&&(h=0,d=s?r:i);const g=t.__text.slice(h,d);g!==t.__text&&("clone"===n&&(t=jl(t)),t.__text=g)}}return t}function gc(e,t){(Di(e)?e.isCollapsed():Ti(e)||Ko(e))||lc(280);const n=ri(Di(e)?e.style:Ti(e)?e.getStyle():e.getTextStyle()),r=ac(Object.entries(t).reduce(((t,[r,i])=>("function"==typeof i?t[r]=i(n[r],e):null===i?delete t[r]:t[r]=i,t)),{...n}));Di(e)||Ti(e)?e.setStyle(r):e.setTextStyle(r)}function pc(e){const t=to();if(!t)return;const n=new Map,r=e=>n.get(e.getKey())||[0,e.getTextContentSize()];if(Di(t))for(const e of Ba(t).getTextSlices())e&&n.set(e.caret.origin.getKey(),e.getSliceIndices());const i=t.getNodes();for(const t of i){if(!Ti(t)||!t.canHaveFormat())continue;const[n,i]=r(t);i!==n&&(ks(t)||0===n&&i===t.getTextContentSize()?e(t):e(t.splitText(n,i)[0===n?0:1]))}Di(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&fc(t)}function fc(e){if(e.isBackward()){const{anchor:t,focus:n}=e,{key:r,offset:i,type:o}=t;t.set(n.key,n.offset,n.type),n.set(r,i,o)}}function mc(e,t){const n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function yc(e,t,n=mc){if(null===e)return;const r=e.getStartEndPoints(),i=new Map;let o=null;if(r){const[e,t]=r;o=Ji(),o.anchor.set(e.key,e.offset,e.type),o.focus.set(t.key,t.offset,t.type);const n=ea(e.getNode(),zl),s=ea(t.getNode(),zl);Ko(n)&&i.set(n.getKey(),n),Ko(s)&&i.set(s.getKey(),s)}for(const t of e.getNodes())if(Ko(t)&&zl(t))i.set(t.getKey(),t);else if(null===r){const e=ea(t,zl);Ko(e)&&i.set(e.getKey(),e)}for(const[e,r]of i){const i=t();n(r,i),r.replace(i,!0),o&&(e===o.anchor.key&&o.anchor.set(i.getKey(),o.anchor.offset,o.anchor.type),e===o.focus.key&&o.focus.set(i.getKey(),o.focus.offset,o.focus.type))}o&&e.is(to())&&Ws(o)}function bc(e){const t=_c(e);return null!==t&&"vertical-rl"===t.writingMode}function _c(e){const t=e.anchor.getNode();return Ko(t)?cc(t):uc(t)}function Cc(e,t){let n=bc(e)?!t:t;xc(e)&&(n=!n);const r=Fa(e.focus,n?"previous":"next");if(Wa(r))return!1;for(const e of ka(r)){if(ha(e))return!e.origin.isInline();if(!Ko(e.origin)){if(Vo(e.origin))return!0;break}}return!1}function xc(e){const t=_c(e);return null!==t&&"rtl"===t.direction}function Sc(e,t,n){const r=xc(e);let i;i=bc(e)||r?!n:n,function(e,t,n,r){e.modify(t?"extend":"move",n,r)}(e,t,i,"character")}function vc(e,t,n){const r=ri(e.getStyle());return null!==r&&r[t]||n}function wc(e,t,n=""){let r=null;const i=e.getNodes(),o=e.anchor,s=e.focus,l=e.isBackward(),a=l?s.getNode():o.getNode(),c=l?o.getNode():s.getNode(),u=l?s.offset:o.offset,d=l?o.offset:s.offset;if(Di(e)&&e.isCollapsed()&&""!==e.style){const n=ri(e.style);if(null!==n&&t in n)return n[t]}for(let e=0;e<i.length;e++){const o=i[e];if((0!==e||!o.is(a)||!Ti(o)||u!==o.getTextContentSize())&&(0===e||!o.is(c)||0!==d)&&Ti(o)){const e=vc(o,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}const kc=ri,Ec=["class","contenteditable","href","src","style","title"],Tc=["color","background-color"];function Nc(){const e=document.head.querySelector("meta[name=csp-nonce]");return e?.content}function Ac(e,t,n,r){e.addEventListener(t,n,r);const i=new WeakRef(e),o=new WeakRef(n);return function(){const e=o.deref();e&&i.deref()?.removeEventListener(t,e,r)}}be.addHook("uponSanitizeAttribute",(function(e,t){if("style"===t.attrName&&t.attrValue){const e={...kc(t.attrValue)},n={};for(const t in e)Tc.includes(t)&&(n[t]=e[t]);Object.keys(n).length?t.attrValue=ac(n):t.keepAttr=!1}})),be.addHook("uponSanitizeElement",((e,t)=>{"strong"!==t.tagName&&"em"!==t.tagName||e.removeAttribute("class")}));class Lc{#e=[];track(...e){this.#e.push(...e)}dispose(){for(;this.#e.length;){this.#e.pop()()}}}function Oc(e){return t=>{const n=e(t);return n&&t.preventDefault(),n}}function Ic(e,t,n=""){const r=document.createElement(e);for(const[e,n]of Object.entries(t||{}))"dataset"===e?Object.entries(n).forEach((([e,t])=>r.dataset[e]=t)):e in r?r[e]=n:null!=n&&r.setAttribute(e,n);return n&&(r.innerHTML=n),r}function Rc(e){return(new DOMParser).parseFromString(e,"text/html")}function Fc(e){return e.startsWith("image/")&&!e.includes("svg")}function Mc(e,t,n=null,r=!1){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n,cancelable:r}))}function Pc(e){return`${e}-${Math.random().toString(36).slice(2,10)}`}function Dc(e=""){return Rc(e).body.textContent.trim()}function Bc(e){return e&&!e.disabled&&function(e,t){return e.checkVisibility?e.checkVisibility(t):Boolean(e.offsetParent)}(e)}function $c(e,t){const n=document.activeElement;if(e.includes(n)){new zc(e,t.key).selectNext(n)&&t.preventDefault()}}class zc{constructor(e,t){this.elements=e,this.key=t}selectNext(e){const t=this.#t(e);if(t){const e=this.elements.filter((e=>e!==t));return this.#n(e),this.#r(t),!0}return!1}#t(e){switch(this.key){case"ArrowRight":case"ArrowDown":return this.#i(e);case"ArrowLeft":case"ArrowUp":return this.#o(e);case"Home":return this.#s();case"End":return this.#l()}}#s(e=this.elements){return e.find(Bc)}#l(e=this.elements){return e.findLast(Bc)}#i(e){const t=this.elements.slice(this.#a(e)+1);return this.#s(t)}#o(e){const t=this.elements.slice(0,this.#a(e));return this.#l(t)}#a(e){return this.elements.indexOf(e)}#r(e){Bc(e)&&(e.tabIndex=0,e.focus())}#n(e){e.forEach((e=>e.tabIndex=-1))}}var Hc={bold:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.05273 1.88232C10.6866 1.88237 12.0033 2.20353 12.9529 2.89673L13.1272 3.0293C13.974 3.70864 14.4008 4.63245 14.4009 5.76562C14.4008 6.49354 14.2316 7.15281 13.8845 7.73145C13.6683 8.09188 13.3997 8.40162 13.0818 8.66016C13.5902 8.92606 14.0196 9.28599 14.3635 9.74121C14.8586 10.3834 15.0945 11.1743 15.0945 12.0879C15.0944 13.3698 14.5922 14.3931 13.5879 15.1106L13.5857 15.1128C12.5967 15.805 11.196 16.125 9.43799 16.125H3.10547V1.88232L9.05273 1.88232ZM6.36108 13.4084H9.28418C10.224 13.4084 10.8634 13.2491 11.2581 12.9851C11.6259 12.7389 11.8198 12.3768 11.8198 11.8367C11.8197 11.2968 11.6259 10.9351 11.2581 10.689C10.8634 10.425 10.2241 10.2649 9.28418 10.2649H6.36108V13.4084ZM6.36108 7.56812H8.78247C9.5163 7.56809 10.0547 7.45371 10.429 7.25757L10.5791 7.16895C10.9438 6.92178 11.1255 6.57934 11.1255 6.09302C11.1254 5.59017 10.9414 5.25227 10.5835 5.02002L10.5784 5.01636L10.5732 5.01343C10.1994 4.75387 9.61878 4.59818 8.78247 4.59814H6.36108V7.56812Z"/>\n </svg>',italic:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M14.1379 3.91187L14.1086 4.06421H11.4668L9.49805 13.9431H12.0981L11.7473 15.7852L11.7188 15.9375H4.16675L4.51758 14.0955L4.54614 13.9431H7.18799L9.17505 4.06421H6.55664L6.90747 2.22217L6.93677 2.06982H14.4888L14.1379 3.91187Z"/>\n </svg>',strikethrough:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M14.3723 11.8015C14.3771 11.8858 14.3811 11.9756 14.3811 12.0681C14.3811 12.811 14.1777 13.4959 13.7725 14.1174L13.7717 14.1189C13.3624 14.7329 12.7463 15.2162 11.9377 15.5742L11.9348 15.5757C11.1214 15.9223 10.1306 16.092 8.96997 16.092C7.9356 16.092 6.93308 15.9348 5.96338 15.6204L5.96045 15.6189C5.00593 15.292 4.24112 14.8699 3.67676 14.3459L3.57568 14.2522L3.63501 14.1277L4.45605 12.397L4.64282 12.5654C5.13492 13.0083 5.76733 13.3759 6.54492 13.6648C7.33475 13.9406 8.14322 14.0786 8.96997 14.0786C10.0731 14.0786 10.8638 13.8932 11.3708 13.5513C11.8757 13.1982 12.1172 12.7464 12.1172 12.1838C12.1172 12.0662 12.1049 11.9556 12.0828 11.8513L12.0344 11.625H14.3621L14.3723 11.8015Z"/>\n <path d="M9.2981 1.91602C10.111 1.91604 10.9109 2.02122 11.6975 2.23096C12.4855 2.44111 13.1683 2.74431 13.7417 3.14429L13.8655 3.23071L13.8083 3.36987L13.1726 4.91235L13.0869 5.1189L12.8987 4.99878C12.3487 4.64881 11.761 4.38633 11.1365 4.21143L11.1328 4.20996C10.585 4.04564 10.0484 3.95419 9.52295 3.93384L9.2981 3.92944C8.22329 3.92944 7.44693 4.12611 6.94043 4.49121C6.44619 4.85665 6.20874 5.31616 6.20874 5.88135L6.21533 6.03296C6.24495 6.37662 6.37751 6.65526 6.61011 6.87964L6.72144 6.97632C6.98746 7.19529 7.30625 7.37584 7.68018 7.51538L8.05151 7.63184C8.45325 7.75061 8.94669 7.87679 9.53247 8.01123L9.53467 8.01196C10.1213 8.15305 10.6426 8.29569 11.0991 8.4375H15C15.5178 8.4375 15.9375 8.85723 15.9375 9.375C15.9375 9.89277 15.5178 10.3125 15 10.3125H3C2.48223 10.3125 2.0625 9.89277 2.0625 9.375C2.0625 8.85723 2.48223 8.4375 3 8.4375H4.93726C4.83783 8.34526 4.74036 8.24896 4.64795 8.146L4.64502 8.14233C4.1721 7.58596 3.94482 6.85113 3.94482 5.95825C3.94483 5.20441 4.14059 4.51965 4.53369 3.90967L4.53516 3.90747C4.94397 3.29427 5.55262 2.81114 6.34863 2.45288C7.15081 2.0919 8.13683 1.91602 9.2981 1.91602Z"/>\n </svg>',underline:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M14 14C14.5523 14 15 14.4477 15 15C15 15.5523 14.5523 16 14 16H4C3.44772 16 3 15.5523 3 15C3 14.4477 3.44772 14 4 14H14Z"/>\n <path d="M12.625 1.59375C13.25 1.59375 13.625 1.97656 13.625 2.64062V9.02344C13.625 11.4844 11.8516 13.1875 8.99219 13.1875C6.14062 13.1875 4.35938 11.4844 4.35938 9.02344V2.64062C4.35938 1.97656 4.74219 1.59375 5.36719 1.59375C6 1.59375 6.375 1.97656 6.375 2.64062V8.84375C6.375 10.3828 7.32031 11.4297 8.99219 11.4297C10.6641 11.4297 11.6172 10.3828 11.6172 8.84375V2.64062C11.6172 1.97656 11.9922 1.59375 12.625 1.59375Z"/>\n </svg>',heading:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M11.5 2C12.0523 2 12.5 2.44772 12.5 3V3.5C12.5 4.05228 12.0523 4.5 11.5 4.5H8V15C8 15.5523 7.55228 16 7 16H6.5C5.94772 16 5.5 15.5523 5.5 15V4.5H2C1.44772 4.5 1 4.05228 1 3.5V3C1 2.44772 1.44772 2 2 2H11.5ZM16 7C16.5523 7 17 7.44772 17 8V8.5C17 9.05228 16.5523 9.5 16 9.5H15V15C15 15.5523 14.5523 16 14 16H13.5C12.9477 16 12.5 15.5523 12.5 15V9.5H11.5C10.9477 9.5 10.5 9.05228 10.5 8.5V8C10.5 7.44772 10.9477 7 11.5 7H16Z"/>\n </svg>',h1:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.12207 4.30078C8.84668 4.30078 9.25684 4.74512 9.25684 5.51758V12.5518C9.25677 13.3241 8.84662 13.7686 8.12207 13.7686C7.39752 13.7686 6.9942 13.3309 6.99414 12.5518V9.87207H3.56934V12.5518C3.56927 13.3241 3.15912 13.7686 2.43457 13.7686C1.71002 13.7686 1.3067 13.3309 1.30664 12.5518V5.51758C1.30664 4.73828 1.70996 4.30078 2.43457 4.30078C3.15918 4.30078 3.56934 4.74512 3.56934 5.51758V8.07422H6.99414V5.51758C6.99414 4.73828 7.39746 4.30078 8.12207 4.30078ZM13.8418 4.125H14.8271C15.543 4.125 16.0449 4.56934 16.0449 5.23828V12.7207C16.0449 13.4111 15.6348 13.8486 14.9854 13.8486C14.336 13.8486 13.9395 13.418 13.9395 12.7207V6.11133H13.8887L12.9541 6.74219C12.7354 6.88574 12.5303 6.95312 12.3047 6.95312C11.7646 6.95312 11.3955 6.58398 11.3955 6.06445C11.3955 5.69531 11.5801 5.42578 11.9766 5.15625L13.4023 4.32031C13.5459 4.23633 13.6826 4.17578 13.8418 4.125Z"/>\n </svg>',h2:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.12207 4.30078C8.84668 4.30078 9.25684 4.74512 9.25684 5.51758V12.5518C9.25677 13.3241 8.84662 13.7686 8.12207 13.7686C7.39752 13.7686 6.9942 13.3309 6.99414 12.5518V9.87207H3.56934V12.5518C3.56927 13.3241 3.15912 13.7686 2.43457 13.7686C1.71002 13.7686 1.3067 13.3309 1.30664 12.5518V5.51758C1.30664 4.73828 1.70996 4.30078 2.43457 4.30078C3.15918 4.30078 3.56934 4.74512 3.56934 5.51758V8.07422H6.99414V5.51758C6.99414 4.73828 7.39746 4.30078 8.12207 4.30078ZM13.6445 4.19824C15.5244 4.19824 16.8984 5.34668 16.8984 6.91211C16.8984 7.8759 16.4335 8.7237 15.292 9.84473L13.3438 11.8135V11.9092H16.1875C16.8232 11.9092 17.2197 12.251 17.2197 12.8115C17.2196 13.3651 16.83 13.7002 16.1875 13.7002H11.5117C10.8487 13.7002 10.4112 13.3241 10.4111 12.75C10.4111 12.3399 10.6368 11.9843 11.3203 11.3145L13.6855 8.88086C14.4169 8.13583 14.7245 7.64349 14.7246 7.12402C14.7246 6.4541 14.2393 6.00293 13.5215 6.00293C12.9404 6.00293 12.5166 6.29688 12.2158 6.90527C11.9151 7.37002 11.6552 7.54785 11.2588 7.54785C10.7188 7.54785 10.3429 7.17861 10.3428 6.65918C10.3428 5.3877 11.7783 4.19824 13.6445 4.19824Z"/>\n </svg>',h3:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.5967 4.19824C15.5928 4.19824 16.9873 5.23047 16.9873 6.7002C16.9872 7.705 16.2421 8.60059 15.2988 8.7168V8.86719C16.4199 8.94923 17.2607 9.89942 17.2607 11.0889C17.2606 12.7362 15.7362 13.9053 13.583 13.9053C11.6827 13.9053 10.1925 12.873 10.1924 11.7041C10.1924 11.1846 10.5547 10.8154 11.0537 10.8154C11.3818 10.8154 11.6553 10.9727 11.9629 11.3555C12.3799 11.9159 12.92 12.2031 13.583 12.2031C14.4853 12.2031 15.0731 11.7313 15.0732 11C15.0732 10.2754 14.4785 9.7832 13.5898 9.7832H13.0361C12.5645 9.7832 12.2159 9.4208 12.2158 8.92188C12.2158 8.44336 12.5576 8.07422 13.0361 8.07422H13.5693C14.3075 8.07422 14.8544 7.60928 14.8545 6.97363C14.8545 6.33789 14.3213 5.90039 13.5557 5.90039C12.9678 5.90039 12.5029 6.16016 12.0859 6.71387C11.8399 7.03508 11.5527 7.17871 11.1973 7.17871C10.671 7.17871 10.295 6.82314 10.2949 6.31738C10.2949 5.18945 11.751 4.19824 13.5967 4.19824ZM8.0332 4.30078C8.75781 4.30078 9.16797 4.74512 9.16797 5.51758V12.5518C9.1679 13.3241 8.75776 13.7686 8.0332 13.7686C7.30865 13.7686 6.90534 13.3309 6.90527 12.5518V9.87207H3.48047V12.5518C3.4804 13.3241 3.07026 13.7686 2.3457 13.7686C1.62115 13.7686 1.21784 13.3309 1.21777 12.5518V5.51758C1.21777 4.73828 1.62109 4.30078 2.3457 4.30078C3.07031 4.30078 3.48047 4.74512 3.48047 5.51758V8.07422H6.90527V5.51758C6.90527 4.73828 7.30859 4.30078 8.0332 4.30078Z"/>\n </svg>',h4:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M14.6357 4.22559C15.7432 4.22559 16.4336 4.80664 16.4336 5.73633V10.3164H16.7275C17.2881 10.3164 17.6436 10.6787 17.6436 11.2256C17.6435 11.7655 17.3017 12.1006 16.7275 12.1006H16.4336V12.6611C16.4335 13.3515 16.0234 13.7891 15.374 13.7891C14.7247 13.7891 14.3282 13.3583 14.3281 12.6611V12.1006H11.04C10.2335 12.1006 9.76863 11.6766 9.76855 10.918C9.76855 10.5762 9.85064 10.3026 10.1104 9.74219C10.7666 8.42289 11.5733 7.0146 12.5713 5.54492C13.2549 4.56738 13.7812 4.22559 14.6357 4.22559ZM7.88965 4.30078C8.61426 4.30078 9.02441 4.74512 9.02441 5.51758V12.5518C9.02435 13.3241 8.6142 13.7686 7.88965 13.7686C7.1651 13.7686 6.76178 13.3309 6.76172 12.5518V9.87207H3.33691V12.5518C3.33685 13.3241 2.9267 13.7686 2.20215 13.7686C1.4776 13.7686 1.07428 13.3309 1.07422 12.5518V5.51758C1.07422 4.73828 1.47754 4.30078 2.20215 4.30078C2.92676 4.30078 3.33691 4.74512 3.33691 5.51758V8.07422H6.76172V5.51758C6.76172 4.73828 7.16504 4.30078 7.88965 4.30078ZM14.2188 6.07812C13.6035 7.02841 12.2158 9.48929 11.7988 10.2686V10.3164H14.3281V6.07812H14.2188Z"/>\n </svg>',h5:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.12207 4.30078C8.84668 4.30078 9.25684 4.74512 9.25684 5.51758V12.5518C9.25677 13.3241 8.84662 13.7686 8.12207 13.7686C7.39752 13.7686 6.9942 13.3309 6.99414 12.5518V9.87207H3.56934V12.5518C3.56927 13.3241 3.15912 13.7686 2.43457 13.7686C1.71002 13.7686 1.3067 13.3309 1.30664 12.5518V5.51758C1.30664 4.73828 1.70996 4.30078 2.43457 4.30078C3.15918 4.30078 3.56934 4.74512 3.56934 5.51758V8.07422H6.99414V5.51758C6.99414 4.73828 7.39746 4.30078 8.12207 4.30078ZM16.1191 4.30078C16.6934 4.30078 17.0762 4.63672 17.0762 5.16602C17.0762 5.69531 16.6934 6.03125 16.1191 6.03125H13.3457L12.9219 8.25586H13.0176C13.248 8.03711 13.6855 7.84375 14.2871 7.84375C15.9277 7.84375 17.1445 9.07422 17.1445 10.7832C17.1445 12.5605 15.8184 13.9053 13.7695 13.9053C11.9512 13.9053 10.6934 12.9277 10.5566 11.7178C10.5566 11.2021 10.9121 10.8193 11.4277 10.8193C11.8379 10.8193 12.1328 11.0244 12.3516 11.4893C12.625 12.0361 13.1133 12.2549 13.7285 12.2549C14.5488 12.2549 15.1367 11.6533 15.1367 10.7695C15.1367 9.92188 14.5625 9.31348 13.7559 9.31348C13.1953 9.31348 12.7578 9.56055 12.4629 10.0254C12.2168 10.3887 11.9355 10.5527 11.5527 10.5527C10.9648 10.5527 10.5684 10.1699 10.5684 9.55469C10.5684 9.42773 10.582 9.30762 10.6094 9.17383L11.2383 5.55273C11.3516 4.88379 11.7207 4.30078 12.6797 4.30078H16.1191Z"/>\n </svg>',h6:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.12207 4.30078C8.84668 4.30078 9.25684 4.74512 9.25684 5.51758V12.5518C9.25677 13.3241 8.84662 13.7686 8.12207 13.7686C7.39752 13.7686 6.9942 13.3309 6.99414 12.5518V9.87207H3.56934V12.5518C3.56927 13.3241 3.15912 13.7686 2.43457 13.7686C1.71002 13.7686 1.3067 13.3309 1.30664 12.5518V5.51758C1.30664 4.73828 1.70996 4.30078 2.43457 4.30078C3.15918 4.30078 3.56934 4.74512 3.56934 5.51758V8.07422H6.99414V5.51758C6.99414 4.73828 7.39746 4.30078 8.12207 4.30078ZM13.6719 13.9258C15.5518 13.9258 17.1445 12.37306 17.1445 10.35451V10.05763C17.1445 8.10744 16.6016 6.59574 15.5928 5.58694C14.8613 4.85544 13.8975 4.42384 12.7285 4.25294C12.4199 4.21194 12.1592 4.19824 11.8643 4.19824C11.2627 4.19824 10.8389 4.59474 10.8389 5.14164C10.8389 5.65724 11.2354 6.02054 11.7783 6.04784C12.1758 6.06834 12.4844 6.10944 12.7656 6.19144C13.5176 6.42384 14.0742 6.95314 14.3965 7.75974L14.4922 8.00584H14.3828C14.0605 7.56834 13.4863 7.25974 12.6523 7.25974C11.1406 7.25974 10.0674 8.42384 10.0674 10.02345V10.27736C10.0674 12.2549 11.4668 13.9258 13.6719 13.9258ZM13.5215 12.24123C12.6797 12.24123 12.0918 11.48244 12.0918 10.4131V10.1592C12.0918 9.26174 12.6523 8.71291 13.5352 8.71291C14.3965 8.71291 14.9844 9.27638 14.9844 10.1592V10.4131C14.9844 11.48244 14.3828 12.24123 13.5215 12.24123Z"/>\n </svg>',paragraph:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M9 12C9.55228 12 10 12.4477 10 13C10 13.5523 9.55228 14 9 14H3C2.44772 14 2 13.5523 2 13C2 12.4477 2.44772 12 3 12H9ZM15 8C15.5523 8 16 8.44772 16 9C16 9.55228 15.5523 10 15 10H3C2.44772 10 2 9.55228 2 9C2 8.44772 2.44772 8 3 8H15ZM15 4C15.5523 4 16 4.44772 16 5C16 5.55228 15.5523 6 15 6H3C2.44772 6 2 5.55228 2 5C2 4.44772 2.44772 4 3 4H15Z"/>\n </svg>',clearFormatting:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M10.0607 2.07533C10.8417 1.29432 12.1078 1.2943 12.8888 2.07533L16.424 5.61049C17.205 6.39154 17.205 7.65854 16.424 8.43959L9.44937 15.4142C9.07435 15.7891 8.5656 16.0001 8.03531 16.0001H5.0148C4.55074 16.0001 4.10309 15.8385 3.74722 15.547L3.60074 15.4142L1.57534 13.3888C0.79431 12.6078 0.794336 11.3417 1.57534 10.5607L10.0607 2.07533ZM2.98941 11.9747L5.0148 14.0001H8.03531L9.71792 12.3165L6.18179 8.78139L2.98941 11.9747Z"/>\n </svg>',highlight:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M16.4564 14.4272C17.1356 15.5592 16.3204 17.0002 15.0003 17.0004C13.68 17.0004 12.864 15.5593 13.5433 14.4272L15.0003 12.0004L16.4564 14.4272ZM5.1214 1.70746C5.51192 1.31693 6.14494 1.31693 6.53546 1.70746L9.7171 4.8891L13.2532 8.42426C14.2295 9.40056 14.2295 10.9841 13.2532 11.9604L9.7171 15.4955C8.74078 16.4718 7.15822 16.4718 6.18195 15.4955L2.64679 11.9604C1.67048 10.9841 1.67048 9.40057 2.64679 8.42426L6.18195 4.8891C6.30299 4.76805 6.43323 4.66177 6.57062 4.57074L5.1214 3.12152C4.73091 2.73104 4.73099 2.09799 5.1214 1.70746ZM8.30304 6.30316C8.10776 6.10815 7.79119 6.10799 7.59601 6.30316L4.06085 9.83929L3.9964 9.91742C3.88661 10.0838 3.88645 10.3019 3.9964 10.4682L4.02277 10.5004H11.8763C12.0312 10.3043 12.02 10.0205 11.8392 9.83929L8.30304 6.30316Z"/>\n </svg>',link:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M12.8885 7.23091L13.9479 6.17155C14.5337 5.58576 14.5337 4.63602 13.9479 4.05023C13.3621 3.46444 12.4124 3.46444 11.8266 4.05023L8.29235 7.58446C7.9263 7.95051 7.90312 8.52994 8.2233 8.92271L8.36141 9.07463C8.68158 9.4674 8.65841 10.0468 8.29235 10.4129C7.90183 10.8034 7.26866 10.8034 6.87814 10.4129C5.70657 9.24131 5.70657 7.34182 6.87814 6.17025L10.4124 2.63602C11.7792 1.26918 13.9953 1.26918 15.3621 2.63602C16.729 4.00285 16.729 6.21893 15.3621 7.58576L14.3028 8.64512C13.9122 9.03564 13.2791 9.03564 12.8885 8.64512C12.498 8.2546 12.498 7.62143 12.8885 7.23091Z"/>\n <path d="M5.11038 10.7664L4.04843 11.8284C3.46264 12.4142 3.46264 13.3639 4.04842 13.9497C4.63421 14.5355 5.58396 14.5355 6.16975 13.9497L9.70657 10.4129C10.0726 10.0468 10.0958 9.46741 9.77563 9.07464L9.63752 8.92272C9.31734 8.52995 9.34052 7.95052 9.70657 7.58446C10.0971 7.19394 10.7303 7.19394 11.1208 7.58446C12.2924 8.75604 12.2924 10.6555 11.1208 11.8271L7.58396 15.3639C6.21712 16.7308 4.00105 16.7308 2.63421 15.3639C1.26738 13.9971 1.26738 11.781 2.63421 10.4142L3.69617 9.35223C4.08669 8.96171 4.71986 8.96171 5.11038 9.35223C5.5009 9.74275 5.5009 10.3759 5.11038 10.7664Z"/>\n </svg>',quote:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M4.96387 4.23438C6.8769 4.23438 8.42767 5.78522 8.42773 7.69824C8.42773 8.32925 8.25769 8.92015 7.96289 9.42969L7.96387 9.43066L5.11816 14.3584C4.77659 14.95 4.02038 15.153 3.42871 14.8115C2.83701 14.4699 2.63397 13.7128 2.97559 13.1211L4.16113 11.0674C2.63532 10.7052 1.5 9.33485 1.5 7.69824C1.50006 5.78524 3.05086 4.2344 4.96387 4.23438ZM13.0361 4.23438C14.9491 4.23449 16.4999 5.7853 16.5 7.69824C16.5 8.32921 16.3299 8.92017 16.0352 9.42969L16.0361 9.43066L13.1904 14.3584C12.8488 14.9501 12.0917 15.1531 11.5 14.8115C10.9085 14.4698 10.7063 13.7127 11.0479 13.1211L12.2324 11.0674C10.7069 10.7049 9.57227 9.33461 9.57227 7.69824C9.57233 5.78522 11.1231 4.23438 13.0361 4.23438Z"/>\n </svg>',code:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.29289 3.79295C6.68342 3.40243 7.31643 3.40243 7.70696 3.79295C8.09748 4.18348 8.09748 4.81649 7.70696 5.20702L3.91399 8.99999L7.70696 12.793C8.09748 13.1835 8.09748 13.8165 7.70696 14.207C7.31643 14.5975 6.68342 14.5975 6.29289 14.207L1.79289 9.70702C1.40237 9.31649 1.40237 8.68348 1.79289 8.29295L6.29289 3.79295Z"/>\n <path d="M11.707 3.79295C11.3164 3.40243 10.6834 3.40243 10.2929 3.79295C9.90237 4.18348 9.90237 4.81649 10.2929 5.20702L14.0859 8.99999L10.2929 12.793C9.90237 13.1835 9.90237 13.8165 10.2929 14.207C10.6834 14.5975 11.3164 14.5975 11.707 14.207L16.207 9.70702C16.5975 9.31649 16.5975 8.68348 16.207 8.29295L11.707 3.79295Z"/>\n </svg>',ul:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M3 12.5C3.82843 12.5 4.5 13.1716 4.5 14C4.5 14.8284 3.82843 15.5 3 15.5C2.17157 15.5 1.5 14.8284 1.5 14C1.5 13.1716 2.17157 12.5 3 12.5ZM15.5 13C16.0523 13 16.5 13.4477 16.5 14C16.5 14.5523 16.0523 15 15.5 15H7C6.44772 15 6 14.5523 6 14C6 13.4477 6.44772 13 7 13H15.5ZM3 7.5C3.82843 7.5 4.5 8.17157 4.5 9C4.5 9.82843 3.82843 10.5 3 10.5C2.17157 10.5 1.5 9.82843 1.5 9C1.5 8.17157 2.17157 7.5 3 7.5ZM15.5 8C16.0523 8 16.5 8.44772 16.5 9C16.5 9.55228 16.0523 10 15.5 10H7C6.44772 10 6 9.55228 6 9C6 8.44772 6.44772 8 7 8H15.5ZM3 2.5C3.82843 2.5 4.5 3.17157 4.5 4C4.5 4.82843 3.82843 5.5 3 5.5C2.17157 5.5 1.5 4.82843 1.5 4C1.5 3.17157 2.17157 2.5 3 2.5ZM15.5 3C16.0523 3 16.5 3.44772 16.5 4C16.5 4.55228 16.0523 5 15.5 5H7C6.44772 5 6 4.55228 6 4C6 3.44772 6.44772 3 7 3H15.5Z"/>\n </svg>',ol:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.5 13C16.0523 13 16.5 13.4477 16.5 14C16.5 14.5523 16.0523 15 15.5 15H7C6.44772 15 6 14.5523 6 14C6 13.4477 6.44772 13 7 13H15.5ZM15.5 8C16.0523 8 16.5 8.44772 16.5 9C16.5 9.55228 16.0523 10 15.5 10H7C6.44772 10 6 9.55228 6 9C6 8.44772 6.44772 8 7 8H15.5ZM15.5 3C16.0523 3 16.5 3.44772 16.5 4C16.5 4.55228 16.0523 5 15.5 5H7C6.44772 5 6 4.55228 6 4C6 3.44772 6.44772 3 7 3H15.5Z"/>\n <path d="M2.98657 16.0967C2.68042 16.0967 2.41187 16.0465 2.18091 15.9463C1.95174 15.846 1.77002 15.7046 1.63574 15.522C1.50146 15.3376 1.42448 15.1227 1.40479 14.8774L1.4021 14.8452H2.34204L2.34741 14.8748C2.35815 14.9589 2.39038 15.035 2.44409 15.103C2.49959 15.1711 2.5721 15.2248 2.66162 15.2642C2.75293 15.3035 2.86035 15.3232 2.98389 15.3232C3.10563 15.3232 3.21037 15.3027 3.2981 15.2615C3.38761 15.2185 3.45654 15.1603 3.50488 15.0869C3.55322 15.0135 3.57739 14.9294 3.57739 14.8345V14.8291C3.57739 14.6715 3.51921 14.5516 3.40283 14.4692C3.28646 14.3869 3.12085 14.3457 2.90601 14.3457H2.48706V13.677H2.90063C3.02775 13.677 3.13607 13.6582 3.22559 13.6206C3.31689 13.583 3.38672 13.5302 3.43506 13.4622C3.48519 13.3941 3.51025 13.3153 3.51025 13.2258V13.2205C3.51025 13.1256 3.48877 13.0441 3.4458 12.9761C3.40462 12.9062 3.34375 12.8534 3.26318 12.8176C3.18441 12.78 3.08952 12.7612 2.97852 12.7612C2.86572 12.7612 2.76636 12.7809 2.68042 12.8203C2.59627 12.8579 2.52913 12.9125 2.479 12.9841C2.43066 13.054 2.40112 13.1363 2.39038 13.2312L2.3877 13.2581H1.49341L1.49609 13.2205C1.514 12.977 1.58561 12.7666 1.71094 12.5894C1.83805 12.4103 2.00903 12.2725 2.22388 12.1758C2.44051 12.0773 2.69206 12.0281 2.97852 12.0281C3.27393 12.0281 3.52995 12.0728 3.74658 12.1624C3.96322 12.2501 4.13062 12.3727 4.24878 12.5303C4.36694 12.6878 4.42603 12.8722 4.42603 13.0835V13.0889C4.42603 13.2518 4.38932 13.3941 4.31592 13.5159C4.2443 13.6358 4.14762 13.7343 4.02588 13.8113C3.90592 13.8883 3.77254 13.942 3.62573 13.9724V13.9912C3.91756 14.0199 4.14941 14.1121 4.32129 14.2678C4.49316 14.4236 4.5791 14.6295 4.5791 14.8855V14.8909C4.5791 15.1344 4.51375 15.3474 4.38306 15.53C4.25236 15.7109 4.06795 15.8505 3.82983 15.949C3.59172 16.0474 3.31063 16.0967 2.98657 16.0967Z"/>\n <path d="M1.54443 11V10.342L2.76099 9.20874C2.95076 9.03507 3.09757 8.89274 3.20142 8.78174C3.30705 8.66895 3.37956 8.57316 3.41895 8.49438C3.46012 8.41382 3.48071 8.33415 3.48071 8.25537V8.24463C3.48071 8.14795 3.46012 8.0638 3.41895 7.99219C3.37777 7.92057 3.31779 7.86507 3.23901 7.82568C3.16024 7.7863 3.06714 7.7666 2.95972 7.7666C2.84692 7.7666 2.74756 7.78988 2.66162 7.83643C2.57747 7.88298 2.51123 7.94743 2.46289 8.02979C2.41455 8.11035 2.39038 8.20345 2.39038 8.30908V8.33057L1.48804 8.32788V8.31177C1.48804 8.05396 1.5507 7.82837 1.67603 7.63501C1.80314 7.44165 1.97949 7.29126 2.20508 7.18384C2.43245 7.07463 2.69653 7.02002 2.99731 7.02002C3.28556 7.02002 3.53711 7.06836 3.75195 7.16504C3.96859 7.25993 4.13688 7.39331 4.25684 7.56519C4.37858 7.73706 4.43945 7.93758 4.43945 8.16675V8.18018C4.43945 8.3252 4.40902 8.46932 4.34814 8.61255C4.28727 8.75578 4.18701 8.90885 4.04736 9.07178C3.90771 9.23291 3.71883 9.41642 3.48071 9.62231L2.58374 10.4092L2.85498 9.98486V10.4092L2.58374 10.2319H4.49048V11H1.54443Z"/>\n <path d="M2.84155 6V3.01367H2.79053L1.85596 3.64478V2.79614L2.84155 2.12476H3.82715V6H2.84155Z"/>\n </svg>',image:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M14 2C15.6569 2 17 3.34315 17 5V13C17 14.6569 15.6569 16 14 16H4C2.34315 16 1 14.6569 1 13V5C1 3.34315 2.34315 2 4 2H14ZM3.06348 13.3496C3.2053 13.7294 3.57078 14 4 14H13.5859L11 11.4141L9.70703 12.707C9.31651 13.0976 8.68349 13.0976 8.29297 12.707C7.90244 12.3165 7.90244 11.6835 8.29297 11.293L8.58594 11L7 9.41406L3.06348 13.3496ZM4 4C3.44772 4 3 4.44772 3 5V10.5859L6.29297 7.29297L6.36914 7.22461C6.76191 6.90427 7.34092 6.92686 7.70703 7.29297L10 9.58594L10.293 9.29297L10.3691 9.22461C10.7619 8.90427 11.3409 8.92686 11.707 9.29297L15 12.5859V5C15 4.44772 14.5523 4 14 4H4ZM12.5 5C13.3284 5 14 5.67157 14 6.5C14 7.32843 13.3284 8 12.5 8C11.6716 8 11 7.32843 11 6.5C11 5.67157 11.6716 5 12.5 5Z"/>\n </svg>',attachment:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M13 13.5V6C13 4.067 11.433 2.5 9.5 2.5C7.567 2.5 6 4.067 6 6V13.5C6 14.6046 6.89543 15.5 8 15.5H8.23047C9.20759 15.5 10 14.7076 10 13.7305V7C10 6.72386 9.77614 6.5 9.5 6.5C9.22386 6.5 9 6.72386 9 7V12.5C9 13.0523 8.55228 13.5 8 13.5C7.44772 13.5 7 13.0523 7 12.5V7C7 5.61929 8.11929 4.5 9.5 4.5C10.8807 4.5 12 5.61929 12 7V13.7305C12 15.8122 10.3122 17.5 8.23047 17.5H8C5.79086 17.5 4 15.7091 4 13.5V6C4 2.96243 6.46243 0.5 9.5 0.5C12.5376 0.5 15 2.96243 15 6V13.5C15 14.0523 14.5523 14.5 14 14.5C13.4477 14.5 13 14.0523 13 13.5Z"/>\n </svg>',table:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M15 1C16.1046 1 17 1.89543 17 3V15C17 16.1046 16.1046 17 15 17H3C1.89543 17 1 16.1046 1 15V3C1 1.89543 1.89543 1 3 1H15ZM3 15H8V10H3V15ZM10 10V15H15V10H10ZM10 8H15V3H10V8ZM3 8H8V3H3V8Z"/>\n </svg>',hr:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M12.75 12C13.1642 12 13.5 12.3358 13.5 12.75V14.25C13.5 14.6642 13.1642 15 12.75 15H5.25C4.83579 15 4.5 14.6642 4.5 14.25V12.75C4.5 12.3358 4.83579 12 5.25 12H12.75ZM15.4863 8C16.0461 8 16.5 8.44771 16.5 9C16.5 9.55229 16.0461 10 15.4863 10H2.51367C1.95392 10 1.5 9.55229 1.5 9C1.5 8.44771 1.95392 8 2.51367 8H15.4863ZM12.75 3C13.1642 3 13.5 3.33579 13.5 3.75V5.25C13.5 5.66421 13.1642 6 12.75 6H5.25C4.83579 6 4.5 5.66421 4.5 5.25V3.75C4.5 3.33579 4.83579 3 5.25 3H12.75Z"/>\n </svg>',undo:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <path d="M8.36612 5.36612C8.85427 4.87796 9.64554 4.87796 10.1337 5.36612C10.6218 5.85428 10.6218 6.64557 10.1337 7.13369L7.26748 9.9999H15.2499C18.1494 9.99996 20.4999 12.3504 20.4999 15.2499V19.2499C20.4999 19.9402 19.9402 20.4999 19.2499 20.4999C18.5596 20.4999 18 19.9402 17.9999 19.2499V15.2499C17.9999 13.7312 16.7686 12.5 15.2499 12.4999H7.26748L10.1337 15.3661C10.6218 15.8543 10.6218 16.6456 10.1337 17.1337C9.64557 17.6218 8.85428 17.6218 8.36612 17.1337L3.36612 12.1337C2.87796 11.6455 2.87796 10.8543 3.36612 10.3661L8.36612 5.36612Z"/>\n </svg>',redo:'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.6338 5.1163C15.1456 4.62814 14.3543 4.62814 13.8662 5.1163C13.3781 5.60446 13.3781 6.39575 13.8662 6.88388L16.7324 9.75009H8.74997C5.85052 9.75014 3.49997 12.1006 3.49997 15.0001V19.0001C3.50002 19.6904 4.05969 20.25 4.74997 20.2501C5.4403 20.2501 5.99992 19.6904 5.99997 19.0001V15.0001C5.99997 13.4813 7.23123 12.2501 8.74997 12.2501H16.7324L13.8662 15.1163C13.3781 15.6045 13.3781 16.3958 13.8662 16.8839C14.3543 17.372 15.1456 17.3719 15.6338 16.8839L20.6338 11.8839C21.1219 11.3957 21.1219 10.6045 20.6338 10.1163L15.6338 5.1163Z" />\n </svg>',overflow:'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M3 6.75C4.24264 6.75 5.25 7.75736 5.25 9C5.25 10.2426 4.24264 11.25 3 11.25C1.75736 11.25 0.75 10.2426 0.75 9C0.75 7.75736 1.75736 6.75 3 6.75ZM9 6.75C10.2426 6.75 11.25 7.75736 11.25 9C11.25 10.2426 10.2426 11.25 9 11.25C7.75736 11.25 6.75 10.2426 6.75 9C6.75 7.75736 7.75736 6.75 9 6.75ZM15 6.75C16.2426 6.75 17.25 7.75736 17.25 9C17.25 10.2426 16.2426 11.25 15 11.25C13.7574 11.25 12.75 10.2426 12.75 9C12.75 7.75736 13.7574 6.75 15 6.75Z"/>\n </svg>'};class Kc extends HTMLElement{static observedAttributes=["connected"];#e=new Lc;#c=null;constructor(){super(),this.internals=this.attachInternals(),this.internals.role="toolbar",this.#u()}connectedCallback(){this.requestOverflowRefresh(),this.setAttribute("role","toolbar"),this.#d()}disconnectedCallback(){this.dispose()}dispose(){this.#e.dispose(),cancelAnimationFrame(this.#c),this.editorElement=null,this.editor=null,this.selection=null,this.#c=null,this.#u()}attributeChangedCallback(e,t,n){"connected"===e&&this.isConnected&&null!=t&&t!==n&&requestAnimationFrame((()=>this.#h()))}configure(e){if("object"==typeof e&&null!==e)for(const[t,n]of Object.entries(e))this.setAttribute(`data-${t}`,n)}setEditor(e){this.editorElement=e,this.editor=e.editor,this.selection=e.selection,this.#g(),this.#p(),this.#f(),this.#m(),this.#y(),this.requestOverflowRefresh(),this.#b(),this.resolveEditorPromise(e),this.toggleAttribute("connected",!0)}async getEditorElement(){return this.editorElement||await this.editorPromise}requestOverflowRefresh(){null==this.#c&&(this.#c=requestAnimationFrame((()=>{this.#_(),this.#c=null})))}closeDropdowns({except:e}={}){this.#C.forEach((t=>{t!==e&&t.close({focusEditor:!1})}))}#h(){this.disconnectedCallback(),this.connectedCallback()}async#u(){this.editorPromise=new Promise((e=>{this.resolveEditorPromise=e})),this.editorElement=await this.editorPromise}#d(){const e=new ResizeObserver((()=>this.requestOverflowRefresh()));e.observe(this),this.#e.track((()=>e.disconnect()))}#g(){this.#e.track(Ac(this,"click",this.#x))}#x=e=>{this.#S(e,"[data-command]",this.#v.bind(this))};#S(e,t,n){const r=e.target.closest(t);r&&n(e,r)}#v(e,{dataset:{command:t,payload:n}}){const r=e instanceof PointerEvent&&-1===e.pointerId;this.editor.update((()=>{this.editor.dispatchCommand(t,n)}),{tag:r?Xr:void 0}),r||this.editor.focus()}#p(){this.#e.track(Ac(this.editorElement,"keydown",this.#w))}#w=e=>{this.querySelectorAll("[data-hotkey]").forEach((t=>{t.dataset.hotkey.toLowerCase().split(/\s+/).includes(this.#k(e))&&(e.preventDefault(),e.stopPropagation(),t.click())}))};#k(e){const t=e.key.toLowerCase();return[...[e.ctrlKey?"ctrl":null,e.metaKey?"cmd":null,e.altKey?"alt":null,e.shiftKey?"shift":null].filter(Boolean),t].join("+")}#b(){this.#e.track(Ac(this.editorElement,"lexxy:focus",this.#E),Ac(this.editorElement,"lexxy:blur",this.#T),Ac(this,"keydown",this.#N))}#E=()=>{const e=this.#A.find(Bc);e&&(e.tabIndex=0)};#T=()=>{this.#f()};#N=e=>{$c(this.#A,e)};#f(){this.#A.forEach((e=>{e.tabIndex=-1}))}#m(){this.#e.track(this.editor.registerUpdateListener((({editorState:e})=>{e.read((()=>{this.#L(),this.closeDropdowns()}))})))}#y(){this.#e.track(this.editor.registerCommand(nr,(e=>{this.#O("undo",!e)}),1),this.editor.registerCommand(tr,(e=>{this.#O("redo",!e)}),1))}#L(){const e=to();if(!Di(e))return;if(!e.anchor.getNode().getParent())return;const{isBold:t,isItalic:n,isStrikethrough:r,isUnderline:i,isHighlight:o,isInLink:s,isInQuote:l,isInHeading:a,headingTag:c,isInCode:u,isInList:d,listType:h,isInTable:g}=this.selection.getFormat();this.#I("bold",t),this.#I("italic",n),this.#I("strikethrough",r),this.#I("underline",i),this.#I("format",a),this.#I("paragraph",!a),this.querySelector("lexxy-heading-dropdown")?.updateActiveHeading(c),this.#I("lists",d),this.#I("unordered-list",d&&"bullet"===h),this.#I("ordered-list",d&&"number"===h),this.#I("highlight",o),this.#I("link",s),this.#I("quote",l),this.#I("code",u),this.#I("table",g)}#I(e,t){const n=this.querySelector(`[name="${e}"]`);if(n){const e=t.toString();n.getAttribute("aria-pressed")!==e&&n.setAttribute("aria-pressed",e)}}#O(e,t){const n=this.querySelector(`[name="${e}"]`);if(n){n.disabled!==t&&(n.disabled=t);const e=t.toString();n.getAttribute("aria-disabled")!==e&&n.setAttribute("aria-disabled",e)}}#_(){this.#R(),this.#F(),this.#M(),this.#P();const e=this.#D.children.length>0;this.toggleAttribute("overflowing",e),this.#B(),this.#$(e)}#F(){const e=Array.from(this.#D.children);e.sort(((e,t)=>this.#z(t)-this.#z(e)));for(const t of e){const e=this.querySelector(`[data-position="${this.#z(t)+1}"]`)??this.#H;t.removeAttribute("role"),this.insertBefore(t,e)}}#$(e=!0){this.#D.toggleAttribute("disabled",!e),this.#H.style.display=e?"block":"none"}#R(){this.#$(!1)}#z(e){return parseInt(e.dataset.position??"999")}#M(){this.#K.forEach(((e,t)=>{e.dataset.position=t}))}#P(){const e=this.#U();if(e>0){this.#$();const t=this.#W(),n=t+this.#H.offsetWidth;this.#V(e+n,{gap:t})}}#U(){return this.scrollWidth-this.clientWidth}#V(e,{gap:t}){const n=this.#q,r=[];let i=0;for(;i<e&&n.length;){const e=n.pop();r.push(e),e.role="menuitem",i+=e.offsetWidth+t}this.#D.append(...r.reverse())}#B(){this.#H.setAttribute("nonce",Nc())}#W(){return parseFloat(window.getComputedStyle(this).columnGap)||0}get#C(){return this.querySelectorAll(":scope .lexxy-editor__toolbar-dropdown")}get#H(){return this.querySelector(".lexxy-editor__toolbar-overflow")}get#D(){return this.#H?.querySelector(":scope > [data-dropdown-panel]")}get#q(){return Array.from(this.querySelectorAll(":scope > button:not([data-prevent-overflow])"))}get#A(){return Array.from(this.querySelectorAll(":scope button"))}get#K(){return Array.from(this.querySelectorAll(":scope > *:not(.lexxy-editor__toolbar-overflow)"))}static get defaultTemplate(){const e=Pc("lexxy-link-url");return`\n <button class="lexxy-editor__toolbar-button" type="button" name="image" data-command="uploadImage" data-prevent-overflow="true" title="Add images and video">\n ${Hc.image}\n </button>\n\n <button class="lexxy-editor__toolbar-button lexxy-editor__toolbar-group-end" type="button" name="file" data-command="uploadFile" title="Upload files">\n ${Hc.attachment}\n </button>\n\n <button class="lexxy-editor__toolbar-button" type="button" name="bold" data-command="bold" title="Bold">\n ${Hc.bold}\n </button>\n\n <button class="lexxy-editor__toolbar-button" type="button" name="italic" data-command="italic" title="Italic">\n ${Hc.italic}\n </button>\n\n <button class="lexxy-editor__toolbar-button" type="button" name="strikethrough" data-command="strikethrough" title="Strikethrough">\n ${Hc.strikethrough}\n </button>\n\n <button class="lexxy-editor__toolbar-button lexxy-editor__toolbar-group-end" type="button" name="underline" data-command="underline" title="Underline">\n ${Hc.underline}\n </button>\n\n <lexxy-toolbar-dropdown class="lexxy-editor__toolbar-dropdown">\n <button data-dropdown-trigger class="lexxy-editor__toolbar-button lexxy-editor__toolbar-button--chevron" type="button" name="format" title="Text formatting" aria-haspopup="menu" aria-expanded="false">\n ${Hc.heading}\n </button>\n <div data-dropdown-panel role="menu" class="lexxy-editor__toolbar-dropdown-list" hidden>\n <button type="button" name="paragraph" data-command="setFormatParagraph" title="Paragraph" role="menuitem">\n ${Hc.paragraph} <span>Normal</span>\n </button>\n <lexxy-heading-dropdown>\n <div class="lexxy-heading-options"></div>\n </lexxy-heading-dropdown>\n <div class="lexxy-editor__toolbar-separator" role="separator"></div>\n <button type="button" name="clear-formatting" data-command="clearFormatting" title="Clear formatting" role="menuitem">\n ${Hc.clearFormatting} <span>Clear formatting</span>\n </button>\n </div>\n </lexxy-toolbar-dropdown>\n\n <lexxy-highlight-dropdown class="lexxy-editor__toolbar-dropdown lexxy-editor__toolbar-dropdown--highlight">\n <button data-dropdown-trigger class="lexxy-editor__toolbar-button lexxy-editor__toolbar-button--chevron" type="button" name="highlight" title="Color highlight" aria-haspopup="menu" aria-expanded="false">\n ${Hc.highlight}\n </button>\n <div data-dropdown-panel role="menu" hidden>\n <div class="lexxy-highlight-colors"></div>\n <button data-command="removeHighlight" type="button" class="lexxy-editor__toolbar-button lexxy-editor__toolbar-dropdown-reset" role="menuitem">Remove all coloring</button>\n </div>\n </lexxy-highlight-dropdown>\n\n <lexxy-link-dropdown class="lexxy-editor__toolbar-dropdown lexxy-editor__toolbar-dropdown--link">\n <button data-dropdown-trigger class="lexxy-editor__toolbar-button lexxy-editor__toolbar-group-end" type="button" name="link" title="Link" data-hotkey="cmd+k ctrl+k" aria-haspopup="dialog" aria-expanded="false">\n ${Hc.link}\n </button>\n <div data-dropdown-panel role="dialog" aria-label="Link" hidden>\n <input type="url" placeholder="Enter a URL…" class="input" id="${e}">\n <div class="lexxy-editor__toolbar-dropdown-actions">\n <button type="button" class="lexxy-editor__toolbar-button" value="link">Link</button>\n <button type="button" class="lexxy-editor__toolbar-button" value="unlink">Unlink</button>\n </div>\n </div>\n </lexxy-link-dropdown>\n\n <button class="lexxy-editor__toolbar-button" type="button" name="quote" data-command="insertQuoteBlock" title="Quote">\n ${Hc.quote}\n </button>\n\n <button class="lexxy-editor__toolbar-button" type="button" name="code" data-command="insertCodeBlock" title="Code">\n ${Hc.code}\n </button>\n\n <button class="lexxy-editor__toolbar-button" type="button" name="unordered-list" data-command="insertUnorderedList" title="Bullet list">\n ${Hc.ul}\n </button>\n <button class="lexxy-editor__toolbar-button lexxy-editor__toolbar-group-end" type="button" name="ordered-list" data-command="insertOrderedList" title="Numbered list">\n ${Hc.ol}\n </button>\n\n <button class="lexxy-editor__toolbar-button" type="button" name="table" data-command="insertTable" title="Insert a table">\n ${Hc.table}\n </button>\n\n <button class="lexxy-editor__toolbar-button" type="button" name="divider" data-command="insertHorizontalDivider" title="Insert a divider">\n ${Hc.hr}\n </button>\n\n <button class="lexxy-editor__toolbar-button lexxy-editor__toolbar-button--push-right" type="button" name="undo" data-command="undo" title="Undo" disabled aria-disabled="true">\n ${Hc.undo}\n </button>\n\n <button class="lexxy-editor__toolbar-button" type="button" name="redo" data-command="redo" title="Redo" disabled aria-disabled="true">\n ${Hc.redo}\n </button>\n\n <lexxy-toolbar-dropdown class="lexxy-editor__toolbar-dropdown lexxy-editor__toolbar-button--push-right lexxy-editor__toolbar-overflow">\n <button data-dropdown-trigger class="lexxy-editor__toolbar-button" type="button" aria-haspopup="menu" aria-expanded="false" aria-label="Show more toolbar buttons">\n ${Hc.overflow}\n </button>\n <div data-dropdown-panel role="menu" class="lexxy-editor__toolbar-overflow-menu" aria-label="More toolbar buttons" hidden></div>\n </lexxy-toolbar-dropdown>\n `}}function Uc(){return new Promise(requestAnimationFrame)}class Wc extends HTMLElement{#e=new Lc;connectedCallback(){this.#j((()=>{this.#G(),this.editorReady()}))}disconnectedCallback(){this.#e.dispose()}editorReady(){}onOpen(){}onClose(){}get trigger(){return this.querySelector(":scope > [data-dropdown-trigger]")}get panel(){return this.querySelector(":scope > [data-dropdown-panel]")}get toolbar(){return this.closest("lexxy-toolbar")}get editorElement(){return this.toolbar?.editorElement}get editor(){return this.toolbar?.editor}get isOpen(){return!1===this.panel.hidden}get isClosed(){return!this.isOpen}track(...e){this.#e.track(...e)}open(){this.isOpen||(this.trigger.setAttribute("aria-expanded","true"),this.panel.hidden=!1,this.onOpen(),this.#Z())}close({focusEditor:e=!0}={}){e&&this.editor?.focus(),this.isClosed||(this.trigger.setAttribute("aria-expanded","false"),this.panel.hidden=!0,this.onClose())}#G(){this.#e.track(Ac(this,"keydown",this.#Y),Ac(this.trigger,"click",this.#J))}#J=()=>{this.isOpen?this.close({focusEditor:!1}):(this.toolbar?.closeDropdowns({except:this}),this.open())};async#j(e){this.toolbar&&(await this.toolbar.getEditorElement(),this.isConnected&&this.toolbar&&e())}#Y=e=>{"Escape"===e.key&&(e.stopPropagation(),this.close())};async#Z(){this.#X[0]?.focus(),await this.#f()}async#f(){await Uc(),this.#A.forEach(((e,t)=>{e.setAttribute("tabindex",0===t?0:"-1")}))}get#X(){return Array.from(this.panel.querySelectorAll("button, input"))}get#A(){return Array.from(this.panel.querySelectorAll("button"))}}const Vc=[{label:"Large Heading",name:"heading-large"},{label:"Medium Heading",name:"heading-medium"},{label:"Small Heading",name:"heading-small"}];class qc extends HTMLElement{static labelFor(e,t){if(t<Vc.length)return Vc[t].label;{const t=e.match(/^h(\d+)$/)?.[1];return t?`Heading ${t}`:e.toUpperCase()}}static nameFor(e,t){if(t<Vc.length)return Vc[t].name;{const t=e.match(/^h(\d+)$/)?.[1];return t?`heading-${t}`:`heading-${e}`}}#e=new Lc;connectedCallback(){this.style.display="contents",this.#j((()=>{this.#Q.style.display="contents",this.#ee(),this.#te(),this.#ne()}))}disconnectedCallback(){this.#e.dispose()}updateActiveHeading(e){this.#re.forEach((t=>{const n=(t.dataset.heading===e).toString();t.getAttribute("aria-pressed")!==n&&t.setAttribute("aria-pressed",n)}))}get#ie(){return this.closest("lexxy-toolbar")}get#oe(){return this.#ie?.editorElement}get#se(){return this.#ie?.editor}async#j(e){const t=this.#ie;t&&(await t.getEditorElement(),this.isConnected&&this.#ie&&e())}#ee(){this.#Q.innerHTML="",this.#le.forEach(((e,t)=>{this.#Q.appendChild(this.#ae(e,t))}))}#ae(e,t){const n=qc.labelFor(e,t),r=qc.nameFor(e,t),i=Hc[e]||"",o=document.createElement("button");return o.type="button",o.dataset.heading=e,o.classList.add("lexxy-heading-button"),o.name=r,o.title=n,o.setAttribute("role","menuitem"),o.innerHTML=`${i} <span>${n}</span>`,o}#te(){this.#re.forEach((e=>{this.#e.track(Ac(e,"click",(t=>{this.#se&&(t.preventDefault(),this.#se.dispatchCommand("applyHeadingFormat",e.dataset.heading),this.#se.focus())})))}))}#ne(){const{headingTag:e}=this.#se.read((()=>this.#oe.selection.getFormat()));this.updateActiveHeading(e??null)}get#le(){return this.#oe.config.get("headings")}get#Q(){return this.querySelector(".lexxy-heading-options")}get#re(){return Array.from(this.querySelectorAll("button.lexxy-heading-button"))}}const jc="button.lexxy-highlight-button",Gc=Symbol("no_style");class Zc extends Wc{editorReady(){this.#ee(),this.#te()}onOpen(){this.editor.getEditorState().read((()=>{this.#ce(to())}))}#te(){this.#ue.forEach((e=>{this.track(Ac(e,"click",this.#de))}))}#ee(){this.#Q.innerHTML="";const e=this.editorElement.config.get("highlight.buttons");this.#he("color",e.color),this.#he("background-color",e["background-color"]);const t=Math.max(e.color.length,e["background-color"].length);this.panel.style.setProperty("--max-colors",t)}#he(e,t){t.forEach(((t,n)=>{this.#Q.appendChild(this.#ae(e,t,n))}))}#ae(e,t,n){return Ic("button",{type:"button",dataset:{value:t,style:e},style:`${e}: ${t}`,class:"lexxy-editor__toolbar-button lexxy-highlight-button",name:`${e}-${n}`,role:"menuitem"})}#de=e=>{e.preventDefault();const t=e.target.closest(jc);if(!t)return;const{style:n,value:r}=t.dataset;this.editor.dispatchCommand("toggleHighlight",{[n]:r}),this.close()};#ce(e){if(!Di(e))return;const t=wc(e,"color",Gc),n=wc(e,"background-color",Gc);this.#ue.forEach((e=>{const r=(e.dataset.value===t||e.dataset.value===n).toString();e.getAttribute("aria-pressed")!==r&&e.setAttribute("aria-pressed",r)}));const r=t!==Gc||n!==Gc;this.panel.querySelector("[data-command='removeHighlight']").disabled=!r}get#Q(){return this.panel.querySelector(".lexxy-highlight-colors")}get#ue(){return Array.from(this.panel.querySelectorAll(jc))}}function Yc(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Jc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Xc=Jc&&"documentMode"in document?document.documentMode:null,Qc=Jc&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);Jc&&"InputEvent"in window&&!Xc&&new window.InputEvent("input");const eu=Qc;function tu(e,t){return Array.from(function(e){return function(e,t){const n=Ks(),r=t||n,i=Ko(r)?Ca(r,e):ma(r,e),o=function(e){let t=-1;for(let n=e;null!==n;n=n.getParent())t++;return t}(r),s=function(e,t){const n=Ga(ma(e,t));return n&&n[0]}(r,e);let l=o;return Na({hasNext:e=>null!==e,initial:i,map:e=>({depth:l,node:e.origin}),step:e=>{if(e.isSameNodeCaret(s))return null;ha(e)&&l++;const t=Ga(e);return!t||t[0].isSameNodeCaret(s)?null:(l+=t[1],t[0])}})}("next",e)}(e))}function nu(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function ru(e){const t=ea(e,(e=>Ko(e)&&!e.isInline()));return Ko(t)||Yc(4,e.__key),t}function iu(e){const t=to()||no();let n;if(Di(t))n=Fa(t.focus,"next");else{if(null!=t){const e=t.getNodes(),r=e[e.length-1];r&&(n=ma(r,"next"))}n=n||Ca(Ks(),"previous").getFlipped().insert(ns())}const r=ou(e,n),i=Sa(r);return Pa(Ea(ha(i)?Ua(i):r)),e.getLatest()}function ou(e,t,n){let r=Va(t,"next");ua(r)&&(0===r.offset?r=ma(r.origin,"previous").getFlipped():r.offset===r.origin.getTextContentSize()&&(r=ma(r.origin,"next"))),r.origin.is(e)&&(da(r)||Yc(342,e.getKey(),e.getType()),r=$a(r)),(e.is(r.getNodeAtCaret())||e.is(r.getFlipped().getNodeAtCaret()))&&e.remove(!0);for(let e=r;e;e=Ja(e,n))r=e;return ua(r)&&Yc(283),r.insert(e.isInline()?ns().append(e):e),Va(ma(e.getLatest(),"next"),t.direction)}function su(e,t){const n=t();return e.replace(n),n.append(e),n}function lu(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function au(e){const t=to();if(!Di(t))return!1;const n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){const i=r[t],o=i.getKey();if(n.has(o))continue;const s=ea(i,(e=>Ko(e)&&!e.isInline()));if(null===s)continue;const l=s.getKey();s.canIndent()&&!n.has(l)&&(n.add(l),e(s))}return n.size>0}function cu(e,t){Ca(e,"next").insert(t)}function uu(e,t){return du(e,t,null)}function du(e,t,n){let r=!1;for(const i of pu(e))t(i)?null!==n&&n(i):(r=!0,Ko(i)&&du(i,t,n||(e=>i.insertAfter(e))),i.remove());return r}function hu(e,t){const n=[],r=Array.from(e).reverse();for(let e=r.pop();void 0!==e;e=r.pop())if(t(e))n.push(e);else if(Ko(e))for(const t of pu(e))r.push(t);return n}function gu(e){return fu(Ca(e,"next"))}function pu(e){return fu(Ca(e,"previous"))}function fu(e){return Na({hasNext:da,initial:e.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}const mu=Symbol.for("preact-signals");function yu(){if(Su>1)return void Su--;let e,t=!1;for(function(){let e=xu;for(xu=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==_u;){let n=_u;for(_u=void 0,vu++;void 0!==n;){const r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Au(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(vu=0,Su--,t)throw e}let bu,_u;function Cu(e){const t=bu;bu=void 0;try{return e()}finally{bu=t}}let xu,Su=0,vu=0,wu=0,ku=0;function Eu(e){if(void 0===bu)return;let t=e.n;return void 0===t||t.t!==bu?(t={i:0,S:e,p:bu.s,n:void 0,t:bu,e:void 0,x:void 0,r:t},void 0!==bu.s&&(bu.s.n=t),bu.s=t,e.n=t,32&bu.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=bu.s,t.n=void 0,bu.s.n=t,bu.s=t),t):void 0}function Tu(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Nu(e,t){return new Tu(e,t)}function Au(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Lu(e){for(let t=e.s;void 0!==t;t=t.n){const n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Ou(e){let t,n=e.s;for(;void 0!==n;){const e=n.p;-1===n.i?(n.S.U(n),void 0!==e&&(e.n=n.n),void 0!==n.n&&(n.n.p=e)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=e}e.s=t}function Iu(e,t){Tu.call(this,void 0),this.x=e,this.s=void 0,this.g=ku-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Ru(e){const t=e.m;if(e.m=void 0,"function"==typeof t){Su++;const n=bu;bu=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Fu(e),t}finally{bu=n,yu()}}}function Fu(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ru(e)}function Mu(e){if(bu!==this)throw new Error("Out-of-order effect");Ou(this),bu=e,this.f&=-2,8&this.f&&Fu(this),yu()}function Pu(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function Du(e,t){const n=new Pu(e,t);try{n.c()}catch(e){throw n.d(),e}const r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Bu(e,t={}){const n={};for(const r in e){const i=t[r],o=Nu(void 0===i?e[r]:i);n[r]=o}return n}function $u(e){return("function"==typeof e.nodes?e.nodes():e.nodes)||[]}function zu(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Hu(e,t){if(e&&t&&!Array.isArray(t)&&"object"==typeof e&&"object"==typeof t){const n=e,r=t;for(const e in r)n[e]=Hu(n[e],r[e]);return e}return t}Tu.prototype.brand=mu,Tu.prototype.h=function(){return!0},Tu.prototype.S=function(e){const t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:Cu((()=>{var e;null==(e=this.W)||e.call(this)})))},Tu.prototype.U=function(e){if(void 0!==this.t){const t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&Cu((()=>{var e;null==(e=this.Z)||e.call(this)})))}},Tu.prototype.subscribe=function(e){return Du((()=>{const t=this.value,n=bu;bu=void 0;try{e(t)}finally{bu=n}}),{name:"sub"})},Tu.prototype.valueOf=function(){return this.value},Tu.prototype.toString=function(){return this.value+""},Tu.prototype.toJSON=function(){return this.value},Tu.prototype.peek=function(){const e=bu;bu=void 0;try{return this.value}finally{bu=e}},Object.defineProperty(Tu.prototype,"value",{get(){const e=Eu(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(vu>100)throw new Error("Cycle detected");!function(e){0!==Su&&0===vu&&e.l!==wu&&(e.l=wu,xu={S:e,v:e.v,i:e.i,o:xu})}(this),this.v=e,this.i++,ku++,Su++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{yu()}}}}),Iu.prototype=new Tu,Iu.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===ku)return!0;if(this.g=ku,this.f|=1,this.i>0&&!Au(this))return this.f&=-2,!0;const e=bu;try{Lu(this),bu=this;const e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return bu=e,Ou(this),this.f&=-2,!0},Iu.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}Tu.prototype.S.call(this,e)},Iu.prototype.U=function(e){if(void 0!==this.t&&(Tu.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},Iu.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Iu.prototype,"value",{get(){if(1&this.f)throw new Error("Cycle detected");const e=Eu(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Pu.prototype.c=function(){const e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;const e=this.x();"function"==typeof e&&(this.m=e)}finally{e()}},Pu.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ru(this),Lu(this),Su++;const e=bu;return bu=this,Mu.bind(this,e)},Pu.prototype.N=function(){2&this.f||(this.f|=2,this.u=_u,_u=this)},Pu.prototype.d=function(){this.f|=8,1&this.f||Fu(this)},Pu.prototype.dispose=function(){this.d()},pt("format",{parse:e=>"number"==typeof e?e:0});function Ku(e){return 0===e.id}function Uu(e){return 2===e.id}const Wu=new Set;let Vu=class{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):tc;for(const n of this.configs)e=t(e,n);return e}init(e){const t=this.state;Uu(t)||zu(306,String(t.id));const n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},r={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},i=function(e,t,n){return Object.assign(e,{config:t,id:3,registerState:n})}(t,this.mergeConfigs(),n);let o;this.state=i,this.extension.init&&(o=this.extension.init(e,i.config,n)),this.state=function(e,t,n){return Object.assign(e,{id:4,initResult:t,registerState:n})}(i,o,r)}build(e){const t=this.state;let n;4!==t.id&&zu(307,String(t.id),String(5)),this.extension.build&&(n=this.extension.build(e,t.config,t.registerState));const r={...t.registerState,getOutput:()=>n,getSignal:this.getSignal.bind(this)};this.state=function(e,t,n){return Object.assign(e,{id:5,output:t,registerState:n})}(t,n,r)}register(e,t){this._signal=t;const n=this.state;5!==n.id&&zu(308,String(n.id),String(5));const r=this.extension.register&&this.extension.register(e,n.config,n.registerState);return this.state=function(e){return Object.assign(e,{id:6})}(n),()=>{const e=this.state;7!==e.id&&zu(309,String(n.id),String(7)),this.state=function(e){return Object.assign(e,{id:5})}(e),r&&r()}}afterRegistration(e){const t=this.state;let n;return 6!==t.id&&zu(310,String(t.id),String(6)),this.extension.afterRegistration&&(n=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(e){return Object.assign(e,{id:7})}(t),n}getSignal(){return void 0===this._signal&&zu(311),this._signal}getInitResult(){void 0===this.extension.init&&zu(312,this.extension.name);const e=this.state;return function(e){return e.id>=4}(e)||zu(313,String(e.id),String(4)),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(e){return e.id>=3}(e)||zu(314,String(e.id),String(3)),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&zu(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return void 0===t&&zu(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){const e=this.state;return function(e){return e.id>=7}(e)||zu(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||Wu}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map((([e])=>e))),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){const e=this.state;(function(e){return e.id>=5})(e)||zu(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}};const qu={tag:Gr};function ju(){const e=Ks();e.isEmpty()&&e.append(ns())}const Gu={config:{setOptions:qu,updateOptions:qu},init:({$initialEditorState:e=ju})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:n},r){const i=r.getInitResult();if(!i.initialized){i.initialized=!0;const{$initialEditorState:r}=i;if(Jo(r))e.setEditorState(r,n);else if("function"==typeof r)e.update((()=>{r(e)}),t);else if(r&&("string"==typeof r||"object"==typeof r)){const t=e.parseEditorState(r);e.setEditorState(t,n)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[qo,yi,si,Ai,es]},Zu=Symbol.for("@lexical/extension/LexicalBuilder");function Yu(){}function Ju(e){throw e}function Xu(e){return Array.isArray(e)?e:[e]}const Qu="0.44.0+prod.esm";let ed=class e{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=Qu,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(t){const n=[Xu(Gu)];for(const e of t)n.push(Xu(e));return new e(n)}static maybeFromEditor(t){const n=t[Zu];return n&&(n.PACKAGE_VERSION!==Qu&&zu(292,n.PACKAGE_VERSION,Qu),n instanceof e||zu(293)),n}static fromEditor(t){const n=e.maybeFromEditor(t);return void 0===n&&zu(294),n}constructEditor(){const{$initialEditorState:e,onError:t,...n}=this.buildCreateEditorArgs(),r=Object.assign(ls({...n,...t?{onError:e=>{t(e,r)}}:{}}),{[Zu]:this});for(const e of this.sortedExtensionReps())e.build(r);return r}buildEditor(){let e=Yu;function t(){try{e()}finally{e=Yu}}const n=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=oc(this.registerEditor(n),(()=>n.setRootElement(null))),n}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){const t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&zu(295,e.name),t}addEdge(e,t,n){const r=this.outgoingConfigEdges.get(e);r?r.set(t,n):this.outgoingConfigEdges.set(e,new Map([[t,n]]));const i=this.incomingEdges.get(t);i?i.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&zu(296);const t=Xu(e),[n]=t;"string"!=typeof n.name&&zu(297,typeof n.name);let r=this.extensionNameMap.get(n.name);if(void 0!==r&&r.extension!==n&&zu(298,n.name),!r){r=new Vu(this,n),this.extensionNameMap.set(n.name,r);const e=this.conflicts.get(n.name);"string"==typeof e&&zu(299,n.name,e);for(const e of n.conflictsWith||[])this.extensionNameMap.has(e)&&zu(299,n.name,e),this.conflicts.set(e,n.name);for(const e of n.dependencies||[]){const t=Xu(e);this.addEdge(n.name,t[0].name,t.slice(1)),this.addExtension(t)}for(const[e,t]of n.peerDependencies||[])this.addEdge(n.name,e,t?[t]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const e=[],t=(n,r)=>{let i=n.state;if(Uu(i))return;const o=n.extension.name;var s;Ku(i)||zu(300,o,r||"[unknown]"),Ku(s=i)||zu(304,String(s.id),String(0)),i=Object.assign(s,{id:1}),n.state=i;const l=this.outgoingConfigEdges.get(o);if(l)for(const e of l.keys()){const n=this.extensionNameMap.get(e);n&&t(n,o)}i=function(e){return function(e){return 1===e.id}(e)||zu(305,String(e.id),String(1)),Object.assign(e,{id:2})}(i),n.state=i,e.push(n)};for(const e of this.extensionNameMap.values())Ku(e.state)&&t(e);for(const t of e)for(const[e,n]of this.outgoingConfigEdges.get(t.extension.name)||[])if(n.length>0){const t=this.extensionNameMap.get(e);if(t)for(const e of n)t.configs.add(e)}for(const[e,...t]of this.roots)if(t.length>0){const n=this.extensionNameMap.get(e.name);void 0===n&&zu(301,e.name);for(const e of t)n.configs.add(e)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),n=new AbortController,r=[()=>n.abort()],i=n.signal;for(const n of t){const t=n.register(e,i);t&&r.push(t)}for(const n of t){const t=n.afterRegistration(e);t&&r.push(t)}return oc(...r)}buildCreateEditorArgs(){const e={},t=new Set,n=new Map,r=new Map,i={},o={},s=this.sortedExtensionReps();for(const l of s){const{extension:s}=l;if(void 0!==s.onError&&(e.onError=s.onError),void 0!==s.disableEvents&&(e.disableEvents=s.disableEvents),void 0!==s.parentEditor&&(e.parentEditor=s.parentEditor),void 0!==s.editable&&(e.editable=s.editable),void 0!==s.namespace&&(e.namespace=s.namespace),void 0!==s.$initialEditorState&&(e.$initialEditorState=s.$initialEditorState),s.nodes)for(const e of $u(s)){if("function"!=typeof e){const t=n.get(e.replace);t&&zu(302,s.name,e.replace.name,t.extension.name),n.set(e.replace,l)}t.add(e)}if(s.html){if(s.html.export)for(const[e,t]of s.html.export.entries())r.set(e,t);s.html.import&&Object.assign(i,s.html.import)}s.theme&&Hu(o,s.theme)}Object.keys(o).length>0&&(e.theme=o),t.size&&(e.nodes=[...t]);const l=Object.keys(i).length>0,a=r.size>0;(l||a)&&(e.html={},l&&(e.html.import=i),a&&(e.html.export=r));for(const t of s)t.init(e);return e.onError||(e.onError=Ju),e}};function td(e,t){const n=ed.fromEditor(e).getExtensionRep(t);return void 0===n&&zu(303,t.name),n.getExtensionDependency()}function nd(e,t){const n=ed.maybeFromEditor(e);if(!n)return;const r=n.extensionNameMap.get(t);return r?r.getExtensionDependency():void 0}const rd=new Set(["http:","https:","mailto:","sms:","tel:"]);let id=class e extends Ho{__url;__target;__rel;__title;static getType(){return"link"}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}constructor(e="",t={},n){super(n);const{target:r=null,rel:i=null,title:o=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=o}afterCloneFrom(e){super.afterCloneFrom(e),this.__url=e.__url,this.__rel=e.__rel,this.__target=e.__target,this.__title=e.__title}createDOM(e){const t=document.createElement("a");return this.updateLinkDOM(null,t,e),rc(t,e.theme.link),t}updateLinkDOM(e,t,n){if(Fl(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(const n of["target","rel","title"]){const r=`__${n}`,i=this[r];e&&e[r]===i||(i?t[n]=i:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:od,priority:1})}}static importJSON(e){return sd().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=pd(e);try{const t=new URL(pd(e));if(!rd.has(t.protocol))return"about:blank"}catch(t){return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){const t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){const t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){const t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){const t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){const n=kl(this);return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!Di(t))return!1;const r=t.anchor.getNode(),i=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}shouldMergeAdjacentLink(e){return this.getType()===e.getType()&&this.__url===e.__url&&this.__target===e.__target&&this.__rel===e.__rel&&this.__title===e.__title}};function od(e){let t=null;if(Fl(e)){const n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=sd(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function sd(e="",t){return El(new id(e,t))}function ld(e){return e instanceof id}let ad=class e extends id{__isUnlinked;constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}afterCloneFrom(e){super.afterCloneFrom(e),this.__isUnlinked=e.__isUnlinked}static getType(){return"autolink"}static clone(t){return new e(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__key)}shouldMergeAdjacentLink(e){return!1}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return cd().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){const n=cd(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}};function cd(e="",t){return El(new ad(e,t))}function ud(e){return e instanceof ad}function dd(e,t){if("element"===e.type){const n=e.getNode();return Ko(n)||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function hd(e,t={}){let n;if(e&&"object"==typeof e){const{url:r,...i}=e;n=r,t={...i,...t}}else n=e;const{target:r,title:i}=t,o=void 0===t.rel?"noreferrer":t.rel,s=to();if(null===s||!Di(s)&&!$i(s))return;if($i(s)){const e=s.getNodes();if(0===e.length)return;return void e.forEach((e=>{if(null===n){const t=ea(e,(e=>!ud(e)&&ld(e)));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{const t=ea(e,(e=>!ud(e)&&ld(e)));if(t)t.setURL(n),void 0!==r&&t.setTarget(r),void 0!==o&&t.setRel(o);else{const t=sd(n,{rel:o,target:r});e.insertBefore(t),t.append(e)}}}))}if(s.isCollapsed()&&null===n)for(const e of s.getNodes()){const t=ea(e,(e=>!ud(e)&&ld(e)));return void(null!==t&&(t.getChildren().forEach((e=>{t.insertBefore(e)})),t.remove()))}const l=s.extract();if(null===n){const e=new Set;return void l.forEach((t=>{const n=ea(t,(e=>!ud(e)&&ld(e)));if(null!==n){const t=n.getKey();if(e.has(t))return;!function(e,t){const n=new Set(t.filter((t=>e.isParentOf(t))).map((e=>e.getKey()))),r=e.getChildren(),i=r=>n.has(r.getKey())||Ko(r)&&t.some((t=>e.isParentOf(t)&&r.isParentOf(t))),o=r.filter(i);if(o.length===r.length)return r.forEach((t=>e.insertBefore(t))),void e.remove();const s=r.findIndex(i),l=r.findLastIndex(i),a=0===s,c=l===r.length-1;if(a)o.forEach((t=>e.insertBefore(t)));else if(c)for(let t=o.length-1;t>=0;t--)e.insertAfter(o[t]);else{for(let t=o.length-1;t>=0;t--)e.insertAfter(o[t]);const t=r.slice(l+1);if(t.length>0){const n=kl(e);o[o.length-1].insertAfter(n),t.forEach((e=>n.append(e)))}}}(n,l),e.add(t)}}))}const a=new Set,c=e=>{a.has(e.getKey())||(a.add(e.getKey()),e.setURL(n),void 0!==r&&e.setTarget(r),void 0!==o&&e.setRel(o),void 0!==i&&e.setTitle(i))};if(1===l.length){const e=l[0],t=ea(e,ld);if(null!==t)return c(t)}!function(e){const t=to();if(!Di(t))return e();const n=At(t),r=n.isBackward(),i=dd(n.anchor,r?-1:0),o=dd(n.focus,r?0:-1);if(e(),i||o){const e=to();if(Di(e)){const t=e.clone();if(i){const e=i.getParent();e&&t.anchor.set(e.getKey(),i.getIndexWithinParent()+(r?1:0),"element")}if(o){const e=o.getParent();e&&t.focus.set(e.getKey(),o.getIndexWithinParent()+(r?0:1),"element")}Ws(At(t))}}}((()=>{let e=null;for(const t of l){if(!t.isAttached())continue;const s=ea(t,ld);if(s){c(s);continue}if(Ko(t)){if(!t.isInline())continue;if(ld(t)){if(!(ud(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){c(t),e=t;continue}for(const e of t.getChildren())t.insertBefore(e);t.remove();continue}}const l=t.getPreviousSibling();ld(l)&&l.is(e)?l.append(t):(e=sd(n,{rel:o,target:r,title:i}),t.insertAfter(e),e.append(t))}}))}const gd=/^\+?[0-9\s()-]{5,}$/;function pd(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:gd.test(e)?`tel:${e}`:`https://${e}`}class fd extends Wc{editorReady(){this.input=this.panel.querySelector("input"),this.track(Ac(this.input,"keydown",this.#ge),Ac(this.linkButton,"click",this.#pe),Ac(this.unlinkButton,"click",this.#fe))}onOpen(){this.input.value=this.#me,this.input.required=!0}onClose(){this.input.required=!1}get linkButton(){return this.panel.querySelector("[value='link']")}get unlinkButton(){return this.panel.querySelector("[value='unlink']")}#ge=e=>{"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),this.#pe(e))};#pe=()=>{this.input.checkValidity()?(this.editor.dispatchCommand("link",this.input.value),this.close()):this.input.reportValidity()};#fe=()=>{this.editor.dispatchCommand("unlink"),this.close()};get#me(){return this.editor.getEditorState().read((()=>{const e=this.editorElement.selection.nearestNodeOfType(id);return e?.getURL()??""}))}}function md(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function yd(e){let t=1,n=e.getParent();for(;null!=n;){if(Fd(n)){const e=n.getParent();if(Hd(e)){t++,n=e.getParent();continue}md(40)}return t}return t}function bd(e){let t=e.getParent();Hd(t)||md(40);let n=t;for(;null!==n;)n=n.getParent(),Hd(n)&&(t=n);return t}function _d(e){let t=[];const n=e.getChildren().filter(Fd);for(let e=0;e<n.length;e++){const r=n[e],i=r.getFirstChild();Hd(i)?t=t.concat(_d(i)):t.push(r)}return t}function Cd(e){return Fd(e)&&Hd(e.getFirstChild())}function xd(e){return Rd().append(e)}function Sd(e,t){return Fd(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function vd(e){const t=to();if(null!==t){let n=t.getNodes();if(Di(t)){const r=t.getStartEndPoints();null===r&&md(143);const[i]=r,o=i.getNode(),s=o.getParent();if(wl(o)){const e=o.getFirstChild();if(e)n=e.selectStart().getNodes();else{const e=ns();o.append(e),n=e.select().getNodes()}}else if(Sd(o,n)){const t=zd(e);if(wl(s)){o.replace(t);const e=Rd();Ko(o)&&(e.setFormat(o.getFormatType()),e.setIndent(o.getIndent())),t.append(e)}else if(Fd(o)){const e=o.getParentOrThrow();wd(t,e.getChildren()),e.replace(t)}return}}const r=new Set;for(let t=0;t<n.length;t++){const i=n[t];if(Ko(i)&&i.isEmpty()&&!Fd(i)&&!r.has(i.getKey())){kd(i,e);continue}let o=Ls(i)?i.getParent():Fd(i)&&i.isEmpty()?i:null;for(;null!=o;){const t=o.getKey();if(Hd(o)){if(!r.has(t)){const n=zd(e);wd(n,o.getChildren()),o.replace(n),r.add(t)}break}{const n=o.getParent();if(wl(n)&&!r.has(t)){r.add(t),kd(o,e);break}o=n}}}}}function wd(e,t){e.splice(e.getChildrenSize(),0,t)}function kd(e,t){if(Hd(e))return e;const n=e.getPreviousSibling(),r=e.getNextSibling(),i=Rd();let o;if(wd(i,e.getChildren()),Hd(n)&&t===n.getListType())n.append(i),Hd(r)&&t===r.getListType()&&(wd(n,r.getChildren()),r.remove()),o=n;else if(Hd(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(i),o=r;else{const n=zd(t);n.append(i),e.replace(n),o=n}i.setFormat(e.getFormatType()),i.setIndent(e.getIndent());const s=to();return Di(s)&&(o.getKey()===s.anchor.key&&s.anchor.set(i.getKey(),s.anchor.offset,"element"),o.getKey()===s.focus.key&&s.focus.set(i.getKey(),s.focus.offset,"element")),e.remove(),o}function Ed(e,t){const n=e.getLastChild(),r=t.getFirstChild();n&&r&&Cd(n)&&Cd(r)&&(Ed(n.getFirstChild(),r.getFirstChild()),r.remove());const i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function Td(e){const t="check"!==e.getListType();let n=e.getStart();for(const r of e.getChildren())Fd(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),Hd(r.getFirstChild())||n++)}function Nd(e){const t=new Set;if(Cd(e)||t.has(e.getKey()))return;const n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(Cd(r)&&Cd(i)){const n=i.getFirstChild();if(Hd(n)){n.append(e);const i=r.getFirstChild();Hd(i)&&(wd(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(Cd(r)){const t=r.getFirstChild();if(Hd(t)){const n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(Cd(i)){const t=i.getFirstChild();Hd(t)&&t.append(e)}else if(Hd(n)){const t=kl(e),o=kl(n);t.append(o),o.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function Ad(e){if(Cd(e))return;const t=e.getParent(),n=t?t.getParent():void 0;if(Hd(n?n.getParent():void 0)&&Fd(n)&&Hd(t)){const r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{const r=kl(e),i=kl(t);r.append(i),e.getPreviousSiblings().forEach((e=>i.append(e)));const o=kl(e),s=kl(t);o.append(s),wd(s,e.getNextSiblings()),n.insertBefore(r),n.insertAfter(o),n.replace(e)}}}let Ld=class extends Ho{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{const t=e.getParent();if(Hd(t))"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0);else if(t){const n=e.createParentElementNode();Hd(n)||md(340);const r=[e];for(const t of["previous","next"]){r.reverse();for(const{origin:n}of ma(e,t)){if(!Fd(n))break;r.push(n)}}e.insertBefore(n),n.splice(0,0,r),wl(t)||(ou(n,$a(ma(n,"next")),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),t.isEmpty()&&t.isAttached()&&t.remove())}},extends:Ho,importDOM:{li:()=>({conversion:Od,priority:0})}})}constructor(e=1,t=void 0,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){const t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){!function(e,t,n){const r=t.getParent();!Hd(r)||"check"!==r.getListType()||Hd(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}(t,this,e),t.value=this.__value,function(e,t,n){const r=[],i=[],o=t.list,s=o?o.listitem:void 0;let l;if(o&&o.nested&&(l=o.nested.listitem),void 0!==s&&r.push(...nc(s)),o){const e=n.getParent(),t=Hd(e)&&"check"===e.getListType(),s=n.getChecked();t&&!s||i.push(o.listitemUnchecked),t&&s||i.push(o.listitemChecked),t&&r.push(s?o.listitemChecked:o.listitemUnchecked)}if(void 0!==l){const e=nc(l);n.getChildren().some((e=>Hd(e)))?r.push(...e):i.push(...e)}i.length>0&&ic(e,...i),r.length>0&&rc(e,...r)}(t,n.theme,this);const r=e?e.__style:"",i=this.__style;r!==i&&oi(t.style,i,r),function(e,t,n){const r=t.__textStyle,i=n?n.__textStyle:"";if(null!==n&&i===r)return;const o=ri(r);for(const t in o)e.style.setProperty(`--listitem-marker-${t}`,o[t]);if(""!==i)for(const t in ri(i))t in o||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){const r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){const t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);const r=this.getDirection();return r&&(t.dir=r),Cd(this)?{after(e){if(Ml(e)){const t=e.previousElementSibling;if(Ml(t)&&"LI"===t.nodeName){for(;e.firstChild;)t.append(e.firstChild);e.remove()}}return e},element:t}:{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){const n=e[t];if(Ko(n)&&this.canMergeWith(n)){const e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(Fd(e))return super.replace(e);this.setIndent(0);const n=this.getParentOrThrow();if(!Hd(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{const t=kl(n);let r=this.getNextSibling();for(;r;){const e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(Ko(e)||md(139),this.getChildren().forEach((t=>{e.append(t)}))),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){const n=this.getParentOrThrow();if(Hd(n)||md(39),Fd(e))return super.insertAfter(e,t);const r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){const i=kl(n);r.forEach((e=>i.append(e))),e.insertAfter(i,t)}return e}remove(e){const t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&Cd(t)&&Cd(n)&&(Ed(t.getFirstChild(),n.getFirstChild()),n.remove())}resetOnCopyNodeFrom(e){super.resetOnCopyNodeFrom(e),e.getChecked()&&this.setChecked(!1)}insertNewAfter(e,t=!0){const n=kl(this);return this.insertAfter(n,t),n}collapseAtStart(e){const t=ns();this.getChildren().forEach((e=>t.append(e)));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),i=Fd(r);if(1===n.getChildrenSize())if(i)n.remove(),r.select();else{n.insertBefore(t),n.remove();const r=e.anchor,i=e.focus,o=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(o,r.offset,"element"),"element"===i.type&&i.getNode().is(this)&&i.set(o,i.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const t=this.getWritable();return t.__value=e,t}getChecked(){const e=this.getLatest();let t;const n=this.getParent();return Hd(n)&&(t=n.getListType()),"check"===t?Boolean(e.__checked):void 0}setChecked(e){const t=this.getWritable();return t.__checked=e,t}toggleChecked(){const e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){const e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;Fd(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&md(117),(e=Math.floor(e))>=0||md(199);let t=this.getIndent();for(;t!==e;)t<e?(Nd(this),t++):(Ad(this),t--);return this}canInsertAfter(e){return Fd(e)}canReplaceWith(e){return Fd(e)}canMergeWith(e){return Fd(e)||rs(e)}extractWithChild(e,t){if(!Di(t))return!1;const n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return zd("bullet")}canMergeWhenEmpty(){return!0}};function Od(e){if(e.classList.contains("task-list-item"))for(const t of e.children)if("INPUT"===t.tagName)return Id(t);if(e.classList.contains("joplin-checkbox"))for(const t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return Id(t.children[0]);const t=e.getAttribute("aria-checked");return{node:Rd("true"===t||"false"!==t&&void 0)}}function Id(e){return"checkbox"!==e.getAttribute("type")?{node:null}:{node:Rd(e.hasAttribute("checked"))}}function Rd(e){return El(new Ld(void 0,e))}function Fd(e){return e instanceof Ld}let Md=class extends Ho{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){const t=e.getNextSibling();Hd(t)&&e.getListType()===t.getListType()&&Ed(e,t)}(e),Td(e)},extends:Ho,importDOM:{ol:()=>({conversion:Bd,priority:0}),ul:()=>({conversion:Bd,priority:0})}})}constructor(e="number",t=1,n){super(n);const r=$d[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){const t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){const t=this.getWritable();return t.__start=e,t}createDOM(e,t){const n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,Pd(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||e.__listType!==this.__listType||(Pd(t,n.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const t=this.createDOM(e._config,e);return Ml(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){const r=n.find(Fd)??this.getChildren().find(Fd),i=r?()=>kl(r):Rd;let o=n;for(let e=0;e<n.length;e++){const t=n[e];Fd(t)||(o===n&&(o=[...n]),o[e]=i().append(!Ko(t)||Hd(t)||t.isInline()?t:Ei(t.getTextContent())))}return super.splice(e,t,o)}extractWithChild(e){return Fd(e)}};function Pd(e,t,n){const r=[],i=[],o=t.list;if(void 0!==o){const e=o[`${n.__tag}Depth`]||[],t=yd(n)-1,s=t%e.length,l=e[s],a=o[n.__tag];let c;const u=o.nested,d=o.checklist;if(void 0!==u&&u.list&&(c=u.list),void 0!==a&&r.push(a),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==l){r.push(...nc(l));for(let t=0;t<e.length;t++)t!==s&&i.push(n.__tag+t)}if(void 0!==c){const e=nc(c);t>1?r.push(...e):i.push(...e)}}i.length>0&&ic(e,...i),r.length>0&&rc(e,...r)}function Dd(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];if(Fd(r)){t.push(r);const e=r.getChildren();e.length>1&&e.forEach((e=>{Hd(e)&&t.push(xd(e))}))}else t.push(xd(r))}return t}function Bd(e){const t=e.nodeName.toLowerCase();let n=null;return"ol"===t?n=zd("number",e.start):"ul"===t&&(n=function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(const t of e.childNodes)if(Ml(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?zd("check"):zd("bullet")),{after:Dd,node:n}}const $d={ol:"number",ul:"bullet"};function zd(e="number",t=1){return El(new Md(e,t))}function Hd(e){return e instanceof Md}const Kd=un("UPDATE_LIST_START_COMMAND"),Ud=un("INSERT_UNORDERED_LIST_COMMAND"),Wd=un("INSERT_ORDERED_LIST_COMMAND"),Vd=un("REMOVE_LIST_COMMAND");function qd(e,t){return oc(e.registerCommand(Wd,(()=>(vd("number"),!0)),1),e.registerCommand(Kd,(e=>{const{listNodeKey:t,newStart:n}=e,r=Ps(t);return!!Hd(r)&&("number"===r.getListType()&&(r.setStart(n),Td(r)),!0)}),1),e.registerCommand(Ud,(()=>(vd("bullet"),!0)),1),e.registerCommand(Vd,(()=>(function(){const e=to();if(Di(e)){const t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(Sd(r,n))t.add(bd(r));else for(let e=0;e<n.length;e++){const r=n[e];if(Ls(r)){const e=nu(r,Ld);null!=e&&t.add(bd(e))}}for(const n of t){let t=n;const r=_d(n);for(const n of r){const r=ns().setTextStyle(e.style).setTextFormat(e.format);wd(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&Ma(e.anchor,Ua(Ca(r,"next"))),n.__key===e.focus.key&&Ma(e.focus,Ua(Ca(r,"next"))),n.remove()}n.remove()}}}(),!0)),1),e.registerCommand(Cn,(()=>function(e=!1){const t=to();if(!Di(t)||!t.isCollapsed())return!1;const n=t.anchor.getNode();let r=null;if(Fd(n)&&0===n.getChildrenSize())r=n;else if(Ti(n)){const e=n.getParent();Fd(e)&&e.getChildren().every((e=>Ti(e)&&""===e.getTextContent().trim()))&&(r=e)}if(null===r)return!1;const i=bd(r),o=r.getParent();Hd(o)||md(40);const s=o.getParent();let l;if(wl(s))l=ns(),i.insertAfter(l);else{if(!Fd(s))return!1;l=kl(s),s.insertAfter(l)}l.setTextStyle(t.style).setTextFormat(t.format).select();const a=r.getNextSiblings();if(a.length>0){const t=e?function(e,t){return e.getStart()+t.getIndexWithinParent()}(o,r):1,n=kl(o).setStart(t);if(Fd(l)){const e=kl(l);e.append(n),l.insertAfter(e)}else l.insertAfter(n);n.append(...a)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){const e=t.getParent();if(null==e||!Fd(e)&&!Hd(e))break;t=e}t.remove()}(r),!0}(!1)),1),e.registerNodeTransform(Ld,(e=>{const t=e.getFirstChild();if(t){if(Ti(t)){const n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{const t=to();Di(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}})),e.registerNodeTransform(yi,(e=>{const t=e.getParent();if(Fd(t)&&e.is(t.getFirstChild())){const n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}})))}function jd(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let Gd;function Zd(e,t){const{key:n}=t;return e&&n in e?e[n]:t.defaultValue}function Yd(e){return Gd&&Gd.editor===e?Gd:void 0}function Jd(e,t){if("cfg"in t){const{cfg:n,updater:r}=t;return[n,r(Zd(e,n))]}return t}function Xd(e,t){let n=t;for(const r of e){const[e,i]=Jd(n,r),o=e.key;if(n===t&&Zd(n,e)===i)continue;const s=n||Qd(t);s[o]=i,n=s}return n}function Qd(e){return Object.create(e||null)}function eh(e,t){return[e,t]}const th="@lexical/html/DOM",nh=Symbol.for("@lexical/html/DOMExportContext"),rh=()=>!0;function ih(e){return t=>t instanceof e}function oh(e,{nodes:t}){if("*"===t)return rh;let n={};const r=[];for(const i of t)if("getType"in i){const t=i.getType();if(n){const r=e[t];void 0===r&&jd(339,i.name,t),n=Object.assign(n,r.types)}r.push(ih(i))}else n=void 0,r.push(i);return n||(1===r.length?r[0]:e=>{for(const t of r)if(t(e))return!0;return!1})}function sh(e){return(t,n,r)=>e(t,r)}function lh(e){return(t,n,r,i)=>e(t,n,i)}function ah(e){return(t,n,r,i,o)=>e(t,n,r,o)}function ch(e){return(t,n,r,i,o,s)=>e(t,n,r,i,s)}function uh(e,t){return(n,r)=>{const i=()=>e(n,r),o=t(n);return o?o(n,i,r):i()}}function dh(e,t){return(n,r,i)=>{const o=()=>e(n,r,i),s=t(n);return s?s(n,r,o,i):o()}}function hh(e,t){return(n,r,i,o)=>{const s=()=>e(n,r,i,o),l=t(n);return l?l(n,r,i,s,o):s()}}function gh(e,t){return(n,r,i,o,s)=>{const l=()=>e(n,r,i,o,s),a=t(n);return a?a(n,r,i,o,l,s):l()}}function ph(e,t){return(n,r,i,o)=>{e(n,r,i,o);const s=t(n);s&&s(n,r,i,o)}}function fh(e,t,n,r,i){let o=n[t];for(const n of e[t])if("function"==typeof n[0]){const[e,t]=n;o=r(o,(n=>e(n)&&t||void 0))}else{const e=n[1],t={};for(const n in e){const i=e[n];i&&(t[n]=i.reduce(((e,t)=>r(e,(()=>t))),o))}o=r(o,(e=>{const n=t[e.getType()];return n&&i(n)}))}n[t]=o}function mh(e,t,n,r){if(!r)return;const i=e[t];if("function"==typeof n)i.push([n,r]);else{const e=i[i.length-1];let t;e&&"types"===e[0]?t=e[1]:(t={},i.push(["types",t]));for(const e in n){const n=t[e]||[];t[e]=n,n.push(r)}}}function yh(e){return"*"===e.nodes}function bh(e,t){const n=function(e){const t={},{nodes:n}=function(e){const t=new Set,n=new Set;for(const r of $u(e)){const e="function"==typeof r?r:r.replace;Xl(e),t.add(e.getType()),n.add(e)}return{nodes:n,types:t}}(e);for(const e of n)t[e.getType()]={klass:e,types:{}};for(const e of Object.values(t))if(e){const n=e.klass.getType();for(let{klass:r}=e;Vr(r.prototype);r=Object.getPrototypeOf(r)){const{ownNodeType:e}=Xl(r),i=e&&t[e];i&&(i.types[n]=!0)}}return t}(e),r={$createDOM:[],$decorateDOM:[],$exportDOM:[],$extractWithChild:[],$getDOMSlot:[],$shouldExclude:[],$shouldInclude:[],$updateDOM:[]};for(const e of function(e){const t=[],n=[],r=[];for(const i of e)if(yh(i))t.push(i);else if(Array.isArray(i.nodes))for(const e of i.nodes)Vr(e.prototype)?r.push(1===i.nodes.length?i:{...i,nodes:[e]}):n.push(1===i.nodes.length?i:{...i,nodes:[e]});const i=new Map,o=e=>{let t=i.get(e);if(void 0===t){t=0;for(let n=e;Vr(n.prototype);n=Object.getPrototypeOf(n))t++;i.set(e,t)}return t};return r.sort(((e,t)=>o(e.nodes[0])-o(t.nodes[0]))),[...r,...n,...t]}(t)){const t=oh(n,e);for(const n in r)mh(r,n,t,e[n])}return r}function _h(e){return e}const Ch={build:(e,t,n)=>({defaults:Xd(t.contextDefaults,void 0)}),config:{contextDefaults:[],overrides:[]},html:{export:new Map([[qo,()=>{const e=document.createElement("div");return e.role="textbox",{element:e}}]])},init(e,t){e.dom=function(e,{overrides:t}){const n=bh(e,t),r={...ss,...e.dom};return fh(n,"$createDOM",r,uh,sh),fh(n,"$exportDOM",r,uh,sh),fh(n,"$extractWithChild",r,gh,ch),fh(n,"$getDOMSlot",r,dh,lh),fh(n,"$shouldExclude",r,dh,lh),fh(n,"$shouldInclude",r,dh,lh),fh(n,"$updateDOM",r,hh,ah),fh(n,"$decorateDOM",r,ph,_h),r}(e,t)},mergeConfig(e,t){const n=tc(e,t);for(const r of["overrides","contextDefaults"])t[r]&&(n[r]=[...e[r],...t[r]]);return n},name:th};function xh(e,t,n){return function(e,t,n,r){return Object.assign(pt(Symbol(t),{isEqual:r,parse:n}),{[e]:!0})}(nh,e,t,n)}xh("root",Boolean);const Sh=xh("isExport",Boolean);const vh=function(e,t=()=>{}){return(n,r=Hl())=>i=>{const o=Yd(r),s=o&&o[e],l=Xd(n,s||t(r));return l&&l!==s?function(e,t,n,r=Hl()){const i=Gd,o=Yd(r);try{return Gd={...o,editor:r,[e]:t},n()}finally{Gd=i}}(e,l,i,r):i()}}(nh,(function(e){const t=ed.maybeFromEditor(e);return t&&t.hasExtensionByName(th)?td(e,Ch).output.defaults:void 0}));function wh(e){return e.constructor.name===CSSStyleRule.name}const kh=new Set(["STYLE","SCRIPT"]);function Eh(e,t){Ts(t)&&function(e){if(null===e.querySelector("style"))return;const t=new Map;function n(e){let n=t.get(e);if(void 0===n){n=new Set;for(let t=0;t<e.style.length;t++)n.add(e.style[t]);t.set(e,n)}return n}try{for(const t of Array.from(e.styleSheets)){let r;try{r=t.cssRules}catch(e){continue}for(const t of Array.from(r)){if(!wh(t))continue;let r;try{r=e.querySelectorAll(t.selectorText)}catch(e){continue}for(const e of Array.from(r)){if(!Ml(e))continue;const r=n(e);for(let n=0;n<t.style.length;n++){const i=t.style[n];r.has(i)||e.style.setProperty(i,t.style.getPropertyValue(i),t.style.getPropertyPriority(i))}}}}}catch(e){}}(t);const n=Ts(t)?t.body.childNodes:t.childNodes,r=[],i=[];for(const t of n)if(!kh.has(t.nodeName)){const n=Ah(t,e,i,!1);if(null!==n)for(const e of n)r.push(e)}return function(e){for(const t of e)t.getParent()&&t.getNextSibling()instanceof Qo&&t.insertAfter(ai());for(const t of e){const e=t.getParent();e&&e.splice(t.getIndexWithinParent(),1,t.getChildren())}}(i),r}function Th(e,t=null){return("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)&&jd(338),function(e,t=null,n=Hl()){return vh([eh(Sh,!0)],n)((()=>{const r=Ks(),i=Kl(n),o=e.append.bind(e);for(const e of r.getChildren())Nh(n,e,o,t,i);return e}))}(document.createElement("div"),t,e).innerHTML}function Nh(e,t,n,r=null,i=Kl(e)){let o=i.$shouldInclude(t,r,e);const s=i.$shouldExclude(t,r,e);let l=t;null!==r&&Ti(t)&&(l=hc(r,t,"clone"));const a=i.$exportDOM(l,e),{element:c,after:u,append:d,$getChildNodes:h}=a;if(!c)return!1;const g=document.createDocumentFragment(),p=h?h():Ko(l)?l.getChildren():[],f=g.append.bind(g);for(const n of p){const s=Nh(e,n,f,r,i);!o&&s&&i.$extractWithChild(t,n,r,"html",e)&&(o=!0)}if(o&&!s){if((Ml(c)||Dl(c))&&(d?d(g):c.append(g)),n(c),u){const e=u.call(l,c);e&&(Dl(c)?c.replaceChildren(e):c.replaceWith(e))}}else n(g);return o}function Ah(e,t,n,r,i=new Map,o){const s=[];if(kh.has(e.nodeName))return s;let l=null;const a=function(e,t){const{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase());let i=null;if(void 0!==r)for(const t of r){const n=t(e);null!==n&&(null===i||(i.priority||0)<=(n.priority||0))&&(i=n)}return null!==i?i.conversion:null}(e,t),c=a?a(e):null;let u=null;if(null!==c){u=c.after;const t=c.node;if(l=Array.isArray(t)?t[t.length-1]:t,null!==l){for(const[,e]of i)if(l=e(l,o),!l)break;l&&s.push(...Array.isArray(t)?t:[l])}null!=c.forChild&&i.set(e.nodeName,c.forChild)}const d=e.childNodes;let h=[];const g=(null==l||!wl(l))&&(null!=l&&Zi(l)||r);for(let e=0;e<d.length;e++)h.push(...Ah(d[e],t,n,g,new Map(i),l));if(null!=u&&(h=u(h)),$l(e)&&(h=function(e,t,n){const r=e.style.textAlign,i=[];let o=[];for(let e=0;e<t.length;e++){const s=t[e];if(Zi(s))r&&!s.getFormat()&&s.setFormat(r),i.push(s);else if(o.push(s),e===t.length-1||e<t.length-1&&Zi(t[e+1])){const e=n();e.setFormat(r),e.append(...o),i.push(e),o=[]}}return i}(e,h,g?()=>{const e=new Qo;return n.push(e),e}:ns)),null==l)if(h.length>0)for(const e of h)s.push(e);else $l(e)&&function(e){return null!=e.nextSibling&&null!=e.previousSibling&&(Bl(e.nextSibling)&&Bl(e.previousSibling))}(e)&&s.push(ai());else Ko(l)&&l.append(...h);return s}function Lh(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Oh(e,t=to()){return null==t&&Lh(166),Di(t)&&t.isCollapsed()||0===t.getNodes().length?"":Th(e,t)}function Ih(e,t=to()){return null==t&&Lh(166),Di(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){const n=[],r=Ks().getChildren();for(let i=0;i<r.length;i++)$h(e,t,r[i],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}function Rh(e,t){const n=e.getData("text/plain")||e.getData("text/uri-list");null!=n&&t.insertRawText(n)}function Fh(e,t,n){const r=e.getData("application/x-lexical-editor");if(r)try{const e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return Bh(n,function(e){const t=[];for(let n=0;n<e.length;n++){const r=Ao(e[n]);t.push(r)}return t}(e.nodes),t)}catch(e){console.error(e)}const i=e.getData("text/html"),o=e.getData("text/plain");if(i&&o!==i)try{return Bh(n,Eh(n,(new DOMParser).parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(e):e}(i),"text/html")),t)}catch(e){console.error(e)}const s=o||e.getData("text/uri-list");if(null!=s)if(Di(t)){const e=s.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){const n=to();if(Di(n)){const r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([Li()]):n.insertText(r)}}}else t.insertRawText(s)}const Mh="application/x-lexical-drag";function Ph(e,t){const n={editorKey:t.getKey()};e.setData(Mh,JSON.stringify(n))}function Dh(e,t,n){const r=e.dataTransfer;if(null===r)return!1;const i=function(e){const t=e.getData(Mh);if(!t)return null;let n;try{n=JSON.parse(t)}catch(e){return null}return null!==(r=n)&&"object"==typeof r&&"editorKey"in r&&"string"==typeof r.editorKey?n:null;var r}(r);if(null===i)return!1;const o=function(e){const t=function(e,t){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}(e.clientX,e.clientY);if(null===t)return null;const n=$s(t.node);if(null===n)return null;if(Ti(n))return ya(n,"next",t.offset);if(Ko(n))return ja(n,t.offset,"next");const r=n.getParent();return null===r?null:ja(r,n.getIndexWithinParent()+1,"next")}(e);if(null===o)return!1;const s=Ja(o);if(null===s)return!1;const l=i.editorKey===t.getKey(),a=to();if(l){if(!Di(a)||a.isCollapsed())return!1;if(function(e,t){const{anchor:n,focus:r}=qa(Ba(t),"next");return Aa(n,e)<0&&Aa(e,r)<0}(o,a))return e.preventDefault(),!0;a.removeText()}if(!s.origin.isAttached())return e.preventDefault(),!0;if(n(r,Pa(Ea(s)),t),!l){const e=t.getRootElement(),n=e?e.ownerDocument:null,r=n?function(e,t){const n=t.querySelectorAll('[data-lexical-editor="true"]');for(const t of Array.from(n)){const n=t.__lexicalEditor;if(n&&n.getKey()===e)return t}return null}(i.editorKey,n):null;null!==r&&r.dispatchEvent(new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteByDrag"}))}return e.preventDefault(),!0}function Bh(e,t,n){e.dispatchCommand(hn,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(Di(e)&&e.isCollapsed()){let t=null;const n=Fa(e.anchor,"previous");if(n)if(ua(n))t=n.origin;else{const e=Ta(n,Ca(Ks(),"next").getFlipped());for(const n of e){if(Ti(n.origin)){t=n.origin;break}if(Ko(n.origin)&&!n.origin.isInline())break}}if(t&&Ti(t)){const n=t.getFormat(),r=t.getStyle();e.format===n&&e.style===r||(e.format=n,e.style=r,e.dirty=!0)}}}(n))}function $h(e,t,n,r=[]){let i=null===t||n.isSelected(t);const o=Ko(n)&&n.excludeFromCopy("html");let s=n;null!==t&&Ti(s)&&(s=hc(t,s,"clone"));const l=Ko(s)?s.getChildren():[],a=function(e){const t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Lh(58,n.name),Ko(e)){const e=t.children;Array.isArray(e)||Lh(59,n.name)}return t}(s);Ti(s)&&0===s.getTextContentSize()&&(i=!1);for(let r=0;r<l.length;r++){const o=l[r],s=$h(e,t,o,a.children);!i&&Ko(n)&&s&&n.extractWithChild(o,t,"clone")&&(i=!0)}if(i&&!o)r.push(a);else if(Array.isArray(a.children))for(let e=0;e<a.children.length;e++){const t=a.children[e];r.push(t)}return i}let zh=null;async function Hh(e,t,n){if(null!==zh)return!1;if(null!==t)return new Promise(((r,i)=>{e.update((()=>{r(Kh(e,t,n))}))}));const r=e.getRootElement(),i=e._window||window,o=i.document,s=Ol(i);if(null===r||null===s)return!1;const l=o.createElement("span");l.style.position="fixed",l.style.top="-1000px",l.append(o.createTextNode("#")),r.append(l);const a=new Range;return a.setStart(l,0),a.setEnd(l,1),s.removeAllRanges(),s.addRange(a),new Promise(((t,r)=>{const s=e.registerCommand(Yn,(r=>(lu(r,ClipboardEvent)&&(s(),null!==zh&&(i.clearTimeout(zh),zh=null),t(Kh(e,r,n))),!0)),4);zh=i.setTimeout((()=>{s(),zh=null,t(!1)}),50),o.execCommand("copy"),l.remove()}))}function Kh(e,t,n){if(void 0===n){const t=Ol(e._window),r=to();if(!r||r.isCollapsed())return!1;if(!t)return!1;const i=t.anchorNode,o=t.focusNode;if(null!==i&&null!==o&&!_s(e,i,o))return!1;n=Wh(r)}t.preventDefault();const r=t.clipboardData;return null!==r&&(Vh(r,n),!0)}const Uh=[["text/html",Oh],["application/x-lexical-editor",Ih]];function Wh(e=to()){return function(e,t){const n={"text/plain":""};for(const[r,i]of Object.entries(e)){const e=jh(i,t);null!==e&&(n[r]=e)}return n}(function(){const e=Hl(),t=ed.maybeFromEditor(e);return t&&t.hasExtensionByName(Gh.name)?td(e,Gh).output:qh}(),e)}function Vh(e,t){for(const[n]of Uh)void 0===t[n]&&e.setData(n,"");for(const n in t){const r=t[n];void 0!==r&&e.setData(n,r)}}const qh={"application/x-lexical-editor":[(e,t)=>e?Ih(Hl(),e):t()],"text/html":[(e,t)=>e?Oh(Hl(),e):t()],"text/plain":[(e,t)=>e?e.getTextContent():t()]};function jh(e,t){const n=r=>e[r]?e[r](t,n.bind(null,r-1)):null;return n(e.length-1)}const Gh={build:(e,t,n)=>t.$exportMimeType,config:{$exportMimeType:qh},mergeConfig(e,t){const n=tc(e,t);if(t.$exportMimeType){const r={...e.$exportMimeType};for(const[e,n]of Object.entries(t.$exportMimeType))r[e]=[...r[e],...n];n.$exportMimeType=r}return n},name:"@lexical/clipboard/GetClipboardData"};const Zh={build:(e,t,n)=>Bu(t),config:{disabled:"undefined"==typeof window},name:"@lexical/dragon",register:(e,t,n)=>Du((()=>n.getOutput().disabled.value?void 0:function(e){const t=window.location.origin,n=n=>{if(n.origin!==t)return;const r=e.getRootElement();if(document.activeElement!==r)return;const i=n.data;if("string"==typeof i){let t;try{t=JSON.parse(i)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){const r=t.payload;if(r&&"makeChanges"===r.functionId){const t=r.args;if(t){const[r,i,o,s,l]=t;e.update((()=>{const e=to();if(Di(e)){const t=e.anchor;let a=t.getNode(),c=0,u=0;if(Ti(a)&&r>=0&&i>=0&&(c=r,u=r+i,e.setTextNodeRange(a,c,a,u)),c===u&&""===o||(e.insertRawText(o),a=t.getNode()),Ti(a)){c=s,u=s+l;const t=a.getTextContentSize();c=c>t?t:c,u=u>t?t:u,e.setTextNodeRange(a,c,a,u)}n.stopImmediatePropagation()}}))}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(e)))},Yh="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Jh=Yh&&"documentMode"in document?document.documentMode:null,Xh=Yh&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Qh=!(!Yh||!("InputEvent"in window)||Jh)&&"getTargetRanges"in new window.InputEvent("input"),eg=Yh&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,tg=Yh&&/Android/.test(navigator.userAgent),ng=Yh&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!tg,rg=Yh&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ig=Yh&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&Xh&&!rg;function og(e,t){t.update((()=>{if(null!==e){const n=lu(e,KeyboardEvent)?null:e.clipboardData,r=to();if(null!==r&&!r.isCollapsed()&&null!=n){e.preventDefault();const i=Oh(t);null!==i&&n.setData("text/html",i),n.setData("text/plain",r.getTextContent())}}}))}function sg(e){return oc(e.registerCommand(bn,(e=>{const t=to();return!!Di(t)&&(t.deleteCharacter(e),!0)}),0),e.registerCommand(wn,(e=>{const t=to();return!!Di(t)&&(t.deleteWord(e),!0)}),0),e.registerCommand(kn,(e=>{const t=to();return!!Di(t)&&(t.deleteLine(e),!0)}),0),e.registerCommand(xn,(e=>{const t=to();if(!Di(t))return!1;if("string"==typeof e)t.insertText(e);else{const n=e.dataTransfer;if(null!=n)Rh(n,t);else{const n=e.data;n&&t.insertText(n)}}return!0}),0),e.registerCommand(vn,(()=>{const e=to();return!!Di(e)&&(e.removeText(),!0)}),0),e.registerCommand(_n,(e=>{const t=to();return!!Di(t)&&(t.insertLineBreak(e),!0)}),0),e.registerCommand(Cn,(()=>{const e=to();return!!Di(e)&&(e.insertLineBreak(),!0)}),0),e.registerCommand(In,(e=>{const t=to();if(!Di(t))return!1;const n=e,r=n.shiftKey;return!!Cc(t,!0)&&(n.preventDefault(),Sc(t,r,!0),!0)}),0),e.registerCommand(Ln,(e=>{const t=to();if(!Di(t))return!1;const n=e,r=n.shiftKey;return!!Cc(t,!1)&&(n.preventDefault(),Sc(t,r,!1),!0)}),0),e.registerCommand(Bn,(t=>!!Di(to())&&(!eg||"ko-KR"!==navigator.language)&&(t.preventDefault(),e.dispatchCommand(bn,!0))),0),e.registerCommand(zn,(t=>!!Di(to())&&(t.preventDefault(),e.dispatchCommand(bn,!1))),0),e.registerCommand(Pn,(t=>{if(!Di(to()))return!1;if(null!==t){if((eg||ng||ig)&&Qh)return!1;t.preventDefault()}return e.dispatchCommand(_n,!1)}),0),e.registerCommand(Xn,(()=>(sl(),!0)),0),e.registerCommand(Yn,(t=>!!Di(to())&&(og(t,e),!0)),0),e.registerCommand(Jn,(t=>!!Di(to())&&(function(e,t){og(e,t),t.update((()=>{const e=to();Di(e)&&e.removeText()}))}(t,e),!0)),0),e.registerCommand(Sn,(t=>!!Di(to())&&(function(e,t){e.preventDefault(),t.update((()=>{const t=to(),n=lu(e,ClipboardEvent)?e.clipboardData:null;null!=n&&Di(t)&&Rh(n,t)}),{tag:Zr})}(t,e),!0)),0),e.registerCommand(Vn,(t=>function(e,t){return Dh(e,t,((e,t)=>Rh(e,t)))}(t,e)),0),e.registerCommand(jn,(t=>{const n=to();return!!Di(n)&&(n.isCollapsed()||null===t.dataTransfer||Ph(t.dataTransfer,e),!0)}),0))}function lg(e,t){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}const ag="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,cg=ag&&"documentMode"in document?document.documentMode:null,ug=ag&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),dg=!(!ag||!("InputEvent"in window)||cg)&&"getTargetRanges"in new window.InputEvent("input"),hg=ag&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,gg=ag&&/Android/.test(navigator.userAgent),pg=ag&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent)&&!gg,fg=ag&&/^(?=.*Chrome).*/i.test(navigator.userAgent),mg=ag&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&ug&&!fg,yg=un("DRAG_DROP_PASTE_FILE");let bg=class e extends Ho{static getType(){return"quote"}static clone(t){return new e(t.__key)}createDOM(e){const t=document.createElement("blockquote");return rc(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:wg,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ml(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return _g().updateFromJSON(e)}insertNewAfter(e,t){const n=ns(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){const e=ns();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function _g(){return El(new bg)}function Cg(e){return e instanceof bg}let xg=class e extends Ho{__tag;static getType(){return"heading"}static clone(t){return new e(t.__tag,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__tag=e.__tag}constructor(e="h1",t){super(t),this.__tag=e}getTag(){return this.getLatest().__tag}setTag(e){const t=this.getWritable();return t.__tag=e,t}createDOM(e){const t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){rc(n,r[t])}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:vg,priority:0}),h2:e=>({conversion:vg,priority:0}),h3:e=>({conversion:vg,priority:0}),h4:e=>({conversion:vg,priority:0}),h5:e=>({conversion:vg,priority:0}),h6:e=>({conversion:vg,priority:0}),p:e=>{const t=e.firstChild;return null!==t&&Sg(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>Sg(e)?{conversion:e=>({node:kg("h1")}),priority:3}:null}}exportDOM(e){const{element:t}=super.exportDOM(e);if(Ml(t)){this.isEmpty()&&t.append(document.createElement("br"));const e=this.getFormatType();e&&(t.style.textAlign=e);const n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return kg(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){const n=e?e.anchor.offset:0,r=this.getLastDescendant(),i=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?ns():kg(this.getTag()),o=this.getDirection();if(i.setDirection(o),this.insertAfter(i,t),0===n&&!this.isEmpty()&&e){const e=ns();e.select(),this.replace(e,!0)}return i}collapseAtStart(){const e=this.isEmpty()?ns():kg(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}};function Sg(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function vg(e){const t=e.nodeName.toLowerCase();let n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=kg(t),null!==e.style&&(Gl(e,n),n.setFormat(e.style.textAlign))),{node:n}}function wg(e){const t=_g();return null!==e.style&&(t.setFormat(e.style.textAlign),Gl(e,t)),{node:t}}function kg(e="h1"){return El(new xg(e))}function Eg(e){return e instanceof xg}function Tg(e){let t=null;if(lu(e,DragEvent)?t=e.dataTransfer:lu(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];const n=t.types,r=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),i]}function Ng(e){return Vo($s(e))}function Ag(e){for(const t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function Lg(e){return oc(e.registerCommand(gn,(e=>{const t=to();return!!$i(t)&&(t.clear(),!0)}),0),e.registerCommand(bn,(e=>{const t=to();return Di(t)?(t.deleteCharacter(e),!0):!!$i(t)&&(t.deleteNodes(),!0)}),0),e.registerCommand(wn,(e=>{const t=to();return!!Di(t)&&(t.deleteWord(e),!0)}),0),e.registerCommand(kn,(e=>{const t=to();return!!Di(t)&&(t.deleteLine(e),!0)}),0),e.registerCommand(xn,(t=>{const n=to();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;const r=t.dataTransfer;if(null!=r)Fh(r,n,e);else if(Di(n)){const e=t.data;return e&&n.insertText(e),!0}}return!0}),0),e.registerCommand(vn,(()=>{const e=to();return!!Di(e)&&(e.removeText(),!0)}),0),e.registerCommand(En,(e=>{const t=to();return!!Di(t)&&(t.formatText(e),!0)}),0),e.registerCommand(qn,(e=>{const t=to();if(!Di(t)&&!$i(t))return!1;const n=t.getNodes();for(const t of n){const n=ea(t,(e=>Ko(e)&&!e.isInline()));null!==n&&n.setFormat(e)}return!0}),0),e.registerCommand(_n,(e=>{const t=to();return!!Di(t)&&(t.insertLineBreak(e),!0)}),0),e.registerCommand(Cn,(()=>{const e=to();return!!Di(e)&&(e.insertParagraph(),!0)}),0),e.registerCommand(Kn,(()=>{const e=Li(),t=to();return Di(t)&&(e.setFormat(t.format),e.setStyle(t.style)),co([e]),!0}),0),e.registerCommand(Un,(()=>au((e=>{const t=e.getIndent();e.setIndent(t+1)}))),0),e.registerCommand(Wn,(()=>au((e=>{const t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}))),0),e.registerCommand(Fn,(e=>{const t=to();if($i(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}else if(Di(t)){const n=ul(t.focus,!0);if(!e.shiftKey&&Vo(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1}),0),e.registerCommand(Mn,(e=>{const t=to();if($i(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}else if(Di(t)){if(function(e){const t=e.focus;return"root"===t.key&&t.offset===Ks().getChildrenSize()}(t))return e.preventDefault(),!0;const n=ul(t.focus,!1);if(!e.shiftKey&&Vo(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1}),0),e.registerCommand(In,(e=>{const t=to();if($i(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),dc(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!Di(t))return!1;if(Cc(t,!0)){const n=e.shiftKey;return e.preventDefault(),Sc(t,n,!0),!0}return!1}),0),e.registerCommand(Ln,(e=>{const t=to();if($i(t)){const n=t.getNodes();if(n.length>0)return e.preventDefault(),dc(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!Di(t))return!1;const n=e.shiftKey;return!!Cc(t,!1)&&(e.preventDefault(),Sc(t,n,!1),!0)}),0),e.registerCommand(Bn,(t=>{if(Ng(t.target))return!1;const n=to();if(Di(n)){if(function(e){if(!e.isCollapsed())return!1;const{anchor:t}=e;if(0!==t.offset)return!1;const n=t.getNode();if(jo(n))return!1;const r=ru(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(Wn,void 0);if(hg&&"ko-KR"===navigator.language)return!1}else if(!$i(n))return!1;return t.preventDefault(),e.dispatchCommand(bn,!0)}),0),e.registerCommand(zn,(t=>{if(Ng(t.target))return!1;const n=to();return!(!Di(n)&&!$i(n))&&(t.preventDefault(),e.dispatchCommand(bn,!1))}),0),e.registerCommand(Pn,(t=>{const n=to();if(!Di(n))return!1;if(Ag(n),null!==t){if((hg||pg||mg)&&dg)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(_n,!1)}return e.dispatchCommand(Cn,void 0)}),0),e.registerCommand($n,(()=>!!Di(to())&&(e.blur(),!0)),0),e.registerCommand(Vn,(t=>{const[,n]=Tg(t);if(n.length>0){const r=lg(t.clientX,t.clientY);if(null!==r){const{offset:t,node:i}=r,o=$s(i);if(null!==o){const e=Ji();if(Ti(o))e.anchor.set(o.getKey(),t,"text"),e.focus.set(o.getKey(),t,"text");else{const t=o.getParentOrThrow().getKey(),n=o.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}Ws(At(e))}e.dispatchCommand(yg,n)}return t.preventDefault(),!0}return function(e,t){return Dh(e,t,Fh)}(t,e)}),0),e.registerCommand(jn,(t=>{const[n]=Tg(t),r=to();return!(n&&!Di(r)||(Di(r)&&!r.isCollapsed()&&null!==t.dataTransfer&&(Vh(t.dataTransfer,Wh(r)),Ph(t.dataTransfer,e)),0))}),0),e.registerCommand(Gn,(e=>{const[t]=Tg(e),n=to();if(t&&!Di(n))return!1;const r=lg(e.clientX,e.clientY);if(null!==r){Vo($s(r.node))&&e.preventDefault()}return!0}),0),e.registerCommand(Xn,(()=>(sl(),!0)),0),e.registerCommand(Yn,(t=>(Hh(e,lu(t,ClipboardEvent)?t:null),!0)),0),e.registerCommand(Jn,(t=>(async function(e,t){await Hh(t,lu(e,ClipboardEvent)?e:null),t.update((()=>{const e=to();Di(e)?e.removeText():$i(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,e),!0)),0),e.registerCommand(Sn,(t=>{const[,n,r]=Tg(t);return n.length>0&&!r?(e.dispatchCommand(yg,n),!0):(!Pl(t.target)||!bs(t.target))&&(null!==to()&&(function(e,t){e.preventDefault(),t.update((()=>{const n=to(),r=lu(e,InputEvent)||lu(e,KeyboardEvent)?null:e.clipboardData;null!=r&&null!==n&&Fh(r,n,t)}),{tag:Zr})}(t,e),!0))}),0),e.registerCommand(Dn,(e=>{const t=to();return Di(t)&&Ag(t),!1}),0),e.registerCommand(Hn,(e=>{const t=to();return Di(t)&&Ag(t),!1}),0))}const Og={conflictsWith:["@lexical/plain-text"],dependencies:[Zh],name:"@lexical/rich-text",nodes:()=>[xg,bg],register:Lg};function Ig(e,t){const n={...e,...t};for(const[r,i]of Object.entries(t))Rg(e[r],i)&&(n[r]=Ig(e[r],i));return n}function Rg(...e){return e.every((e=>e&&e.constructor==Object))}class Fg{#ye={};constructor(...e){this.merge(...e)}merge(...e){return this.#ye=e.reduce(Ig,this.#ye)}get(e){return e.split(".").reduce(((e,t)=>e[t]),this.#ye)}}function Mg(e,t){return[...Array(1+t-e).keys()].map((t=>t+e))}const Pg=new Fg({attachmentTagName:"action-text-attachment",attachmentContentTypeNamespace:"actiontext",authenticatedUploads:!1,extensions:[]}),Dg=new Fg({default:{attachments:!0,markdown:!0,multiLine:!0,permittedAttachmentTypes:null,richText:!0,toolbar:{upload:"both"},headings:["h2","h3","h4"],highlight:{buttons:{color:Mg(1,9).map((e=>`var(--highlight-${e})`)),"background-color":Mg(1,9).map((e=>`var(--highlight-bg-${e})`))},permit:{color:[],"background-color":[]}}}});var Bg={global:Pg,presets:Dg,configure({global:e,...t}){e&&Pg.merge(e),Dg.merge(t)}};function $g(e){be.clearConfig(),be.setConfig(function(e){const t={};for(const n of e)"string"==typeof n?t[n]||=[]:(t[n.tag]||=[],t[n.tag].push(...n.attributes));return{ALLOWED_TAGS:Object.keys(t),ALLOWED_ATTR:Ec,ADD_ATTR:(e,n)=>t[n]?.includes(e),ADD_URI_SAFE_ATTR:["caption","filename"],SAFE_FOR_XML:!1}}(e))}function zg(e){return be.sanitize(e)}function Hg(e){if(0===e)return"0 B";const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(2)} ${["B","KB","MB","GB","TB","PB"][t]}`}class Kg extends Wo{static getType(){return"custom_action_text_attachment"}static clone(e){return new Kg({...e},e.__key)}static importJSON(e){return new Kg({...e})}static importDOM(){return{[this.TAG_NAME]:e=>e.getAttribute("content")?{conversion:e=>{const t=[],n=e.previousSibling;n&&n.nodeType===Node.TEXT_NODE&&/\s$/.test(n.textContent)&&t.push(Ei(" "));const r=function(e){try{return JSON.parse(e)}catch{return e}}(e.getAttribute("content"));t.push(new Kg({sgid:e.getAttribute("sgid"),innerHtml:r,plainText:e.textContent.trim()||Dc(r),contentType:e.getAttribute("content-type")}));const i=e.nextSibling;return i&&i.nodeType===Node.TEXT_NODE&&/^\s/.test(i.textContent)&&t.push(Ei(" ")),{node:t}},priority:2}:null}}static get TAG_NAME(){return Bg.global.get("attachmentTagName")}constructor({tagName:e,sgid:t,contentType:n,innerHtml:r,plainText:i},o){super(o);const s=Bg.global.get("attachmentContentTypeNamespace");this.tagName=e||Kg.TAG_NAME,this.sgid=t,this.contentType=n||`application/vnd.${s}.unknown`,this.innerHtml=r,this.plainText=i??Dc(r)}createDOM(){const e=Ic(this.tagName,{"content-type":this.contentType,"data-lexxy-decorator":!0,draggable:!0});e.dataset.lexicalNodeKey=this.__key,e.insertAdjacentHTML("beforeend",zg(this.innerHtml));const t=Ic("lexxy-node-delete-button");return e.appendChild(t),e}updateDOM(){return!1}getTextContent(){return"\ufeff"}getReadableTextContent(){return this.plainText||`[${this.contentType}]`}isInline(){return!0}exportDOM(){return{element:Ic(this.tagName,{sgid:this.sgid,content:this.innerHtml,"content-type":this.contentType})}}exportJSON(){return{type:"custom_action_text_attachment",version:1,tagName:this.tagName,sgid:this.sgid,contentType:this.contentType,innerHtml:this.innerHtml,plainText:this.plainText}}decorate(){return null}}function Ug(e){return e instanceof Kg}function Wg(e){return/^(?:[a-z0-9]+:\/\/|www\.)[^\s]+$/i.test(e)}function Vg(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function qg(e,t){const n=Vg(e),r=Vg(t);if(!r)return 0;const i=n.match(new RegExp(`(?<![\\p{L}\\p{N}])${o=r,o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"u"));var o;return i?i.index:-1}function jg(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Gg(e,t,n){let r=n(),i=0,o=r,s=0,l=null;return(a,c,u,d,h,g)=>{const p=n();if(g.has(ei)&&(o=r,s=i,l=a),g.has(qr))return i=0,r=p,2;g.has(ti)&&l&&(r=o,i=s,a=l);const f=function(e,t,n,r,i){if(null===e||0===n.size&&0===r.size&&!i)return 0;const o=t._selection,s=e._selection;if(i)return 1;if(!(Di(o)&&Di(s)&&s.isCollapsed()&&o.isCollapsed()))return 0;const l=function(e,t,n){const r=e._nodeMap,i=[];for(const e of t){const t=r.get(e);void 0!==t&&i.push(t)}for(const[e,t]of n){if(!t)continue;const n=r.get(e);void 0===n||jo(n)||i.push(n)}return i}(t,n,r);if(0===l.length)return 0;if(l.length>1){const n=t._nodeMap,r=n.get(o.anchor.key),i=n.get(s.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&Ti(r)&&1===r.__text.length&&1===o.anchor.offset?2:0}const a=l[0],c=e._nodeMap.get(a.__key);if(!Ti(c)||!Ti(a)||c.__mode!==a.__mode)return 0;const u=c.__text,d=a.__text;if(u===d)return 0;const h=o.anchor,g=s.anchor;if(h.key!==g.key||"text"!==h.type)return 0;const p=h.offset,f=g.offset,m=d.length-u.length;return 1===m&&f===p-1?2:-1===m&&f===p+1?3:-1===m&&f===p?4:0}(a,c,d,h,e.isComposing()),m=(()=>{const n=null===u||u.editor===e,o=g.has(jr);if(!o&&n&&g.has(Gr))return 0;if(1===f)return 2;if(null===a)return 1;const s=c._selection;if(!(d.size>0||h.size>0))return null!==s?0:2;const l="number"==typeof t?t:t.peek();return!1===o&&0!==f&&f===i&&p<r+l&&n||1===d.size&&function(e,t,n){const r=t._nodeMap.get(e),i=n._nodeMap.get(e),o=t._selection,s=n._selection;return!(Di(o)&&Di(s)&&"element"===o.anchor.type&&"element"===o.focus.type&&"text"===s.anchor.type&&"text"===s.focus.type||!Ti(r)||!Ti(i)||r.__parent!==i.__parent)&&JSON.stringify(t.read((()=>r.exportJSON())))===JSON.stringify(n.read((()=>i.exportJSON())))}(Array.from(d)[0],a,c)?0:1})();return r=p,i=f,m}}function Zg(e){e.undoStack=[],e.redoStack=[],e.current=null}const Yg={build:(e,{delay:t,createInitialHistoryState:n,disabled:r,now:i})=>Bu({delay:t,disabled:r,historyState:n(e),now:i}),config:{createInitialHistoryState:function(){return{current:null,redoStack:[],undoStack:[]}},delay:300,disabled:"undefined"==typeof window,now:Date.now},name:"@lexical/history/History",register:(e,t,n)=>{const r=n.getOutput();return Du((()=>r.disabled.value?void 0:function(e,t,n,r=Date.now){const i=Gg(e,n,r);return oc(e.registerCommand(Tn,(()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==r.length){const i=t.current,o=r.pop();null!==i&&(n.push(i),e.dispatchCommand(tr,!0)),0===r.length&&e.dispatchCommand(nr,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:qr})}}(e,t),!0)),0),e.registerCommand(Nn,(()=>(function(e,t){const n=t.redoStack,r=t.undoStack;if(0!==n.length){const i=t.current;null!==i&&(r.push(i),e.dispatchCommand(nr,!0));const o=n.pop();0===n.length&&e.dispatchCommand(tr,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:qr})}}(e,t),!0)),0),e.registerCommand(Qn,(()=>(Zg(t),!1)),0),e.registerCommand(er,(()=>(Zg(t),e.dispatchCommand(tr,!1),e.dispatchCommand(nr,!1),!0)),0),e.registerUpdateListener((({editorState:n,prevEditorState:r,dirtyLeaves:o,dirtyElements:s,tags:l})=>{const a=t.current,c=t.redoStack,u=t.undoStack,d=null===a?null:a.editorState;if(null!==a&&n===d)return;const h=i(r,n,a,o,s,l);if(1===h)0!==c.length&&(t.redoStack=[],e.dispatchCommand(tr,!1)),null!==a&&(u.push({...a}),e.dispatchCommand(nr,!0));else if(2===h)return;t.current={editor:e,editorState:n}})))}(e,r.historyState.value,r.delay,(()=>r.now.peek()()))))}};Qa(Yg,{disabled:!0});class Jg{#oe;constructor(e){this.#oe=e}get editorElement(){return this.#oe}get editorConfig(){return this.#oe.config}get enabled(){return!0}get lexicalExtension(){return null}get allowedElements(){return[]}defineExtension(...e){return Xa(...e)}initializeToolbar(e){}setEditorValidity(e,t){this.editorElement.setElementValidity(this,e,t)}dispose(){}}function Xg(e){return Ko(e)&&wl(e)&&!jo(e)}function Qg(e){return function(e){return(Ko(e)||Vo(e))&&!e.isParentRequired()}(e)?e:e.getParent()?su(e,(()=>e.createParentElementNode())):e.createParentElementNode().append(e)}function ep(e){const t=nu(e,Md);return t?.getListType()??null}function tp(e){const t=e.getRootElement();return null!==t&&t.contains(document.activeElement)}function np(e,t=null){return null===t?np(e,!0)||np(e,!1):t?rp(e):function(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return Ko(t)||lc(177),e.offset===t.getChildrenSize()}(e)}function rp(e){return 0===e.offset}function ip(e,...t){return op(yi,e,((e,n)=>({...e,forChild:(r,i)=>{const o=e?.forChild??(e=>e);let s=o(r,i);if(Ti(s))return s=t.reduce(((e,t)=>t(e,n)??e),s),s}})))}function op(e,t,n=e=>e){return r=>{const i=e.importDOM()?.[t]?.(r);if(!i)return null;const o=i.conversion(r);return o?n(o,r)??o:o}}function sp(e){const t=e.anchor.getNode(),n=Ko(t)?t:t.getParentOrThrow(),r=n.getChildren();if(0===r.length)return!0;const i=r[r.length-1];if(t===n.getLatest()&&e.anchor.offset===r.length)return!0;if(t===i)return!0;const o=r.findLastIndex((e=>ci(e)));if(-1===o)return!0;return r.indexOf(t)>o}function lp(e){if(""!==e.getTextContent().trim())return!1;const t=e.getChildren?.();return!t||0===t.length||t.every((e=>!!ci(e)||lp(e)))}function ap(e){for(const t of pu(e)){if(!lp(t))break;t.remove()}}function cp(e,t,n,r){return Ti(e)&&" "===e.getTextContent()&&n===r-1&&t instanceof Kg}function up(e,t=e=>e.getTopLevelElement()){fc(e),function(e){if(e.isCollapsed())return;const t=e.anchor.getNode().getTopLevelElement(),n=e.focus.getNode().getTopLevelElement();if(!t||!n||t.is(n))return;if(r=e.anchor,i=t,dp(Fa(r,"next"),i)){const n=t.getNextSibling();n&&e.anchor.set(n.getKey(),0,"element")}var r,i;if(function(e,t){return dp(Fa(e,"previous"),t)}(e.focus,n)){const t=n.getPreviousSibling();t&&e.focus.set(t.getKey(),t.getChildrenSize(),"element")}}(e);const n=Fa(e.focus,"next"),r=Fa(e.anchor,"previous"),i=e.isCollapsed(),o=hp(n,i);let s=hp(r,i);o?.origin.is(s?.origin)&&(s=null);const l=o&&gp(o),a=s&&gp(s),c=a?.getNextSibling()??t(e.anchor.getNode()),u=l?.getPreviousSibling()??t(e.focus.getNode());c&&u&&Pa(Ta(Ua(Ca(c,"next")),Va(Ua(Ca(u,"previous")),"next")))}function dp(e,t){if(ua(e)&&Wa(e))return!1;let n=Ua(e);for(;n&&t.isParentOf(n.origin);){if(n.getNodeAtCaret())return!1;n=n.getParentCaret()}return!0}function hp(e,t=!1){const n=e.origin.getTopLevelElement();if(!n||!rs(n))return null;const r=(t?null:function(e,t){let n;if(ha(e)&&e.origin.is(t)||ua(e)&&Wa(e.getFlipped()))n=null;else if(da(e)&&e.getParentAtCaret().is(t))n=e;else{const r=function(e,t){let n=e.getSiblingCaret();for(;n&&!n.origin.getParent()?.is(t);){if(n.getNodeAtCaret())return null;n=n.getParentCaret()}return n?.origin.getParent()?.is(t)?n:null}(e,t);n=r?$a(r):null}return n&&ci(n.origin)?function(e){const t=e.getNodeAtCaret();return ci(t)?null:e.origin}(n):null}(e,n))??function(e,t){const n=function(e,t){return e.getParentAtCaret().is(t)?e:function(e,t){let n=e.getSiblingCaret();for(;n&&!n.origin.getParent()?.is(t);)n=n.getParentCaret();return n?.origin.getParent()?.is(t)?n:null}(e,t)}(e,t);if(!n)return null;for(const{origin:e}of n){if(!e.getParent().is(t))break;if(ci(e))return e}return null}(e,n);return r?ma(r,e.direction):null}function gp(e){let t=null;if(null===e.getNodeAtCaret())e.origin.remove();else{const n=e.origin;Ja(Va($a(e),"next")),t=n.getTopLevelElement(),n.remove()}return t}function pp(e){if("element"!==e.type)return!1;const t=e.getNode().getFirstChild();return(Ko(t)||Vo(t))&&!t.isInline()}function fp(e){return Di(e)&&[e.anchor,e.focus].some(pp)}const mp=un("REWRITE_HISTORY_COMMAND");class yp extends Jg{#be=null;get lexicalExtension(){return{name:"lexxy/rewritable-history",dependencies:[Yg],register:(e,t,n)=>{const r=n.getDependency(Yg).output;return this.#be=r.historyState.value,e.registerCommand(mp,(e=>this.#_e(e)),0)}}}get historyState(){return this.#be}get#Ce(){const e=Array.from(this.#be.undoStack);return this.#be.current&&e.push(this.#be.current),e.concat(this.#be.redoStack)}#_e(e){return this.#xe(e),this.#Se(e),!0}#xe(e){Hl().update((()=>{for(const[t,{patch:n,replace:r}]of Object.entries(e)){const e=Ps(t);e&&(n&&Object.assign(e.getWritable(),n),r&&e.replace(r))}}),{discrete:!0,tag:this.#ve()})}#Se(e){const t=Object.keys(e);for(const n of this.#Ce){if(!this.#we(n,t))continue;const r=n.editorState=bp(n.editorState);for(const[t,{patch:n,replace:i}]of Object.entries(e)){const e=r._nodeMap.get(t);e&&(n?this.#ke(r,e,n):i&&this.#Ee(r,e,i))}}}#we(e,t){return t.some((t=>e.editorState._nodeMap.has(t)))}#ve(){const e=[Gr,Jr];return tp(this.editorElement.editor)||e.push(Xr),e}#ke(e,t,n){e._nodeMap.set(t.__key,function(e,t){const n=ql(e);return Object.assign(n,t),n}(t,n))}#Ee(e,t,n){e._nodeMap.set(t.__key,function(e,t){const n=ql(e);return n.__key=t.__key,n.__parent=t.__parent,n.__prev=t.__prev,n.__next=t.__next,n}(n,t))}}function bp(e){const t=e.clone();return t._nodeMap=new Map(e._nodeMap),t}class _p extends Wo{static getType(){return"action_text_attachment"}static clone(e){return new _p({...e},e.__key)}static importJSON(e){return new _p({...e})}static importDOM(){return{[this.TAG_NAME]:()=>({conversion:e=>({node:new _p({sgid:e.getAttribute("sgid"),src:e.getAttribute("url"),previewable:e.getAttribute("previewable"),altText:e.getAttribute("alt"),caption:e.getAttribute("caption"),contentType:e.getAttribute("content-type"),fileName:e.getAttribute("filename"),fileSize:e.getAttribute("filesize"),width:e.getAttribute("width"),height:e.getAttribute("height")})}),priority:1}),img:()=>({conversion:e=>{const t=(e.getAttribute("src")??"").split("/").pop();return{node:new _p({src:e.getAttribute("src"),fileName:t,caption:e.getAttribute("alt")||"",contentType:"image/*",width:e.getAttribute("width"),height:e.getAttribute("height")})}},priority:1}),video:()=>({conversion:e=>{const t=e.getAttribute("src")||e.querySelector("source")?.src,n=t?.split("/")?.pop(),r=e.querySelector("source")?.getAttribute("content-type")||"video/*";return{node:new _p({src:t,fileName:n,contentType:r})}},priority:1})}}static get TAG_NAME(){return Bg.global.get("attachmentTagName")}constructor({tagName:e,sgid:t,src:n,previewSrc:r,previewable:i,previewStatusUrl:o,pendingPreview:s,altText:l,caption:a,contentType:c,fileName:u,fileSize:d,width:h,height:g,uploadError:p},f){var m;super(f),this.tagName=e||_p.TAG_NAME,this.sgid=t,this.src=n,this.previewSrc=r,this.previewable="string"==typeof(m=i)?"true"===m:Boolean(m),this.previewStatusUrl=o,this.pendingPreview=s,this.altText=l||"",this.caption=a||"",this.contentType=c||"",this.fileName=u||"",this.fileSize=d,this.width=h,this.height=g,this.uploadError=p,this.editor=Hl()}createDOM(){if(this.uploadError)return this.createDOMForError();if(this.pendingPreview)return this.#Te();const e=this.createAttachmentFigure();return this.isPreviewableAttachment?(e.appendChild(this.#Ne()),e.appendChild(this.#Ae())):this.isVideo?(e.appendChild(this.#Le()),e.appendChild(this.#Ae())):(e.appendChild(this.#Le()),e.appendChild(this.#Oe())),e}updateDOM(e,t){if(this.uploadError!==e.uploadError)return!0;const n=t.querySelector("figcaption textarea");return n&&this.caption&&(n.value=this.caption),!1}getTextContent(){return`[${this.caption||this.fileName}]\n\n`}isInline(){return this.isAttached()&&!this.getParent().is(vl(this))}exportDOM(){return{element:Ic(this.tagName,{sgid:this.sgid,previewable:this.previewable||null,url:this.src,alt:this.altText,caption:this.caption,"content-type":this.contentType,filename:this.fileName,filesize:this.fileSize,width:this.width,height:this.height,presentation:"gallery"})}}exportJSON(){return{type:"action_text_attachment",version:1,tagName:this.tagName,sgid:this.sgid,src:this.src,previewable:this.previewable,previewStatusUrl:this.previewStatusUrl,pendingPreview:this.pendingPreview,altText:this.altText,caption:this.caption,contentType:this.contentType,fileName:this.fileName,fileSize:this.fileSize,width:this.width,height:this.height}}decorate(){return null}createDOMForError(){const e=this.createAttachmentFigure();return e.classList.add("attachment--error"),e.appendChild(Ic("div",{innerText:`Error uploading ${this.fileName||"file"}`})),e}createAttachmentFigure(e=this.isPreviewableAttachment){const t=(n=this.contentType,r=e,i=this.fileName,Ic("figure",{className:`attachment attachment--${r?"preview":"file"} attachment--${i?i.split(".").pop().toLowerCase():"unknown"}`,"data-content-type":n}));var n,r,i;t.draggable=!0,t.dataset.lexicalNodeKey=this.__key;const o=Ic("lexxy-node-delete-button");return t.appendChild(o),t}get isPreviewableAttachment(){return this.isPreviewableImage||this.previewable}get isPreviewableImage(){return Fc(this.contentType)}get isVideo(){return this.contentType.startsWith("video/")}#Te(){const e=this.createAttachmentFigure(!1);return e.appendChild(this.#Le()),e.appendChild(this.#Oe()),this.#Ie(e),e}patchAndRewriteHistory(e){this.editor.dispatchCommand(mp,{[this.getKey()]:{patch:e}})}replaceAndRewriteHistory(e){this.editor.dispatchCommand(mp,{[this.getKey()]:{replace:e}})}#Ne(e={}){const t=Ic("img",{src:this.previewSrc||this.src,draggable:!1,alt:this.altText,...this.#Re,...e});this.previewable&&!this.isPreviewableImage&&(t.onerror=()=>this.#Fe(t)),this.previewSrc&&this.#Me(t);const n=Ic("div",{className:"attachment__container"});return n.appendChild(t),n}#Me(e){const t=this.previewSrc,n=new Image;n.onload=()=>this.#Pe(e,t),n.onerror=()=>this.#De(t),n.src=this.src}#Pe(e,t){e.src=this.src,this.patchAndRewriteHistory({previewSrc:null}),this.#Be(t)}#De(e){this.patchAndRewriteHistory({previewSrc:null,uploadError:!0}),this.#Be(e)}#Be(e){e?.startsWith("blob:")&&URL.revokeObjectURL(e)}#Fe(e){const t=e.closest("figure.attachment");t&&this.#$e(t,"attachment--preview","attachment--file",(()=>{t.appendChild(this.#Le()),t.appendChild(this.#Oe())}))}#Ie(e){this.previewStatusUrl?this.#ze(e):this.#He(e)}#ze(e){let t=0;const n=async()=>{if(this.editor.read((()=>this.isAttached())))try{const t=await fetch(this.previewStatusUrl,{credentials:"include",redirect:"manual"});if(!this.editor.read((()=>this.isAttached())))return;t.ok?r():this.#Ke(e,this.src)}catch{r()}},r=()=>{if(t++,t<20&&this.editor.read((()=>this.isAttached()))){const e=Math.min(2e3*Math.pow(1.5,t),12e4);setTimeout(n,e)}};setTimeout(n,3e3)}#He(e){const t=new Image;t.onload=()=>{this.editor.read((()=>this.isAttached()))&&this.#Ke(e,this.src)},t.onerror=()=>{this.editor.read((()=>this.isAttached()))&&this.patchAndRewriteHistory({pendingPreview:!1})},t.src=this.src}#Ke(e,t){this.#$e(e,"attachment--file","attachment--preview",(()=>{const n=Ic("img",{src:t,draggable:!1,alt:this.altText});n.onerror=()=>this.#Fe(n);const r=Ic("div",{className:"attachment__container"});r.appendChild(n),e.appendChild(r),e.appendChild(this.#Ae())})),this.patchAndRewriteHistory({pendingPreview:!1})}#$e(e,t,n,r){e.className=e.className.replace(t,n);for(const t of[...e.querySelectorAll(".attachment__container, .attachment__icon, figcaption")])t.remove();r()}get#Re(){return this.width&&this.height?{width:this.width,height:this.height}:{}}#Le(){return Ic("span",{className:"attachment__icon",textContent:`${this.fileName?this.fileName.split(".").pop().toLowerCase():"unknown"}`})}#Oe(){const e=Ic("figcaption",{className:"attachment__caption"}),t=Ic("strong",{className:"attachment__name",textContent:this.caption||this.fileName});if(e.appendChild(t),this.fileSize){const t=Ic("span",{className:"attachment__size",textContent:Hg(this.fileSize)});e.appendChild(t)}return e}#Ae(){const e=Ic("figcaption",{className:"attachment__caption"}),t=Ic("textarea",{value:this.caption,placeholder:this.fileName,rows:"1"});return t.addEventListener("focusin",(()=>t.placeholder="Add caption...")),t.addEventListener("blur",(e=>this.#Ue(e))),t.addEventListener("keydown",(e=>this.#We(e))),t.addEventListener("copy",(e=>e.stopPropagation())),t.addEventListener("cut",(e=>e.stopPropagation())),t.addEventListener("paste",(e=>e.stopPropagation())),e.appendChild(t),e}#Ue(e){this.#Ve(e.target)}#Ve(e){e.placeholder=this.fileName,this.editor.update((()=>{this.getWritable().caption=e.value}))}#We(e){"Enter"===e.key&&(e.preventDefault(),e.target.blur(),this.editor.update((()=>{this.selectNext(0,0)}),{tag:Gr})),e.stopPropagation()}}function Cp(...e){return new _p(...e)}function xp(e){return e instanceof _p}function Sp(e,t){return(e instanceof Kg||e instanceof _p)&&!t.permitsAttachmentContentType(e.contentType)}function vp(e){return e instanceof _p&&/^data:image\/[^,]*;base64,/i.test(e.src??"")}function wp(e,t){const n=function(e){try{const[t,n]=e.split(","),r=t.match(/^data:(image\/[A-Za-z0-9][A-Za-z0-9!#$&\-^_.+]*)/)?.[1];if(r){const e=Uint8Array.from(atob(n),(e=>e.charCodeAt(0))),t=function(e){return e?e.split("/")[1]:null}(r)??"png";return new File([e],`pasted-image-${Date.now()}.${t}`,{type:r})}return null}catch{return null}}(e.src);return n&&t.acceptsFile(n)?t.contents.$createUploadNode(n):null}function kp(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ep(e,t){let n=e;for(let r=ma(e,t);r&&(Vp(r.origin)||Oi(r.origin));r=r.getAdjacentCaret())n=r.origin;return n}function Tp(e){return Ep(e,"previous")}function Np(e){return Ep(e,"next")}function Ap(e,t){for(const n of e.childNodes){if(Ml(n)&&n.tagName===t)return!0;Ap(n,t)}return!1}const Lp="data-language",Op="data-highlight-language",Ip="data-theme";let Rp=class e extends Ho{__language;__theme;__isSyntaxHighlightSupported;static getType(){return"code"}static clone(t){return new e(t.__language,t.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){const t=document.createElement("code");rc(t,e.theme.code),t.setAttribute("spellcheck","false");const n=this.getLanguage();n&&(t.setAttribute(Lp,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(Op,n));const r=this.getTheme();r&&t.setAttribute(Ip,r);const i=this.getStyle();return i&&oi(t.style,i),t}updateDOM(e,t,n){const r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(Lp,r):i&&t.removeAttribute(Lp);const o=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?o&&r?r!==i&&t.setAttribute(Op,r):t.removeAttribute(Op):o&&r&&t.setAttribute(Op,r);const s=this.__theme,l=e.__theme;s?s!==l&&t.setAttribute(Ip,s):l&&t.removeAttribute(Ip);const a=this.__style,c=e.__style;return a!==c&&oi(t.style,a,c),!1}exportDOM(e){const t=document.createElement("pre");rc(t,e._config.theme.code),t.setAttribute("spellcheck","false");const n=this.getLanguage();n&&(t.setAttribute(Lp,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(Op,n));const r=this.getTheme();r&&t.setAttribute(Ip,r);const i=this.getStyle();return i&&oi(t.style,i),{element:t}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||Ap(e,"BR"))?{conversion:Pp,priority:1}:null,div:()=>({conversion:Dp,priority:1}),pre:()=>({conversion:Pp,priority:0}),table:e=>Hp(e)?{conversion:Bp,priority:3}:null,td:e=>{const t=e,n=t.closest("table");return t.classList.contains("js-file-line")||n&&Hp(n)?{conversion:$p,priority:3}:null},tr:e=>{const t=e.closest("table");return t&&Hp(t)?{conversion:$p,priority:3}:null}}}static importJSON(e){return Fp().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,t=!0){if(!nd(Hl(),"@lexical/code")){const t=function(e){const{anchor:t}=e;if(e.isCollapsed()&&"element"===t.type){const e=t.getNode();if(Mp(e)){const n=e.getChildrenSize();if(n>=2&&t.offset===n){const t=e.getLastChild();if(ci(t)&&ci(t.getPreviousSibling())){const t=ns();return e.splice(n-2,2,[]).insertAfter(t,!1),t.select(),t}}}}return null}(e);if(t)return t}const{anchor:n,focus:r}=e,i=(n.isBefore(r)?n:r).getNode();if(Ti(i)){let e=Tp(i);const t=[];for(;;)if(Oi(e))t.push(Li()),e=e.getNextSibling();else{if(!Vp(e))break;{let n=0;const r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&" "===r[n];)n++;if(0!==n&&t.push(Wp(" ".repeat(n))),n!==i)break;e=e.getNextSibling()}}const r=i.splitText(n.offset)[0],o=0===n.offset?0:1,s=r.getIndexWithinParent()+o,l=i.getParentOrThrow(),a=[ai(),...t];l.splice(s,0,a);const c=t[t.length-1];c?c.select():0===n.offset?r.selectPrevious():r.getNextSibling().selectNext(0,0)}if(Mp(i)){const{offset:t}=e.anchor;i.splice(t,0,[ai()]),i.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){const e=ns();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}setLanguage(e){const t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){const t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){const t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}};function Fp(e,t){return Ql(Rp).setLanguage(e).setTheme(t)}function Mp(e){return e instanceof Rp}function Pp(e){return{node:Fp(e.getAttribute(Lp))}}function Dp(e){const t=e,n=zp(t);return n||function(e){let t=e.parentElement;for(;null!==t;){if(zp(t))return!0;t=t.parentElement}return!1}(t)?{node:n?Fp():null}:{node:null}}function Bp(){return{node:Fp()}}function $p(){return{node:null}}function zp(e){return null!==e.style.fontFamily.match("monospace")}function Hp(e){return e.classList.contains("js-file-line-container")}let Kp=class e extends yi{__highlightType;constructor(e="",t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(t){return new e(t.__text,t.__highlightType||void 0,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__highlightType=e.__highlightType}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){const t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){const t=super.createDOM(e);return rc(t,Up(e.theme,this.__highlightType)),t}updateDOM(e,t,n){const r=super.updateDOM(e,t,n),i=Up(n.theme,e.__highlightType),o=Up(n.theme,this.__highlightType);return i!==o&&(i&&ic(t,i),o&&rc(t,o)),r}static importJSON(e){return Wp().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return Fp()}};function Up(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function Wp(e="",t){return El(new Kp(e,t))}function Vp(e){return e instanceof Kp}function qp(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}!function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(Prism);const jp=globalThis.Prism||window.Prism,Gp={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function Zp(e){return"string"==typeof e?e:Array.isArray(e)?e.map(Zp).join(""):Zp(e.content)}function Yp(e,t){const n=/^diff-([\w-]+)/i.exec(t),r=e.getTextContent();let i=jp.tokenize(r,jp.languages[n?"diff":t]);return n&&(i=function(e,t){const n=t,r=jp.languages[n],i={tokens:e},o=jp.languages.diff.PREFIXES;for(const e of i.tokens){if("string"==typeof e||!(e.type in o)||!Array.isArray(e.content))continue;const t=e.type;let n=0;const i=()=>(n++,new jp.Token("prefix",o[t],t.replace(/^(\w+).*/,"$1"))),s=e.content.filter((e=>"string"==typeof e||"prefix"!==e.type)),l=e.content.length-s.length,a=jp.tokenize(Zp(s),r);a.unshift(i());const c=/\r\n|\n/g,u=e=>{const t=[];c.lastIndex=0;let r,o=0;for(;n<l&&(r=c.exec(e));){const n=r.index+r[0].length;t.push(e.slice(o,n)),o=n,t.push(i())}if(0!==t.length)return o<e.length&&t.push(e.slice(o)),t},d=e=>{for(let t=0;t<e.length&&n<l;t++){const n=e[t];if("string"==typeof n){const r=u(n);r&&(e.splice(t,1,...r),t+=r.length-1)}else if("string"==typeof n.content){const e=u(n.content);e&&(n.content=e)}else Array.isArray(n.content)?d(n.content):d([n.content])}};d(a),n<l&&a.push(i()),e.content=a}return i.tokens}(i,n[1])),Jp(i)}function Jp(e,t){const n=[];for(const r of e)if("string"==typeof r){const e=r.split(/(\n|\t)/),i=e.length;for(let r=0;r<i;r++){const i=e[r];"\n"===i||"\r\n"===i?n.push(ai()):"\t"===i?n.push(Li()):i.length>0&&n.push(Wp(i,t))}}else{const{content:e,alias:t}=r;"string"==typeof e?n.push(...Jp([e],"prefix"===r.type&&"string"==typeof t?t:r.type)):Array.isArray(e)&&n.push(...Jp(e,"unchanged"===r.type?void 0:r.type))}return n}const Xp={$tokenize(e,t){return Yp(e,t||this.defaultLanguage)},defaultLanguage:"javascript",tokenize(e,t){return jp.tokenize(e,jp.languages[t||""]||jp.languages[this.defaultLanguage])}};function Qp(e,t,n,r){const i=r.getParent();Mp(i)?tf(e,t,n,i):Vp(r)&&r.replace(Ei(r.__text))}function ef(e,t){const n=t.getElementByKey(e.getKey());if(null===n)return;const r=e.getChildren(),i=r.length;if(i===n.__cachedChildrenLength)return;n.__cachedChildrenLength=i;let o="1",s=1;for(let e=0;e<i;e++)ci(r[e])&&(o+="\n"+ ++s);n.setAttribute("data-gutter",o)}function tf(e,t,n,r){const{nodesCurrentlyHighlighting:i}=n,o=r.getKey();void 0===r.getLanguage()&&r.setLanguage(t.defaultLanguage);if(!function(e){const t=function(e){const t=/^diff-([\w-]+)/i.exec(e);return t?t[1]:null}(e),n=t||e;try{return!!n&&jp.languages.hasOwnProperty(n)}catch(e){return!1}}(r.getLanguage()||t.defaultLanguage))return r.getIsSyntaxHighlightSupported()&&r.setIsSyntaxHighlightSupported(!1),void async function(){}();r.getIsSyntaxHighlightSupported()||r.setIsSyntaxHighlightSupported(!0),i.has(o)||(i.add(o),n.didTransform||(n.didTransform=!0,bl((()=>{n.didTransform=!1,i.clear()}))),function(e,t){const n=Ps(e);if(!Mp(n)||!n.isAttached())return;const r=to();if(!Di(r))return void t();const i=r.anchor,o=i.offset,s="element"===i.type&&ci(n.getChildAtIndex(i.offset-1));let l=0;if(!s){const e=i.getNode();l=o+e.getPreviousSiblings().reduce(((e,t)=>e+t.getTextContentSize()),0)}t()&&(s?i.getNode().select(o,o):n.getChildren().some((e=>{const t=Ti(e);if(t||ci(e)){const n=e.getTextContentSize();if(t&&n>=l)return e.select(l,l),!0;l-=n}return!1})))}(o,(()=>{const e=Ps(o);if(!Mp(e)||!e.isAttached())return!1;const n=e.getLanguage()||t.defaultLanguage,i=t.$tokenize(e,n),s=function(e,t){let n=0;for(;n<e.length&&nf(e[n],t[n]);)n++;const r=e.length,i=t.length,o=Math.min(r,i)-n;let s=0;for(;s<o;)if(s++,!nf(e[r-s],t[i-s])){s--;break}const l=r-s;return{from:n,nodesForReplacement:t.slice(n,i-s),to:l}}(e.getChildren(),i),{from:l,to:a,nodesForReplacement:c}=s;return!(l===a&&!c.length||(r.splice(l,a-l,c),0))})))}function nf(e,t){return Vp(e)&&Vp(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||Oi(e)&&Oi(t)||ci(e)&&ci(t)}function rf(e){if(!Di(e))return!1;const t=e.anchor.getNode(),n=Mp(t)?t:t.getParent(),r=e.focus.getNode(),i=Mp(r)?r:r.getParent();return Mp(n)&&n.is(i)}function of(e){const t=e.getNodes(),n=[];if(1===t.length&&Mp(t[0]))return n;let r=[];for(let e=0;e<t.length;e++){const i=t[e];Vp(i)||Oi(i)||ci(i)||qp(169),ci(i)?r.length>0&&(n.push(r),r=[]):r.push(i)}if(r.length>0){const t=e.isBackward()?e.anchor:e.focus,i=Ri(r[0].getKey(),0,"text");t.is(i)||n.push(r)}return n}function sf(e){const t=to();if(!Di(t)||!rf(t))return!1;const n=of(t),r=n.length;if(0===r&&t.isCollapsed())return e===Un&&t.insertNodes([Li()]),!0;if(0===r&&e===Un&&"\n"===t.getTextContent()){const e=Li(),n=ai(),r=t.isBackward()?"previous":"next";return t.insertNodes([e,n]),Pa(qa(Ta(ya(e,"next",0),Ua(ma(n,"next"))),r)),!0}for(let i=0;i<r;i++){const r=n[i];if(r.length>0){let n=r[0];if(0===i&&(n=Tp(n)),e===Un){const e=Li();if(n.insertBefore(e),0===i){const r=t.isBackward()?"focus":"anchor",i=Ri(n.getKey(),0,"text");t[r].is(i)&&t[r].set(e.getKey(),0,"text")}}else Oi(n)&&n.remove()}}return!0}function lf(e,t){const n=to();if(!Di(n))return!1;const{anchor:r,focus:i}=n,o=r.offset,s=i.offset,l=r.getNode(),a=i.getNode(),c=e===Fn;if(!rf(n)||!Vp(l)&&!Oi(l)||!Vp(a)&&!Oi(a))return!1;if(!t.altKey){if(n.isCollapsed()){const e=l.getParentOrThrow();if(c&&0===o&&null===l.getPreviousSibling()){if(null===e.getPreviousSibling())return e.selectPrevious(),t.preventDefault(),!0}else if(!c&&o===l.getTextContentSize()&&null===l.getNextSibling()&&null===e.getNextSibling())return e.selectNext(),t.preventDefault(),!0}return!1}let u,d;if(l.isBefore(a)?(u=Tp(l),d=Np(a)):(u=Tp(a),d=Np(l)),null==u||null==d)return!1;const h=u.getNodesBetween(d);for(let e=0;e<h.length;e++){const t=h[e];if(!Vp(t)&&!Oi(t)&&!ci(t))return!1}t.preventDefault(),t.stopPropagation();const g=c?u.getPreviousSibling():d.getNextSibling();if(!ci(g))return!0;const p=c?g.getPreviousSibling():g.getNextSibling();if(null==p)return!0;const f=Vp(p)||Oi(p)||ci(p)?c?Tp(p):Np(p):null;let m=null!=f?f:p;return g.remove(),h.forEach((e=>e.remove())),e===Fn?(h.forEach((e=>m.insertBefore(e))),m.insertBefore(g)):(m.insertAfter(g),m=g,h.forEach((e=>{m.insertAfter(e),m=e}))),n.setTextNodeRange(l,o,a,s),!0}function af(e,t){const n=to();if(!Di(n))return!1;const{anchor:r,focus:i}=n,o=r.getNode(),s=i.getNode(),l=e===Rn;if(!rf(n)||!Vp(o)&&!Oi(o)||!Vp(s)&&!Oi(s))return!1;const a=s;if("rtl"===function(e){const t=Tp(e),n=Np(e);let r=t;for(;null!==r;){if(Vp(r)){const e=vs(r.getTextContent());if(null!==e)return e}if(r===n)break;r=r.getNextSibling()}const i=t.getParent();if(Ko(i)){const e=i.getDirection();if("ltr"===e||"rtl"===e)return e}return null}(a)?!l:l){const e=function(e,t){let n=null,r=null,i=e,o=t,s=e.getTextContent();for(;;){if(0===o){if(i=i.getPreviousSibling(),null===i)break;if(Vp(i)||Oi(i)||ci(i)||kp(167),ci(i)){n={node:i,offset:1};break}o=Math.max(0,i.getTextContentSize()-1),s=i.getTextContent()}else o--;const e=s[o];Vp(i)&&" "!==e&&(r={node:i,offset:o})}if(null!==r)return r;let l=null;if(t<e.getTextContentSize())Vp(e)&&(l=e.getTextContent()[t]);else{const t=e.getNextSibling();Vp(t)&&(l=t.getTextContent()[0])}if(null!==l&&" "!==l)return n;{const r=function(e,t){let n=e,r=t,i=e.getTextContent(),o=e.getTextContentSize();for(;;){if(!Vp(n)||r===o){if(n=n.getNextSibling(),null===n||ci(n))return null;Vp(n)&&(r=0,i=n.getTextContent(),o=n.getTextContentSize())}if(Vp(n)){if(" "!==i[r])return{node:n,offset:r};r++}}}(e,t);return null!==r?r:n}}(a,i.offset);if(null!==e){const{node:t,offset:r}=e;ci(t)?t.selectNext(0,0):n.setTextNodeRange(t,r,t,r)}else a.getParentOrThrow().selectStart()}else(function(e){const t=Np(e);return ci(t)&&kp(168),t})(a).select();return t.preventDefault(),t.stopPropagation(),!0}const cf={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",powershell:"PowerShell",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},uf=function(e){return Gp[e]||e},df=Xp,hf=function(e,t){if(!e.hasNodes([Rp,Kp]))throw new Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");null==t&&(t=Xp);const n=[];!0!==e._headless&&n.push(e.registerMutationListener(Rp,(t=>{e.getEditorState().read((()=>{for(const[n,r]of t)if("destroyed"!==r){const t=Ps(n);null!==t&&ef(t,e)}}))}),{skipInitialization:!1}));const r={didTransform:!1,nodesCurrentlyHighlighting:new Set};return n.push(e.registerNodeTransform(Rp,tf.bind(null,e,t,r)),e.registerNodeTransform(yi,Qp.bind(null,e,t,r)),e.registerNodeTransform(Kp,Qp.bind(null,e,t,r)),e.registerCommand(Hn,(t=>{const n=function(e){const t=to();if(!Di(t)||!rf(t))return null;const n=e?Wn:Un,r=e?Wn:Kn,i=t.anchor,o=t.focus;if(i.is(o))return r;const s=of(t);if(1!==s.length)return n;const l=s[0];let a,c;0===l.length&&qp(285),t.isBackward()?(a=o,c=i):(a=i,c=o);const u=Tp(l[0]),d=Np(l[0]),h=Ri(u.getKey(),0,"text"),g=Ri(d.getKey(),d.getTextContentSize(),"text");return a.isBefore(h)||g.isBefore(c)?n:h.isBefore(a)||c.isBefore(g)?r:n}(t.shiftKey);return null!==n&&(t.preventDefault(),e.dispatchCommand(n,void 0),!0)}),1),e.registerCommand(Kn,(()=>!!rf(to())&&(co([Li()]),!0)),1),e.registerCommand(Un,(e=>sf(Un)),1),e.registerCommand(Wn,(e=>sf(Wn)),1),e.registerCommand(Fn,(e=>{const t=to();if(!Di(t)||!rf(t))return!1;const n=Ks().getFirstDescendant(),{anchor:r}=t,i=r.getNode();return(!n||!i||n.getKey()!==i.getKey())&&lf(Fn,e)}),1),e.registerCommand(Mn,(e=>{const t=to();if(!Di(t)||!rf(t))return!1;const n=Ks().getLastDescendant(),{anchor:r}=t,i=r.getNode();return(!n||!i||n.getKey()!==i.getKey())&&lf(Mn,e)}),1),e.registerCommand(Rn,(e=>af(Rn,e)),1),e.registerCommand(On,(e=>af(On,e)),1)),oc(...n)};function gf(e,t){const n={};for(const r of e){const e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}const pf=/[!-/:-@[-`{-~\s]/;function ff(e){return e.replace(/\\([!-/:-@[-`{-~])/g,"$1").replace(/&#(\d+);/g,((e,t)=>String.fromCodePoint(Number(t))))}function mf(e){return Ti(e)&&!e.hasFormat("code")}function yf(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const bf=pt("mdListMarker",{parse:e=>"string"==typeof e&&/^[-*+]$/.test(e)?e:"-",resetOnCopyNode:!0}),_f=pt("mdCodeFence",{parse:e=>"string"==typeof e&&/^`{3,}$/.test(e)?e:"```",resetOnCopyNode:!0}),Cf=e=>(t,n,r,i)=>{const o=e(r);o.append(...n),t.replace(o),i||o.select(0,0)},xf=e=>(t,n,r,i)=>{const o=t.getPreviousSibling(),s=t.getNextSibling(),l=Rd("check"===e?"x"===r[3]:void 0),a=r[0].trim()[0],c="bullet"!==e&&"check"!==e||a!==bf.parse(a)?void 0:a;if(Hd(s)&&s.getListType()===e){c&&mt(s,bf,c);const e=s.getFirstChild();null!==e?e.insertBefore(l):s.append(l),t.remove()}else if(Hd(o)&&o.getListType()===e)c&&mt(o,bf,c),o.append(l),t.remove();else{const n=zd(e,"number"===e?Number(r[2]):void 0);c&&mt(n,bf,c),n.append(l),t.replace(n)}l.append(...n),i||l.select(0,0);const u=function(e){const t=e.match(/\t/g),n=e.match(/ /g);let r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(r[1]);u&&l.setIndent(u)},Sf=(e,t,n)=>{const r=[],i=e.getChildren();let o=0;for(const s of i)if(Fd(s)){if(1===s.getChildrenSize()){const e=s.getFirstChild();if(Hd(e)){r.push(Sf(e,t,n+1));continue}}const i=" ".repeat(4*n),l=e.getListType(),a=ft(e,bf),c="number"===l?`${e.getStart()+o}. `:"check"===l?`${a} [${s.getChecked()?"x":" "}] `:a+" ";let u=t(s);"number"!==l&&(u=u.replace(/^(\s{0,3}\d+)(\.\s)/,"$1\\$2")),r.push(i+c+u),o++}return r.join("\n")},vf={dependencies:[xg],export:(e,t)=>{if(!Eg(e))return null;const n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:/^(#{1,6})\s/,replace:Cf((e=>kg("h"+e[1].length))),type:"element"},wf={dependencies:[bg],export:(e,t)=>{if(!Cg(e))return null;const n=t(e).split("\n"),r=[];for(const e of n)r.push("> "+e);return r.join("\n")},regExp:/^>\s/,replace:(e,t,n,r)=>{if(r){const n=e.getPreviousSibling();if(Cg(n))return n.splice(n.getChildrenSize(),0,[ai(),...t]),void e.remove()}const i=_g();i.append(...t),e.replace(i),r||i.select(0,0)},type:"element"},kf={dependencies:[Rp],export:e=>{if(!Mp(e))return null;const t=e.getTextContent();let n=ft(e,_f);if(t.indexOf(n)>-1){const e=t.match(/`{3,}/g);if(e){const t=Math.max(...e.map((e=>e.length)));n="`".repeat(t+1)}}return n+(e.getLanguage()||"")+(t?"\n"+t:"")+"\n"+n},handleImportAfterStartMatch:({lines:e,rootNode:t,startLineIndex:n,startMatch:r})=>{const i=r[1],o=i.trim().length,s=e[n],l=r.index+i.length,a=s.slice(l),c=new RegExp(`\`{${o},}$`);if(c.test(a)){const e=a.match(c),i=a.slice(0,a.lastIndexOf(e[0])),o=[...r];return o[2]="",kf.replace(t,null,o,e,[i],!0),[!0,n]}const u=new RegExp(`^[ \\t]*\`{${o},}$`);for(let i=n+1;i<e.length;i++){const o=e[i];if(u.test(o)){const l=o.match(u),a=e.slice(n+1,i),c=s.slice(r[0].length);return c.length>0&&a.unshift(c),kf.replace(t,null,r,l,a,!0),[!0,i]}}const d=e.slice(n+1),h=s.slice(r[0].length);return h.length>0&&d.unshift(h),kf.replace(t,null,r,null,d,!0),[!0,e.length-1]},regExpEnd:{optional:!0,regExp:/^[ \t]*`{3,}$/},regExpStart:/^([ \t]*`{3,})([\w-]+)?[ \t]?/,replace:(e,t,n,r,i,o)=>{let s,l;const a=n[1]?n[1].trim():"```",c=n[2]||void 0;if(!t&&i){if(1===i.length)r?(s=Fp(c),l=i[0]):(s=Fp(c),l=i[0].startsWith(" ")?i[0].slice(1):i[0]);else{for(s=Fp(c),i.length>0&&(0===i[0].trim().length?i.shift():i[0].startsWith(" ")&&(i[0]=i[0].slice(1)));i.length>0&&!i[i.length-1].length;)i.pop();l=i.join("\n")}mt(s,_f,a);const t=Ei(l);s.append(t),e.append(s)}else t&&Cf((e=>Fp(e?e[2]:void 0)))(e,t,n,o)},type:"multiline-element"},Ef={dependencies:[Md,Ld],export:(e,t)=>Hd(e)?Sf(e,t,0):null,regExp:/^(\s*)[-*+]\s/,replace:xf("bullet"),type:"element"},Tf={dependencies:[Md,Ld],export:(e,t)=>Hd(e)?Sf(e,t,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:xf("number"),type:"element"},Nf={dependencies:[id],export:(e,t,n)=>{if(!ld(e)||ud(e))return null;const r=t(e);let i=e.getTitle();return null!=i&&(i=i.replace(/([\\"])/g,"\\$1")),i?`[${r}](${e.getURL()} "${i}")`:`[${r}](${e.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[\]]*(?:\[[^[\]]*\][^[\]]*)*)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{if(ea(e,ld))return;const[,n,r,i]=t,o=sd(null!=r?ff(r):void 0,{title:null!=i?ff(i):void 0}),s=n.split("[").length-1,l=n.split("]").length-1;let a=n,c="";if(s<l)return;if(s>l){const e=n.split("[");c="["+e[0],a=e.slice(1).join("[")}const u=Ei(a);return u.setFormat(e.getFormat()),o.append(u),e.replace(o),c&&o.insertBefore(Ei(c)),u},trigger:")",type:"text-match"},Af=[...[vf,wf,Ef,Tf],...[kf],...[{format:["code"],tag:"`",type:"text-format"},{format:["bold","italic"],tag:"***",type:"text-format"},{format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},{format:["bold"],tag:"**",type:"text-format"},{format:["bold"],intraword:!1,tag:"__",type:"text-format"},{format:["highlight"],tag:"==",type:"text-format"},{format:["italic"],tag:"*",type:"text-format"},{format:["italic"],intraword:!1,tag:"_",type:"text-format"},{format:["strikethrough"],tag:"~~",type:"text-format"}],...[Nf]];function Lf(e,t,n,r,i){if(!wl(e.getParent())||e.getFirstChild()!==t)return!1;const o=t.getTextContent();if(!i&&" "!==o[n-1])return!1;for(const{regExpStart:s,replace:l,regExpEnd:a}of r){if(a&&!("optional"in a)||a&&"optional"in a&&!a.optional)continue;const r=o.match(s);if(r){const o=i||r[0].endsWith(" ")?n:n-1;if(r[0].length!==o)continue;const s=t.getNextSiblings(),[a,c]=t.splitText(n);if(!1!==l(e,c?[c,...s]:s,r,null,null,!1))return a.remove(),!0}}return!1}function Of(e,t){let n=0;const r=e.getTextContent();for(let e=0;e<t;e++)"`"===r[e]&&n++;return n%2!=0}function If(e,t,n){const r=n.length;for(let i=t;i>=r;i--){const t=i-r;if(Rf(e,t,n,0,r)&&" "!==e[t+r])return t}return-1}function Rf(e,t,n,r,i){for(let o=0;o<i;o++)if(e[t+o]!==n[r+o])return!1;return!0}function Ff(e,t=Af){const n=function(e){const t=gf(e,(e=>e.type));return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}(t),r=gf(n.textFormat,(({tag:e})=>e[e.length-1])),i=gf(n.textMatch,(({trigger:e})=>e));for(const n of t){const t=n.type;if("element"===t||"text-match"===t||"multiline-element"===t){const t=n.dependencies;for(const n of t)e.hasNode(n)||yf(173,n.getType())}}const o=(e,t,o)=>!!(function(e,t,n,r){if(!wl(e.getParent())||e.getFirstChild()!==t)return!1;const i=t.getTextContent();if(" "!==i[n-1])return!1;for(const{regExp:o,replace:s}of r){const r=i.match(o);if(r&&r[0].length===(r[0].endsWith(" ")?n:n-1)){const i=t.getNextSiblings(),[o,l]=t.splitText(n);if(!1!==s(e,l?[l,...i]:i,r,!1))return o.remove(),!0}}return!1}(e,t,o,n.element)||Lf(e,t,o,n.multilineElement)||function(e,t,n){let r=e.getTextContent();const i=n[r[t-1]];if(null==i)return!1;t<r.length&&(r=r.slice(0,t));for(const t of i){if(!t.replace||!t.regExp)continue;const n=r.match(t.regExp);if(null===n)continue;const i=n.index||0,o=i+n[0].length;let s;return 0===i?[s]=e.splitText(o):[,s]=e.splitText(i,o),s.selectNext(0,0),t.replace(s,n),!0}return!1}(t,o,i)||function(e,t,n){const r=e.getTextContent(),i=t-1,o=r[i],s=n[o];if(!s)return!1;for(const t of s){const{tag:n}=t,s=n.length,l=i-s+1;if(s>1&&!Rf(r,l,n,0,s))continue;if(" "===r[l-1])continue;const a=r[i+1];if(!1===t.intraword&&a&&!pf.test(a))continue;const c=e;let u=c,d=If(r,l,n),h=u;for(;d<0&&(h=h.getPreviousSibling())&&!ci(h);)if(Ti(h)){if(h.hasFormat("code"))continue;const e=h.getTextContent();u=h,d=If(e,e.length,n)}if(d<0)continue;if(u===c&&d+s===l)continue;const g=u.getTextContent();if(d>0&&g[d-1]===o)continue;const p=g[d-1];if(!1===t.intraword&&p&&!pf.test(p))continue;if(!t.format.includes("code")&&Of(u,d))continue;const f=c.getTextContent(),m=f.slice(0,l)+f.slice(i+1);c.setTextContent(m);const y=u===c?m:g;u.setTextContent(y.slice(0,d)+y.slice(d+s));const b=to(),_=Ji();Ws(_);const C=i-s*(u===c?2:1)+1;_.anchor.set(u.__key,d,"text"),_.focus.set(c.__key,C,"text");for(const e of t.format)_.hasFormat(e)||_.formatText(e);_.anchor.set(_.focus.key,_.focus.offset,_.focus.type);for(const e of t.format)_.hasFormat(e)&&_.toggleFormat(e);return Di(b)&&(_.format=b.format),!0}return!1}(t,o,r));return oc(e.registerUpdateListener((({tags:t,dirtyLeaves:n,editorState:r,prevEditorState:i})=>{if(t.has(Yr)||t.has(qr))return;if(e.isComposing())return;const s=r.read(to),l=i.read(to);if(!Di(l)||!Di(s)||!s.isCollapsed()||s.is(l))return;const a=s.anchor.key,c=s.anchor.offset,u=r._nodeMap.get(a);!Ti(u)||!n.has(a)||1!==c&&c>l.anchor.offset+1||e.update((()=>{if(!mf(u))return;const e=u.getParent();null===e||Mp(e)||o(e,u,s.anchor.offset)&&yl(jr)}))})),e.registerCommand(Pn,(e=>{if(null!==e&&e.shiftKey)return!1;const t=to();if(!Di(t)||!t.isCollapsed())return!1;const r=t.anchor.offset,i=t.anchor.getNode();if(!Ti(i)||!mf(i))return!1;const o=i.getParent();return null!==o&&!Mp(o)&&(r===i.getTextContent().length&&!!Lf(o,i,r,n.multilineElement,!0)&&(null!==e&&e.preventDefault(),!0))}),1))}class Mf extends Wo{static getType(){return"horizontal_divider"}static clone(e){return new Mf(e.__key)}static importJSON(e){return new Mf}static importDOM(){return{hr:e=>({conversion:()=>({node:new Mf}),priority:1})}}constructor(e){super(e)}createDOM(){const e=Ic("figure",{className:"horizontal-divider"}),t=Ic("hr");e.appendChild(t);const n=Ic("lexxy-node-delete-button");return e.appendChild(n),e}updateDOM(){return!0}getTextContent(){return"┄\n\n"}isInline(){return!1}exportDOM(){return{element:Ic("hr")}}exportJSON(){return{type:"horizontal_divider",version:1}}decorate(){return null}}const Pf={dependencies:[Mf],export:e=>e instanceof Mf?"---":null,regExpStart:/^-{3,}\s?$/,replace:(e,t,n,r,i,o)=>{const s=new Mf;if(e.replace(s),!o){const e=ns();s.insertAfter(e),e.select()}},type:"multiline-element"},Df=/[^\w]/;function Bf(e,t,n){const r=n.tag,i=r.length,o=e.getTextContent(),s=t+i,l=o.indexOf(r,s);if(l<0)return;const a=o.slice(s,l);if(0===a.length)return;const c=o.slice(0,t),u=o.slice(l+i);e.setTextContent(c+a+u);const d=Ji();Ws(d),d.anchor.set(e.getKey(),t,"text"),d.focus.set(e.getKey(),t+a.length,"text");for(const e of n.format)d.hasFormat(e)||d.formatText(e);d.anchor.set(d.focus.key,d.focus.offset,d.focus.type);for(const e of n.format)d.hasFormat(e)&&d.toggleFormat(e)}var $f={text:{bold:"lexxy-content__bold",italic:"lexxy-content__italic",strikethrough:"lexxy-content__strikethrough",underline:"lexxy-content__underline",highlight:"lexxy-content__highlight"},tableCellHeader:"lexxy-content__table-cell--header",tableCellSelected:"lexxy-content__table-cell--selected",tableSelection:"lexxy-content__table--selection",tableScrollableWrapper:"lexxy-content__table-wrapper",tableCellHighlight:"lexxy-content__table-cell--highlight",tableCellFocus:"lexxy-content__table-cell--focus",list:{nested:{listitem:"lexxy-nested-listitem"}},codeHighlight:{addition:"code-token__selector",atrule:"code-token__attr",attr:"code-token__attr","attr-name":"code-token__attr","attr-value":"code-token__selector",boolean:"code-token__property",bold:"code-token__variable",builtin:"code-token__selector",cdata:"code-token__comment",char:"code-token__selector",class:"code-token__function","class-name":"code-token__function",color:"code-token__property",comment:"code-token__comment",constant:"code-token__property",coord:"code-token__comment",decorator:"code-token__function",deleted:"code-token__operator",deletion:"code-token__operator",directive:"code-token__attr","directive-hash":"code-token__property",doctype:"code-token__comment",entity:"code-token__operator",function:"code-token__function",hexcode:"code-token__property",important:"code-token__function",inserted:"code-token__selector",italic:"code-token__comment",keyword:"code-token__attr",line:"code-token__selector",namespace:"code-token__variable",number:"code-token__property",macro:"code-token__function",operator:"code-token__operator",parameter:"code-token__variable",prolog:"code-token__comment",property:"code-token__property",punctuation:"code-token__punctuation","raw-string":"code-token__operator",regex:"code-token__variable",script:"code-token__function",selector:"code-token__selector",string:"code-token__selector",style:"code-token__function",symbol:"code-token__property",tag:"code-token__property",title:"code-token__function","type-definition":"code-token__function",url:"code-token__operator",variable:"code-token__variable"}};class zf{#qe=new Map;track(e,t){this.#qe.set(e,t)}forget(e){this.#qe.delete(e)}abort(e){const t=this.#qe.get(e);t&&(this.#qe.delete(e),t.abort())}clear(){this.#qe.clear()}}const Hf=/^(\d+(?:\.\d+)?)px$/,Kf=3,Uf=2,Wf=0,Vf=1;let qf=class e extends Ho{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;static getType(){return"tablecell"}static clone(t){return new e(t.__headerState,t.__colSpan,t.__width,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign,this.__colSpan=e.__colSpan,this.__headerState=e.__headerState,this.__width=e.__width}static importDOM(){return{td:e=>({conversion:Gf,priority:0}),th:e=>({conversion:Gf,priority:0})}}static importJSON(e){return Zf().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=Wf,t=1,n,r){super(r),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){const t=document.createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),null!==this.__backgroundColor&&(t.style.backgroundColor=this.__backgroundColor),jf(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),rc(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){const t=super.exportDOM(e);if(Ml(t.element)){const e=t.element;e.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),e.style.border="1px solid black",this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),e.style.width=`${this.getWidth()||75}px`,e.style.verticalAlign=this.getVerticalAlign()||"top",e.style.textAlign="start",null===this.__backgroundColor&&this.hasHeader()&&(e.style.backgroundColor="#f2f3f5")}return t}exportJSON(){return{...super.exportJSON(),...jf(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){const t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){const t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,t=Kf){const n=this.getWritable();return n.__headerState=e&t|n.__headerState&~t,n}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){const t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){const t=this.getWritable();return t.__backgroundColor=e,t}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){const t=this.getWritable();return t.__verticalAlign=e||void 0,t}toggleHeaderStyle(e){const t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==Wf}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}};function jf(e){return"middle"===e||"bottom"===e}function Gf(e){const t=e,n=e.nodeName.toLowerCase();let r;Hf.test(t.style.width)&&(r=parseFloat(t.style.width));let i=Wf;if("th"===n){const e=t.getAttribute("scope");if("col"===e)i=Uf;else if("row"===e)i=Vf;else{const e=t.parentElement,n=Ml(e)&&"tr"===e.nodeName.toLowerCase()&&Ml(e.parentElement)&&("thead"===e.parentElement.nodeName.toLowerCase()||0===e.rowIndex),r=0===t.cellIndex;n&&(i|=Vf),r&&(i|=Uf),i===Wf&&(i=Vf)}}const o=Zf(i,t.colSpan,r);o.__rowSpan=t.rowSpan;const s=t.style.backgroundColor;""!==s&&(o.__backgroundColor=s);const l=t.style.verticalAlign;jf(l)&&(o.__verticalAlign=l);const a=t.style,c=(a&&a.textDecoration||"").split(" "),u="700"===a.fontWeight||"bold"===a.fontWeight,d=c.includes("line-through"),h="italic"===a.fontStyle,g=c.includes("underline"),p=a.color;return{after:e=>{const t=[];let n=null;const r=()=>{if(n){const e=n.getFirstChild();ci(e)&&1===n.getChildrenSize()&&e.remove()}};for(const i of e)if(Sl(i)||Ti(i)||ci(i)){if(Ti(i)&&(u&&i.toggleFormat("bold"),d&&i.toggleFormat("strikethrough"),h&&i.toggleFormat("italic"),g&&i.toggleFormat("underline"),p)){const e=i.getStyle();e.includes("color:")||i.setStyle(e+`color: ${p};`)}n?n.append(i):(n=ns().append(i),t.push(n))}else t.push(i),r(),n=null;return r(),0===t.length&&t.push(ns()),t},node:o}}function Zf(e=Wf,t=1,n){return El(new qf(e,t,n))}function Yf(e){return e instanceof qf}const Jf=un("INSERT_TABLE_COMMAND");function Xf(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let Qf=class e extends Ho{__height;static getType(){return"tablerow"}static clone(t){return new e(t.__height,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__height=e.__height}static importDOM(){return{tr:e=>({conversion:em,priority:0})}}static importJSON(e){return tm().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){const e=this.getHeight();return{...super.exportJSON(),...void 0===e?void 0:{height:e}}}createDOM(e){const t=document.createElement("tr");return this.__height&&(t.style.height=`${this.__height}px`),rc(t,e.theme.tableRow),t}extractWithChild(e,t,n){return"html"===n}isShadowRoot(){return!0}setHeight(e){const t=this.getWritable();return t.__height=e,t}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}};function em(e){const t=e;let n;return Hf.test(t.style.height)&&(n=parseFloat(t.style.height)),{after:e=>hu(e,Yf),node:tm(n)}}function tm(e){return El(new Qf(e))}function nm(e){return e instanceof Qf}const rm="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,im=rm&&"documentMode"in document?document.documentMode:null,om=rm&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);function sm(e){const t=ea(e,(e=>Yf(e)));return Yf(t)?t:null}function lm(e){const t=ea(e,(e=>nm(e)));if(nm(t))return t;throw new Error("Expected table cell to be inside of table row.")}function am(e){const t=ea(e,(e=>yy(e)));if(yy(t))return t;throw new Error("Expected table cell to be inside of table.")}rm&&"InputEvent"in window&&!im&&new window.InputEvent("input");const cm=(e,t)=>e===Kf||e===t?t:Wf;function um(e=!0){const t=to();Di(t)||Em(t)||Xf(188);const n=t.anchor.getNode(),r=t.focus.getNode(),[i]=xm(n),[o,,s]=xm(r),[,l,a]=_m(s,o,i),{startRow:c}=a,{startRow:u}=l;return e?dm(c+i.__rowSpan>u+o.__rowSpan?i:o,!0):dm(u<c?o:i,!1)}function dm(e,t=!0){const[,,n]=xm(e),[r,i]=_m(n,e,e),o=r[0].length,{startRow:s}=i;let l=null;if(t){const t=s+e.__rowSpan-1,i=r[t],a=tm();for(let e=0;e<o;e++){const{cell:n,startRow:r}=i[e];if(r+n.__rowSpan-1<=t){const t=i[e].cell.__headerState,n=cm(t,Uf);a.append(Zf(n).append(ns()))}else n.setRowSpan(n.__rowSpan+1)}const c=n.getChildAtIndex(t);nm(c)||Xf(256),c.insertAfter(a),l=a}else{const e=s,t=r[e],i=tm();for(let n=0;n<o;n++){const{cell:r,startRow:o}=t[n];if(o===e){const e=t[n].cell.__headerState,r=cm(e,Uf);i.append(Zf(r).append(ns()))}else r.setRowSpan(r.__rowSpan+1)}const a=n.getChildAtIndex(e);nm(a)||Xf(257),a.insertBefore(i),l=i}return l}function hm(e=!0){const t=to();Di(t)||Em(t)||Xf(188);const n=t.anchor.getNode(),r=t.focus.getNode(),[i]=xm(n),[o,,s]=xm(r),[,l,a]=_m(s,o,i),{startColumn:c}=a,{startColumn:u}=l;return e?gm(c+i.__colSpan>u+o.__colSpan?i:o,!0):gm(u<c?o:i,!1)}function gm(e,t=!0,n=!0){const[,,r]=xm(e),[i,o]=_m(r,e,e),s=i.length,{startColumn:l}=o,a=t?l+e.__colSpan-1:l-1,c=r.getFirstChild();nm(c)||Xf(120);let u=null;function d(e=Wf){const t=Zf(e).append(ns());return null===u&&(u=t),t}let h=c;e:for(let e=0;e<s;e++){if(0!==e){const e=h.getNextSibling();nm(e)||Xf(121),h=e}const t=i[e],n=t[a<0?0:a].cell.__headerState,r=cm(n,Vf);if(a<0){fm(h,d(r));continue}const{cell:o,startColumn:s,startRow:l}=t[a];if(s+o.__colSpan-1<=a){let n=o,i=l,s=a;for(;i!==e&&n.__rowSpan>1;){if(s-=o.__colSpan,!(s>=0)){h.append(d(r));continue e}{const{cell:e,startRow:r}=t[s];n=e,i=r}}n.insertAfter(d(r))}else o.setColSpan(o.__colSpan+1)}null!==u&&n&&pm(u);const g=r.getColWidths();if(g){const e=[...g],t=a<0?0:a,n=e[t];e.splice(t,0,n),r.setColWidths(e)}return u}function pm(e){const t=e.getFirstDescendant();null==t?e.selectStart():t.getParentOrThrow().selectStart()}function fm(e,t){const n=e.getFirstChild();null!==n?n.insertBefore(t):e.append(t)}function mm(e){if(0===e.length)return null;const t=am(e[0]),[n]=Cm(t,null,null);let r=1/0,i=-1/0,o=1/0,s=-1/0;const l=new Set;for(const t of n)for(const n of t){if(!n||!n.cell)continue;const t=n.cell.getKey();if(!l.has(t)&&e.some((e=>e.is(n.cell)))){l.add(t);const e=n.startRow,a=n.startColumn,c=n.cell.__rowSpan||1,u=n.cell.__colSpan||1;r=Math.min(r,e),i=Math.max(i,e+c-1),o=Math.min(o,a),s=Math.max(s,a+u-1)}}if(r===1/0||o===1/0)return null;const a=i-r+1,c=s-o+1,u=n[r][o];if(!u.cell)return null;const d=u.cell;d.setColSpan(c),d.setRowSpan(a);const h=new Set([d.getKey()]);for(let e=r;e<=i;e++)for(let t=o;t<=s;t++){const r=n[e][t];if(!r.cell)continue;const i=r.cell,o=i.getKey();h.has(o)||(h.add(o),ym(i)||d.append(...i.getChildren()),i.remove())}return 0===d.getChildrenSize()&&d.append(ns()),d}function ym(e){if(1!==e.getChildrenSize())return!1;const t=e.getFirstChildOrThrow();return!(!rs(t)||!t.isEmpty())}function bm(e){const[t,n,r]=xm(e),i=t.__colSpan,o=t.__rowSpan;if(1===i&&1===o)return;const[s,l]=_m(r,t,t),{startColumn:a,startRow:c}=l,u=t.__headerState&Uf,d=Array.from({length:i},((e,t)=>{let n=u;for(let e=0;0!==n&&e<s.length;e++)n&=s[e][t+a].cell.__headerState;return n})),h=t.__headerState&Vf,g=Array.from({length:o},((e,t)=>{let n=h;for(let e=0;0!==n&&e<s[0].length;e++)n&=s[t+c][e].cell.__headerState;return n}));if(i>1){for(let e=1;e<i;e++)t.insertAfter(Zf(d[e]|g[0]).append(ns()));t.setColSpan(1)}if(o>1){let e;for(let t=1;t<o;t++){const r=c+t,o=s[r];e=(e||n).getNextSibling(),nm(e)||Xf(125);let l=null;for(let e=0;e<a;e++){const t=o[e],n=t.cell;t.startRow===r&&(l=n),n.__colSpan>1&&(e+=n.__colSpan-1)}if(null===l)for(let n=i-1;n>=0;n--)fm(e,Zf(d[n]|g[t]).append(ns()));else for(let e=i-1;e>=0;e--)l.insertAfter(Zf(d[e]|g[t]).append(ns()))}t.setRowSpan(1)}}function _m(e,t,n){const[r,i,o]=Cm(e,t,n);return null===i&&Xf(207),null===o&&Xf(208),[r,i,o]}function Cm(e,t,n){const r=[];let i=null,o=null;function s(e){let t=r[e];return void 0===t&&(r[e]=t=[]),t}const l=e.getChildren();for(let e=0;e<l.length;e++){const r=l[e];nm(r)||Xf(209);const a=s(e);for(let c=r.getFirstChild(),u=0;null!=c;c=c.getNextSibling()){for(Yf(c)||Xf(147);void 0!==a[u];)u++;const r={cell:c,startColumn:u,startRow:e},{__rowSpan:d,__colSpan:h}=c;for(let t=0;t<d&&!(e+t>=l.length);t++){const n=s(e+t);for(let e=0;e<h;e++)n[u+e]=r}null!==t&&null===i&&t.is(c)&&(i=r),null!==n&&null===o&&n.is(c)&&(o=r)}}return[r,i,o]}function xm(e){let t;if(e instanceof qf)t=e;else if("__type"in e){const n=ea(e,Yf);Yf(n)||Xf(148),t=n}else{const n=ea(e.getNode(),Yf);Yf(n)||Xf(148),t=n}const n=t.getParent();nm(n)||Xf(149);const r=n.getParent();return yy(r)||Xf(210),[t,n,r]}function Sm(e,t,n){let r,i=Math.min(t.startColumn,n.startColumn),o=Math.min(t.startRow,n.startRow),s=Math.max(t.startColumn+t.cell.__colSpan-1,n.startColumn+n.cell.__colSpan-1),l=Math.max(t.startRow+t.cell.__rowSpan-1,n.startRow+n.cell.__rowSpan-1);do{r=!1;for(let t=0;t<e.length;t++)for(let n=0;n<e[0].length;n++){const a=e[t][n];if(!a)continue;const c=a.startColumn+a.cell.__colSpan-1,u=a.startRow+a.cell.__rowSpan-1,d=a.startColumn<=s&&c>=i,h=a.startRow<=l&&u>=o;if(d&&h){const e=Math.min(i,a.startColumn),t=Math.max(s,c),n=Math.min(o,a.startRow),d=Math.max(l,u);e===i&&t===s&&n===o&&d===l||(i=e,s=t,o=n,l=d,r=!0)}}}while(r);return{maxColumn:s,maxRow:l,minColumn:i,minRow:o}}function vm(e){const[t,,n]=xm(e),r=n.getChildren(),i=r.length,o=r[0].getChildren().length,s=new Array(i);for(let e=0;e<i;e++)s[e]=new Array(o);for(let e=0;e<i;e++){const n=r[e].getChildren();let i=0;for(let r=0;r<n.length;r++){for(;s[e][i];)i++;const o=n[r],l=o.__rowSpan||1,a=o.__colSpan||1;for(let t=0;t<l;t++)for(let n=0;n<a;n++)s[e+t][i+n]=o;if(t===o)return{colSpan:a,columnIndex:i,rowIndex:e,rowSpan:l};i+=a}}return null}function wm(e){const[[t,n,r,i],[o,s,l,a]]=["anchor","focus"].map((t=>{const n=e[t].getNode(),r=ea(n,Yf);Yf(r)||Xf(238,t,n.getKey(),n.getType());const i=r.getParent();nm(i)||Xf(239,t);const o=i.getParent();return yy(o)||Xf(240,t),[n,r,i,o]}));return i.is(a)||Xf(241),{anchorCell:n,anchorNode:t,anchorRow:r,anchorTable:i,focusCell:s,focusNode:o,focusRow:l,focusTable:a}}class km{tableKey;anchor;focus;_cachedNodes;dirty;constructor(e,t,n){this.anchor=t,this.focus=n,t._selection=this,n._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if("root"===this.tableKey||"root"===this.anchor.key||"element"!==this.anchor.type||"root"===this.focus.key||"element"!==this.focus.type)return!1;const e=Ps(this.tableKey),t=Ps(this.anchor.key),n=Ps(this.focus.key);return null!==e&&null!==t&&null!==n}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return Em(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,t,n){this.dirty=this.dirty||e!==this.tableKey||t!==this.anchor.key||n!==this.focus.key,this.tableKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new km(this.tableKey,Ri(this.anchor.key,this.anchor.offset,this.anchor.type),Ri(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let t=0;this.getNodes().filter(Yf).forEach((e=>{const n=e.getFirstChild();rs(n)&&(t|=n.getTextFormat())}));return 0!==(t&Ge[e])}insertNodes(e){const t=this.focus.getNode();Ko(t)||Xf(151),At(t.select(0,t.getChildrenSize())).insertNodes(e)}getShape(){const{anchorCell:e,focusCell:t}=wm(this),n=vm(e);null===n&&Xf(153);const r=vm(t);null===r&&Xf(155);const i=Math.min(n.columnIndex,r.columnIndex),o=Math.max(n.columnIndex+n.colSpan-1,r.columnIndex+r.colSpan-1),s=Math.min(n.rowIndex,r.rowIndex),l=Math.max(n.rowIndex+n.rowSpan-1,r.rowIndex+r.rowSpan-1);return{fromX:Math.min(i,o),fromY:Math.min(s,l),toX:Math.max(i,o),toY:Math.max(s,l)}}getNodes(){if(!this.isValid())return[];const e=this._cachedNodes;if(null!==e)return e;const{anchorTable:t,anchorCell:n,focusCell:r}=wm(this),i=r.getParents()[1];if(i!==t){if(t.isParentOf(r)){const e=i.getParent();null==e&&Xf(159),this.set(this.tableKey,r.getKey(),e.getKey())}else{const e=t.getParent();null==e&&Xf(158),this.set(this.tableKey,e.getKey(),r.getKey())}return this.getNodes()}const[o,s,l]=_m(t,n,r),{minColumn:a,maxColumn:c,minRow:u,maxRow:d}=Sm(o,s,l),h=new Map([[t.getKey(),t]]);let g=null;for(let e=u;e<=d;e++)for(let t=a;t<=c;t++){const{cell:n}=o[e][t],r=n.getParent();nm(r)||Xf(160),r!==g&&(h.set(r.getKey(),r),g=r),h.has(n.getKey())||Nm(n,(e=>{h.set(e.getKey(),e)}))}const p=Array.from(h.values());return Co()||(this._cachedNodes=p),p}getTextContent(){const e=this.getNodes().filter((e=>Yf(e)));let t="";for(let n=0;n<e.length;n++){const r=e[n],i=r.__parent,o=(e[n+1]||{}).__parent;t+=r.getTextContent()+(o!==i?"\n":"\t")}return t}}function Em(e){return e instanceof km}function Tm(e,t,n){e.getKey(),t.getKey(),n.getKey();const r=to(),i=Em(r)?r.clone():function(){const e=Ri("root",0,"element"),t=Ri("root",0,"element");return new km("root",e,t)}();return i.set(e.getKey(),t.getKey(),n.getKey()),i}function Nm(e,t){const n=[[e]];for(let e=n.at(-1);void 0!==e&&n.length>0;e=n.at(-1)){const r=e.pop();void 0===r?n.pop():!1!==t(r)&&Ko(r)&&n.push(r.getChildren())}}function Am(e,t=Hl()){const n=Ps(e);yy(n)||Xf(231,e);const r=Fm(n,t.getElementByKey(e));return null===r&&Xf(232,e),{tableElement:r,tableNode:n}}class Lm{observers;nextFocus;shouldCheckSelectionForTable;constructor(){this.observers=new Map,this.nextFocus=null,this.shouldCheckSelectionForTable=null}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){const{nextFocus:e}=this;return null!==e&&(this.nextFocus=null),e}setShouldCheckSelectionForTable(e){this.shouldCheckSelectionForTable=e}getAndClearShouldCheckSelectionForTable(){const{shouldCheckSelectionForTable:e}=this;return e?(this.shouldCheckSelectionForTable=null,e):null}}class Om{focusX;focusY;listenersToRemove;table;isHighlightingCells;anchorX;anchorY;tableNodeKey;anchorCell;focusCell;anchorCellNodeKey;focusCellNodeKey;editor;tableSelection;hasHijackedSelectionStyles;isSelecting;pointerType;abortController;listenerOptions;constructor(e,t){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.pointerType=null,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach((e=>e())),this.listenersToRemove.clear()}$lookup(){return Am(this.tableNodeKey,this.editor)}trackTable(){const e=new MutationObserver((e=>{this.editor.getEditorState().read((()=>{let t=!1;for(let n=0;n<e.length;n++){const r=e[n].target.nodeName;if("TABLE"===r||"TBODY"===r||"THEAD"===r||"TR"===r){t=!0;break}}if(!t)return;const{tableNode:n,tableElement:r}=this.$lookup();this.table=Wm(n,r)}),{editor:this.editor})}));this.editor.getEditorState().read((()=>{const{tableNode:t,tableElement:n}=this.$lookup();this.table=Wm(t,n),e.observe(n,{attributes:!0,childList:!0,subtree:!0})}),{editor:this.editor})}$clearHighlight(e=!0){const t=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();const{tableNode:n,tableElement:r}=this.$lookup();Vm(t,Wm(n,r),null),e&&null!==to()&&(Ws(null),t.dispatchCommand(dn,void 0))}$enableHighlightStyle(){const e=this.editor,{tableElement:t}=this.$lookup();ic(t,e._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){const{tableElement:e}=this.$lookup();rc(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(null!==e){e.tableKey!==this.tableNodeKey&&Xf(233,e.tableKey,this.tableNodeKey);const t=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),Vm(t,this.table,this.tableSelection)}else this.$clearHighlight()}updateDOMSelection(){if(null!==this.anchorCell&&null!==this.focusCell){const e=Ol(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,t=!1){const n=this.editor,{tableNode:r}=this.$lookup(),i=e.x,o=e.y;if(this.focusCell=e,this.isHighlightingCells||(t||this.anchorX!==i||this.anchorY!==o||null!=this.tableSelection&&null!=this.anchorCellNodeKey)&&(this.isHighlightingCells=!0,this.$disableHighlightStyle()),-1!==this.focusX&&-1!==this.focusY&&i===this.focusX&&o===this.focusY)return!1;if(this.focusX=i,this.focusY=o,this.isHighlightingCells){const s=ay(r,e.elem);if(null!=this.tableSelection&&null!=this.anchorCellNodeKey){let e=s;if(null===e&&t&&(e=r.getCellNodeFromCords(i,o,this.table)),null!==e){const t=this.$getAnchorTableCellOrThrow();return this.focusCellNodeKey=e.getKey(),this.tableSelection=Tm(r,t,e),Ws(this.tableSelection),n.dispatchCommand(dn,void 0),Vm(n,this.table,this.tableSelection),!0}}}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?Ps(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){const e=this.$getAnchorTableCell();return null===e&&Xf(234),e}$getFocusTableCell(){return this.focusCellNodeKey?Ps(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){const e=this.$getFocusTableCell();return null===e&&Xf(235),e}$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y,this.focusX=-1,this.focusY=-1,this.focusCell=null,this.focusCellNodeKey=null;const{tableNode:t}=this.$lookup(),n=ay(t,e.elem);if(null!==n){const e=n.getKey();null!=this.tableSelection?(this.tableSelection=this.tableSelection.clone(),this.tableSelection.set(t.getKey(),e,e)):this.tableSelection=Tm(t,n,n),this.anchorCellNodeKey=e}}$formatCells(e){const t=to();Em(t)||Xf(236);const n=Ji(),r=n.anchor,i=n.focus,o=t.getNodes().filter(Yf);o.length>0||Xf(237);const s=o[0].getFirstChild(),l=rs(s)?s.getFormatFlags(e,null):null;o.forEach((t=>{r.set(t.getKey(),0,"element"),i.set(t.getKey(),t.getChildrenSize(),"element"),n.formatText(e,l)})),Ws(t),this.editor.dispatchCommand(dn,void 0)}$clearText(){const{editor:e}=this,t=Ps(this.tableNodeKey);if(!yy(t))throw new Error("Expected TableNode.");const n=to();Em(n)||Xf(253);const r=n.getNodes().filter(Yf),i=t.getFirstChild(),o=t.getLastChild();if(r.length>0&&null!==i&&null!==o&&nm(i)&&nm(o)&&r[0]===i.getFirstChild()&&r[r.length-1]===o.getLastChild()){t.selectPrevious();const n=t.getParent();return t.remove(),void(jo(n)&&n.isEmpty()&&e.dispatchCommand(Cn,void 0))}r.forEach((e=>{if(Ko(e)){const t=ns(),n=Ei();t.append(n),e.append(t),e.getChildren().forEach((e=>{e!==t&&e.remove()}))}})),Vm(e,this.table,null),Ws(null),e.dispatchCommand(dn,void 0)}}const Im="__lexicalTableSelection";function Rm(e){return Ml(e)&&"TABLE"===e.nodeName}function Fm(e,t){if(!t)return t;const n=Rm(t)?t:t.querySelector("table");return Rm(n)||Xf(341,e.constructor.name,e.getType(),e.getKey(),t.nodeName),n}function Mm(e){return e._window}function Pm(e,t){for(let n=t,r=null;null!==n;n=n.getParent()){if(e.is(n))return r;Yf(n)&&(r=n)}return null}const Dm=[[Mn,"down"],[Fn,"up"],[In,"backward"],[Ln,"forward"]],Bm=[wn,kn,bn],$m=[Bn,zn];function zm(e,t,n){const r=to(),i=no();r&&!r.is(i)&&(Em(r)||Em(i))&&n.tableSelection&&!n.tableSelection.is(i)&&(Em(r)&&r.tableKey===n.tableNodeKey?n.$updateTableTableSelection(r):!Em(r)&&Em(i)&&i.tableKey===n.tableNodeKey&&n.$updateTableTableSelection(null)),n.hasHijackedSelectionStyles&&!t.isSelected()?function(e,t){t.$enableHighlightStyle(),qm(t.table,(t=>{const n=t.elem;t.highlighted=!1,ey(e,t),n.getAttribute("style")||n.removeAttribute("style")}))}(e,n):!n.hasHijackedSelectionStyles&&t.isSelected()&&function(e,t){t.$disableHighlightStyle(),qm(t.table,(t=>{t.highlighted=!0,Qm(e,t)}))}(e,n)}function Hm(e){return e[Im]||null}function Km(e){let t=e;for(;null!=t;){const e=t.nodeName;if("TD"===e||"TH"===e){const e=t._cell;return void 0===e?null:e}t=t.parentNode}return null}function Um(e,t){if(!e.contains(t))return null;let n=null;for(let r=t;null!=r;r=r.parentNode){if(r===e)return n;const t=r.nodeName;"TD"!==t&&"TH"!==t||(n=r._cell||null)}return null}function Wm(e,t){const n=[],r={columns:0,domRows:n,rows:0};let i=Fm(e,t).querySelector("tr"),o=0,s=0;for(n.length=0;null!=i;){const e=i.nodeName;if("TD"===e||"TH"===e){const e={elem:i,hasBackgroundColor:""!==i.style.backgroundColor,highlighted:!1,x:o,y:s};i._cell=e;let t=n[s];void 0===t&&(t=n[s]=[]),t[o]=e}else{const e=i.firstChild;if(null!=e){i=e;continue}}const t=i.nextSibling;if(null!=t){o++,i=t;continue}const r=i.parentNode;if(null!=r){const e=r.nextSibling;if(null==e)break;s++,o=0,i=e}}return r.columns=o+1,r.rows=s+1,r}function Vm(e,t,n){const r=new Set(n?n.getNodes():[]);qm(t,((t,n)=>{const i=t.elem;r.has(n)?(t.highlighted=!0,Qm(e,t)):(t.highlighted=!1,ey(e,t),i.getAttribute("style")||i.removeAttribute("style"))}))}function qm(e,t){const{domRows:n}=e;for(let e=0;e<n.length;e++){const r=n[e];if(r)for(let n=0;n<r.length;n++){const i=r[n];if(!i)continue;const o=$s(i.elem);null!==o&&t(i,o,{x:n,y:e})}}}const jm=(e,t,n,r,i)=>{const o="forward"===i;switch(i){case"backward":case"forward":return n!==(o?e.table.columns-1:0)?Xm(t.getCellNodeFromCordsOrThrow(n+(o?1:-1),r,e.table),o):r!==(o?e.table.rows-1:0)?Xm(t.getCellNodeFromCordsOrThrow(o?0:e.table.columns-1,r+(o?1:-1),e.table),o):o?t.selectNext():t.selectPrevious(),!0;case"up":return 0!==r?Xm(t.getCellNodeFromCordsOrThrow(n,r-1,e.table),!1):t.selectPrevious(),!0;case"down":return r!==e.table.rows-1?Xm(t.getCellNodeFromCordsOrThrow(n,r+1,e.table),!0):t.selectNext(),!0;default:return!1}};function Gm(e,t){let n,r;if(t.startColumn===e.minColumn)n="minColumn";else{if(t.startColumn+t.cell.__colSpan-1!==e.maxColumn)return null;n="maxColumn"}if(t.startRow===e.minRow)r="minRow";else{if(t.startRow+t.cell.__rowSpan-1!==e.maxRow)return null;r="maxRow"}return[n,r]}function Zm([e,t]){return["minColumn"===e?"maxColumn":"minColumn","minRow"===t?"maxRow":"minRow"]}function Ym(e,t,[n,r]){const i=t[r],o=e[i];void 0===o&&Xf(250,r,String(i));const s=t[n],l=o[s];return void 0===l&&Xf(250,n,String(s)),l}function Jm(e,t){if(Di(e)||Em(e)){const n=t.isParentOf(e.anchor.getNode()),r=t.isParentOf(e.focus.getNode());return n&&r}return!1}function Xm(e,t){t?e.selectStart():e.selectEnd()}function Qm(e,t){const n=t.elem,r=e._config.theme;Yf($s(n))||Xf(131),rc(n,r.tableCellSelected)}function ey(e,t){const n=t.elem;Yf($s(n))||Xf(131);ic(n,e._config.theme.tableCellSelected)}function ty(e){const t=ea(e,Yf);return Yf(t)?t:null}function ny(e){const t=ea(e,yy);return yy(t)?t:null}function ry(e,t,n,r,i,o){if(("up"===n||"down"===n)&&function(e){const t=e.getRootElement();return!!t&&(t.hasAttribute("aria-controls")&&"typeahead-menu"===t.getAttribute("aria-controls"))}(e))return!1;const s=to();if(!Jm(s,r)){if(Di(s)){if("backward"===n){if(s.focus.offset>0)return!1;const e=function(e){for(let t=e,n=e;null!==n;t=n,n=n.getParent())if(Ko(n)){if(n!==t&&n.getFirstChild()!==t)return null;if(!n.isInline())return n}return null}(s.focus.getNode());if(!e)return!1;const n=e.getPreviousSibling();return!!yy(n)&&(iy(t),t.shiftKey?s.focus.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent(),"element"):n.selectEnd(),!0)}if(t.shiftKey&&("up"===n||"down"===n)){const e=s.focus.getNode();if(!s.isCollapsed()&&("up"===n&&!s.isBackward()||"down"===n&&s.isBackward())){let i=ea(e,(e=>yy(e)));if(Yf(i)&&(i=ea(i,yy)),i!==r)return!1;if(!i)return!1;const o="down"===n?i.getNextSibling():i.getPreviousSibling();if(!o)return!1;let l=0;"up"===n&&Ko(o)&&(l=o.getChildrenSize());let a=o;if("up"===n&&Ko(o)){a=o.getLastChild()||o,l=Ti(a)?a.getTextContentSize():0}const c=s.clone();return c.focus.set(a.getKey(),l,Ti(a)?"text":"element"),Ws(c),iy(t),!0}if(wl(e)){const e="up"===n?s.getNodes()[s.getNodes().length-1]:s.getNodes()[0];if(e&&null!==Pm(r,e)){const e=r.getFirstDescendant(),t=r.getLastDescendant();if(!e||!t)return!1;const[n]=xm(e),[o]=xm(t),s=r.getCordsFromCellNode(n,i.table),l=r.getCordsFromCellNode(o,i.table),a=r.getDOMCellFromCordsOrThrow(s.x,s.y,i.table),c=r.getDOMCellFromCordsOrThrow(l.x,l.y,i.table);return i.$setAnchorCellForSelection(a),i.$setFocusCellForSelection(c,!0),!0}return!1}{let r=ea(e,(e=>Ko(e)&&!e.isInline()));if(Yf(r)&&(r=ea(r,yy)),!r)return!1;const o="down"===n?r.getNextSibling():r.getPreviousSibling();if(yy(o)&&i.tableNodeKey===o.getKey()){const e=o.getFirstDescendant(),r=o.getLastDescendant();if(!e||!r)return!1;const[i]=xm(e),[l]=xm(r),a=s.clone();return a.focus.set(("up"===n?i:l).getKey(),"up"===n?0:l.getChildrenSize(),"element"),iy(t),Ws(a),!0}}}}return"down"===n&&hy(e)&&o.setShouldCheckSelectionForTable(r.getKey()),!1}if(Di(s)){if("backward"===n||"forward"===n)return function(e,t,n,r,i,o,s){const l=Fa(n.focus,i?"previous":"next");if(Wa(l))return!1;let a=l;for(const e of ka(l).iterNodeCarets("shadowRoot")){if(!da(e)||!Ko(e.origin))return!1;a=e}const c=a.getParentAtCaret();if(!Yf(c))return!1;const u=c,d=function(e){for(const t of ka(e).iterNodeCarets("root")){const{origin:n}=t;if(Yf(n)){if(ha(t))return Ca(n,e.direction)}else if(!nm(n))break}return null}(ma(u,a.direction)),h=ea(u,yy);if(!h||!h.is(o))return!1;const g=e.getElementByKey(u.getKey()),p=Km(g);if(!g||!p)return!1;const f=py(e,h);if(s.table=f,d)if("extend"===r){const t=Km(e.getElementByKey(d.origin.getKey()));if(!t)return!1;s.$setAnchorCellForSelection(p),s.$setFocusCellForSelection(t,!0)}else{const e=Ua(d);Ma(n.anchor,e),Ma(n.focus,e)}else if("extend"===r)s.$setAnchorCellForSelection(p),s.$setFocusCellForSelection(p,!0);else{const e=function(e){const t=Sa(e);return ha(t)?Ua(t):e}(ma(h,l.direction));Ma(n.anchor,e),Ma(n.focus,e)}return iy(t),!0}(e,t,s,t.shiftKey?"extend":"move","backward"===n,r,i);if(s.isCollapsed()){const{anchor:l,focus:a}=s,c=ea(l.getNode(),Yf),u=ea(a.getNode(),Yf);if(!Yf(c)||!c.is(u))return!1;const d=ny(c);if(d!==r&&null!=d){const r=Fm(d,e.getElementByKey(d.getKey()));if(null!=r)return i.table=Wm(d,r),ry(e,t,n,d,i,o)}const h=e.getElementByKey(c.__key),g=e.getElementByKey(l.key);if(null==g||null==h)return!1;let p;if("element"===l.type)p=g.getBoundingClientRect();else{const t=Ol(Mm(e));if(null===t||0===t.rangeCount)return!1;p=t.getRangeAt(0).getBoundingClientRect()}const f="up"===n?c.getFirstChild():c.getLastChild();if(null==f)return!1;const m=e.getElementByKey(f.__key);if(null==m)return!1;const y=m.getBoundingClientRect();if("up"===n?y.top>p.top-p.height:p.bottom+p.height>y.bottom){iy(t);const e=r.getCordsFromCellNode(c,i.table);if(!t.shiftKey)return jm(i,r,e.x,e.y,n);{const t=r.getDOMCellFromCordsOrThrow(e.x,e.y,i.table);i.$setAnchorCellForSelection(t),i.$setFocusCellForSelection(t,!0)}return!0}}}else if(Em(s)){const{anchor:o,focus:l}=s,a=ea(o.getNode(),Yf),c=ea(l.getNode(),Yf),[u]=s.getNodes();yy(u)||Xf(251);const d=Fm(u,e.getElementByKey(u.getKey()));if(!Yf(a)||!Yf(c)||!yy(u)||null==d)return!1;i.$updateTableTableSelection(s);const h=Wm(u,d),g=r.getCordsFromCellNode(a,h),p=r.getDOMCellFromCordsOrThrow(g.x,g.y,h);if(i.$setAnchorCellForSelection(p),iy(t),t.shiftKey){const[e,t,o]=_m(r,a,c);return function(e,t,n,r,i){const o=Sm(t,n,r),s=function(e,t){const{minColumn:n,maxColumn:r,minRow:i,maxRow:o}=t;let s=1,l=1,a=1,c=1;const u=e[i],d=e[o];for(let e=n;e<=r;e++)s=Math.max(s,u[e].cell.__rowSpan),c=Math.max(c,d[e].cell.__rowSpan);for(let t=i;t<=o;t++)l=Math.max(l,e[t][n].cell.__colSpan),a=Math.max(a,e[t][r].cell.__colSpan);return{bottomSpan:c,leftSpan:l,rightSpan:a,topSpan:s}}(t,o),{topSpan:l,leftSpan:a,bottomSpan:c,rightSpan:u}=s,d=function(e,t){const n=Gm(e,t);return null===n&&Xf(249,t.cell.getKey()),n}(o,n),[h,g]=Zm(d);let p=o[h],f=o[g];"forward"===i?p+="maxColumn"===h?1:a:"backward"===i?p-="minColumn"===h?1:u:"down"===i?f+="maxRow"===g?1:l:"up"===i&&(f-="minRow"===g?1:c);const m=t[f];if(void 0===m)return!1;const y=m[p];if(void 0===y)return!1;const[b,_]=function(e,t,n){const r=Sm(e,t,n),i=Gm(r,t);if(i)return[Ym(e,r,i),Ym(e,r,Zm(i))];const o=Gm(r,n);if(o)return[Ym(e,r,Zm(o)),Ym(e,r,o)];const s=["minColumn","minRow"];return[Ym(e,r,s),Ym(e,r,Zm(s))]}(t,n,y),C=ly(e,b.cell),x=ly(e,_.cell);return e.$setAnchorCellForSelection(C),e.$setFocusCellForSelection(x,!0),!0}(i,e,t,o,n)}return c.selectEnd(),!0}return!1}function iy(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function oy(e,t,n){const r=ns();"first"===e?t.insertBefore(r):t.insertAfter(r),r.append(...n||[]),r.selectEnd()}function sy(e,t,n){const r=n.getParent();if(!r)return;const i=Ol(Mm(e));if(!i)return;const o=i.anchorNode,s=e.getElementByKey(r.getKey()),l=Fm(n,e.getElementByKey(n.getKey()));if(!o||!s||!l||!s.contains(o)||l.contains(o))return;const a=ea(t.anchor.getNode(),(e=>Yf(e)));if(!a)return;const c=ea(a,(e=>yy(e)));if(!yy(c)||!c.is(n))return;const[u,d]=_m(n,a,a),h=u[0][0],g=u[u.length-1][u[0].length-1],{startRow:p,startColumn:f}=d,m=p===h.startRow&&f===h.startColumn,y=p===g.startRow&&f===g.startColumn;return m?"first":y?"last":void 0}function ly(e,t){const{tableNode:n}=e.$lookup(),r=n.getCordsFromCellNode(t,e.table);return n.getDOMCellFromCordsOrThrow(r.x,r.y,e.table)}function ay(e,t,n){return Pm(e,$s(t,n))}function cy(e,t,n){const r=e.querySelector("colgroup");if(!r)return;const i=[];for(let e=0;e<t;e++){const t=document.createElement("col"),r=n&&n[e];r&&(t.style.width=`${r}px`),i.push(t)}r.replaceChildren(...i)}function uy(e,t,n){if(!t.theme.tableAlignment)return;const r=[],i=[];for(const e of["center","right"]){const o=t.theme.tableAlignment[e];o&&(e===n?i:r).push(o)}ic(e,...r),rc(e,...i)}const dy=new WeakSet;function hy(e=Hl()){return dy.has(e)}class gy extends Ho{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){const t=this.getWritable();return t.__colWidths=e,t}static clone(e){return new gy(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:fy,priority:1})}}static importJSON(e){return my().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,t,n){return"html"===n}getDOMSlot(e){const t=Rm(e)?e:e.querySelector("table");return Rm(t)||Xf(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"))}createDOM(e,t){const n=document.createElement("table");this.__style&&oi(n.style,this.__style);const r=document.createElement("colgroup");if(n.appendChild(r),Zl(r),rc(n,e.theme.table),this.updateTableElement(null,n,e),hy(t)){const t=document.createElement("div"),r=e.theme.tableScrollableWrapper;return r?rc(t,r):t.style.overflowX="auto",t.appendChild(n),this.updateTableWrapper(null,t,n,e),t}return n}updateTableWrapper(e,t,n,r){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&function(e,t,n,r){r>0?(rc(e,n.theme.tableFrozenColumn),t.setAttribute("data-lexical-frozen-column","true")):(ic(e,n.theme.tableFrozenColumn),t.removeAttribute("data-lexical-frozen-column"))}(t,n,r,this.__frozenColumnCount),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&function(e,t,n,r){r>0?(rc(e,n.theme.tableFrozenRow),t.setAttribute("data-lexical-frozen-row","true")):(ic(e,n.theme.tableFrozenRow),t.removeAttribute("data-lexical-frozen-row"))}(t,n,r,this.__frozenRowCount)}updateTableElement(e,t,n){this.__style!==(e?e.__style:"")&&oi(t.style,this.__style,e?e.__style:""),this.__rowStriping!==(!!e&&e.__rowStriping)&&function(e,t,n){n?(rc(e,t.theme.tableRowStriping),e.setAttribute("data-lexical-row-striping","true")):(ic(e,t.theme.tableRowStriping),e.removeAttribute("data-lexical-row-striping"))}(t,n,this.__rowStriping);const r=e?e.getColumnCount():0,i=e?e.__colWidths:void 0;this.getColumnCount()===r&&this.getColWidths()===i||cy(t,this.getColumnCount(),this.getColWidths()),uy(t,n,this.getFormatType())}updateDOM(e,t,n){const r=Fm(this,t);return t===r===hy()||(Ml(i=t)&&"DIV"===i.nodeName&&this.updateTableWrapper(e,t,r,n),this.updateTableElement(e,r,n),!1);var i}scaleDOMColWidths(e,t){const n=this.getColWidths();n&&cy(Fm(this,e),this.getColumnCount(),n.map((e=>e*t)))}exportDOM(e){const t=super.exportDOM(e),{element:n}=t;return{after:n=>{if(t.after&&(n=t.after(n)),!Rm(n)&&Ml(n)&&(n=n.querySelector("table")),!Rm(n))return null;uy(n,e._config,this.getFormatType());const[r]=Cm(this,null,null),i=new Map;for(const e of r)for(const t of e){const e=t.cell.getKey();i.has(e)||i.set(e,{colSpan:t.cell.getColSpan(),startColumn:t.startColumn})}const o=new Set;for(const e of n.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){const t=e.getAttribute("data-temporary-table-cell-lexical-key");if(t){const n=i.get(t);if(e.removeAttribute("data-temporary-table-cell-lexical-key"),n){i.delete(t);for(let e=0;e<n.colSpan;e++)o.add(e+n.startColumn)}}}const s=n.querySelector(":scope > colgroup");if(s){const e=Array.from(n.querySelectorAll(":scope > colgroup > col")).filter(((e,t)=>o.has(t)));s.replaceChildren(...e)}const l=n.querySelectorAll(":scope > tr");if(l.length>0){const e=document.createElement("tbody");for(const t of l)e.appendChild(t);n.append(e)}return n},element:!Rm(n)&&Ml(n)?n.querySelector("table"):n}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){const{rows:n,domRows:r}=t;for(let t=0;t<n;t++){const n=r[t];if(null!=n)for(let r=0;r<n.length;r++){const i=n[r];if(null==i)continue;const{elem:o}=i,s=ay(this,o);if(null!==s&&e.is(s))return{x:r,y:t}}}throw new Error("Cell not found in table.")}getDOMCellFromCords(e,t,n){const{domRows:r}=n,i=r[t];if(null==i)return null;const o=i[e<i.length?e:i.length-1];return null==o?null:o}getDOMCellFromCordsOrThrow(e,t,n){const r=this.getDOMCellFromCords(e,t,n);if(!r)throw new Error("Cell not found at cords.");return r}getCellNodeFromCords(e,t,n){const r=this.getDOMCellFromCords(e,t,n);if(null==r)return null;const i=$s(r.elem);return Yf(i)?i:null}getCellNodeFromCordsOrThrow(e,t,n){const r=this.getCellNodeFromCords(e,t,n);if(!r)throw new Error("Node at cords not TableCellNode.");return r}getRowStriping(){return Boolean(this.getLatest().__rowStriping)}setRowStriping(e){const t=this.getWritable();return t.__rowStriping=e,t}setFrozenColumns(e){const t=this.getWritable();return t.__frozenColumnCount=e,t}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){const t=this.getWritable();return t.__frozenRowCount=e,t}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){const e=this.getFirstChild();if(!e)return 0;let t=0;return e.getChildren().forEach((e=>{Yf(e)&&(t+=e.getColSpan())})),t}}function py(e,t){const n=e.getElementByKey(t.getKey());return null===n&&Xf(230),Wm(t,n)}function fy(e){const t=my();e.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0),e.hasAttribute("data-lexical-frozen-column")&&t.setFrozenColumns(1),e.hasAttribute("data-lexical-frozen-row")&&t.setFrozenRows(1);const n=e.querySelector(":scope > colgroup");if(n){let e=[];for(const t of n.querySelectorAll(":scope > col")){let n=t.style.width||"";if(!Hf.test(n)&&(n=t.getAttribute("width")||"",!/^\d+$/.test(n))){e=void 0;break}e.push(parseFloat(n))}e&&t.setColWidths(e)}return{after:e=>hu(e,nm),node:t}}function my(){return El(new gy)}function yy(e){return e instanceof gy}function by(e){nm(e.getParent())?e.isEmpty()&&e.append(ns()):e.remove()}function _y(e){yy(e.getParent())?uu(e,Yf):e.remove()}function Cy(e){uu(e,nm);const[t]=Cm(e,null,null),n=t.reduce(((e,t)=>Math.max(e,t.length)),0),r=e.getChildren();for(let e=0;e<t.length;++e){const i=r[e];if(!i)continue;nm(i)||Xf(254,i.constructor.name,i.getType());const o=t[e].reduce(((e,t)=>t?1+e:e),0);if(o!==n)for(let e=o;e<n;++e){const e=Zf();e.append(ns()),i.append(e)}}const i=e.getColWidths(),o=e.getColumnCount();if(i&&i.length!==o){let t;if(o<i.length)t=i.slice(0,o);else if(i.length>0){const e=i[i.length-1];t=[...i,...Array(o-i.length).fill(e)]}e.setColWidths(t)}}function xy(e){if(e.detail<3||!Pl(e.target))return!1;const t=$s(e.target);if(null===t)return!1;const n=ea(t,(e=>Ko(e)&&!e.isInline()));return null!==n&&(!!Yf(n.getParent())&&(n.select(0),!0))}function Sy(){const e=to();if(!Di(e))return!1;const t=ny(e.anchor.getNode());if(null===t)return!1;const n=Ks();if(!n.is(t.getParent())||1!==n.getChildrenSize())return!1;const[r]=Cm(t,null,null);if(0===r.length||0===r[0].length)return!1;const i=r[0][0];if(!i||!i.cell)return!1;const o=r[r.length-1],s=o[o.length-1];if(!s||!s.cell)return!1;return Ws(Tm(t,i.cell,s.cell)),!0}function vy(e,t=!0){const n=new Lm,r=(r,i,o)=>{const s=Fm(r,o),l=function(e,t,n,r,i){const o=n.getRootElement(),s=Mm(n);null!==o&&null!==s||Xf(246);const l=new Om(n,e.getKey()),a=Fm(e,t);!function(e,t){null!==Hm(e)&&Xf(205),e[Im]=t}(a,l),l.listenersToRemove.add((()=>function(e,t){Hm(e)===t&&delete e[Im]}(a,l)));const c=e=>{e.detail>=3&&Pl(e.target)&&null!==Km(e.target)&&e.preventDefault()};a.addEventListener("mousedown",c,l.listenerOptions),l.listenersToRemove.add((()=>{a.removeEventListener("mousedown",c)}));for(const[t,r]of Dm)l.listenersToRemove.add(n.registerCommand(t,(t=>ry(n,t,r,e,l,i)),3));l.listenersToRemove.add(n.registerCommand($n,(t=>{const n=to();if(Em(n)){const r=Pm(e,n.focus.getNode());if(null!==r)return iy(t),r.selectEnd(),!0}return!1}),3));const u=t=>()=>{const n=to();if(!Jm(n,e))return!1;if(Em(n))return l.$clearText(),!0;if(Di(n)){if(!Yf(Pm(e,n.anchor.getNode())))return!1;const r=n.anchor.getNode(),i=n.focus.getNode(),o=e.isParentOf(r),s=e.isParentOf(i);if(o&&!s||s&&!o)return l.$clearText(),!0;const a=ea(n.anchor.getNode(),(e=>Ko(e))),c=a&&ea(a,(e=>Ko(e)&&Yf(e.getParent())));if(!Ko(c)||!Ko(a))return!1;if(t===kn&&null===c.getPreviousSibling())return!0}return!1};for(const e of Bm)l.listenersToRemove.add(n.registerCommand(e,u(e),3));const d=t=>{const n=to();if(!Em(n)&&!Di(n))return!1;const r=e.isParentOf(n.anchor.getNode());if(r!==e.isParentOf(n.focus.getNode())){const t=r?"anchor":"focus",i=r?"focus":"anchor",{key:o,offset:s,type:l}=n[i];return e[n[t].isBefore(n[i])?"selectPrevious":"selectNext"]()[i].set(o,s,l),!1}return!!Jm(n,e)&&!!Em(n)&&(t&&(t.preventDefault(),t.stopPropagation()),l.$clearText(),!0)};for(const e of $m)l.listenersToRemove.add(n.registerCommand(e,d,3));return l.listenersToRemove.add(n.registerCommand(Jn,(e=>{const t=to();if(t){if(!Em(t)&&!Di(t))return!1;Hh(n,lu(e,ClipboardEvent)?e:null,Wh(t));const r=d(e);return Di(t)?(t.removeText(),!0):r}return!1}),3)),l.listenersToRemove.add(n.registerCommand(En,(t=>{const n=to();if(!Jm(n,e))return!1;if(Em(n))return l.$formatCells(t),!0;if(Di(n)){const e=ea(n.anchor.getNode(),(e=>Yf(e)));if(!Yf(e))return!1}return!1}),3)),l.listenersToRemove.add(n.registerCommand(qn,(t=>{const n=to();if(!Em(n)||!Jm(n,e))return!1;const r=n.anchor.getNode(),i=n.focus.getNode();if(!Yf(r)||!Yf(i))return!1;if(function(e,t){if(Em(e)){const n=e.anchor.getNode(),r=e.focus.getNode();if(t&&n&&r){const[e]=_m(t,n,r);return n.getKey()===e[0][0].cell.getKey()&&r.getKey()===e[e.length-1].at(-1).cell.getKey()}}return!1}(n,e))return e.setFormat(t),!0;const[o,s,l]=_m(e,r,i),a=Math.max(s.startRow+s.cell.__rowSpan-1,l.startRow+l.cell.__rowSpan-1),c=Math.max(s.startColumn+s.cell.__colSpan-1,l.startColumn+l.cell.__colSpan-1),u=Math.min(s.startRow,l.startRow),d=Math.min(s.startColumn,l.startColumn),h=new Set;for(let e=u;e<=a;e++)for(let n=d;n<=c;n++){const r=o[e][n].cell;if(h.has(r))continue;h.add(r),r.setFormat(t);const i=r.getChildren();for(let e=0;e<i.length;e++){const n=i[e];Ko(n)&&!n.isInline()&&n.setFormat(t)}}return!0}),3)),l.listenersToRemove.add(n.registerCommand(xn,(t=>{const r=to();if(!Jm(r,e))return!1;if(Em(r))return l.$clearHighlight(),!1;if(Di(r)){const i=ea(r.anchor.getNode(),(e=>Yf(e)));if(!Yf(i))return!1;if("string"==typeof t){const i=sy(n,r,e);if(i)return oy(i,e,[Ei(t)]),!0}}return!1}),3)),r&&l.listenersToRemove.add(n.registerCommand(Hn,(t=>{const n=to();if(!Di(n)||!n.isCollapsed()||!Jm(n,e))return!1;const r=ty(n.anchor.getNode());return!(null===r||!e.is(ny(r))||(iy(t),function(e,t){const n="next"===t?"getNextSibling":"getPreviousSibling",r="next"===t?"getFirstChild":"getLastChild",i=e[n]();if(Ko(i))return i.selectEnd();const o=ea(e,nm);null===o&&Xf(247);for(let e=o[n]();nm(e);e=e[n]()){const t=e[r]();if(Ko(t))return t.selectEnd()}const s=ea(o,yy);null===s&&Xf(248),"next"===t?s.selectNext():s.selectPrevious()}(r,t.shiftKey?"previous":"next"),0))}),3)),l.listenersToRemove.add(n.registerCommand(rr,(t=>e.isSelected()),3)),l.listenersToRemove.add(n.registerCommand(Cn,(()=>{const t=to();if(!Di(t)||!t.isCollapsed()||!Jm(t,e))return!1;const r=sy(n,t,e);return!!r&&(oy(r,e),!0)}),3)),l}(r,s,e,t,n);n.observers.set(i,[l,s])};return oc(function(e,t){const n=e.getRootElement(),r=e._window;if(!n||!r)return()=>{};const i=r=>{const i=r.target;if(0!==r.button||!Pl(i)||!n.contains(i))return;const o=function(e){const t=Km(e);if(null===t)return null;let n=t.elem;for(;null!=n;){if("TABLE"===n.nodeName&&Im in n&&n[Im])return{cellElement:t,tableElement:n,tableObserver:n[Im]};n=n.parentNode}return null}(i);e.update((()=>{if(Em(to())){for(const[e]of t.observers.values())e.$clearHighlight(!1);Ws(null),e.dispatchCommand(dn,void 0)}if(!o)return;const{tableObserver:n,tableElement:i,cellElement:s}=o;!function(e,t,n,r,i,o){const s=e._window;if(!s)return;i.pointerType=t.pointerType;const l=Nl(i.tableNodeKey),a=no();if(om&&t.shiftKey&&Jm(a,l)&&(Di(a)||Em(a))){const e=a.anchor.getNode(),r=Pm(l,a.anchor.getNode());r?(i.$setAnchorCellForSelection(ly(i,r)),i.$setFocusCellForSelection(n),iy(t)):(l.isBefore(e)?l.selectStart():l.selectEnd()).anchor.set(a.anchor.key,a.anchor.offset,a.anchor.type)}else"touch"!==t.pointerType&&i.$setAnchorCellForSelection(n);(t=>{if(i.isSelecting)return;i.isSelecting=!0,null!==t&&null===i.anchorCell&&e.update((()=>{i.$setAnchorCellForSelection(t)}));const n=()=>{i.isSelecting=!1,s.removeEventListener("pointerup",n),s.removeEventListener("pointermove",l)},l=t=>{if(!(e=>!(1&~e.buttons))(t)&&i.isSelecting)return i.isSelecting=!1,s.removeEventListener("pointerup",n),void s.removeEventListener("pointermove",l);if(!Pl(t.target))return;let a=null;const c=!(om||r.contains(t.target));if(c)a=Um(r,t.target);else for(const e of document.elementsFromPoint(t.clientX,t.clientY))if(a=Um(r,e),a)break;if(a){const t=a;null===i.anchorCell&&e.update((()=>{i.$setAnchorCellForSelection(t)})),null!==i.focusCell&&a.elem===i.focusCell.elem||(o.setNextFocus({focusCell:a,override:c,tableKey:i.tableNodeKey}),e.dispatchCommand(dn,void 0))}};s.addEventListener("pointerup",n,i.listenerOptions),s.addEventListener("pointermove",l,i.listenerOptions)})(n)}(e,r,s,i,n,t)}))};return r.addEventListener("pointerdown",i),()=>{r.removeEventListener("pointerdown",i)}}(e,n),e.registerCommand(dn,(()=>function(e,t){const n=to(),r=no(),i=e.getAndClearNextFocus();if(null!==i){const{tableKey:t,focusCell:r}=i,o=e.observers.get(t);o||Xf(335,t);const[s]=o;if(Em(n)&&n.tableKey===s.tableNodeKey)return(r.x!==s.focusX||r.y!==s.focusY)&&(s.$setFocusCellForSelection(r),!0);if(null!==s.anchorCell&&null!==s.anchorCellNodeKey&&r.elem!==s.anchorCell.elem&&null!==s.tableSelection)return s.$setFocusCellForSelection(r,!0),!0}const o=e.getAndClearShouldCheckSelectionForTable();if(o&&Di(r)&&Di(n)&&n.isCollapsed()){const e=Nl(o),t=n.anchor.getNode(),r=e.getFirstChild(),i=ty(t);if(null!==i&&nm(r)){const t=r.getFirstChild();if(Yf(t)&&e.is(ea(i,(n=>n.is(e)||n.is(t)))))return t.selectStart(),!0}}Em(n)&&function(e,t){const n=Mm(e),r=no();if(!t.is(r))return;const i=Nl(t.tableKey),o=Ol(n);if(o&&o.anchorNode&&o.focusNode){const n=$s(o.focusNode),r=n&&!i.isParentOf(n),s=$s(o.anchorNode),l=s&&i.isParentOf(s);if(r&&l&&o.rangeCount>0){const n=Qi(o,e);n&&(n.anchor.set(i.getKey(),t.isBackward()?i.getChildrenSize():0,"element"),o.removeAllRanges(),Ws(n))}}}(t,n),Di(n)&&function(e,t){const n=no(),{anchor:r,focus:i}=e,o=r.getNode(),s=i.getNode(),l=ty(o),a=ty(s),c=l?ny(l):null,u=a?ny(a):null,d=e.isBackward(),h=l&&a&&c&&u&&c.is(u),g=u&&(!c||c.isParentOf(u)),p=c&&(!u||u.isParentOf(c));if(g){const t=e.clone(),[n]=_m(u,a,a),r=n[0][0].cell,i=n[n.length-1].at(-1).cell;t.focus.set(d?r.getKey():i.getKey(),d?0:i.getChildrenSize(),"element"),Ws(t)}else if(p){const t=e.clone(),[n]=_m(c,l,l),r=n[0][0].cell,i=n[n.length-1].at(-1).cell;t.anchor.set(d?i.getKey():r.getKey(),d?i.getChildrenSize():0,"element"),Ws(t)}else if(h){const r=t.observers.get(c.getKey());r||Xf(335,c.getKey());const[i]=r;if(l.is(a)||(i.$setAnchorCellForSelection(ly(i,l)),i.$setFocusCellForSelection(ly(i,a),!0)),"touch"===i.pointerType&&i.isSelecting&&e.isCollapsed()&&Di(n)&&n.isCollapsed()){const e=ty(n.anchor.getNode());e&&!e.is(a)&&(i.$setAnchorCellForSelection(ly(i,e)),i.$setFocusCellForSelection(ly(i,a),!0),i.pointerType=null)}}}(n,e);const s=Array.from(e.observers.entries()).map((([e,[t]])=>({tableNode:Nl(e),tableObserver:t})));for(const{tableNode:e,tableObserver:n}of s)zm(t,e,n);return!1}(n,e)),3),e.registerMutationListener(gy,(t=>{e.getEditorState().read((()=>{for(const[e,i]of t){const t=n.observers.get(e);if("created"===i||"updated"===i){const{tableNode:i,tableElement:o}=Am(e);void 0===t?r(i,e,o):o!==t[1]&&(t[0].removeListeners(),n.observers.delete(e),r(i,e,o))}else"destroyed"===i&&void 0!==t&&(t[0].removeListeners(),n.observers.delete(e))}}),{editor:e})}),{skipInitialization:!1}),(()=>{for(const[,[e]]of n.observers)e.removeListeners()}))}function wy(e,t){e.hasNodes([gy])||Xf(255);const{hasNestedTables:n=Nu(!1)}={};return oc(e.registerCommand(Jf,(e=>function({rows:e,columns:t,includeHeaders:n},r){const i=to()||no();if(!i||!Di(i))return!1;if(!r&&ny(i.anchor.getNode()))return!1;const o=function(e,t,n=!0){const r=my();for(let i=0;i<e;i++){const e=tm();for(let r=0;r<t;r++){let t=Wf;"object"==typeof n?(0===i&&n.rows&&(t|=Vf),0===r&&n.columns&&(t|=Uf)):n&&(0===i&&(t|=Vf),0===r&&(t|=Uf));const o=Zf(t),s=ns();s.append(Ei()),o.append(s),e.append(o)}r.append(e)}return r}(Number(e),Number(t),n);iu(o);const s=o.getFirstDescendant();return Ti(s)&&s.select(),!0}(e,n.peek())),0),e.registerCommand(hn,((t,r)=>e===r&&function(e,t){const{nodes:n,selection:r}=e;if(!n.some((e=>yy(e)||tu(e).some((e=>yy(e.node))))))return!1;const i=Em(r),o=Di(r);return!!(o&&null!==ea(r.anchor.getNode(),(e=>Yf(e)))&&null!==ea(r.focus.getNode(),(e=>Yf(e)))||i)&&(1===n.length&&yy(n[0])?function(e,t){const n=t.getStartEndPoints(),r=Em(t);if(null===n)return!1;const[i,o]=n,[s,l,a]=xm(i),c=ea(o.getNode(),(e=>Yf(e)));if(!(Yf(s)&&Yf(c)&&nm(l)&&yy(a)))return!1;const[u,d,h]=_m(a,s,c),[g]=Cm(e,null,null),p=u.length,f=p>0?u[0].length:0;let m=d.startRow,y=d.startColumn,b=g.length,_=b>0?g[0].length:0;if(r){const e=Sm(u,d,h),t=e.maxRow-e.minRow+1,n=e.maxColumn-e.minColumn+1;m=e.minRow,y=e.minColumn,b=Math.min(b,t),_=Math.min(_,n)}let C=!1;const x=Math.min(p,m+b)-1,S=Math.min(f,y+_)-1,v=new Set;for(let e=m;e<=x;e++)for(let t=y;t<=S;t++){const n=u[e][t];v.has(n.cell.getKey())||1===n.cell.__rowSpan&&1===n.cell.__colSpan||(bm(n.cell),v.add(n.cell.getKey()),C=!0)}let[w]=Cm(a.getWritable(),null,null);const k=b-p+m;for(let e=0;e<k;e++)dm(w[p-1][0].cell);const E=_-f+y;for(let e=0;e<E;e++)gm(w[0][f-1].cell,!0,!1);[w]=Cm(a.getWritable(),null,null);for(let e=m;e<m+b;e++)for(let t=y;t<y+_;t++){const n=e-m,r=t-y,i=g[n][r];if(i.startRow!==n||i.startColumn!==r)continue;const o=i.cell;if(1!==o.__rowSpan||1!==o.__colSpan){const n=[],r=Math.min(e+o.__rowSpan,m+b)-1,i=Math.min(t+o.__colSpan,y+_)-1;for(let o=e;o<=r;o++)for(let e=t;e<=i;e++){const t=w[o][e];n.push(t.cell)}mm(n),C=!0}const{cell:s}=w[e][t],l=o.getBackgroundColor();null!=l&&s.setBackgroundColor(l);const a=s.getChildren();o.getChildren().forEach((e=>{Ti(e)?(ns().append(e),s.append(e)):s.append(e)})),a.forEach((e=>e.remove()))}if(r&&C){const[e]=Cm(a.getWritable(),null,null);e[d.startRow][d.startColumn].cell.selectEnd()}return!0}(n[0],r):!(o&&t.peek()&&!function(e){return!(!Em(e)||e.focus.getNode().is(e.anchor.getNode()))||!(!Di(e)||!Yf(e.anchor.getNode())||e.anchor.getNode().is(e.focus.getNode()))}(r)))}(t,n)),0),e.registerCommand(Xn,Sy,1),e.registerCommand(gn,xy,0),e.registerNodeTransform(gy,Cy),e.registerNodeTransform(Qf,_y),e.registerNodeTransform(qf,by))}let ky=null;function Ey(){return ky&&ky.isConnected||(ky=document.createElement("div"),ky.setAttribute("aria-hidden","true"),ky.setAttribute("data-lexxy-style-resolver",""),ky.style.cssText="contain: strict; position: fixed; top: 0; left: 0; visibility: hidden; pointer-events: none; width: 0; height: 0;",document.body.appendChild(ky)),ky}function Ty(e){return!!Di(e)&&(e.isCollapsed()?Ny(e.style):e.hasFormat("highlight"))}function Ny(e){const t="string"==typeof e?kc(e):e;return!(!t.color&&!t["background-color"])}class Ay{constructor(e,t=[]){this._property=e,this._allowedValues=t,this._canonicalValues=this.#je}applyCanonicalization(e){const t={...kc(e)};return t[this._property]=this.getCanonicalAllowedValue(t[this._property]),t[this._property]||delete t[this._property],ac(t)}getCanonicalAllowedValue(e){return this._canonicalValues[e]||=this.#Ge(e)}get#je(){return this._allowedValues.reduce(((e,t)=>({...e,[t]:t})),{})}#Ge(e){let t=this.#Ze.indexOf(e);return-1===t&&(t=this.#Ze.indexOf(Ly(this._property,[e])[0])),-1===t?null:this._allowedValues[t]}get#Ze(){return this._computedAllowedValues||=Ly(this._property,this._allowedValues)}}function Ly(e,t){const n=document.createDocumentFragment(),r=t.map((t=>{const r=Ic("span",{style:`display: none; ${e}: ${t};`});return n.appendChild(r),r}));Ey().appendChild(n);const i=r.map((t=>window.getComputedStyle(t).getPropertyValue(e)));return r.forEach((e=>e.remove())),i}const Oy=un(),Iy=un(),Ry={color:null,"background-color":null},Fy=pt("hasPastedStyles",{parse:e=>e||!1}),My=new WeakMap;class Py extends Jg{get enabled(){return this.editorElement.supportsRichText}get lexicalExtension(){return[{dependencies:[Og],name:"lexxy/highlight",config:{color:{buttons:[],permit:[]},"background-color":{buttons:[],permit:[]}},html:{import:{mark:By}},register(e,t){const n=function(e){return[new Ay("color",[...e.buttons.color,...e.permit.color]),new Ay("background-color",[...e.buttons["background-color"],...e.permit["background-color"]])]}(t);return function(e){if(!e._htmlConversions)return;let t=e._htmlConversions.get("pre");t||(t=[],e._htmlConversions.set("pre",t));t.push(function(e){return function(t){const n=function(e){const t=[],n=e.querySelector("code")||e;let r=0;function i(e){if(e.nodeType===Node.TEXT_NODE)r+=e.textContent.length;else if(e.nodeType===Node.ELEMENT_NODE){if("BR"===e.tagName)return void(r+=1);const n="MARK"===e.tagName,o=r;for(const t of e.childNodes)i(t);if(n){const n=function(e){const t={};e.style?.color&&(t.color=e.style.color);e.style?.backgroundColor&&(t["background-color"]=e.style.backgroundColor);const n=ac(t);return n.length>0?n:null}(e);n&&t.push({start:o,end:r,style:n})}}}for(const e of n.childNodes)i(e);return t}(t);return 0===n.length?null:{conversion:t=>{const r=Fp(t.getAttribute("data-language"));return $y(e).set(r.getKey(),n),{node:r}},priority:2}}}(e))}(e),oc(e.registerCommand(Oy,(t=>Uy(e,t)),2),e.registerCommand(Iy,(()=>Uy(e,Ry)),2),e.registerNodeTransform(yi,Gy),e.registerNodeTransform(Kp,Zy),e.registerNodeTransform(yi,(e=>function(e,t=[]){if(function(e){return ft(e,Fy)}(e)){Yy(e,!1);const n=function(e,t=[]){return t.reduce(((e,t)=>t.applyCanonicalization(e)),e)}(e.getStyle(),t);e.setStyle(n);const r=to();e.isSelected(r)&&(r.setStyle(e.getStyle()),r.setFormat(e.getFormat()))}}(e,n))))}},this.editorConfig.get("highlight")]}}function Dy(e,t){const n={color:t.style?.color,"background-color":t.style?.backgroundColor};ml(Zr)&&Yy(e);const r=ac(n);if(r.length)return e.setStyle(e.getStyle()+r)}function By(){return{conversion:ip("mark",Dy),priority:1}}function $y(e){let t=My.get(e);return t||(t=new Map,My.set(e,t)),t}function zy(e){return{defaultLanguage:df.defaultLanguage,tokenize:(e,t)=>df.tokenize(e,t),$tokenize(t,n){const r=df.$tokenize(t,n),i=function(e,t){const n=$y(e),r=t.getKey();if(n.has(r)){const e=n.get(r);return n.delete(r),e}return t.getChildren().some(Vp)?function(e){const t=[],n=function(e){const t=[];let n=0;for(const r of e.getChildren())if(Vp(r)||Ti(r)){const e=r.getTextContent();t.push({node:r,start:n,end:n+e.length}),n+=e.length}else n+=1;return t}(e);for(const{node:e,start:r,end:i}of n){const n=e.getStyle();n&&Ny(n)&&t.push({start:r,end:i,style:n})}return t}(t):[]}(e,t);return function(e,t){if(0===t.length)return e;const n=[];let r=0;for(const i of e)Vp(i)?n.push(...Hy(i,r,t)):n.push(i),r+=i.getTextContentSize();return n}(r,i)}}}function Hy(e,t,n){const r=e.getTextContent(),i=function(e,t,n){const r=[];let i=0;for(const{start:o,end:s,style:l}of n){const n=Math.max(o-t,i),a=Math.min(s-t,e.length);n<a&&(n>i&&r.push({start:i,end:n,style:null}),r.push({start:n,end:a,style:l}),i=a)}i<e.length&&r.push({start:i,end:e.length,style:null});return r}(r,t,n);if(1===i.length){const[t]=i;return t.style&&Ky(e,t.style),[e]}return i.map((t=>{const n=Wp(r.slice(t.start,t.end),e.getHighlightType());return t.style&&Ky(n,t.style),n}))}function Ky(e,t){e.setStyle(t),qy(e,!0)}function Uy(e,t){const n=to();if(!Di(n))return;const r={};for(const e in t){const i=wc(n,e);r[e]=jy(i,t[e])}!function(e){const t=e.getNodes();return t.some((e=>Vp(e)||Ti(e)?Mp(e.getParent()):Mp(e)))}(n)?function(e,t){if(Di(e)&&e.isCollapsed()){gc(e,t);const n=e.anchor.getNode();Ko(n)&&n.isEmpty()&&gc(n,t)}pc((e=>{gc(e,t)}));const n=e.getNodes();if(n.length>0){const e=new Set;for(const r of n){if(!Ko(r)||!r.canBeEmpty()||0!==r.getChildrenSize())continue;const n=r.getKey();e.has(n)||(e.add(n),gc(r,t))}}}(n,r):function(e,t,n){const r=t.getNodes().filter((e=>(Vp(e)||Ti(e))&&Mp(e.getParent()))).map((e=>({key:e.getKey(),startOffset:Wy(e,t)[0],endOffset:Wy(e,t)[1],textSize:e.getTextContentSize()})));e.update((()=>{for(const{key:e,startOffset:t,endOffset:i,textSize:o}of r){const r=Ps(e);if(!r)continue;if(Mp(r.getParent())&&t!==i)if(0===t&&i===o)Vy(r,n);else{Vy(r.splitText(t,i)[0===t?0:1],n)}}}),{skipTransforms:!0,discrete:!0})}(e,n,r)}function Wy(e,t){const n=e.getKey(),r=n===t.anchor.key,i=n===t.focus.key;let o=0,s=e.getTextContentSize();return!1===t.isBackward()?(r&&(o=t.anchor.offset),i&&(s=t.focus.offset)):(i&&(o=t.focus.offset),r&&(s=t.anchor.offset)),[o,s]}function Vy(e,t){const n={...kc(e.getStyle())};for(const[e,r]of Object.entries(t))null===r?delete n[e]:n[e]=r;const r=ac(n);e.setStyle(r);const i=Ny(r);i!==e.hasFormat("highlight")&&qy(e,i)}function qy(e,t){const n=e.getWritable();t?n.__format|=128:n.__format&=-129}function jy(e,t){return e===t?null:t}function Gy(e){Ny(e.getStyle())!==e.hasFormat("highlight")&&e.toggleFormat("highlight")}function Zy(e){if(!Mp(e.getParent()))return;const t=Ny(e.getStyle());t!==e.hasFormat("highlight")&&qy(e,t)}function Yy(e,t=!0){mt(e,Fy,t)}const Jy=["bold","italic","strikethrough","underline","link","unlink","toggleHighlight","removeHighlight","setFormatParagraph","applyHeadingFormat","clearFormatting","insertUnorderedList","insertOrderedList","insertQuoteBlock","insertCodeBlock","setCodeLanguage","insertHorizontalDivider","uploadImage","uploadFile","insertTable","undo","redo"];class Xy{#Ye=null;#e=new Lc;static configureFor(e){return new Xy(e)}constructor(e){this.editorElement=e,this.editor=e.editor,this.selection=e.selection,this.contents=e.contents,this.#Je(),this.#Xe(),this.#Qe()}dispatchBold(){this.editor.dispatchCommand(En,"bold")}dispatchItalic(){this.editor.dispatchCommand(En,"italic")}dispatchStrikethrough(){this.editor.dispatchCommand(En,"strikethrough")}dispatchUnderline(){this.editor.dispatchCommand(En,"underline")}dispatchToggleHighlight(e){this.editor.dispatchCommand(Oy,e)}dispatchRemoveHighlight(){this.editor.dispatchCommand(Iy)}dispatchLink(e){this.editor.update((()=>{const t=to();if(!Di(t))return;const n=t.anchor.getNode();if(t.isCollapsed()&&!nu(n,id)){const n=cd(e),r=Ei(e);n.append(r),t.insertNodes([n])}else hd(e)}))}dispatchUnlink(){this.editor.update((()=>{this.editorElement.adapter.unlinkFrozenNode?.()||hd(null)}))}dispatchInsertUnorderedList(){const e=to();if(!Di(e))return;const t=e.anchor.getNode();this.selection.isInsideList&&t&&"bullet"===ep(t)?this.contents.applyParagraphFormat():this.contents.applyUnorderedListFormat()}dispatchInsertOrderedList(){const e=to();if(!Di(e))return;const t=e.anchor.getNode();this.selection.isInsideList&&t&&"number"===ep(t)?this.contents.applyParagraphFormat():this.contents.applyOrderedListFormat()}dispatchInsertQuoteBlock(){this.contents.toggleBlockquote()}dispatchInsertCodeBlock(){this.selection.hasSelectedWordsInSingleLine?this.#et():this.contents.toggleCodeBlock()}#et(){const e=to();if(Di(e)){if(!e.isCollapsed()){const t=e.getNodes().filter(Ti);!t.every((e=>e.hasFormat("code")))&&this.#tt(e,t)}this.editor.dispatchCommand(En,"code")}}#tt(e,t){const n=e.isBackward(),r=n?e.focus:e.anchor,i=n?e.anchor:e.focus;for(let e=0;e<t.length;e++){const n=t[e];if(0===n.getFormat())continue;const o=0===e,s=e===t.length-1,l=o&&"text"===r.type?r.offset:0,a=s&&"text"===i.type?i.offset:n.getTextContentSize();if(0===l&&a===n.getTextContentSize())n.setFormat(0);else{const e=n.splitText(l,a),t=0===l?e[0]:e[1];t.setFormat(0),o&&"text"===r.type&&r.set(t.getKey(),0,"text"),s&&"text"===i.type&&i.set(t.getKey(),a-l,"text")}}}dispatchSetCodeLanguage(e){this.editor.update((()=>{if(!this.selection.isInsideCodeBlock)return;const t=this.selection.nearestNodeOfType(Rp);t&&t.setLanguage(e)}))}dispatchInsertHorizontalDivider(){iu(new Mf)}dispatchSetFormatParagraph(){this.contents.applyParagraphFormat()}dispatchApplyHeadingFormat(e){this.contents.applyHeadingFormat(e)}dispatchClearFormatting(){this.contents.clearFormatting()}dispatchUploadImage(){this.#nt("image/*,video/*")}dispatchUploadFile(){this.#nt()}#nt(e=null){const t={type:"file",multiple:!0,style:"display: none;",onchange:({target:{files:e}})=>{this.contents.uploadFiles(e,{selectLast:!0})}};e&&(t.accept=e);const n=Ic("input",t);this.editorElement.appendChild(n),n.click(),setTimeout((()=>n.remove()),1e3)}dispatchInsertTable(){this.editor.dispatchCommand(Jf,{rows:3,columns:3,includeHeaders:!0})}dispatchUndo(){this.editor.dispatchCommand(Tn,void 0)}dispatchRedo(){this.editor.dispatchCommand(Nn,void 0)}dispose(){this.#e.dispose()}#Je(){for(const t of Jy){const n=`dispatch${e=t,e.charAt(0).toUpperCase()+e.slice(1)}`;this.#rt(t,0,this[n].bind(this))}var e}#rt(e,t,n){this.#e.track(this.editor.registerCommand(e,n,t))}#Xe(){this.#rt(Ln,2,this.#it.bind(this)),this.#rt(Hn,2,this.#ot.bind(this)),this.#rt(_n,3,this.#st.bind(this)),this.#rt(Cn,3,this.#st.bind(this))}#st(){return function(e=to()){!!fp(e)&&At(e)}(),!1}#it(e){const t=to();if(!Di(t)||!t.isCollapsed())return!1;if(this.selection.isInsideCodeBlock||!t.hasFormat("code"))return!1;const n=t.anchor.getNode();return!(!Ti(n)||t.anchor.offset!==n.getTextContentSize())&&(null===n.getNextSibling()&&(e.preventDefault(),t.toggleFormat("code"),!0))}#Qe(){this.editorElement.supportsAttachments&&(this.dragCounter=0,this.#e.track(this.editor.registerRootListener((e=>{if(e){const t=[Ac(e,"dragover",this.#lt.bind(this)),Ac(e,"drop",this.#at.bind(this)),Ac(e,"dragenter",this.#ct.bind(this)),Ac(e,"dragleave",this.#ut.bind(this))];return()=>t.forEach((e=>e()))}}))))}#ct(e){this.#dt(e)||(this.dragCounter++,1===this.dragCounter&&(this.#ht(),this.editor.getRootElement().classList.add("lexxy-editor--drag-over")))}#ut(e){this.#dt(e)||(this.dragCounter--,0===this.dragCounter&&(this.#Ye=null,this.editor.getRootElement().classList.remove("lexxy-editor--drag-over")))}#lt(e){this.#dt(e)||e.preventDefault()}#at(e){if(this.#dt(e))return;e.preventDefault(),this.dragCounter=0,this.editor.getRootElement().classList.remove("lexxy-editor--drag-over");const t=e.dataTransfer;if(!t)return;const n=Array.from(t.files);n.length&&(this.#gt(),this.contents.uploadFiles(n,{selectLast:!0}),this.editor.focus())}#ht(){this.editor.getEditorState().read((()=>{this.#Ye=to()?.clone()}))}#gt(){this.#Ye&&(this.editor.update((()=>{Ws(this.#Ye)})),this.#Ye=null)}#dt(e){return e.dataTransfer?.types.some((e=>e.startsWith("application/x-lexxy-")))}#ot(e){return this.selection.isInsideList?this.#pt(e):!!this.selection.isInsideCodeBlock&&this.#ft()}#pt(e){if(e.shiftKey&&!this.selection.isIndentedList)return!1;e.preventDefault();const t=e.shiftKey?Wn:Un;return this.editor.dispatchCommand(t)}#ft(){const e=to();return Di(e)&&e.isCollapsed()}}class Qy{#e=new Lc;constructor(e){this.editorElement=e,this.editorContentElement=e.editorContentElement,this.editor=this.editorElement.editor,this.previouslySelectedKeys=new Set,this.#mt(),this.#yt(),this.#bt(),this.#_t()}get hasNodeSelection(){return this.editor.getEditorState().read((()=>{const e=to();return null!==e&&$i(e)}))}get cursorPosition(){let e=null;return this.editor.getEditorState().read((()=>{const t=this.#Ct();if(!t)return;const n=this.#xt(t);this.#St(n)||(e=this.#vt(n,t))})),e}placeCursorAtTheEnd(){this.editor.update((()=>{const e=Ks(),t=e.getLastDescendant();t&&Ti(t)?t.selectEnd():e.selectEnd()}))}selectedNodeWithOffset(){const e=to();if(!e)return{node:null,offset:0};if(Di(e))return{node:e.anchor.getNode(),offset:e.anchor.offset};if($i(e)){const[t]=e.getNodes();return{node:t,offset:0}}return{node:null,offset:0}}getFormat(){const e=to();if(!Di(e))return{};const t=e.anchor.getNode();if(!t.getParent())return{};const n=t.getTopLevelElementOrThrow(),r=ep(t),i=this.#wt(t);return{isBold:e.hasFormat("bold"),isItalic:e.hasFormat("italic"),isStrikethrough:e.hasFormat("strikethrough"),isUnderline:e.hasFormat("underline"),isHighlight:Ty(e),isInLink:null!==nu(t,id),isInQuote:Cg(n),isInHeading:null!==i,isInCode:this.#kt(e,t),headingTag:i?.getTag()??null,isInList:null!==r,listType:r,isInTable:null!==sm(t)}}nearestNodeOfType(e){const t=to()?.anchor?.getNode();return nu(t,e)}get hasSelectedWordsInSingleLine(){const e=to();if(!Di(e))return!1;if(e.isCollapsed())return!1;const t=e.anchor.getNode(),n=e.focus.getNode();if(t.getTopLevelElement()!==n.getTopLevelElement())return!1;const r=t.getTopLevelElement();if(!r)return!1;const i=Ko(t)?t:t.getParent();if(i!==(Ko(n)?n:n.getParent())&&i!==r)return!1;const o=e.getNodes();for(const e of o)if(ci(e))return!1;return!0}get isInsideList(){return this.nearestNodeOfType(Ld)}get isInsideBlockQuote(){return this.nearestNodeOfType(bg)}get isIndentedList(){const e=this.nearestNodeOfType(Md);return e&&yd(e)>1}get isInsideCodeBlock(){return null!==this.nearestNodeOfType(Rp)}get isTableCellSelected(){const e=to(),{anchor:t,focus:n}=e;return!(!Di(e)||t.key!==n.key)&&null!==this.nearestNodeOfType(qf)}get isOnPreviewableImage(){return null!=this.previewableImageNode}get previewableImageNode(){const e=to()?.getNodes().at(0);return xp(e)&&e.isPreviewableImage?e:null}get isAtNodeStart(){const{anchorNode:e,offset:t}=this.#Et();return e&&0===t}get nodeAfterCursor(){const{anchorNode:e,offset:t}=this.#Et();return e?Ti(e)?this.#Tt(e,t):Ko(e)?this.#Nt(e,t):this.#At(e):null}get topLevelNodeAfterCursor(){const{anchorNode:e,offset:t}=this.#Et();if(!e)return null;if(Ti(e)){if(t===e.getTextContentSize())return this.#Lt(e);if(this.#Ot(e)){const t=e.getTopLevelElement();return t?t.getNextSibling():null}return null}return Ko(e)?this.#Nt(e,t):this.#At(e)}get nodeBeforeCursor(){const{anchorNode:e,offset:t}=this.#Et();return e?Ti(e)?this.#It(e,t):Ko(e)?this.#Rt(e,t):this.#Ft(e):null}get topLevelNodeBeforeCursor(){const{anchorNode:e,offset:t}=this.#Et();if(!e)return null;if(Ti(e)){if(0===t)return this.#Mt(e);if(this.#Pt(e)){const t=e.getTopLevelElement();return t?t.getPreviousSibling():null}return null}return Ko(e)?this.#Rt(e,t):this.#Ft(e)}dispose(){this.editorElement=null,this.editorContentElement=null,this.editor=null,this.previouslySelectedKeys=null,this.#e.dispose()}#kt(e,t){return null!==nu(t,Rp)||!!e.hasFormat("code")&&(Ti(t)&&t.hasFormat("code"))}#_t(){this.#e.track(this.editor.registerUpdateListener((({editorState:e,tags:t})=>{if(t.has("history-merge")||t.has("skip-dom-selection"))return;let n=!1;e.read((()=>{const e=to();if(!Di(e)||!e.isCollapsed())return;if(!e.hasFormat("code"))return;const t=e.anchor.getNode();this.#kt(e,t)||(n=!0)})),n&&setTimeout((()=>{this.editor.update((()=>{const e=to();if(!Di(e)||!e.hasFormat("code"))return;const t=e.anchor.getNode();this.#kt(e,t)||e.toggleFormat("code")}))}),0)})))}get#Dt(){if(this.currentlySelectedKeys)return this.currentlySelectedKeys;this.currentlySelectedKeys=new Set;const e=to();if(e&&$i(e))for(const t of e.getNodes())this.currentlySelectedKeys.add(t.getKey());return this.currentlySelectedKeys}#yt(){this.#e.track(this.editor.registerCommand(In,Oc(this.#Bt.bind(this)),1),this.editor.registerCommand(Ln,Oc(this.#$t.bind(this)),1),this.editor.registerCommand(Fn,Oc(this.#zt.bind(this)),1),this.editor.registerCommand(Mn,Oc(this.#Ht.bind(this)),1),this.editor.registerCommand(bn,this.#Kt.bind(this),1),this.editor.registerCommand(dn,(()=>{this.#Ut()}),1))}#mt(){this.#e.track(this.editor.registerCommand(gn,(({target:e})=>{if(!Pl(e))return!1;const t=$s(e);return Vo(t)&&this.#Wt(t)}),1)),this.#e.track(this.editor.registerRootListener((e=>{if(e)return Ac(e,"lexxy:internal:move-to-next-line",(()=>this.#Vt()))})))}#bt(){this.#e.track(this.editor.registerRootListener((e=>{if(e){const t=e=>this.#qt(e);return e.addEventListener("keydown",t,!0),()=>e.removeEventListener("keydown",t,!0)}})))}#qt(e){if("ArrowUp"===e.key){const t=this.editor.getRootElement().querySelector("[data-lexical-cursor]");if(t){let n=t.previousElementSibling;for(;n&&n.hasAttribute("data-lexical-cursor");)n=n.previousElementSibling;n||e.preventDefault()}}if("ArrowDown"===e.key){const t=this.editor.getRootElement().querySelector("[data-lexical-cursor]");if(t){let n=t.nextElementSibling;for(;n&&n.hasAttribute("data-lexical-cursor");)n=n.nextElementSibling;n||e.preventDefault()}}}#Ut(){this.#jt(),this.#Gt(),this.previouslySelectedKeys=this.#Dt,this.currentlySelectedKeys=null}#jt(){for(const e of this.previouslySelectedKeys)if(!this.#Dt.has(e)){const t=this.editor.getElementByKey(e);t&&t.classList.remove("node--selected")}}#Gt(){for(const e of this.#Dt)if(!this.previouslySelectedKeys.has(e)){const t=this.editor.getElementByKey(e);t&&t.classList.add("node--selected")}}#Bt(e){return e.shiftKey?this.#Zt((e=>(this.#Yt(e,"forward").modify("extend",!0,"character"),!0))):this.#Zt((e=>e.selectPrevious()))||this.#Wt(this.nodeBeforeCursor)}#$t(e){return e.shiftKey?this.#Zt((e=>(this.#Yt(e,"forward").modify("extend",!1,"character"),!0))):this.#Zt((e=>e.selectNext(0,0)))||this.#Wt(this.nodeAfterCursor)}#zt(){return this.#Zt((e=>e.getTopLevelElement().selectPrevious()))||this.#Wt(this.topLevelNodeBeforeCursor)}#Ht(){return this.#Zt((e=>e.getTopLevelElement().selectNext(0,0)))||this.#Wt(this.topLevelNodeAfterCursor)}#Zt(e){if(this.hasNodeSelection)return e(to().getNodes()[0])}#Yt(e,t="forward"){if(Vo(e)){const[n,r]="forward"===t?[0,1]:[1,0],i=e.getIndexWithinParent();return e.getParent().select(i+n,i+r)}}async#Vt(){this.editor.update((()=>{const e=this.#Jt();e&&this.#Xt(e)}))}#Jt(){const e=to();return e?$i(e)?this.#Qt(e):Di(e)?this.#en(e):null:null}#Qt(e){const t=e.getNodes();return t.length>0?t[0].getTopLevelElement():null}#en(e){return e.anchor.getNode().getTopLevelElement()}#wt(e){const t=e.getTopLevelElementOrThrow();let n=Eg(t)?t:null;if(!n){let t=e.getParent();for(;t;){if(Eg(t)){n=t;break}t=t.getParent()}}return n}#Xt(e){const t=e.getNextSibling();t?t.selectStart():this.#tn()}#tn(){const e=Ks(),t=ns();e.append(t),t.selectStart()}#Wt(e){if(Vo(e)){yl(Gr);const t=function(...e){const t=Xi();return e.forEach((e=>t.add(e.getKey()))),t}(e);return Ws(t),t}return!1}#Kt(e){if(e&&this.#nn())return!0;const t=e?this.nodeBeforeCursor:this.nodeAfterCursor;if(!Vo(t))return!1;if(this.#rn(t))return!0;this.#in();const n=this.#Wt(t);return Boolean(n)}#nn(){const e=to();if(!Di(e)||!e.isCollapsed())return!1;const t=nu(e.anchor.getNode(),Ld);if(!t)return!1;if(!function(e){const t=e.getChildren();for(const e of t){if(Vo(e))return!1;if(!ci(e))if(Ti(e)){if(""!==e.getTextContent().trim())return!1}else if(Ko(e)&&""!==e.getTextContent().trim())return!1}return!0}(t))return!1;const n=t.getNextSibling();if(!n)return!1;const r=t.getPreviousSibling(),i=nu(t,Md);if(!i)return!1;if(r)r.selectEnd(),t.remove();else if(Cg(i.getParent()))n.selectStart(),t.remove();else{const e=ns();i.insertBefore(e),t.remove(),e.selectStart()}return!0}#rn(e){const t=to()?.anchor?.getNode(),n=t&&nu(t,Ld);if(!n)return!1;if(n.isParentOf(e))return!1;const r=nu(n,Md);if(!r)return!1;const i=ns();return n.getChildren().forEach((e=>i.append(e))),1===r.getChildrenSize()?(r.insertBefore(i),r.remove()):(r.insertBefore(i),n.remove()),i.selectStart(),!0}#in(e=to()?.anchor){const t=e?.getNode();Ko(t)&&t?.isEmpty()&&t.remove()}#Ct(){const e=to();if(!e||!e.isCollapsed())return null;const t=window.getSelection();return t&&0!==t.rangeCount?t.getRangeAt(0):null}#xt(e){let t=e.getBoundingClientRect();if(this.#St(t)){const n=this.#on(e);t=n.getBoundingClientRect(),this.#sn(n),n.remove()}return t}#St(e){return 0===e.width&&0===e.height||0===e.top&&0===e.left}#on(e){const t=this.#ln();return e.insertNode(t),t}#ln(){const e=document.createElement("span");return e.textContent="",e.style.display="inline-block",e.style.width="1px",e.style.height="1em",e.style.lineHeight="normal",e.setAttribute("nonce",Nc()),e}#sn(e){const t=window.getSelection();t.removeAllRanges();const n=document.createRange();n.setStartAfter(e),n.collapse(!0),t.addRange(n)}#vt(e,t){const n=this.editor.getRootElement().getBoundingClientRect(),r=e.left-n.left;let i=e.top-n.top;const o=this.#an(t);return isNaN(o)||(i+=o),{x:r,y:i,fontSize:o}}#an(e){const t=window.getSelection().anchorNode,n=this.#cn(t);if(n instanceof HTMLElement){const e=window.getComputedStyle(n);return parseFloat(e.fontSize)}return 0}#cn(e){return e?.nodeType===Node.TEXT_NODE?e.parentElement:e}#Et(){const e=to();if(!Di(e)||!e.isCollapsed())return{anchorNode:null,offset:0};const{anchor:t}=e;return{anchorNode:t.getNode(),offset:t.offset}}#Tt(e,t){return t===e.getTextContentSize()?this.#Lt(e):null}#Lt(e){const t=e.getNextSibling();if(Vo(t))return t;if(null!=t)return null;const n=e.getParent();return n?n.getNextSibling():null}#Nt(e,t){return t<e.getChildrenSize()?e.getChildAtIndex(t):this.#At(e)}#It(e,t){return 0===t?this.#Mt(e):null}#Mt(e){const t=e.getPreviousSibling();if(Vo(t))return t;if(null!=t)return null;const n=e.getParent();return n?n.getPreviousSibling():null}#Rt(e,t){return t>0?e.getChildAtIndex(t-1):this.#Ft(e)}#At(e){let t=e;for(;t&&null==t.getNextSibling();)t=t.getParent();return t?t.getNextSibling():null}#Ft(e){let t=e;for(;t&&null==t.getPreviousSibling();)t=t.getParent();return t?t.getPreviousSibling():null}#Pt(e){return this.#un(e,"first")}#Ot(e){return this.#un(e,"last")}#un(e,t){const n=e.getTopLevelElement();if(!n)return!1;const r=this.editor.getElementByKey(n.getKey());if(!r)return!1;const i=window.getSelection();if(!i?.rangeCount)return!1;const o=this.#xt(i.getRangeAt(0));if(!o||this.#St(o))return!1;const s=this.#dn(r,t);if(!s||this.#St(s))return!1;const l=s.height>0?.5*s.height:5;return Math.abs(o.top-s.top)<l}#dn(e,t){const n=document.createTreeWalker(e,4);let r;if("first"===t)r=n.nextNode();else for(;n.nextNode();)r=n.currentNode;if(!r||0===r.length)return null;const i=document.createRange();return"first"===t?(i.setStart(r,0),i.setEnd(r,1)):(i.setStart(r,r.length-1),i.setEnd(r,r.length)),i.getBoundingClientRect()}}class eb{#oe;#hn;constructor(e){this.#oe=e,this.#hn=new Fg(Bg.presets.get("default"),Bg.presets.get(e.preset),this.#gn)}get(e){return this.#hn.get(e)}get#gn(){const e={};for(const t of this.#pn){const n=t.replace(/([A-Z])/g,((e,t)=>`-${t.toLowerCase()}`));this.#oe.hasAttribute(n)&&(e[t]=this.#fn(n))}return e}get#pn(){return Object.keys(Bg.presets.get("default"))}#fn(e){const t=this.#oe.getAttribute(e);try{return JSON.parse(t)}catch{return t}}}class tb extends Ho{$config(){return this.config("image_gallery",{extends:Ho})}static transform(){return e=>{e.unwrapEmptyNode()||e.replaceWithSingularChild()||e.splitAroundInvalidChild()}}static importDOM(){return{div:e=>this.#mn(e)?{conversion:()=>({node:nb()}),priority:2}:null}}static canCollapseWith(e){return rb(e)||this.isValidChild(e)}static isValidChild(e){return xp(e)&&e.isPreviewableImage}static#mn(e){const t=e.querySelectorAll(`:scope > :is(${this.#yn.join()})`);return""===e.textContent.trim()&&t.length>0&&e.children.length===t.length}static get#yn(){return Object.keys(_p.importDOM())}createDOM(){const e=document.createElement("div");return e.className=this.#bn,e}updateDOM(e,t){return t.className=this.#bn,!1}canBeEmpty(){return!0}collapseAtStart(e){return!0}insertNewAfter(e,t){if(e.anchor.getNode().is(this)&&e.anchor.offset==this.getChildrenSize()-1){const e=ns();return this.insertAfter(e,!1),e.insertAfter(this.getLastChild(),!1),e.selectEnd(),null}const n=nb();return this.insertAfter(n,t),n}getImageAttachments(){return this.getChildren().filter(xp)}exportDOM(){const e=document.createElement("div");return e.className=this.#bn,{element:e}}collapseWith(e,t){return!!tb.canCollapseWith(e)&&(t?cu(this,e):this.append(e),uu(this,tb.isValidChild),!0)}unwrapEmptyNode(){if(this.isEmpty()){const e=ns();return this.replace(e)}}replaceWithSingularChild(){if(this.#_n){const e=this.getFirstChild();return this.replace(Qg(e))}}splitAroundInvalidChild(){for(const e of gu(this)){if(tb.isValidChild(e))continue;const t=Qg(e),[n,r]=this.splitAtIndex(t.getIndexWithinParent());n.insertAfter(t),t.selectEnd(),r.isEmpty()&&r.remove();break}}splitAtIndex(e){return Rl(this,e)}get#_n(){return 1===this.getChildrenSize()}get#bn(){return`attachment-gallery attachment-gallery--${this.getChildrenSize()}`}}function nb(){return new tb}function rb(e){return e instanceof tb}function ib(e){if(!tb.canCollapseWith(e))return null;return nu(e,tb)??su(e,nb)}class ob{#Cn;static for(e,t,n={}){return new(sb.handle(e,t)?sb:ob)(e,t,n)}constructor(e,t,n={}){this.#Cn=t,this.options=n,this.editorElement=e,this.contents=e.contents,this.selection=e.selection}get files(){return Array.from(this.#Cn)}$uploadFiles(){this.$createUploadNodes(),this.$insertUploadNodes()}$createUploadNodes(){this.nodes=this.files.map((e=>this.#xn(e)))}#xn(e){return this.options.pending?this.contents.$createPendingUploadNode(e):this.contents.$createUploadNode(e)}$insertUploadNodes(){this.contents.insertAtCursor(...this.nodes)}}class sb extends ob{#Sn;static handle(e,t){return this.isMultipleImageUpload(t)||this.gallerySelection(e.selection)}static isMultipleImageUpload(e){let t=0;for(const n of e)if(Fc(n.type)&&t++,t>1)return!0;return!1}static gallerySelection(e){return e.isOnPreviewableImage||this.selectionIsAfterGalleryEdge(e)}static selectionIsAfterGalleryEdge(e){return e.isAtNodeStart&&tb.canCollapseWith(e.nodeBeforeCursor)}$insertUploadNodes(){this.#vn(),this.#wn(),this.#kn()}#vn(){this.selection.isOnPreviewableImage?this.#Sn=ib(this.selection.previewableImageNode):this.#En?this.#Sn=ib(this.selection.nodeBeforeCursor):(this.#Sn=nb(),this.contents.insertAtCursor(this.#Sn))}get#En(){return this.constructor.selectionIsAfterGalleryEdge(this.selection)}get#Tn(){const{node:e}=this.selection.selectedNodeWithOffset();return e}get#Nn(){if(this.#En)return this.#Sn.getChildrenSize();const e=to()?.anchor,t=e?.getNode().is(this.#Sn);if(t)return e.offset;const n=this.#Tn,r=this.#Sn.isParentOf(n)&&n.getIndexWithinParent();return!1!==r?r+1:0}get#An(){return this.nodes.filter((e=>tb.isValidChild(e)))}get#Ln(){return this.nodes.filter((e=>!tb.isValidChild(e)))}#wn(){this.#Sn.splice(this.#Nn,0,this.#An)}#kn(){let e=this.#Sn;for(const t of this.#Ln)e.insertAfter(t),e=t}}class lb extends _p{static getType(){return"action_text_attachment_upload"}static clone(e){return new lb({...e},e.__key)}static importJSON(e){return new lb({...e})}static importDOM(){return null}constructor(e,t){const{file:n,uploadUrl:r,blobUrlTemplate:i,progress:o,width:s,height:l,uploadError:a,fileName:c,contentType:u}=e;super({...e,contentType:n?.type??u},t),this.file=n??null,this.fileName=n?.name??c,this.uploadUrl=r,this.blobUrlTemplate=i,this.progress=o??null,this.width=s,this.height=l,this.uploadError=a}createDOM(){if(this.uploadError)return this.createDOMForError();this.#On();const e=this.isPreviewableAttachment&&null!=this.uploadUrl,t=this.createAttachmentFigure(e);if(e){const e=t.appendChild(this.#Ne());(async function(e,t){return new Promise((n=>{const r=new FileReader;t.addEventListener("load",(()=>{n(t)})),r.onload=e=>{t.src=e.target.result||null},r.readAsDataURL(e)}))})(this.file,e).then((e=>this.#In(e)))}else t.appendChild(this.#Le());return t.appendChild(this.#Rn()),t.appendChild(this.#Fn()),t}updateDOM(e,t){if(this.uploadError!==e.uploadError)return!0;if(e.progress!==this.progress){t.querySelector("progress").value=this.progress??0}return!1}exportDOM(){return{element:null}}exportJSON(){return{...super.exportJSON(),type:"action_text_attachment_upload",version:1,fileName:this.fileName,contentType:this.contentType,uploadUrl:this.uploadUrl,blobUrlTemplate:this.blobUrlTemplate,progress:this.progress,width:this.width,height:this.height,uploadError:this.uploadError}}get#Mn(){return null!==this.progress}#Ne(){return Ic("img")}#Le(){return Ic("span",{className:"attachment__icon",textContent:this.#Pn()})}#Pn(){return(this.fileName||"").split(".").pop().toLowerCase()}#Rn(){const e=Ic("figcaption",{className:"attachment__caption"}),t=Ic("span",{className:"attachment__name",textContent:this.caption||this.fileName||""}),n=Ic("span",{className:"attachment__size",textContent:Hg(this.file?.size)});return e.appendChild(t),e.appendChild(n),e}#Fn(){return Ic("progress",{value:this.progress??0,max:100})}#In({width:e,height:t}){this.#Dn||this.patchAndRewriteHistory({width:e,height:t})}get#Dn(){return Boolean(this.width&&this.height)}async#On(){if(this.#Mn)return;if(!this.uploadUrl)return;this.#Bn();const{DirectUpload:e}=await import("@rails/activestorage"),t=new e(this.file,this.uploadUrl,this);t.delegate=this.#$n(),this.#zn("lexxy:upload-start",{file:this.file}),t.create(((e,t)=>{this.#Hn(),e?(this.#zn("lexxy:upload-end",{file:this.file,error:e}),this.#Kn(e)):(this.#zn("lexxy:upload-end",{file:this.file,error:null}),this.editor.update((()=>{this.$showUploadedAttachment(t)})))}))}#$n(){const e=Bg.global.get("authenticatedUploads");return{directUploadWillCreateBlobWithXHR:t=>{e&&(t.withCredentials=!0)},directUploadWillStoreFileWithXHR:t=>{e&&(t.withCredentials=!0),this.#Un(t);t.upload.addEventListener("progress",(e=>this.#Wn(e,t)))}}}#Hn(){this.#oe.uploadRequests.forget(this.getKey())}#Un(e){this.#oe.uploadRequests.track(this.getKey(),e)}get#oe(){return this.editor.getRootElement()?.closest("lexxy-editor")}#Bn(){this.#Vn(1)}#Wn(e,t){const n=Math.round(e.loaded/e.total*100);try{this.#Vn(n),this.#zn("lexxy:upload-progress",{file:this.file,progress:n})}catch{t.abort()}}#Vn(e){this.patchAndRewriteHistory({progress:e})}#Kn(e){console.warn(`Upload error for ${this.file?.name??"file"}: ${e}`),this.patchAndRewriteHistory({uploadError:!0})}$showUploadedAttachment(e){const t=this.isPreviewableImage&&this.file?URL.createObjectURL(this.file):null,n=this.#qn(e,t);return this.replaceAndRewriteHistory(n),n.getKey()}#qn(e,t){return new ab(this,e,t).toAttachmentNode()}#zn(e,t){const n=this.editor.getElementByKey(this.getKey());n&&Mc(n,e,t)}}class ab{constructor(e,t,n){this.uploadNode=e,this.blob=t,this.previewSrc=n}toAttachmentNode(){return new _p({...this.uploadNode,...this.#jn,src:this.#Gn,previewSrc:this.previewSrc,pendingPreview:this.blob.previewable&&!this.uploadNode.isPreviewableImage})}get#jn(){const{blob:e}=this;return{sgid:e.attachable_sgid,altText:e.filename,contentType:e.content_type,fileName:e.filename,fileSize:e.byte_size,previewable:e.previewable,previewStatusUrl:e.preview_status_url}}get#Gn(){return this.blob.previewable?this.blob.url:this.#Zn}get#Zn(){return this.uploadNode.blobUrlTemplate.replace(":signed_id",this.blob.signed_id).replace(":filename",encodeURIComponent(this.blob.filename))}}function cb(...e){return new lb(...e)}class ub{constructor(e){this.selection=e}}const db=[class extends ub{static handles(e){return nu(e.anchor?.getNode(),Rp)}insertNodes(e){this.selection.isCollapsed()||this.selection.removeText(),fc(this.selection);const t=this.selection.focus.getNode(),n=nu(t,Rp),r=ja(n,(t.is(n)?0:t.getIndexWithinParent())+1,"previous"),i=new Set(e.filter((e=>e.isAttached()))),o=[];for(const t of e){if(i.has(t)){if(!t.isAttached())continue}else if(!this.#Yn(t)){o.push(t);continue}r.getNodeAtCaret()&&Ko(t)&&r.insert(ai()),r.insert(this.#Jn(t))}const s=this.#Xn(n,o)??r.getNodeAtCaret();s?.selectEnd()}#Yn(e){return Ti(e)||ci(e)}#Xn(e,t){let n=e;for(const e of t)n.insertAfter(e),n=e;return t.at(-1)}#Jn(e){return ci(e)?e:(e.remove(),Ei(e.getTextContent()))}},class extends ub{static handles(e){return Xg(e?.anchor?.getNode())}insertNodes(e){const t=this.selection.anchor.getNode(),n=ns();t.append(n),n.selectStart().insertNodes(e)}},class extends ub{static handles(e){return $i(e)&&e.getNodes().length>0}insertNodes(e){let t=this.selection.getNodes().at(-1);for(const n of e){const e=this.#Qn(t)?Qg(n):n;t=t.insertAfter(e)}}#Qn(e){return e.is(e.getTopLevelElement())}},class extends ub{static handles(e){return Di(e)&&nu(e.anchor.getNode(),Ld)}insertNodes(e){e.some((e=>this.#er(e)))?this.#tr(e):this.selection.insertNodes(e)}#tr(e){this.selection.isCollapsed()||this.selection.removeText();const t=this.selection.anchor.getNode(),n=this.#nr(t),r=this.#rr(t,n),i=lp(r)?r.getPreviousSibling():r,o=i?i.getIndexWithinParent()+1:0,[s,l]=Rl(n,o);lp(r)&&r.remove();let a=s??l;for(const t of e)a.insertAfter(t),a=t;this.#ir(s),this.#ir(l),e.at(-1).selectNext()}#nr(e){return[e,...e.getParents()].reverse().find(Hd)}#rr(e,t){return[e,...e.getParents()].find((e=>Fd(e)&&e.getParent()?.is(t)))}#ir(e){Hd(e)&&e.isEmpty()&&e.remove()}#er(e){return Vo(e)&&!e.isInline()}},class extends ub{static handles(e){return fp(e)}insertNodes(e){At(this.selection),this.selection.insertNodes(e)}}];ub.for=e=>{const t=db.find((t=>t.handles(e)));return t?new t(e):e};class hb{constructor(e){this.doc=e}format(){return this.#or(),this.#sr(),this.#lr(),this.#ar(),this.doc}#or(){for(const e of this.doc.querySelectorAll("a")){const t=e.getAttribute("href")||"";""!==t&&"#"!==t||e.replaceWith(...e.childNodes)}}#sr(){for(const e of this.doc.querySelectorAll("td, th"))e.style.removeProperty("background-color"),e.style.removeProperty("background"),e.style.removeProperty("color")}#lr(){for(const e of this.doc.querySelectorAll("ol, ul"))for(const t of Array.from(e.children)){if("OL"!==t.tagName&&"UL"!==t.tagName)continue;const e=t.previousElementSibling;e&&"LI"===e.tagName&&e.appendChild(t)}}#ar(){for(const e of this.doc.querySelectorAll("ol, ul"))for(const t of Array.from(e.childNodes))t.nodeType===Node.ELEMENT_NODE&&"LI"===t.tagName||e.removeChild(t)}}class gb{constructor(e){this.editorElement=e,this.editor=e.editor}dispose(){this.editorElement=null,this.editor=null}get selection(){return this.editorElement.selection}insertHtml(e,{tag:t}={}){this.insertDOM(Rc(e),{tag:t})}insertDOM(e,{tag:t}={}){this.editor.update((()=>{ml(Zr)&&this.#cr(e);const t=this.editorElement.$generateNodesFromDOM(e);ml(Zr)&&this.#ur(t)||this.#dr(t)||this.insertAtCursor(...t)}),{tag:t})}insertText(e,{tag:t}={}){this.editor.update((()=>{const t=ns();e.split("\n").forEach(((e,n)=>{n>0&&t.append(ai()),t.append(Ei(e))})),this.insertAtCursor(t)}),{tag:t})}insertAtCursor(...e){const t=this.#hr();ub.for(t).insertNodes(e)}applyParagraphFormat(){const e=to();Di(e)&&(up(e,(e=>ru(e))),yc(e,(()=>ns())))}applyHeadingFormat(e){const t=to();Di(t)&&(up(t),yc(t,(()=>kg(e))))}applyUnorderedListFormat(){this.#gr("bullet",Ud)}applyOrderedListFormat(){this.#gr("number",Wd)}clearFormatting(){const e=to();Di(e)&&(pc((e=>{e.setFormat(0),e.setStyle("")})),hd(null),this.#pr(e).filter(Cg).forEach((e=>this.#fr(e))),yc(e,(()=>ns())))}toggleCodeBlock(){const e=to();if(!Di(e))return;if(this.#mr(Fp("plain")))return;const t=this.#yr(e);if(t.every(Mp))t.forEach((e=>this.#br(e)));else{up(e);const t=this.#_r(this.#yr(e));if(0===t.length)return;const n=Fp("plain");t.at(-1).insertAfter(n),n.selectEnd(),this.insertAtCursor(...t)}}toggleBlockquote(){const e=to();if(!Di(e))return;if(this.#mr(_g()))return;const t=this.#pr(e);if(t.length>0&&t.every(Cg))t.forEach((e=>this.#fr(e)));else{t.filter(Cg).forEach((e=>this.#fr(e))),up(e);const n=this.#pr(e);if(0===n.length)return;const r=_g();n[0].insertBefore(r),n.forEach((e=>r.append(e)))}}hasSelectedText(){let e=!1;return this.editor.read((()=>{const t=to();e=Di(t)&&!t.isCollapsed()})),e}createLink(e){let t=null;return this.editor.update((()=>{const n=Ei(e),r=sd(e);r.append(n);const i=to();Di(i)&&(ub.for(i).insertNodes([r]),t=r.getKey())})),t}createLinkWithSelectedText(e){this.hasSelectedText()&&this.editor.update((()=>{hd(null),hd(e)}))}textBackUntil(e){let t="";return this.editor.getEditorState().read((()=>{const n=to();if(!n||!n.isCollapsed())return;const r=n.anchor,i=r.getNode();if(!Ti(i))return;const o=i.getTextContent(),s=r.offset,l=o.slice(0,s).lastIndexOf(e);-1!==l&&(t=o.slice(l+e.length,this.#Cr(o,s)))})),t}#Cr(e,t){for(let n=t;n<e.length;n++)if(this.#xr(e,n))return n;return e.length}#xr(e,t){const n=e[t];return!!/\s/.test(n)||!!/\p{P}/u.test(n)&&!(this.#Sr(e[t-1])&&this.#Sr(e[t+1]))}#Sr(e){return null!=e&&/[\p{L}\p{N}]/u.test(e)}containsTextBackUntil(e){let t=!1;return this.editor.getEditorState().read((()=>{const n=to();if(!n||!n.isCollapsed())return;const r=n.anchor,i=r.getNode();if(!Ti(i))return;const o=i.getTextContent(),s=r.offset,l=o.slice(0,s);t=l.includes(e)})),t}replaceTextBackUntil(e,t){t=Array.isArray(t)?t:[t];const{anchorNode:n,offset:r}=this.#vr();if(!n)return;const i=this.#wr(n,r,e);-1!==i&&this.#kr(n,i,e,t)}uploadFiles(e,{selectLast:t}={}){if(!this.editorElement)return;if(!this.editorElement.supportsAttachments)return void console.warn("This editor does not supports attachments (it's configured with [attachments=false])");const n=Array.from(e).filter((e=>this.editorElement.acceptsFile(e)));this.editor.update((()=>{const e=ob.for(this.editorElement,n);if(e.$uploadFiles(),t&&e.nodes?.length){e.nodes.at(-1).selectEnd(),this.#Er()}}))}$createUploadNode(e){return cb({file:e,uploadUrl:this.editorElement.directUploadUrl,blobUrlTemplate:this.editorElement.blobUrlTemplate,contentType:e.type})}$createPendingUploadNode(e){return cb({file:e,uploadUrl:null,blobUrlTemplate:this.editorElement.blobUrlTemplate,contentType:e.type})}insertPendingAttachment(e){if(!this.editorElement.supportsAttachments)return null;let t=null;return this.editor.update((()=>{const n=this.$createPendingUploadNode(e);this.insertAtCursor(n),t=n.getKey()})),t?this.#Tr(t):null}insertPendingAttachments(e){const t=Array.from(e);if(!this.editorElement.supportsAttachments||0===t.length)return[];let n=[];return this.editor.update((()=>{const e=ob.for(this.editorElement,t,{pending:!0});e.$uploadFiles(),n=(e.nodes??[]).map((e=>e.getKey()))})),n.map((e=>this.#Tr(e)))}#Tr(e){const t=this.editor;let n=e;return{setAttributes(e){t.update((()=>{const t=Ps(n);if(!(t instanceof lb))return;const r=t.$showUploadedAttachment(e);r&&(n=r)}),{tag:Gr})},setUploadProgress(e){t.update((()=>{const t=Ps(n);t instanceof lb&&(t.getWritable().progress=e)}),{tag:Gr})},remove(){t.update((()=>{const e=Ps(n);e&&e.remove()}))}}}replaceNodeWithHTML(e,t,n={}){this.editor.update((()=>{const r=Ps(e);if(!r)return;const i=to();let o=!1;if(Di(i)){const e=i.getNodes();o=e.includes(r)||e.some((e=>e.getParent()===r)),o&&Ws(null)}const s=n.attachment?this.#Nr(t,n.attachment):this.#Ar(t);r.replace(s),o&&s.selectEnd()}))}insertHTMLBelowNode(e,t,n={}){this.editor.update((()=>{const r=Ps(e);if(!r)return;const i=r.getTopLevelElement()||r,o=n.attachment?this.#Nr(t,n.attachment):this.#Ar(t);i.insertAfter(o)}))}#hr(){const e=to();return $i(e)&&0===e.getNodes().length?Ks().selectEnd():e??Ks().selectEnd()}#cr(e){new hb(e).format()}#ur(e){return this.editor.dispatchCommand(hn,{nodes:e,selection:to()})}#mr(e){const t=to();if(!Di(t))return!1;const n=t.anchor.getNode();return!!wl(n)&&(n.append(e),e.selectEnd(),!0)}#br(e){const t=e.getChildren(),n=[[]];for(const e of t)ci(e)?n.push([]):n[n.length-1].push(e.getTextContent());for(const t of n){const n=ns(),r=t.join("");r&&n.append(Ei(r)),e.insertBefore(n)}e.remove()}#gr(e,t){this.selection.isInsideBlockQuote?this.#Lr(e):(this.#Or(),this.editor.dispatchCommand(t))}#Lr(e){for(const t of function(e){const t=[...e].sort(((e,t)=>e.getIndexWithinParent()-t.getIndexWithinParent())),n=[];for(const e of t){const t=n.at(-1),r=t?.at(-1);r&&r.getParent().is(e.getParent())&&r.getNextSibling()?.is(e)?t.push(e):n.push([e])}return n}(this.#Ir()))this.#Rr(t,e)}#Ir(){const e=to();if(!Di(e))return[];return this.#_r(this.#yr(e)).filter((e=>Cg(e.getParent())))}#Rr(e,t){const n=zd(t);e[0].insertBefore(n);for(const t of e){const e=Rd();Hd(t)?e.append(...t.getChildren().flatMap((e=>e.getChildren()))):e.append(...t.getChildren()),n.append(e),t.remove()}}#Or(){if(this.selection.isInsideList)return;const e=to();Di(e)&&(up(e),function(e){const t=new Set;for(const n of e.getNodes()){const e=n.getTopLevelElement();e&&t.add(e)}for(const e of t){if(!rs(e))continue;const t=e.getChildren();if(!t.some(ci))continue;const n=[[]];for(const e of t)ci(e)?(n.push([]),e.remove()):n[n.length-1].push(e);for(const t of n){if(0===t.length)continue;const n=ns();t.forEach((e=>n.append(e))),e.insertBefore(n)}n.some((e=>e.length>0))&&e.remove()}}(e))}#yr(e){const t=new Set;for(const n of e.getNodes())t.add(ru(n));return Array.from(t)}#pr(e){const t=new Set;for(const n of e.getNodes()){const e=n.getTopLevelElement();e&&t.add(e)}return Array.from(t)}#_r(e){return e.filter((t=>e.every((e=>e===t||!t.getParents().includes(e)))))}#dr(e){if(e.every(xp)){const t=ob.for(this.editorElement,[]);return t.nodes=e,t.$insertUploadNodes(),!0}}#fr(e){const t=e.getChildren();0==t.length?e.insertBefore(ns()):t.forEach((t=>{if(Ti(t)&&""!==t.getTextContent().trim()){const n=ns();n.append(t),e.insertBefore(n)}else ci(t)||e.insertBefore(t)})),e.remove()}#vr(){const e=to();if(!e||!e.isCollapsed())return{anchorNode:null,offset:0};const t=e.anchor,n=t.getNode();return Ti(n)?{anchorNode:n,offset:t.offset}:{anchorNode:null,offset:0}}#wr(e,t,n){return 0===t?-1:e.getTextContent().lastIndexOf(n,t-1)}#kr(e,t,n,r){const i=e.getTextContent(),o=i.slice(0,t),s=i.slice(t+n.length),l=this.#Fr(e,o),a=this.#Fr(e,s||" ");e.replace(l);this.#Mr(l,r).insertAfter(a),this.#Pr(a.getParentOrThrow());const c=s?0:1;a.select(c,c)}#Fr(e,t){return Ei(t).setFormat(e.getFormat()).setDetail(e.getDetail()).setMode(e.getMode()).setStyle(e.getStyle())}#Mr(e,t){let n=e;for(const e of t)n.insertAfter(e),n=e;return n}#Pr(e){if(rs(e)&&this.editorElement.supportsMultiLine){const t=e.getChildren(),n=t[t.length-1],r=t[t.length-2];Ti(n)&&""===n.getTextContent()&&r&&!Ti(r)&&e.append(ai())}}#Nr(e,t={}){const n="object"==typeof t?t:{},r=n.contentType||"text/html";return this.editorElement.permitsAttachmentContentType(r)?new Kg({sgid:n.sgid||null,contentType:r,innerHtml:e}):this.#Ar(e)}#Ar(e){return this.editorElement.$generateNodesFromDOM(Rc(e))[0]||ns()}#Er(){const e=to();if(!Di(e))return;const t=e.anchor.getNode();if(!Xg(t))return;const n=ns();t.append(n),n.selectStart()}}function pb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var fb={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function mb(e){fb=e}var yb={exec:()=>null};function bb(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(_b.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var _b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Cb=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xb=/(?:[*+-]|\d{1,9}[.)])/,Sb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,vb=bb(Sb).replace(/bull/g,xb).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),wb=bb(Sb).replace(/bull/g,xb).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),kb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Eb=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Tb=bb(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Eb).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Nb=bb(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xb).getRegex(),Ab="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Lb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ob=bb("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",Lb).replace("tag",Ab).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ib=bb(kb).replace("hr",Cb).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ab).getRegex(),Rb={blockquote:bb(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ib).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:Tb,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:Cb,html:Ob,lheading:vb,list:Nb,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Ib,table:yb,text:/^[^\n]+/},Fb=bb("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cb).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ab).getRegex(),Mb={...Rb,lheading:wb,table:Fb,paragraph:bb(kb).replace("hr",Cb).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Fb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ab).getRegex()},Pb={...Rb,html:bb("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Lb).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yb,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:bb(kb).replace("hr",Cb).replace("heading"," *#{1,6} *[^\n]").replace("lheading",vb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Db=/^( {2,}|\\)\n(?!\s*$)/,Bb=/[\p{P}\p{S}]/u,$b=/[\s\p{P}\p{S}]/u,zb=/[^\s\p{P}\p{S}]/u,Hb=bb(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,$b).getRegex(),Kb=/(?!~)[\p{P}\p{S}]/u,Ub=bb(/link|code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code",/(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Wb=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Vb=bb(Wb,"u").replace(/punct/g,Bb).getRegex(),qb=bb(Wb,"u").replace(/punct/g,Kb).getRegex(),jb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gb=bb(jb,"gu").replace(/notPunctSpace/g,zb).replace(/punctSpace/g,$b).replace(/punct/g,Bb).getRegex(),Zb=bb(jb,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Kb).getRegex(),Yb=bb("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,zb).replace(/punctSpace/g,$b).replace(/punct/g,Bb).getRegex(),Jb=bb(/\\(punct)/,"gu").replace(/punct/g,Bb).getRegex(),Xb=bb(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Qb=bb(Lb).replace("(?:--\x3e|$)","--\x3e").getRegex(),e_=bb("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Qb).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),t_=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,n_=bb(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",t_).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),r_=bb(/^!?\[(label)\]\[(ref)\]/).replace("label",t_).replace("ref",Eb).getRegex(),i_=bb(/^!?\[(ref)\](?:\[\])?/).replace("ref",Eb).getRegex(),o_=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,s_={_backpedal:yb,anyPunctuation:Jb,autolink:Xb,blockSkip:Ub,br:Db,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:yb,emStrongLDelim:Vb,emStrongRDelimAst:Gb,emStrongRDelimUnd:Yb,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:n_,nolink:i_,punctuation:Hb,reflink:r_,reflinkSearch:bb("reflink|nolink(?!\\()","g").replace("reflink",r_).replace("nolink",i_).getRegex(),tag:e_,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:yb},l_={...s_,link:bb(/^!?\[(label)\]\((.*?)\)/).replace("label",t_).getRegex(),reflink:bb(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",t_).getRegex()},a_={...s_,emStrongRDelimAst:Zb,emStrongLDelim:qb,url:bb(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",o_).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:bb(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",o_).getRegex()},c_={...a_,br:bb(Db).replace("{2,}","*").getRegex(),text:bb(a_.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},u_={normal:Rb,gfm:Mb,pedantic:Pb},d_={normal:s_,gfm:a_,breaks:c_,pedantic:l_},h_={"&":"&","<":"<",">":">",'"':""","'":"'"},g_=e=>h_[e];function p_(e,t){if(t){if(_b.escapeTest.test(e))return e.replace(_b.escapeReplace,g_)}else if(_b.escapeTestNoEncode.test(e))return e.replace(_b.escapeReplaceNoEncode,g_);return e}function f_(e){try{e=encodeURI(e).replace(_b.percentDecode,"%")}catch{return null}return e}function m_(e,t){let n=e.replace(_b.findPipe,((e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})),r=n.split(_b.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(_b.slashPipe,"|");return r}function y_(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){if(e.charAt(r-i-1)!==t)break;i++}return e.slice(0,r-i)}function b_(e,t,n,r,i){let o=t.href,s=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:o,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}var __=class{options;rules;lexer;constructor(e){this.options=e||fb}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:y_(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split("\n").map((e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e})).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=y_(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:y_(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=y_(t[0],"\n").split("\n"),n="",r="",i=[];for(;e.length>0;){let t,o=!1,s=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))s.push(e[t]),o=!0;else{if(o)break;s.push(e[t])}e=e.slice(t);let l=s.join("\n"),a=l.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${l}`:l,r=r?`${r}\n${a}`:a;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(a,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,o=t.raw+"\n"+e.join("\n"),s=this.blockquote(o);i[i.length-1]=s,n=n.substring(0,n.length-t.raw.length)+s.raw,r=r.substring(0,r.length-t.text.length)+s.text;break}if("list"!==u?.type);else{let t=u,o=t.raw+"\n"+e.join("\n"),s=this.list(o);i[i.length-1]=s,n=n.substring(0,n.length-u.raw.length)+s.raw,r=r.substring(0,r.length-t.raw.length)+s.raw,e=o.substring(i.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,r="",l="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let a=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],u=!a.trim(),d=0;if(this.options.pedantic?(d=2,l=a.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,l=a.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),o=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d);for(;e;){let h,g=e.split("\n",1)[0];if(c=g,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||o.test(c)||s.test(c)||t.test(c)||n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=d||!c.trim())l+="\n"+h.slice(d);else{if(u||a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(a)||o.test(a)||n.test(a))break;l+="\n"+c}!u&&!c.trim()&&(u=!0),r+=g+"\n",e=e.substring(g.length+1),a=h.slice(d)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0));let h,g=null;this.options.gfm&&(g=this.rules.other.listIsTask.exec(l),g&&(h="[ ] "!==g[0],l=l.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:r,task:!!g,checked:h,loose:!1,text:l,tokens:[]}),i.raw+=r}let l=i.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=m_(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of i)o.rows.push(m_(e,o.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]}))));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=y_(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),b_(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return b_(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,i,o=[...r[0]].length-1,s=o,l=0,a="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+o);null!=(r=a.exec(t));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(i=[...n].length,r[3]||r[4]){s+=i;continue}if((r[5]||r[6])&&o%3&&!((o+i)%3)){l+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+l);let t=[...r[0]][0].length,a=e.slice(0,o+r.index+t+i);if(Math.min(o,i)%2){let e=a.slice(1,-1);return{type:"em",raw:a,text:e,tokens:this.lexer.inlineTokens(e)}}let c=a.slice(2,-2);return{type:"strong",raw:a,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},C_=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||fb,this.options.tokenizer=this.options.tokenizer||new __,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:_b,block:u_.normal,inline:d_.normal};this.options.pedantic?(t.block=u_.pedantic,t.inline=d_.pedantic):this.options.gfm&&(t.block=u_.gfm,this.options.breaks?t.inline=d_.breaks:t.inline=d_.gfm),this.tokenizer.rules=t}static get rules(){return{block:u_,inline:d_}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(_b.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(_b.tabCharGlobal," ").replace(_b.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t,n=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach((e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(i=e.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let o=t.at(-1);n&&"paragraph"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length)}else if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let i=!1,o="";for(;e;){let r;if(i||(o=""),i=!1,this.options.extensions?.inline?.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0))))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let s=e;if(this.options.extensions?.startInline){let t,n=1/0,r=e.slice(1);this.options.extensions.startInline.forEach((e=>{t=e.call({lexer:this},r),"number"==typeof t&&t>=0&&(n=Math.min(n,t))})),n<1/0&&n>=0&&(s=e.substring(0,n+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),i=!0;let n=t.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r)}else if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},x_=class{options;parser;constructor(e){this.options=e||fb}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(_b.notSpaceStart)?.[0],i=e.replace(_b.endingNewline,"")+"\n";return r?'<pre><code class="language-'+p_(r)+'">'+(n?i:p_(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:p_(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+i+">\n"}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+p_(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+r+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${p_(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=f_(e);if(null===i)return r;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+p_(t)+'"'),o+=">"+r+"</a>",o}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=f_(e);if(null===i)return p_(n);let o=`<img src="${e=i}" alt="${n}"`;return t&&(o+=` title="${p_(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:p_(e.text)}},S_=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},v_=class e{options;renderer;textRenderer;constructor(e){this.options=e||fb,this.options.renderer=this.options.renderer||new x_,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new S_}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){n+=t||"";continue}}let o=i;switch(o.type){case"space":n+=this.renderer.space(o);continue;case"hr":n+=this.renderer.hr(o);continue;case"heading":n+=this.renderer.heading(o);continue;case"code":n+=this.renderer.code(o);continue;case"table":n+=this.renderer.table(o);continue;case"blockquote":n+=this.renderer.blockquote(o);continue;case"list":n+=this.renderer.list(o);continue;case"html":n+=this.renderer.html(o);continue;case"def":n+=this.renderer.def(o);continue;case"paragraph":n+=this.renderer.paragraph(o);continue;case"text":{let i=o,s=this.renderer.text(i);for(;r+1<e.length&&"text"===e[r+1].type;)i=e[++r],s+="\n"+this.renderer.text(i);n+=t?this.renderer.paragraph({type:"paragraph",raw:s,text:s,tokens:[{type:"text",raw:s,text:s,escaped:!0}]}):s;continue}default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}let o=i;switch(o.type){case"escape":case"text":n+=t.text(o);break;case"html":n+=t.html(o);break;case"link":n+=t.link(o);break;case"image":n+=t.image(o);break;case"strong":n+=t.strong(o);break;case"em":n+=t.em(o);break;case"codespan":n+=t.codespan(o);break;case"br":n+=t.br(o);break;case"del":n+=t.del(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},w_=class{options;block;constructor(e){this.options=e||fb}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?C_.lex:C_.lexInline}provideParser(){return this.block?v_.parse:v_.parseInline}},k_=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=v_;Renderer=x_;TextRenderer=S_;Lexer=C_;Tokenizer=__;Hooks=w_;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){let t=this.defaults.renderer||new x_(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,i=e.renderer[r],o=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new __(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,i=e.tokenizer[r],o=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new w_;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,i=e.hooks[r],o=t[r];w_.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&w_.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return o.call(t,n)})();let r=i.call(t,e);return o.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return!1===n&&(n=await o.apply(t,e)),n})();let n=i.apply(t,e);return!1===n&&(n=o.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return C_.lex(e,t??this.defaults)}parser(e,t){return v_.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?C_.lex:C_.lexInline)(n,i),o=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let s=await(i.hooks?await i.hooks.provideParser():e?v_.parse:v_.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?C_.lex:C_.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?v_.parse:v_.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return o(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+p_(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function E_(e,t){return k_.parse(e,t)}E_.options=E_.setOptions=function(e){return k_.setOptions(e),E_.defaults=k_.defaults,mb(E_.defaults),E_},E_.getDefaults=pb,E_.defaults=fb,E_.use=function(...e){return k_.use(...e),E_.defaults=k_.defaults,mb(E_.defaults),E_},E_.walkTokens=function(e,t){return k_.walkTokens(e,t)},E_.parseInline=k_.parseInline,E_.Parser=v_,E_.parser=v_.parse,E_.Renderer=x_,E_.TextRenderer=S_,E_.Lexer=C_,E_.lexer=C_.lex,E_.Tokenizer=__,E_.Hooks=w_,E_.parse=E_,E_.options,E_.setOptions,E_.use,E_.walkTokens,E_.parseInline,v_.parse,C_.lex;class T_{#e=new Lc;constructor(e){this.editorElement=e,this.editor=e.editor,this.contents=e.contents,this.#Dr()}dispose(){this.editorElement=null,this.editor=null,this.contents=null,this.#e.dispose()}paste(e){const t=e.clipboardData;if(!t)return!1;if(this.#Br())return this.#$r(t),e.preventDefault(),!0;if(this.#zr(t))return this.#Hr(t),e.preventDefault(),!0;const n=this.#Kr(t);return n&&e.preventDefault(),n}#Dr(){this.#e.track(this.editor.registerCommand(Sn,this.paste.bind(this),2),this.editor.registerCommand(hn,(e=>this.#Ur(e)),2))}#Ur({nodes:e,selection:t}){const n=function(e){if(1!==e.length)return null;const t=e[0];if(ld(t))return N_(t);if(rs(t)){const e=t.getChildren();if(1===e.length&&ld(e[0]))return N_(e[0])}return null}(e);if(n&&Di(t))return this.#Wr(t,n),!0}#zr(e){return this.#Vr(e)||this.#qr(e)}#Vr(e){const t=Array.from(e.types);return 1===t.length&&"text/plain"===t[0]}#qr(e){if(this.#jr(e))return!1;const t=Array.from(e.types);if(t.includes("text/uri-list"))return t.every((e=>"text/plain"===e||"text/uri-list"===e));if(e.files.length)return!1;const n=e.getData("text/plain").trim();if(!Wg(n))return!1;const r=e.getData("text/html");return!r||this.#Gr(r,n)}#Gr(e,t){const n=Rc(e);if(n.body.textContent.trim()!==t)return!1;const r=n.body.querySelectorAll("a");return 0===r.length||1===r.length&&r[0].getAttribute("href")===t}#Br(){let e=!1;return this.editor.getEditorState().read((()=>{const t=to();if(!Di(t))return;let n=t.anchor.getNode();for(;n;){if(Mp(n))return void(e=!0);n=n.getParent()}})),e}#$r(e){const t=e.getData("text/plain");t&&this.editor.update((()=>{const e=to();Di(e)&&e.insertRawText(t)}),{tag:Zr})}#Hr(e){this.#Zr(e).getAsString((t=>{const n=t.trim();Wg(n)?this.#Yr(n):this.editorElement.supportsMarkdown?this.#Jr(t):this.#Xr(e)}))}#Zr(e){const t=Array.from(e.items);return t.find((e=>"text/plain"===e.type))||t.find((e=>"text/uri-list"===e.type))}#Yr(e){if(this.contents.hasSelectedText())this.contents.createLinkWithSelectedText(e);else{const t=this.contents.createLink(e);this.#Qr(t,{url:e})}}#Wr(e,t){if(!Di(e))return;if(!e.isCollapsed())return hd(null),void hd(t);const n=sd(t).append(Ei(t));ub.for(e).insertNodes([n]),bl((()=>this.#Qr(n.getKey(),{url:t})))}#Qr(e,t){const n={replaceLinkWith:(t,n)=>this.contents.replaceNodeWithHTML(e,t,n),insertBelowLink:(t,n)=>this.contents.insertHTMLBelowNode(e,t,n)};Mc(this.editorElement,"lexxy:insert-link",{...t,...n})}#Jr(e){const t=Rc(E_(e,{breaks:!0}));if(this.#ei(t))this.contents.insertText(e,{tag:Zr});else{const n=Object.freeze({markdown:e,document:t,addBlockSpacing:()=>function(e){for(const t of e.querySelectorAll("body > :not(h1, h2, h3, h4, h5, h6) + *, blockquote > :not(h1, h2, h3, h4, h5, h6) + *")){const n=e.createElement("p");n.appendChild(e.createElement("br")),t.before(n)}}(t)});Mc(this.editorElement,"lexxy:insert-markdown",n),this.contents.insertDOM(t,{tag:Zr})}}#ei(e){const t=Array.from(e.body.children);if(1!==t.length)return!1;const n=t[0];return"P"===n.nodeName&&Array.from(n.childNodes).every((e=>e.nodeType===Node.TEXT_NODE||"BR"===e.nodeName))}#Xr(e){this.editor.update((()=>{const t=to();Fh(e,t,this.editor)}),{tag:Zr})}#Kr(e){if(!this.editorElement.supportsAttachments)return!1;const t=e.getData("text/html"),n=e.files;return n.length&&this.#ti(t)?(this.#ni(n),!0):t&&!this.#jr(e)?(this.contents.insertHtml(t,{tag:Zr}),!0):!!n.length&&(this.#ni(n),!0)}#jr(e){return Array.from(e.types).includes("application/x-lexical-editor")}#ti(e){if(!e)return!1;const t=Rc(e),n=Array.from(t.body.children);return 1===n.length&&"IMG"===n[0].tagName}#ni(e){this.#ri((()=>{e.length&&this.contents.uploadFiles(e,{selectLast:!0})}))}async#ri(e){const t=window.scrollY,n=window.scrollX;e(),await Uc(),window.scrollTo(n,t),this.editor.focus()}}function N_(e){const t=e.getURL();return t&&e.getTextContent()===t?t:null}class A_{constructor(e){this.lexxyElement=e,this.enabledExtensions=this.#ii()}get lexicalExtensions(){return this.enabledExtensions.map((e=>e.lexicalExtension)).filter(Boolean)}initializeToolbars(){const e=this.#oi;e&&(this.#si(e),this.#li(e),e.requestOverflowRefresh())}dispose(){for(;this.enabledExtensions.length;)this.enabledExtensions.pop().dispose()}#si(e){e.querySelectorAll("[data-lexxy-extension]").forEach((e=>e.remove()))}#li(e){this.enabledExtensions.forEach((t=>{const n=new Set(e.children);t.initializeToolbar(e);for(const t of e.children)n.has(t)||t.setAttribute("data-lexxy-extension","")}))}get allowedElements(){return this.enabledExtensions.flatMap((e=>e.allowedElements))}get#oi(){return this.lexxyElement.toolbar}get#ai(){return this.lexxyElement.baseExtensions}get#ci(){return Bg.global.get("extensions")}#ii(){return this.#ai.concat(this.#ci).map((e=>new e(this.lexxyElement))).filter((e=>e.enabled))}}class L_{frozenLinkKey=null;dispatchAttributesChange(e,t,n,r){}dispatchEditorInitialized(e){}freeze(){}thaw(){}unlinkFrozenNode(){return!1}}function O_(e,t){const n=t.createDOM(e._config,e);n.style.whiteSpace="pre-wrap",t.hasFormat("lowercase")?n.style.textTransform="lowercase":t.hasFormat("uppercase")?n.style.textTransform="uppercase":t.hasFormat("capitalize")&&(n.style.textTransform="capitalize");let r=n;return t.hasFormat("bold")&&!I_(n,"strong")&&(r=R_(r,"b")),t.hasFormat("italic")&&!I_(n,"em")&&(r=R_(r,"i")),t.hasFormat("strikethrough")&&(r=R_(r,"s")),t.hasFormat("underline")&&(r=R_(r,"u")),{element:F_(r)}}function I_(e,t){const n=t.toUpperCase();return e.tagName===n||null!==e.querySelector(t)}function R_(e,t){const n=document.createElement(t);return n.appendChild(e),n}function F_(e){if("SPAN"===e.tagName)return e.firstChild;for(const t of e.querySelectorAll("span"))t.replaceWith(...t.childNodes);return e}class M_ extends es{$config(){return this.config("provisonal_paragraph",{extends:es,importDOM:()=>null,$transform:e=>{e.concretizeIfEdited(e),e.removeUnlessRequired(e)}})}static neededBetween(e,t){return!D_(e,"next")&&!D_(t,"previous")}createDOM(e){const t=super.createDOM(e),n=this.isSelected(to());return t.classList.add("provisional-paragraph"),t.classList.toggle("hidden",!n),t}updateDOM(e,t){const n=this.isSelected(to());return t.classList.toggle("hidden",!n),!1}getTextContent(){return""}exportDOM(){return{element:null}}isSelected(e=null){const t=e||to();if(!t)return!1;if(t.getNodes().some((e=>e.is(this)||this.isParentOf(e))))return!0;if(Di(t)&&t.isCollapsed()){const{anchor:e}=t,n=this.getParent();if(n&&e.getNode().is(n)&&"element"===e.type){const t=this.getIndexWithinParent();return e.offset===t||e.offset===t+1}}return!1}removeUnlessRequired(e=this.getLatest()){e.required||e.remove()}concretizeIfEdited(e=this.getLatest()){e.getTextContentSize()>0&&e.replace(ns(),!0)}get required(){return this.isDirectRootChild&&M_.neededBetween(...this.immediateSiblings)}get isDirectRootChild(){return wl(this.getParent())}get immediateSiblings(){return[this.getPreviousSibling(),this.getNextSibling()]}}function P_(e){return e instanceof M_}function D_(e,t){return Ko(e)&&("next"===t?e.canInsertTextBefore():e.canInsertTextAfter())}class B_ extends Jg{get lexicalExtension(){return{name:"lexxy/provisional-paragraph",nodes:[M_],register:e=>oc(e.registerNodeTransform(qo,$_),e.registerNodeTransform(qo,z_),e.registerCommand(dn,H_,3))}}}function $_(e){const t=function(e){const t=to();return wl(t?.anchor?.getNode())?e.getChildAtIndex(t.anchor.offset-1):null}(e),n=e.getFirstChild();M_.neededBetween(null,n)&&cu(e,new M_);for(const n of gu(e)){const e=n.getNextSibling();M_.neededBetween(n,e)&&(n.insertAfter(new M_),n.is(t)&&n.selectNext())}}function z_(e){for(const t of K_(e))t.removeUnlessRequired()}function H_(){yl(Gr);for(const e of K_())e.markDirty()}function K_(e=Ks()){return hu(e.getChildren(),P_)}class U_ extends Jg{get enabled(){return this.editorElement.supportsRichText}get lexicalExtension(){return{name:"lexxy/code-highlighting",register:e=>hf(e,zy(e))}}}const W_="language";class V_ extends Jg{get enabled(){return this.editorElement.supportsRichText}get lexicalExtension(){return{name:"lexxy/trix-content",html:{import:{em:e=>q_(e,{conversion:ip("i",Dy),priority:1}),span:e=>q_(e,{conversion:ip("mark",Dy),priority:1}),strong:e=>q_(e,{conversion:ip("b",Dy),priority:1}),del:()=>({conversion:ip("s",j_,Dy),priority:1}),pre:e=>function(e,t){return e.hasAttribute(W_)?t:null}(e,{conversion:op(Rp,"pre",G_),priority:1})}}}}}function q_(e,t){return""!==e.style.color||""!==e.style.backgroundColor?t:null}function j_(e){return e.hasFormat("strikethrough")||e.toggleFormat("strikethrough"),e}function G_(e,t){const n=uf(t.getAttribute(W_));e.node.setLanguage(n)}class Z_ extends gy{$config(){return this.config("wrapped_table_node",{extends:gy})}static importDOM(){return super.importDOM()}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}exportDOM(e){const t=super.exportDOM(e);return{...t,after:e=>{if(t.after){return Ic("figure",{className:"lexxy-content__table-wrapper"},(e=t.after(e)).cloneNode(!0).outerHTML)}return e}}}}class Y_ extends Jg{get enabled(){return this.editorElement.supportsRichText}get allowedElements(){return["figure","tbody"]}get lexicalExtension(){return{name:"lexxy/tables",nodes:[Z_,{replace:gy,with:()=>new Z_,withKlass:Z_},qf,Qf],register:e=>(function(e){dy.add(e)}(e),oc(wy(e),e.registerRootListener((t=>{if(t)return vy(e,!0)})),e.registerNodeTransform(qf,(e=>{""!==e.getBackgroundColor()&&e.setBackgroundColor("")})),e.registerNodeTransform(qf,(e=>{const t=e.getHeaderStyles();if(t!==Vf)return;const n=e.getParent(),r=n?.getParent();if(!r)return;const i=r.getChildren(),o=n.getChildren().indexOf(e),s=n.getChildren().every((e=>e.getHeaderStyles()!==Wf)),l=i.every((e=>{const t=e.getChildren()[o];return t&&t.getHeaderStyles()!==Wf}));let a=Wf;s&&(a|=Vf),l&&(a|=Uf),a!==t&&e.setHeaderStyles(a,Kf)})),e.registerCommand("insertTableRowAfter",(()=>{um(!0)}),2),e.registerCommand("insertTableRowBefore",(()=>{um(!1)}),2),e.registerCommand("insertTableColumnAfter",(()=>{hm(!0)}),2),e.registerCommand("insertTableColumnBefore",(()=>{hm(!1)}),2),e.registerCommand("deleteTableRow",(()=>{!function(){const e=to();Di(e)||Em(e)||Xf(188);const[t,n]=e.isBackward()?[e.focus.getNode(),e.anchor.getNode()]:[e.anchor.getNode(),e.focus.getNode()],[r,,i]=xm(t),[o]=xm(n),[s,l,a]=_m(i,r,o),{startRow:c}=l,{startRow:u}=a,d=u+o.__rowSpan-1;if(s.length===d-c+1)return void i.remove();const h=s[0].length,g=s[d+1],p=i.getChildAtIndex(d+1);for(let e=d;e>=c;e--){for(let t=h-1;t>=0;t--){const{cell:n,startRow:r,startColumn:i}=s[e][t];if(i===t){if(r<c||r+n.__rowSpan-1>d){const e=Math.max(r,c),t=Math.min(n.__rowSpan+r-1,d),i=e<=t?t-e+1:0;n.setRowSpan(n.__rowSpan-i)}if(r>=c&&r+n.__rowSpan-1>d&&e===d){null===p&&Xf(122);let r=null;for(let n=0;n<t;n++){const t=g[n],i=t.cell;t.startRow===e+1&&(r=i),i.__colSpan>1&&(n+=i.__colSpan-1)}null===r?fm(p,n):r.insertAfter(n)}}}const t=i.getChildAtIndex(e);nm(t)||Xf(206,String(e)),t.remove()}if(void 0!==g){const{cell:e}=g[0];pm(e)}else{const e=s[c-1],{cell:t}=e[0];pm(t)}}()}),2),e.registerCommand("deleteTableColumn",(()=>{!function(){const e=to();Di(e)||Em(e)||Xf(188);const t=e.anchor.getNode(),n=e.focus.getNode(),[r,,i]=xm(t),[o]=xm(n),[s,l,a]=_m(i,r,o),{startColumn:c}=l,{startRow:u,startColumn:d}=a,h=Math.min(c,d),g=Math.max(c+r.__colSpan-1,d+o.__colSpan-1),p=g-h+1;if(s[0].length===g-h+1)return i.selectPrevious(),void i.remove();const f=s.length;for(let e=0;e<f;e++)for(let t=h;t<=g;t++){const{cell:n,startColumn:r}=s[e][t];if(r<h){if(t===h){const e=h-r;n.setColSpan(n.__colSpan-Math.min(p,n.__colSpan-e))}}else if(r+n.__colSpan-1>g){if(t===g){const e=g-r+1;n.setColSpan(n.__colSpan-e)}}else n.remove()}const m=s[u],y=c>d?m[c+r.__colSpan]:m[d+o.__colSpan];if(void 0!==y){const{cell:e}=y;pm(e)}else{const e=d<c?m[d-1]:m[c-1],{cell:t}=e;pm(t)}const b=i.getColWidths();if(b){const e=[...b];e.splice(h,p),i.setColWidths(e)}}()}),2),e.registerCommand("deleteTable",(()=>{const e=to();if(!Di(e))return!1;ny(e.anchor.getNode())?.remove()}),2)))}}}class J_{#se;#ui=null;#di=null;#hi=null;#e=new Lc;constructor(e){this.#se=e,this.#e.track(e.registerCommand(jn,(e=>this.#gi(e)),3),e.registerCommand(Vn,(e=>this.#at(e)),3)),this.#e.track(e.registerRootListener(((e,t)=>{t&&(t.removeEventListener("dragover",this.#pi),t.removeEventListener("dragend",this.#fi)),e&&(e.addEventListener("dragover",this.#pi),e.addEventListener("dragend",this.#fi))})))}destroy(){this.#mi(),this.#e.dispose()}#gi(e){if(e.target.closest?.("textarea"))return!1;const t=e.target.closest?.("figure.attachment[data-lexical-node-key]");return!!t&&(this.#ui=t.dataset.lexicalNodeKey,e.dataTransfer.setData("application/x-lexxy-node-key",this.#ui),e.dataTransfer.effectAllowed="move",this.#hi=requestAnimationFrame((()=>{this.#hi=null,t.classList.add("lexxy-dragging")})),!0)}#pi=e=>{this.#ui&&(e.preventDefault(),e.dataTransfer.dropEffect="move",this.#di||(this.#di=requestAnimationFrame((()=>{this.#di=null,this.#yi(e)}))))};#at(e){if(!this.#ui)return!1;e.preventDefault();const t=this.#bi(e),n=this.#ui;return this.#mi(),t&&this.#_i(n,t),!0}#fi=()=>{this.#mi()};#yi(e){this.#Ci();const t=this.#bi(e);t&&("gallery"===t.type||"gallery-reorder"===t.type?t.element.classList.add(`lexxy-drop-target--gallery-${t.position}`):"list-item"===t.type?t.element.classList.add(`lexxy-drop-target--list-${t.position}`):t.element.classList.add(`lexxy-drop-target--block-${t.position}`))}#bi(e){const t=document.elementFromPoint(e.clientX,e.clientY);if(!t)return null;const n=this.#se.getRootElement();if(!n||!n.contains(t))return null;const r=t.closest("figure.attachment--preview[data-lexical-node-key]");if(r&&r.dataset.lexicalNodeKey!==this.#ui){const t=r.closest(".attachment-gallery");if(t){const i=n.querySelector(`[data-lexical-node-key="${this.#ui}"]`);if(i&&t.contains(i)){const t=this.#xi(r,e.clientX);return{type:"gallery-reorder",element:r,nodeKey:r.dataset.lexicalNodeKey,position:t}}}const i=this.#xi(r,e.clientX);return{type:"gallery",element:r,nodeKey:r.dataset.lexicalNodeKey,position:i}}if(r&&r.closest(".attachment-gallery"))return null;const i=t.closest(".attachment-gallery");if(i){let n=t.closest("figure.attachment[data-lexical-node-key]");if(n||(n=this.#Si(i,e.clientX)),n&&n.dataset.lexicalNodeKey!==this.#ui){const t=this.#xi(n,e.clientX);return{type:"gallery-reorder",element:n,nodeKey:n.dataset.lexicalNodeKey,position:t}}if(n)return null}const o=t.closest("li");if(o&&n.contains(o)){return{type:"list-item",element:o,position:this.#vi(o,e.clientY)}}const s=this.#wi(t,n,e.clientY);if(!s)return null;const l=this.#vi(s,e.clientY);return"before"===l&&s.previousElementSibling?{type:"block",element:s.previousElementSibling,position:"after"}:{type:"block",element:s,position:l}}#wi(e,t,n){let r=e;for(;r&&r!==t;){if(r.parentElement===t)return r;r=r.parentElement}let i=null,o=1/0;for(const e of t.children){const t=e.getBoundingClientRect(),r=Math.min(Math.abs(n-t.top),Math.abs(n-t.bottom));r<o&&(o=r,i=e)}return i}#vi(e,t){const n=e.getBoundingClientRect();return t<n.top+n.height/2?"before":"after"}#xi(e,t){const n=e.getBoundingClientRect();return t<n.left+n.width/2?"before":"after"}#Si(e,t){const n=e.querySelectorAll("figure.attachment[data-lexical-node-key]");let r=null,i=1/0;for(const e of n){const n=e.getBoundingClientRect(),o=n.left+n.width/2,s=Math.abs(t-o);s<i&&(i=s,r=e)}return r}static#ki=["lexxy-drop-target--gallery-before","lexxy-drop-target--gallery-after","lexxy-drop-target--list-before","lexxy-drop-target--list-after","lexxy-drop-target--block-before","lexxy-drop-target--block-after"];#Ci(){const e=this.#se.getRootElement();if(e)for(const t of e.querySelectorAll("[class*='lexxy-drop-target--']"))t.classList.remove(...J_.#ki)}#_i(e,t){const n=Ps(e);n&&xp(n)&&("gallery"===t.type?this.#Ei(n,t.nodeKey,t.position):"gallery-reorder"===t.type?this.#Ti(n,t.nodeKey,t.position):"list-item"===t.type?this.#Ni(n,t):this.#Ai(n,t),Ws(null))}#Ei(e,t,n){const r=Ps(t);if(!r||!xp(r))return;if(e.is(r))return;e.remove();ib(r)&&("before"===n?r.insertBefore(e):r.insertAfter(e))}#Ti(e,t,n){const r=Ps(t);r&&!e.is(r)&&(e.remove(),"before"===n?r.insertBefore(e):r.insertAfter(e))}#Ni(e,t){const n=$s(t.element);if(!n||!Fd(n))return;const r=n.getParent();if(!r||!Hd(r))return;const i=r.getChildren(),o=i.indexOf(n);if(-1===o)return;const s="before"===t.position?o:o+1;if(e.remove(),0===s)r.insertBefore(e);else if(s>=i.length)r.insertAfter(e);else{const[,t]=Rl(r,s);t.insertBefore(e)}}#Ai(e,t){const n=$s(t.element);if(!n)return;const r=n.getTopLevelElement?.()||n;e.is(r)||(e.remove(),"before"===t.position?r.insertBefore(e):r.insertAfter(e))}#mi(){if(this.#Ci(),this.#ui){const e=this.#se.getRootElement();if(e){const t=e.querySelector(`[data-lexical-node-key="${this.#ui}"]`);t?.classList.remove("lexxy-dragging")}}this.#ui=null,this.#di&&(cancelAnimationFrame(this.#di),this.#di=null),this.#hi&&(cancelAnimationFrame(this.#hi),this.#hi=null)}}const X_=["alt","caption","content","content-type","data-direct-upload-id","data-sgid","filename","filesize","height","presentation","previewable","sgid","url","width"];class Q_ extends Jg{#Li=0;get enabled(){return this.editorElement.supportsAttachments}get allowedElements(){return[{tag:_p.TAG_NAME,attributes:X_}]}get lexicalExtension(){return{name:"lexxy/action-text-attachments",nodes:[_p,lb,tb],register:e=>{const t=new J_(e);return oc(e.registerNodeTransform(_p,eC),e.registerCommand(bn,tC,2),e.registerMutationListener(lb,this.#Oi.bind(this)),(()=>t.destroy()))}}}#Oi(e){const t=this.#Li;for(const[t,n]of e)"created"===n?this.#Li++:"destroyed"===n&&(this.#Li--,this.editorElement.uploadRequests.abort(t));this.#Li!==t&&this.#Ii()}#Ii(){this.#Li?this.setEditorValidity({customError:!0},"Please wait for all files to upload"):this.setEditorValidity({})}}function eC(e){const t=e.getParent();if(rs(t))if(1===t.getChildrenSize())t.replace(e);else{const n=e.getIndexWithinParent(),[r,i]=Rl(t,n);r.insertAfter(e);for(const e of[r,i])e.isEmpty()&&e.remove()}}function tC(e){const t=to()?.anchor;return!!t&&(!!function(e,t){const n=e.getNode();if(!rb(n))return!1;const r=np(e,t),i=t?n.getPreviousSibling():n.getNextSibling();if(r&&n.collapseWith(i,t)){const e=t?1:n.getChildrenSize()-1;return n.select(e,e),!0}return!1}(t,e)||!!e&&(function(e){const t=e.getNode();if(!t)return!1;const n=rs(t)&&t.isEmpty(),r=ib(t.getPreviousSibling()),i=r?.getChildrenSize();return!(!n||!r?.collapseWith(t.getNextSibling()))&&(r.select(i,i),t.remove(),!0)}(t)||function(e){const t=e.getNode().getPreviousSibling();if(!rb(e.getNode())||!np(e,!0)||!t)return!1;if(Vo(t))return!1;t.isEmpty()?t.remove():t.selectEnd();return!0}(t)))}class nC extends Rp{$config(){return this.config("early_escape_code",{extends:Rp})}static $fromSelection(e){const t=e.anchor.getNode();return nu(t,nC)||(t instanceof nC?t:null)}insertNewAfter(e,t){return ml(Zr)||!e.isCollapsed()?super.insertNewAfter(e,t):this.#Ri(e)?this.#Fi():this.#Mi(e)?this.#Pi(e,t):this.#Di(e)?this.#Bi():super.insertNewAfter(e,t)}#Ri(e){const{anchor:t}=e;if(!rp(t))return!1;const n=t.getNode();return this.is(n)||this.getFirstChild()?.is(n)}#Di(e){if(!sp(e))return!1;const t=this.getTextContent();return""===t||t.endsWith("\n")}#Mi(e){if(!sp(e))return!1;const t=this.getTextContent(),n=t.lastIndexOf("\n"),r=-1===n?t:t.slice(n+1);return r.length>0&&""===r.trim()}#Fi(){return this.insertBefore(ns()),null}#Pi(e,t){return super.insertNewAfter(e,t),this.getLastChild().remove(),null}#Bi(){ap(this);const e=ns();return this.insertAfter(e),e}}class rC extends Ld{$config(){return this.config("early_escape_listitem",{extends:Ld})}insertNewAfter(e,t){return this.#$i(e)?this.#zi():super.insertNewAfter(e,t)}get#Hi(){return Boolean(nu(this,bg))}#$i(e){if(this.#Ki()||!this.#Hi)return!1;if(lp(this))return!0;{const t=nu(e.anchor.getNode(),es);return t&&lp(t)&&Fd(t.getParent())}}#Ki(){return ml(Zr)}#zi(){const e=this.getParent();if(!e||!Hd(e))return;const t=e.getParent();if(t&&Cg(t)){if(this.getNextSiblings().some((e=>Fd(e)&&!lp(e))))return this.#Ui()}const n=ns();return e.insertAfter(n),this.remove(),n}#Ui(){const e=Rl(this.getParent(),this.getIndexWithinParent());this.remove();const t=ns();return e[0].insertAfter(t),e.forEach(ap),t}}class iC extends Jg{get enabled(){return this.editorElement.supportsRichText}get allowedElements(){return[{tag:"ol",attributes:["start"]},{tag:"li",attributes:["value"]}]}get lexicalExtension(){return{name:"lexxy/format-escape",nodes:[nC,{replace:Rp,with:e=>new nC(e.getLanguage()),withKlass:nC},rC,{replace:Ld,with:()=>new rC,withKlass:rC}],register:e=>oc(e.registerCommand(Cn,(()=>function(){const e=to();if(!Di(e)||!e.isCollapsed()||0!==e.anchor.offset)return!1;const t=nu(e.anchor.getNode(),es);if(t&&!lp(t)&&!t.getPreviousSibling()){const e=t.getParent();if(Cg(e))return e.insertBefore(ns()),!0}return!1}()||function(){const e=nu(to().anchor.getNode(),es);if(!e||!lp(e))return!1;const t=e.getParent();return!!Cg(t)&&(e.getNextSiblings().filter((e=>!lp(e))).length>0?function(e,t){const n=Rl(e,t.getIndexWithinParent());n[0].insertAfter(t),n.forEach(ap),t.selectEnd()}(t,e):(t.insertAfter(e),e.selectStart()),!0)}()),3),e.registerCommand(Mn,(e=>function(e){const t=to();if(!Di(t)||!t.isCollapsed())return!1;const n=nC.$fromSelection(t);if(!n)return!1;if(sp(t)&&!n.getNextSibling()){e?.preventDefault();const t=ns();return n.insertAfter(t),t.selectEnd(),!0}return!1}(e)),2),e.registerNodeTransform(bg,oC))}}}function oC(e){e.isEmpty()&&(e.append(ns()),function(e,t=to()){if(Di(t)){const{commonAncestor:n}=Ra(t.focus.getNode(),t.anchor.getNode());return ea(n,(t=>t.is(e)))}return!1}(e)&&e.getFirstChild().select())}class sC extends Jg{get enabled(){return this.editorElement.supportsRichText}get lexicalExtension(){return{name:"lexxy/link-opener",register:e=>oc(e.registerCommand(gn,this.#Wi.bind(this),2),Ac(this.editorElement.editorContentElement,"auxclick",this.#Vi.bind(this)),Ac(window,"keydown",this.#qi.bind(this)),Ac(window,"keyup",this.#qi.bind(this)),Ac(window,"focus",this.#ji.bind(this)))}}#Wi(e){return!!this.#Gi(e)&&lC(e.target)}#Vi(e){1===e.button&&this.editorElement.editor.read((()=>lC(e.target)))}#qi(e){this.#Zi(e)}async#ji(){await function(e){return new Promise((t=>setTimeout(t,e)))}(200),this.editorElement.addEventListener("mousemove",this.#Zi.bind(this),{once:!0})}#Zi(e){this.editorElement.toggleAttribute("data-links-openable",this.#Gi(e))}#Gi(e){return eu?e.metaKey:e.ctrlKey}}function lC(e){const t=$s(e),n=ea(t,ld);if(n){const e=n.sanitizeUrl(n.getURL());return window.open(e,"_blank","noopener,noreferrer"),!0}return!1}class aC extends Jg{get lexicalExtension(){return{name:"lexxy/prevent-lexical-triple-click",register:e=>e.registerRootListener((e=>{if(e)return Ac(e,"click",this.#Yi.bind(this),{capture:!0})}))}}#Yi(e){3===e.detail&&e.stopPropagation()}}class cC{#se;#ui=null;#hi=null;#Ji=null;#Xi=null;#e=new Lc;constructor(e){this.#se=e,this.#e.track(e.registerCommand(jn,(e=>this.#gi(e)),3),e.registerCommand(Vn,(e=>this.#at(e)),3)),this.#e.track(e.registerRootListener(((e,t)=>{t&&(t.removeEventListener("dragover",this.#pi),t.removeEventListener("dragend",this.#fi)),e&&(e.addEventListener("dragover",this.#pi),e.addEventListener("dragend",this.#fi))})))}destroy(){this.#mi(),this.#Xi?.remove(),this.#Xi=null,this.#e.dispose()}#gi(e){const t=this.#Qi(e.target);return!!t&&(this.#ui=t.dataset.lexicalNodeKey,e.dataTransfer.setData("application/x-lexxy-custom-attachment-key",this.#ui),e.dataTransfer.effectAllowed="move",this.#hi=requestAnimationFrame((()=>{this.#hi=null,t.classList.add("lexxy-dragging")})),!0)}#pi=e=>{this.#ui&&(e.preventDefault(),e.dataTransfer.dropEffect="move",this.#Ji||(this.#Ji=requestAnimationFrame((()=>{this.#Ji=null,this.#eo(e)}))))};#fi=()=>{this.#mi()};#at(e){if(!this.#ui)return!1;e.preventDefault();const t=this.#to(e),n=this.#ui;return this.#mi(),t&&this.#no(n,t),!0}#to(e){const t=this.#se.getRootElement();if(!t)return null;const n=function(e,t){if(document.caretPositionFromPoint){const n=document.caretPositionFromPoint(e,t);if(n)return{node:n.offsetNode,offset:n.offset}}else if(document.caretRangeFromPoint){const n=document.caretRangeFromPoint(e,t);if(n)return{node:n.startContainer,offset:n.startOffset}}return null}(e.clientX,e.clientY);if(!n||!t.contains(n.node))return null;if(n.node===t)return this.#ro(t,e.clientY);const r=this.#io(n.node);return r?this.#oo(r,e.clientX):n}#ro(e,t){let n=null,r=1/0;for(const i of e.children){const e=i.getBoundingClientRect(),o=Math.min(Math.abs(t-e.top),Math.abs(t-e.bottom));o<r&&(r=o,n=i)}if(!n)return null;return t<n.getBoundingClientRect().top?{node:n,offset:0}:{node:n,offset:n.childNodes.length}}#io(e){const t=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;return t?.closest("[data-lexxy-decorator][data-lexical-node-key]")}#oo(e,t){const n=e.getBoundingClientRect(),r=t>n.left+n.width/2?"after":"before";return{decoratorKey:e.dataset.lexicalNodeKey,placement:r}}#no(e,t){this.#se.update((()=>{const n=Ps(e);Ug(n)&&(t.decoratorKey?this.#so(n,t):this.#lo(n,t))}))}#so(e,{decoratorKey:t,placement:n}){const r=Ps(t);r&&r!==e&&(e.remove(),"after"===n?r.insertAfter(e):r.insertBefore(e))}#lo(e,t){const n=Qi({anchorNode:t.node,anchorOffset:t.offset,focusNode:t.node,focusOffset:t.offset},this.#se);n&&(Ws(n),e.remove(),n.insertNodes([e]))}#eo(e){this.#ao();const t=this.#to(e);t&&this.#co(this.#uo(t))}#uo(e){if(e.decoratorKey)return this.#do(e);const{node:t,offset:n}=e,r=function(e,t){const n=document.createRange();n.setStart(e,t),n.collapse(!0);const r=n.getBoundingClientRect();return r.height>0?r:null}(t,n);if(r)return r;const i=t.nodeType===Node.TEXT_NODE?t.parentElement:t;if(!i)return null;const o=i.getBoundingClientRect();return{left:o.left,top:o.top,height:o.height}}#do({decoratorKey:e,placement:t}){const n=this.#se.getRootElement()?.querySelector(`[data-lexical-node-key="${e}"]`);if(!n)return null;const r=n.getBoundingClientRect();return{left:"after"===t?r.right:r.left,top:r.top,height:r.height}}#co(e){if(!e)return;const t=this.#ho();t.style.blockSize=`${e.height}px`,t.style.insetInlineStart=`${e.left}px`,t.style.insetBlockStart=`${e.top}px`}#ho(){return this.#Xi||=Ic("div",{className:"lexxy-drop-caret"}),this.#oe().appendChild(this.#Xi),this.#Xi.style.display="block",this.#Xi}#oe(){return this.#se.getRootElement().closest("lexxy-editor")}#ao(){this.#Xi&&(this.#Xi.style.display="none")}#Qi(e){return e?.closest?.("[data-lexxy-decorator][data-lexical-node-key]")}#mi(){if(this.#ui){const e=this.#se.getRootElement(),t=e?.querySelector(`[data-lexical-node-key="${this.#ui}"]`);t?.classList.remove("lexxy-dragging")}this.#ao(),this.#ui=null,this.#hi&&(cancelAnimationFrame(this.#hi),this.#hi=null),this.#Ji&&(cancelAnimationFrame(this.#Ji),this.#Ji=null)}}class uC extends Jg{get enabled(){return this.editorElement.supportsRichText}get lexicalExtension(){return{name:"lexxy/custom-attachment-drag-and-drop",register:e=>{const t=new cC(e);return()=>t.destroy()}}}}class dC extends HTMLElement{static formAssociated=!0;static debug=!1;static commands=["bold","italic","strikethrough"];static observedAttributes=["autocapitalize","connected","required"];#go="";#po=null;#fo=!1;#mo=!1;#e=new Lc;#yo=[];#be={undo:!1,redo:!1};#bo=new Map;#_o=document.createElement("textarea");#Co;constructor(){super(),this.internals=this.attachInternals(),this.internals.role="presentation"}get uploadRequests(){return this.#Co}connectedCallback(){this.id||=Pc("lexxy-editor"),this.config=new eb(this),this.extensions=new A_(this),this.#yo.push(this.extensions),this.editor=this.#xo(),this.#yo.push(this.editor),this.#yo.push(this.#e),this.contents=new gb(this),this.#yo.push(this.contents),this.selection=new Qy(this),this.#yo.push(this.selection),this.clipboard=new T_(this),this.#yo.push(this.clipboard),this.adapter=new L_,this.#Co=new zf;const e=Xy.configureFor(this);this.#yo.push(e),this.#So(),this.toggleAttribute("connected",!0),requestAnimationFrame((()=>{this.#vo(),this.#wo(),this.#ko()}))}disconnectedCallback(){this.#fo=!1,this.#mo=!1,this.#po=null,this.valueBeforeDisconnect=this.value,this.#Eo(),this.#To()}attributeChangedCallback(e,t,n){"function"==typeof this[`${e}ChangedCallback`]&&this[`${e}ChangedCallback`](t,n)}autocapitalizeChangedCallback(){this.editorContentElement&&this.#No(this.editorContentElement,"autocapitalize")}connectedChangedCallback(e,t){this.isConnected&&null!=e&&e!==t&&requestAnimationFrame((()=>this.#h()))}requiredChangedCallback(){this.isConnected&&this.#Ao()}formResetCallback(){this.value=this.#go,this.editor.dispatchCommand(er,void 0)}toString(){return this.cachedStringValue??=this.editor?.read((()=>hC(Ks())))}get form(){return this.internals.form}get name(){return this.getAttribute("name")}get required(){return this.hasAttribute("required")}get validity(){return this.internals.validity}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}setElementValidity(e,t,n){this.#bo.set(e,{flags:t,message:n}),this.#Ao()}get toolbarElement(){return this.#Lo?(this.toolbar??=this.#Oo(),this.toolbar):null}get baseExtensions(){return[B_,U_,Py,V_,Y_,yp,Q_,iC,sC,aC,uC]}get directUploadUrl(){return this.dataset.directUploadUrl}get blobUrlTemplate(){return this.dataset.blobUrlTemplate}get permittedAttachmentTypes(){const e=this.config.get("permittedAttachmentTypes");if(null==e)return null;{const t=Array.isArray(e)?e:String(e).split(/\s+/);return Object.freeze(t.filter((e=>e&&"false"!==e)))}}permitsAttachmentContentType(e){if(this.supportsAttachments){const t=this.permittedAttachmentTypes;return null===t||t.includes(e)}return!1}acceptsFile(e){return Mc(this,"lexxy:file-accept",{file:e},!0)}$generateNodesFromDOM(e,{editor:t=this.editor}={}){let n=Eh(t,e);return ml(Zr)&&(n=function(e,t){const n=e.map((e=>vp(e)?wp(e,t):e)).filter((e=>null!==e));for(const e of n)for(const n of hu([e],vp)){const e=wp(n,t);e?n.replace(e):n.remove()}return n}(n,this)),function(e,t){return e.filter((e=>!Sp(e,t))).map((e=>(hu([e],(e=>Sp(e,t))).forEach((e=>e.remove())),e)))}(n,this)}get isEmpty(){return["<p><br></p>","<p></p>",""].includes(this.value.trim())}get isBlank(){return this.isEmpty||null!==this.toString().match(/^\s*$/g)}get hasOpenPrompt(){return null!==this.querySelector(".lexxy-prompt-menu.lexxy-prompt-menu--visible")}get preset(){return this.getAttribute("preset")||"default"}get supportsAttachments(){return this.config.get("attachments")}get supportsMarkdown(){return this.supportsRichText&&this.config.get("markdown")}get supportsMultiLine(){return this.config.get("multiLine")&&!this.isSingleLineMode}get supportsRichText(){return this.config.get("richText")}registerAdapter(e){this.adapter=e,this.editor&&(this.#Io(),this.#Ro())}freezeSelection(){this.adapter.freeze()}thawSelection(){this.adapter.thaw()}dispatchAttributesChange(){this.#Ro()}dispatchEditorInitialized(){this.#Io()}get isSingleLineMode(){return this.hasAttribute("single-line")}get contentTabIndex(){return parseInt(this.editorContentElement?.getAttribute("tabindex")??"0")}focus(){this.#Fo||this.editor.focus((()=>this.#Mo()))}get#Fo(){return!!this.editor&&tp(this.editor)}get value(){return this.cachedValue??=this.#Po()}set value(e){const t=this.#Fo;this.editor.update((()=>{t?bl((()=>this.editor.focus())):yl(Xr),this.#Do(e),this.#Bo()}),{discrete:!0})}get canUndo(){return this.#be.undo}get canRedo(){return this.#be.redo}#Po(){return this.editor?.read((()=>zg(Th(this.editor,null))))??null}#$o(e,{editor:t=this.editor}={}){e||(e="<p></p>");return this.$generateNodesFromDOM(Rc(`${e}`),{editor:t}).filter(this.#zo).map(this.#Ho)}#zo(e){return!ci(e)&&(!Ti(e)||""!==e.getTextContent().trim())}#Ho(e){if(!Ti(e))return e;const t=ns();return t.append(e),t}#So(){this.#Ko(),this.#ge(),this.#Uo(),this.#Wo(),this.#Vo(),this.#qo(),this.#jo(),this.#Go(),this.#Zo(this.value,{suppressEvent:!0}),this.#Yo()}#Vo(){this.#e.track(Ac(this,"lexxy:file-accept",(e=>{this.permitsAttachmentContentType(e.detail.file.type)||e.preventDefault()})))}#xo(){this.editorContentElement||=this.#Jo(),this.appendChild(this.editorContentElement);const e=function(...e){return ed.fromExtensions(e).buildEditor()}({name:"lexxy/core",namespace:"Lexxy",theme:$f,nodes:this.#Xo,html:{export:new Map([[yi,O_],[Kp,O_]])},$initialEditorState:e=>{this.#Qo(e),this.#es(e)}},...this.extensions.lexicalExtensions);return e}#vo(){this.editor.setEditable(!1),this.editor.setRootElement(this.editorContentElement),this.editor.setEditable(!0)}get#Xo(){const e=[Kg];return this.supportsRichText&&e.push(bg,xg,Md,Ld,Rp,Kp,id,ad,Mf),e}#Jo(){const e=Ic("div",{id:`${this.id}-content`,classList:"lexxy-editor__content",contenteditable:!0,role:"textbox","aria-multiline":!0,"aria-label":this.#ts,placeholder:this.getAttribute("placeholder")});return this.#ns.forEach((t=>e.setAttribute(t.name,t.value))),this.#No(e,"autocapitalize"),this.#No(e,"tabindex",{defaultValue:0,removeSource:!0}),e}#No(e,t,{defaultValue:n=null,removeSource:r=!1}={}){this.hasAttribute(t)?e.setAttribute(t,this.getAttribute(t)):null!==n?e.setAttribute(t,n):e.removeAttribute(t),r&&this.removeAttribute(t)}get#ts(){return Array.from(this.internals.labels).map((e=>e.textContent)).join(" ")}get#ns(){return Array.from(this.attributes).filter((e=>e.name.startsWith("aria-")))}#Zo(e,{suppressEvent:t=!1}={}){const n=e!==this.#po;this.internals.setFormValue(e),this.#po=e,n&&!t&&Mc(this,"lexxy:change")}#es(e){const t=this.valueBeforeDisconnect||this.getAttribute("value")||"<p><br></p>";this.#go=t,this.#Do(t,{editor:e})}#Do(e,{editor:t=this.editor}={}){Ks().clear().selectEnd().insertNodes(this.#$o(e,{editor:t}))}#Go(){this.#e.track(Ac(document,"turbo:before-cache",this.#rs))}#rs=e=>{this.closest("[data-turbo-permanent]")||this.#To()};#Yo(){this.#e.track(this.editor.registerUpdateListener((({editorState:e})=>{this.#Eo(),this.#Zo(this.value),this.#Bo(),this.#Ao(),this.#Ro()})))}async#Ao(){await Uc(),this.isConnected&&this.#is()}#is(){this.#os();const{validity:e,message:t}=this.#ss();this.internals.setValidity(e,t,this.editorContentElement)}#os(){this.#_o.required=this.required&&this.isBlank;const e=this.#_o.validity,t=this.#_o.validationMessage;this.#bo.set(this,{flags:e,message:t})}#ss(){const e={},t=[];for(const{flags:n,message:r}of this.#bo.values())if(!0!==n.valid)for(const i in n)n[i]&&(e[i]=!0,t.push(r));return{validity:e,message:t.join("\n")}}#Eo(){this.cachedValue=null,this.cachedStringValue=null}#Ko(){const e=[];if(this.supportsRichText){if(e.push(Lg(this.editor),qd(this.editor)),this.#ls(),this.#as(),this.supportsMarkdown){const t=[...Af,Pf];e.push(Ff(this.editor,t),function(e,t){const n=t.filter((e=>"text-format"===e.type)).sort(((e,t)=>t.tag.length-e.tag.length));return e.registerUpdateListener((({tags:t,dirtyLeaves:r,editorState:i,prevEditorState:o})=>{if(t.has("historic")||t.has("collaboration"))return;if(e.isComposing())return;const s=i.read(to),l=o.read(to);if(!Di(l)||!Di(s)||!s.isCollapsed())return;const a=s.anchor.key,c=s.anchor.offset;if(!r.has(a))return;const u=i.read((()=>Ps(a)));if(!Ti(u))return;if(c<=(l.anchor.key===a?l.anchor.offset:0))return;const d=i.read((()=>u.getTextContent()));for(const t of n){const n=t.tag,r=n.length,i=c-r;if(i<0)continue;if(d.slice(i,c)!==n)continue;const o=n[0];if(i>0&&d[i-1]===o)continue;if(!1===t.intraword&&i>0){const e=d[i-1];if(e&&!Df.test(e))continue}const s=c,l=d.indexOf(n,s);if(l<0)continue;if(d[l+r]===o)continue;if(l>0&&d[l-1]===o)continue;const u=l;if(!(u<=c)&&" "!==d[c]&&" "!==d[u-1]){if(!1===t.intraword){const e=d[l+r];if(e&&!Df.test(e))continue}e.update((()=>{const e=Ps(a);if(!e||!Ti(e))return;const n=e.getParent();null===n||Mp(n)||Bf(e,i,t)}));break}}}))}(this.editor,t))}}else e.push(sg(this.editor));this.#e.track(...e)}#ls(){let e=this.querySelector("lexxy-table-tools");e??=Ic("lexxy-table-tools"),this.append(e),this.#yo.push(e)}#as(){let e=this.querySelector("lexxy-code-language-picker");e??=Ic("lexxy-code-language-picker"),this.append(e),this.#yo.push(e)}#ge(){this.#e.track(this.editor.registerCommand(Pn,(e=>(e.ctrlKey||e.metaKey||!this.supportsMultiLine)&&(e.preventDefault(),!0)),2))}#Uo(){this.#e.track(Ac(this,"focusin",this.#cs),Ac(this,"focusout",this.#us))}#cs(e){this.#ds(e.target)&&!this.currentlyFocused&&(this.#Ro(),Mc(this,"lexxy:focus"),this.currentlyFocused=!0)}#us(e){this.#ds(e.relatedTarget)||(Mc(this,"lexxy:blur"),this.currentlyFocused=!1)}#ds(e){return this.contains(e)||this.toolbarElement?.contains(e)}#Mo(){this.isEmpty&&this.selection.placeCursorAtTheEnd()}#wo(){document.querySelector(":focus")||this.hasAttribute("autofocus")&&document.querySelector("[autofocus]")===this&&this.focus()}#Wo(){this.#e.track(this.editor.registerCommand(nr,(e=>{this.#be.undo=e}),2),this.editor.registerCommand(tr,(e=>{this.#be.redo=e}),2))}#qo(){}#jo(){this.#Lo&&(this.toolbarElement.setEditor(this),"function"==typeof this.toolbarElement.dispose&&this.#yo.push(this.toolbarElement),this.extensions.initializeToolbars())}#Oo(){const e=this.config.get("toolbar");return"string"==typeof e?document.getElementById(e):this.querySelector("lexxy-toolbar")??this.#hs()}get#Lo(){return this.supportsRichText&&!!this.config.get("toolbar")}#hs(){const e=Ic("lexxy-toolbar");return e.innerHTML=Kc.defaultTemplate,e.setAttribute("data-attachments",this.supportsAttachments),e.configure(this.config.get("toolbar")),this.prepend(e),e}#Bo(){this.classList.toggle("lexxy-editor--empty",this.isEmpty)}#Qo(e){$g(this.#gs(e))}#gs(e){return this.#ps(e).concat(this.extensions.allowedElements)}#ps(e){return Array.from(e._htmlConversions.keys()).filter((e=>!e.startsWith("#")))}#Ro(){let e=null,t=null,n=null,r=null;this.editor.getEditorState().read((()=>{const i=to();if(!Di(i))return;const o=this.selection.getFormat();if(0===Object.keys(o).length)return;const s=nu(i.anchor.getNode(),id);e={bold:{active:o.isBold,enabled:!0},italic:{active:o.isItalic,enabled:!0},strikethrough:{active:o.isStrikethrough,enabled:!0},code:{active:o.isInCode,enabled:!0},highlight:{active:o.isHighlight,enabled:!0},link:{active:o.isInLink,enabled:!0},quote:{active:o.isInQuote,enabled:!0},heading:{active:o.isInHeading,enabled:!0},"unordered-list":{active:o.isInList&&"bullet"===o.listType,enabled:!0},"ordered-list":{active:o.isInList&&"number"===o.listType,enabled:!0},undo:{active:!1,enabled:this.canUndo},redo:{active:!1,enabled:this.canRedo}},t=s?s.getURL():null,n=o.isHighlight?function(e){if(!Di(e))return null;let t=kc(e.style);if(!t.color&&!t["background-color"]){const n=e.anchor.getNode();Ti(n)&&(t=kc(n.getStyle()))}const n=t.color||null,r=t["background-color"]||null;return n||r?{color:n,backgroundColor:r}:null}(i):null,r=o.headingTag??null})),e&&this.adapter.dispatchAttributesChange(e,t,n,r)}#Io(){this.adapter&&(this.#mo=!0,this.adapter.dispatchEditorInitialized({highlightColors:this.#fs,headingFormats:this.#ms}))}#ko(){this.isConnected&&this.adapter&&(this.#fo||(this.#fo=!0,Mc(this,"lexxy:initialize")),this.#mo||this.#Io())}get#fs(){const e=this.config.get("highlight.buttons");if(!e)return null;return{colors:this.#ys("color",e.color||[]),backgroundColors:this.#ys("background-color",e["background-color"]||[])}}get#ms(){if(!this.supportsRichText)return[];return[{label:"Normal",command:"setFormatParagraph",tag:null},...this.config.get("headings").map(((e,t)=>({label:qc.labelFor(e,t),command:"applyHeadingFormat",tag:e})))]}#ys(e,t){const n=document.createElement("span");n.style.display="none";const r=t.map((t=>{const r=document.createElement("span");return r.style.setProperty(e,t),n.appendChild(r),{element:r,name:t}}));Ey().appendChild(n);const i=r.map((({element:t,name:n})=>({name:n,value:window.getComputedStyle(t).getPropertyValue(e)})));return n.remove(),i}#To(){this.#bs(),this.#_s(),this.#Co?.clear(),this.editorContentElement?.remove(),this.editorContentElement=null,this.toolbar=null}#bs(){for(;this.#yo.length;)this.#yo.pop().dispose()}#h(){this.disconnectedCallback(),this.valueBeforeDisconnect=null,this.connectedCallback()}#_s(){this.#bo=new Map}}function hC(e){if(e instanceof Kg)return e.getReadableTextContent();if(Ko(e)){let t="";const n=e.getChildren();for(let e=0;e<n.length;e++){const r=n[e];cp(r,n[e-1],e,n.length)||(t+=hC(r),Ko(r)&&e!==n.length-1&&!r.isInline()&&(t+="\n\n"))}return t}return e.getTextContent()}class gC{async buildListItems(e=""){return Promise.resolve([])}promptItemFor(e){return null}buildListItemElementFor(e){const t=e.querySelector("template[type='menu']").content.cloneNode(!0),n=Ic("li",{role:"option",id:Pc("prompt-item"),tabindex:"0"});return n.classList.add("lexxy-prompt-menu__item"),n.appendChild(t),n}async loadPromptItemsFromUrl(e){try{const t=await fetch(e),n=Rc(await t.text()).querySelectorAll("lexxy-prompt-item");return Promise.resolve(Array.from(n))}catch(e){return Promise.reject(e)}}}class pC extends gC{async buildListItems(e=""){const t=await this.fetchPromptItems();return this.#Cs(t,e)}async fetchPromptItems(e){return Promise.resolve([])}promptItemFor(e){return this.promptItemByListItem.get(e)}#Cs(e,t){if(this.promptItemByListItem=new WeakMap,!t)return this.#xs(e);const n=[];for(const r of e){const e=qg(r.getAttribute("search"),t);e>=0&&n.push({promptItem:r,position:e})}n.sort(((e,t)=>e.position-t.position));const r=[];for(const{promptItem:e}of n){if(r.length>=100)break;const t=this.buildListItemElementFor(e);this.promptItemByListItem.set(t,e),r.push(t)}return r}#xs(e){const t=[];for(const n of e){if(t.length>=100)break;const e=this.buildListItemElementFor(n);this.promptItemByListItem.set(e,n),t.push(e)}return t}}class fC extends pC{constructor(e){super(),this.inlinePromptItemElements=Array.from(e)}async fetchPromptItems(){return Promise.resolve(this.inlinePromptItemElements)}}class mC extends pC{constructor(e){super(),this.url=e,this.fetchPromptItems()}async fetchPromptItems(){return this.promptItems??=await this.loadPromptItemsFromUrl(this.url),Promise.resolve(this.promptItems)}}class yC extends gC{constructor(e){super(),this.baseURL=e,this.loadAndFilterListItems=function(e,t){let n;return(...r)=>(clearTimeout(n),new Promise(((i,o)=>{n=setTimeout((async()=>{try{const t=await e(...r);i(t)}catch(e){o(e)}}),t)})))}(this.fetchFilteredListItems.bind(this),200)}async buildListItems(e=""){return await this.loadAndFilterListItems(e)}promptItemFor(e){return this.promptItemByListItem.get(e)}async fetchFilteredListItems(e){const t=await this.loadPromptItemsFromUrl(this.#Ss(e));return this.#Cs(t)}#Ss(e){const t=new URL(this.baseURL,window.location.origin);return t.searchParams.append("filter",e),t.toString()}#Cs(e){const t=[];this.promptItemByListItem=new WeakMap;for(const n of e){if(t.length>=100)break;const e=this.buildListItemElementFor(n);this.promptItemByListItem.set(e,n),t.push(e)}return t}}class bC extends HTMLElement{#vs=new Lc;#ws=new Lc;#ks=function(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>e(...r)),t)}}((()=>this.#Es()),50);constructor(){super(),this.showPopoverId=0}static observedAttributes=["connected"];connectedCallback(){this.source=this.#Ts(),this.#Ns(),this.#As(),this.toggleAttribute("connected",!0)}disconnectedCallback(){this.#ws.dispose(),this.#vs.dispose(),this.source=null,this.#Ls()}attributeChangedCallback(e,t,n){"connected"===e&&this.isConnected&&null!=t&&t!==n&&requestAnimationFrame((()=>this.#h()))}get name(){return this.getAttribute("name")}get trigger(){return this.getAttribute("trigger")}get supportsSpaceInSearches(){return this.hasAttribute("supports-space-in-searches")}get onlyAt(){return this.getAttribute("only-at")}get verticalDirection(){return this.getAttribute("vertical-direction")}get open(){return this.popoverElement?.classList?.contains("lexxy-prompt-menu--visible")}get closed(){return!this.open}get#Os(){return!this.supportsSpaceInSearches}#Ts(){const e=this.getAttribute("src");return e?this.hasAttribute("remote-filtering")?new yC(e):new mC(e):new fC(this.querySelectorAll("lexxy-prompt-item"))}#Ns(){this.#Is&&this.#ws.track(this.#se.registerUpdateListener((({editorState:e})=>{e.read((()=>{if(this.#Rs.isInsideCodeBlock)return;const{node:e,offset:t}=this.#Rs.selectedNodeWithOffset();if(e&&Ti(e)){const n=e.getTextContent(),r=this.trigger.length;if(t>=r){if(n.slice(t-r,t)===this.trigger){const n=function(e,t){const n=[];let r=!1;return function i(o){if(!r){if(o===e)return n.push(o.getTextContent().slice(0,t)),void(r=!0);if(Ko(o)){const e=o.getChildren();for(let t=0;t<e.length;t++){if(i(e[t]),r)return;const o=e[t];Ko(o)&&!o.isInline()&&t<e.length-1&&n.push("\n\n")}}else n.push(o.getTextContent())}}(Ks()),n.join("")}(e,t-r);this.#Fs.test(n)&&(this.#ws.dispose(),this.#Ms())}}}}))})))}get#Fs(){return new RegExp(`(?:${this.onlyAt??"^|[ \\n]"})$`)}get#Is(){if(this.hasAttribute("insert-editable-text"))return!0;const e=this.#oe;if(e.supportsAttachments){const t=Array.from(this.querySelectorAll("template[type='editor']")),n=t.length?t.map((e=>e.getAttribute("content-type")||this.#Ps)):[this.#Ps];return n.some((t=>e.permitsAttachmentContentType(t)))}return!1}#Ds(){this.#ws.track(this.#se.registerUpdateListener((({editorState:e})=>{this.closed||e.read((()=>{if(this.#Rs.isInsideCodeBlock)return void this.#Bs();const{node:e,offset:t}=this.#Rs.selectedNodeWithOffset();e&&(this.#$s(e,t)?this.popoverElement.hasAttribute("data-anchored")||this.#zs():this.#Bs())}))})))}#$s(e,t){if(!Ti(e)||0===t)return!1;const n=e.getTextContent().slice(0,t),r=n.lastIndexOf(this.trigger);if(-1===r)return!1;const i=n.slice(r+this.trigger.length);return!(this.supportsSpaceInSearches?/\n/:/[ \n]/).test(i)}get#se(){return this.#oe.editor}get#oe(){return this.closest("lexxy-editor")}get#Rs(){return this.#oe.selection}async#Ms(){const e=++this.showPopoverId;this.popoverElement??=await this.#Hs(),this.showPopoverId===e&&(this.#Ks(),await this.#Es(),this.showPopoverId===e&&(this.popoverElement.classList.toggle("lexxy-prompt-menu--visible",!0),this.#Us(),this.#ws.track(Ac(this.#oe,"keydown",this.#Ws),Ac(this.#oe,"lexxy:change",this.#ks)),this.#Vs(),this.#Ds()))}#Vs(){this.#ws.track(this.#se.registerCommand(Pn,this.#qs.bind(this),4),this.#se.registerCommand(Hn,this.#qs.bind(this),4)),this.#Os&&(this.#ws.track(this.#se.registerCommand(Dn,this.#qs.bind(this),4)),this.#ws.track(this.#se.registerCommand(fn,this.#js.bind(this),4))),this.#ws.track(this.#se.registerCommand(Fn,this.#Gs.bind(this),4),this.#se.registerCommand(Mn,this.#Zs.bind(this),4))}#Gs(e){return this.#Ys(),e.preventDefault(),!0}#Zs(e){return this.#Js(),e.preventDefault(),!0}#Us(){const e=this.#Xs[0];e&&this.#Qs(e)}get#Xs(){return Array.from(this.popoverElement.querySelectorAll(".lexxy-prompt-menu__item"))}#Qs(e,{scrollIntoView:t=!1}={}){this.#el(),e.toggleAttribute("aria-selected",!0),t&&e.scrollIntoView({block:"nearest",container:"nearest",behavior:"smooth"}),this.#tl("aria-controls",this.popoverElement.id),this.#tl("aria-activedescendant",e.id),this.#tl("aria-haspopup","listbox")}#el(){this.#Xs.forEach((e=>{e.toggleAttribute("aria-selected",!1)}))}#nl(){this.#el(),this.#rl.removeAttribute("aria-controls"),this.#rl.removeAttribute("aria-activedescendant"),this.#rl.removeAttribute("aria-haspopup")}#tl(e,t){this.#rl.getAttribute(e)!==t&&this.#rl.setAttribute(e,t)}#zs(){const e=this.#Rs.cursorPosition;if(!e)return;const{x:t,y:n,fontSize:r}=e,i=this.#oe.getBoundingClientRect(),o=this.#rl.getBoundingClientRect(),s=o.top-i.top;this.popoverElement.hasAttribute("data-anchored")||(this.#il(t),this.#ol(n+s),this.popoverElement.toggleAttribute("data-anchored",!0));const l=this.popoverElement.getBoundingClientRect();l.right>i.right&&this.popoverElement.toggleAttribute("data-clipped-at-right",!0);const a="top"===this.verticalDirection,c="bottom"===this.verticalDirection,u=l.bottom>window.innerHeight;c||!a&&!u||(this.#ol(o.height-n+r),this.popoverElement.toggleAttribute("data-clipped-at-bottom",!0))}#il(e){this.popoverElement.style.setProperty("--lexxy-prompt-offset-x",`${e}px`)}#ol(e){this.popoverElement.style.setProperty("--lexxy-prompt-offset-y",`${e}px`)}#Ks(){this.popoverElement.removeAttribute("data-clipped-at-bottom"),this.popoverElement.removeAttribute("data-clipped-at-right"),this.popoverElement.removeAttribute("data-anchored")}async#Bs(){this.showPopoverId++,this.#nl(),this.popoverElement.classList.toggle("lexxy-prompt-menu--visible",!1),this.#ws.dispose(),await Uc(),this.#Ns()}#As(){this.#vs.track(Ac(document,"turbo:before-cache",(()=>this.#Ls())))}#Ls(){this.#ws.dispose(),this.popoverElement?.remove(),this.popoverElement=null}#Es=async()=>{if(this.initialPrompt)this.initialPrompt=!1;else if(this.#sl.containsTextBackUntil(this.trigger)){if(await this.#ll(),!this.#sl.containsTextBackUntil(this.trigger))return void this.#Bs();await Uc(),this.#zs()}else this.#Bs()};async#ll(){const e=this.showPopoverId,t=this.#sl.textBackUntil(this.trigger),n=await this.source.buildListItems(t);this.showPopoverId===e&&this.#sl.containsTextBackUntil(this.trigger)&&(this.popoverElement.innerHTML="",n.length>0?this.#al(n):this.#cl(),this.#Us())}#al(e){this.popoverElement.classList.remove("lexxy-prompt-menu--empty"),this.popoverElement.append(...e)}#cl(){this.popoverElement.classList.add("lexxy-prompt-menu--empty");const e=Ic("li",{textContent:this.#ul});e.classList.add("lexxy-prompt-menu__item--empty"),this.popoverElement.append(e)}get#ul(){return this.getAttribute("empty-results")||"Nothing found"}#Ws=e=>{"Escape"===e.key?(this.#Bs(),this.#oe.focus(),e.stopPropagation()):","===e.key&&(e.preventDefault(),e.stopPropagation(),this.#dl(),this.#se.update((()=>{const e=to();Di(e)&&e.insertText(",")})))};#js(e){if("insertText"===e.inputType&&" "===e.data)return this.#qs(e)}#Js(){const e=this.#hl+1;e<this.#Xs.length&&this.#Qs(this.#Xs[e],{scrollIntoView:!0})}#Ys(){const e=this.#hl-1;e>=0&&this.#Qs(this.#Xs[e],{scrollIntoView:!0})}get#hl(){return this.#Xs.findIndex((e=>e.hasAttribute("aria-selected")))}get#gl(){return this.#Xs[this.#hl]}#qs(e){return e.preventDefault(),e.stopPropagation(),this.#dl(),!0}#dl(){this.#pl(),this.#Bs(),this.#oe.focus()}#pl(){const e=this.source.promptItemFor(this.#gl);if(!e)return;const t=Array.from(e.querySelectorAll("template[type='editor']")),n=`${this.trigger}${this.#sl.textBackUntil(this.trigger)}`;this.hasAttribute("insert-editable-text")?this.#fl(t,n):this.#ml(t,n,e.getAttribute("sgid"))}#fl(e,t){this.#se.update((()=>{const n=e.flatMap((e=>this.#yl(e)));this.#sl.replaceTextBackUntil(t,n)}))}#yl(e){return this.#oe.$generateNodesFromDOM(Rc(`${e.innerHTML}`))}#ml(e,t,n=null){this.#se.update((()=>{const r=this.#bl(e,n).flatMap((e=>[e,this.#_l()])).slice(0,-1);this.#sl.replaceTextBackUntil(t,r)}))}#bl(e,t=null){return e.filter((e=>this.#oe.permitsAttachmentContentType(e.getAttribute("content-type")||this.#Ps))).map((e=>this.#Cl(e.innerHTML,e.getAttribute("content-type")||this.#Ps,e.getAttribute("sgid")||t)))}#_l(){return Ei(" ")}get#Ps(){return`application/vnd.${Bg.global.get("attachmentContentTypeNamespace")}.${this.name}`}#Cl(e,t,n){return new Kg({sgid:n,contentType:t,innerHtml:e})}get#sl(){return this.#oe.contents}get#rl(){return this.#oe.editorContentElement}async#Hs(){const e=Ic("ul",{role:"listbox",id:Pc("prompt-popover")});return e.classList.add("lexxy-prompt-menu"),e.style.position="absolute",e.setAttribute("nonce",Nc()),e.append(...await this.source.buildListItems()),this.#vs.track(Ac(e,"click",this.#xl)),this.#oe.appendChild(e),e}#xl=e=>{const t=e.target.closest(".lexxy-prompt-menu__item");t&&(this.#Qs(t),this.#dl())};#h(){this.disconnectedCallback(),this.connectedCallback()}}class _C extends HTMLElement{#Sl=null;#e=new Lc;connectedCallback(){this.editorElement=this.closest("lexxy-editor"),this.editor=this.editorElement.editor,this.classList.add("lexxy-floating-controls"),this.#Sl=new AbortController,this.#e.track((()=>this.#Sl?.abort())),this.#vl(),this.#wl(),this.#kl()}disconnectedCallback(){this.dispose()}dispose(){this.#e.dispose()}#vl(){this.languagePickerElement=this.#El()??this.#Tl();const e=this.#Sl.signal;this.#e.track(Ac(this.languagePickerElement,"change",(()=>{this.#Nl(this.languagePickerElement.value)}),{signal:e})),this.#e.track(Ac(this.languagePickerElement,"mousedown",(e=>{this.#Al(e)}),{signal:e})),this.languagePickerElement.setAttribute("nonce",Nc()),this.appendChild(this.languagePickerElement)}#El(){return this.querySelector("select")}#Tl(){const e=Ic("select",{className:"lexxy-code-language-picker","aria-label":"Pick a language…",name:"lexxy-code-language"});for(const[t,n]of Object.entries(this.#Ll)){const r=document.createElement("option");r.value=t,r.textContent=n,e.appendChild(r)}return e}get#Ll(){const e={...cf};e.ruby||="Ruby",e.php||="PHP",e.go||="Go",e.bash||="Bash",e.json||="JSON",e.diff||="Diff",e.kotlin||="Kotlin",delete e.plain;const t=Object.entries(e).sort(((e,t)=>e[1].localeCompare(t[1])));return{plain:"Plain text",...Object.fromEntries(t)}}#Al(e){!Mc(this.editorElement,"lexxy:code-language-picker-open",{languages:this.#Ol,currentLanguage:this.languagePickerElement.value},!0)&&e.preventDefault()}get#Ol(){return Object.entries(this.#Ll).map((([e,t])=>({key:e,name:t})))}#Nl(e){this.editor.update((()=>{const t=this.#Il();t&&t.setLanguage(e)}))}#kl(){this.#e.track(this.editor.registerUpdateListener((({editorState:e})=>{e.read((()=>{const e=this.#Il();e?this.#Rl(e):this.#wl()}))})))}#Il(){return this.editorElement.selection.nearestNodeOfType(Rp)}#Rl(e){const t=e.getLanguage();this.#Fl(t),this.#Ml(),this.#Pl(e)}#Fl(e){if(this.languagePickerElement&&e){const t=uf(e);this.languagePickerElement.value=t}}#Pl(e){const t=this.editor.getElementByKey(e.getKey());if(!t)return;const n=t.getBoundingClientRect(),r=this.editorElement.getBoundingClientRect(),i=n.top-r.top,o=r.right-n.right;this.style.top=`${i}px`,this.style.right=`${o}px`}#Ml(){this.hidden=!1}#wl(){this.hidden=!0}}class CC extends HTMLElement{connectedCallback(){this.editorElement=this.closest("lexxy-editor"),this.editor=this.editorElement.editor,this.classList.add("lexxy-floating-controls"),this.querySelector(".lexxy-node-delete")||this.#Dl()}disconnectedCallback(){this.editor=null,this.editorElement=null}#Dl(){const e=Ic("div",{className:"lexxy-floating-controls__group"});this.deleteButton=Ic("button",{className:"lexxy-node-delete",type:"button","aria-label":"Remove"}),this.deleteButton.tabIndex=-1,this.deleteButton.innerHTML='<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M11.2041 1.01074C12.2128 1.113 13 1.96435 13 3V4H15L15.1025 4.00488C15.6067 4.05621 16 4.48232 16 5C16 5.55228 15.5523 6 15 6H14.8457L14.1416 15.1533C14.0614 16.1953 13.1925 17 12.1475 17H5.85254L5.6582 16.9902C4.76514 16.9041 4.03607 16.2296 3.88184 15.3457L3.8584 15.1533L3.1543 6H3C2.44772 6 2 5.55228 2 5C2 4.44772 2.44772 4 3 4H5V3C5 1.89543 5.89543 1 7 1H11L11.2041 1.01074ZM5.85254 15H12.1475L12.8398 6H5.16016L5.85254 15ZM7 4H11V3H7V4Z"/>\n</svg>',this.handleDeleteClick=()=>this.#Bl(),this.deleteButton.addEventListener("click",this.handleDeleteClick),e.appendChild(this.deleteButton),this.appendChild(e)}#Bl(){this.editor.update((()=>{const e=$s(this);e?.remove()}))}}class xC{#e=new Lc;constructor(e){this.editor=e.editor,this.contents=e.contents,this.selection=e.selection,this.currentTableNodeKey=null,this.currentCellKey=null,this.#$l()}destroy(){this.currentTableNodeKey=null,this.currentCellKey=null,this.#e.dispose()}get currentCell(){return this.currentCellKey?this.editor.getEditorState().read((()=>{const e=Ps(this.currentCellKey);return e instanceof qf?e:null})):null}get currentTableNode(){return this.currentTableNodeKey?this.editor.getEditorState().read((()=>{const e=Ps(this.currentTableNodeKey);return e instanceof gy?e:null})):null}get currentRowCells(){const e=this.currentRowIndex,t=this.tableRows;return t?this.editor.getEditorState().read((()=>t[e]?.getChildren()??null))??null:null}get currentRowIndex(){const e=this.currentCell;return e?this.editor.getEditorState().read((()=>function(e){const t=lm(e);return am(t).getChildren().findIndex((e=>e.is(t)))}(e)))??0:0}get currentColumnCells(){const e=this.currentColumnIndex,t=this.tableRows;return t?this.editor.getEditorState().read((()=>t.map((t=>t.getChildAtIndex(e)))))??null:null}get currentColumnIndex(){const e=this.currentCell;return e?this.editor.getEditorState().read((()=>function(e){return lm(e).getChildren().findIndex((t=>t.is(e)))}(e)))??0:0}get tableRows(){return this.editor.getEditorState().read((()=>this.currentTableNode?.getChildren()))??null}updateSelectedTable(){let e=null,t=null;return this.editor.getEditorState().read((()=>{const n=to();if(!n||!this.selection.isTableCellSelected)return;const r=n.getNodes()[0];e=ty(r),t=ny(r)})),this.currentCellKey=e?.getKey()??null,this.currentTableNodeKey=t?.getKey()??null,t}executeTableCommand(e,t=null){"delete"!==e.action||"table"!==e.childType?"toggle"!==e.action?this.#zl(e,t):this.#Hl(e):this.#Kl()}#zl(e,t=null){this.#Ul(),this.editor.dispatchCommand(this.#Wl(e)),this.#Vl(e,t)}#Hl(e){const t=e.childType;let n=null,r=null;"row"===t?(n=this.currentRowCells,r=Vf):"column"===t&&(n=this.currentColumnCells,r=Uf),n&&0!==n.length&&this.editor.update((()=>{const e=sm(n[0]);if(!e)return;const t=e.getHeaderStyles()^r;n.forEach((e=>{this.#ql(e,t,r)}))}))}#Kl(){this.#Ul(),this.editor.dispatchCommand("deleteTable")}#Ul(){this.editor.update((()=>{const e=to();if(!e)return;const t=e.getNodes()[0];ty(t)?.selectEnd()}))}#Wl(e){const{action:t,childType:n,direction:r}=e;return`${t}Table${jg(n)}${"insert"==t?jg(r):""}`}#ql(e,t,n){const r=sm(e);r?.setHeaderStyles(t,n)}async#jl(e,t){if(await Uc(),!this.currentTableNode)return;const n=this.tableRows;if(!n)return;const r=n[e];r&&this.editor.update((()=>{const e=sm(r.getChildAtIndex(t));e?.selectEnd()}))}#Vl(e,t=null){const{childType:n,direction:r}=e;let i=this.currentRowIndex,o=null!==t?t:this.currentColumnIndex;const s="delete"===e.action?-1:0,l="after"===r?1:s;"row"===n?i+=l:"column"===n&&(o+=l),this.#jl(i,o)}#Gl(){const e=this.tableRows;if(!e)return;const t=e.at(this.currentRowIndex+1);t&&this.editor.update((()=>{t.getChildAtIndex(this.currentColumnIndex)?.selectEnd()}))}#Zl(){const e=this.currentCell;e&&this.editor.update((()=>{e.selectPrevious()}))}#Yl(){this.executeTableCommand({action:"insert",childType:"row",direction:"after"},0)}#Jl(){this.executeTableCommand({action:"delete",childType:"row"},-1)}#Xl(){const e=this.currentTableNode;this.executeTableCommand({action:"delete",childType:"row"}),this.editor.update((()=>{const t=e?.getNextSibling();if(rs(t))t.selectStart();else{const e=ns();this.currentTableNode.insertAfter(e),e.selectStart()}}))}#Ql(){if(!this.currentTableNode)return!1;const e=this.currentCell;return!!e&&""===e.getTextContent().trim()}#ea(){if(!this.currentTableNode)return!1;const e=this.tableRows;return!!e&&e.length===this.currentRowIndex+1}#ta(){if(!this.currentTableNode)return!1;const e=this.currentRowCells;return!!e&&e.every((e=>""===e.getTextContent().trim()))}#na(){if(!this.currentTableNode)return!1;const e=this.currentRowCells;return!!e&&0===e.indexOf(this.currentCell)}#$l(){this.#e.track(this.editor.registerCommand(Bn,(e=>this.#ra(e)),3),this.editor.registerCommand(Pn,(e=>this.#ia(e)),3))}#ra(e){return!!this.currentTableNode&&(this.#ta()&&this.#na()?(e.preventDefault(),this.#Jl(),!0):!(!this.#Ql()||this.#na())&&(e.preventDefault(),this.#Zl(),!0))}#ia(e){return!(e.ctrlKey||e.metaKey||e.shiftKey||!this.currentTableNode)&&(!this.selection.isInsideList&&!this.selection.isInsideCodeBlock&&(e.preventDefault(),this.#ea()&&this.#ta()?this.#Xl():this.#ea()?this.#Yl():this.#Gl(),!0))}}var SC={"insert-row-before":'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.86804e-07 15C8.29055e-07 15.8284 0.671574 16.5 1.5 16.5H15L15.1533 16.4922C15.8593 16.4205 16.4205 15.8593 16.4922 15.1533L16.5 15V4.5L16.4922 4.34668C16.4154 3.59028 15.7767 3 15 3H13.5L13.5 4.5H15V9H1.5L1.5 4.5L3 4.5V3H1.5C0.671574 3 1.20956e-06 3.67157 1.24577e-06 4.5L7.86804e-07 15ZM15 10.5V15H1.5L1.5 10.5H15Z"/>\n <path d="M4.5 4.5H7.5V7.5H9V4.5H12L12 3L9 3V6.55671e-08L7.5 0V3L4.5 3V4.5Z"/>\n </svg>',"insert-row-after":'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.86804e-07 13.5C7.50592e-07 14.3284 0.671574 15 1.5 15H3V13.5H1.5L1.5 9L15 9V13.5H13.5V15H15C15.7767 15 16.4154 14.4097 16.4922 13.6533L16.5 13.5V3L16.4922 2.84668C16.4205 2.14069 15.8593 1.57949 15.1533 1.50781L15 1.5L1.5 1.5C0.671574 1.5 1.28803e-06 2.17157 1.24577e-06 3L7.86804e-07 13.5ZM15 3V7.5L1.5 7.5L1.5 3L15 3Z"/>\n <path d="M7.5 15V18H9V15H12V13.5H9V10.5H7.5V13.5H4.5V15H7.5Z"/>\n </svg>',"delete-row":'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M16.4922 12.1533C16.4154 12.9097 15.7767 13.5 15 13.5L12 13.5V12H15V6L1.5 6L1.5 12H4.5V13.5H1.5C0.723337 13.5 0.0846104 12.9097 0.00781328 12.1533L7.86804e-07 12L1.04907e-06 6C1.17362e-06 5.22334 0.590278 4.58461 1.34668 4.50781L1.5 4.5L15 4.5C15.8284 4.5 16.5 5.17157 16.5 6V12L16.4922 12.1533Z"/>\n <path d="M10.3711 15.9316L8.25 13.8096L6.12793 15.9316L5.06738 14.8711L7.18945 12.75L5.06738 10.6289L6.12793 9.56836L8.25 11.6895L10.3711 9.56836L11.4316 10.6289L9.31055 12.75L11.4316 14.8711L10.3711 15.9316Z"/>\n </svg>',"toggle-row":'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.00781328 13.6533C0.0846108 14.4097 0.723337 15 1.5 15L15 15L15.1533 14.9922C15.8593 14.9205 16.4205 14.3593 16.4922 13.6533L16.5 13.5V4.5L16.4922 4.34668C16.4205 3.64069 15.8593 3.07949 15.1533 3.00781L15 3L1.5 3C0.671574 3 1.24863e-06 3.67157 1.18021e-06 4.5L7.86804e-07 13.5L0.00781328 13.6533ZM15 9V13.5L1.5 13.5L1.5 9L15 9Z"/>\n </svg>',"insert-column-before":'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 0C3.67157 0 3 0.671573 3 1.5V3H4.5V1.5H9V15H4.5V13.5H3V15C3 15.7767 3.59028 16.4154 4.34668 16.4922L4.5 16.5H15L15.1533 16.4922C15.8593 16.4205 16.4205 15.8593 16.4922 15.1533L16.5 15V1.5C16.5 0.671573 15.8284 6.03989e-09 15 0H4.5ZM15 15H10.5V1.5H15V15Z"/>\n <path d="M3 7.5H0V9H3V12H4.5V9H7.5V7.5H4.5V4.5H3V7.5Z"/>\n </svg>',"insert-column-after":'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 0C14.3284 0 15 0.671573 15 1.5V3H13.5V1.5H9V15H13.5V13.5H15V15C15 15.7767 14.4097 16.4154 13.6533 16.4922L13.5 16.5H3L2.84668 16.4922C2.14069 16.4205 1.57949 15.8593 1.50781 15.1533L1.5 15V1.5C1.5 0.671573 2.17157 6.03989e-09 3 0H13.5ZM3 15H7.5V1.5H3V15Z"/>\n <path d="M15 7.5H18V9H15V12H13.5V9H10.5V7.5H13.5V4.5H15V7.5Z"/>\n </svg>',"delete-column":'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M12.1533 0.0078125C12.9097 0.0846097 13.5 0.723336 13.5 1.5V4.5H12V1.5H6V15H12V12H13.5V15C13.5 15.7767 12.9097 16.4154 12.1533 16.4922L12 16.5H6C5.22334 16.5 4.58461 15.9097 4.50781 15.1533L4.5 15V1.5C4.5 0.671573 5.17157 2.41596e-08 6 0H12L12.1533 0.0078125Z"/>\n <path d="M15.9316 6.12891L13.8105 8.24902L15.9326 10.3711L14.8711 11.4316L12.75 9.31055L10.6289 11.4316L9.56738 10.3711L11.6885 8.24902L9.56836 6.12891L10.6289 5.06836L12.75 7.18848L14.8711 5.06836L15.9316 6.12891Z"/>\n </svg>',"toggle-column":'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13.6533 17.9922C14.4097 17.9154 15 17.2767 15 16.5L15 3L14.9922 2.84668C14.9205 2.14069 14.3593 1.57949 13.6533 1.50781L13.5 1.5L4.5 1.5L4.34668 1.50781C3.59028 1.58461 3 2.22334 3 3L3 16.5C3 17.2767 3.59028 17.9154 4.34668 17.9922L4.5 18L13.5 18L13.6533 17.9922ZM9 3L13.5 3L13.5 16.5L9 16.5L9 3Z"/>\n </svg>',"delete-table":'<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">\n <path d="M11.2041 1.01074C12.2128 1.113 13 1.96435 13 3V4H15L15.1025 4.00488C15.6067 4.05621 16 4.48232 16 5C16 5.55228 15.5523 6 15 6H14.8457L14.1416 15.1533C14.0614 16.1953 13.1925 17 12.1475 17H5.85254L5.6582 16.9902C4.76514 16.9041 4.03607 16.2296 3.88184 15.3457L3.8584 15.1533L3.1543 6H3C2.44772 6 2 5.55228 2 5C2 4.44772 2.44772 4 3 4H5V3C5 1.89543 5.89543 1 7 1H11L11.2041 1.01074ZM5.85254 15H12.1475L12.8398 6H5.16016L5.85254 15ZM7 4H11V3H7V4Z"/>\n </svg>'};class vC extends HTMLElement{#e=new Lc;connectedCallback(){this.tableController=new xC(this.#oe),this.classList.add("lexxy-floating-controls"),this.role="toolbar",this.#ee(),this.#wl(),this.#oa(),this.#sa()}disconnectedCallback(){this.dispose()}dispose(){this.#e.dispose(),this.tableController?.destroy(),this.tableController=null}get#se(){return this.#oe.editor}get#oe(){return this.closest("lexxy-editor")}get#la(){return Array.from(this.querySelectorAll("button, details > summary"))}#ee(){this.innerHTML="",this.appendChild(this.#aa()),this.appendChild(this.#ca()),this.appendChild(this.#ua()),this.#e.track(Ac(this,"keydown",this.#da))}#ha(e,t,n){const r=Ic("div",{className:`lexxy-floating-controls__group lexxy-table-control lexxy-table-control--${e}`}),i=this.#ae(`Add ${e}`,{action:"insert",childType:e,direction:"after"},"+"),o=this.#ae(`Remove ${e}`,{action:"delete",childType:e},"−"),s=Ic("details",{className:"lexxy-table-control__more-menu"});s.setAttribute("name","lexxy-dropdown"),s.tabIndex=-1;const l=Ic("summary",{},`_ ${e}s`);return t(l),s.appendChild(l),s.appendChild(n),r.appendChild(o),r.appendChild(s),r.appendChild(i),r}#aa(){return this.#ha("row",(e=>{this.rowCount=e}),this.#ga("row"))}#ca(){return this.#ha("column",(e=>{this.columnCount=e}),this.#ga("column"))}#ga(e){const t=Ic("div",{className:"lexxy-floating-controls__group lexxy-table-control__more-menu-details"}),n=this.#ae(`Add ${e} before`,{action:"insert",childType:e,direction:"before"}),r=this.#ae(`Add ${e} after`,{action:"insert",childType:e,direction:"after"}),i=this.#ae(`Toggle ${e} style`,{action:"toggle",childType:e}),o=this.#ae(`Remove ${e}`,{action:"delete",childType:e});return t.appendChild(n),t.appendChild(r),t.appendChild(i),t.appendChild(o),t}#ua(){const e=Ic("div",{className:"lexxy-table-control lexxy-floating-controls__group"}),t=this.#ae("Delete this table?",{action:"delete",childType:"table"});return t.classList.add("lexxy-table-control__button--delete-table"),e.appendChild(t),this.deleteContainer=e,e}#ae(e,t={},n=this.#pa(t)){const r=Ic("button",{className:"lexxy-table-control__button","aria-label":e,type:"button"});return r.tabIndex=-1,r.innerHTML=`${n} <span>${e}</span>`,r.dataset.action=t.action,r.dataset.childType=t.childType,r.dataset.direction=t.direction,r.addEventListener("click",(()=>this.#fa(t))),r.addEventListener("mouseover",(()=>this.#ma())),r.addEventListener("focus",(()=>this.#ma())),r.addEventListener("mouseout",(()=>this.#ma())),r}#sa(){this.#e.track(this.#se.registerCommand(An,this.#ya,3))}#ya=e=>!(!this.#ba||!e.altKey||"F10"!==e.key)&&(e.preventDefault(),this.#la[0]?.focus({focusVisible:!0}),!0);get#ba(){return null!=this.tableController?.currentTableNodeKey}#da=e=>{"Escape"===e.key?this.#_a():$c(this.#la,e)};#_a(){const e=this.tableController.currentCell;e&&(this.#se.update((()=>{e.select(),this.#se.focus()})),this.#Ca())}async#ma(){await Uc(),this.#xa();const e=this.querySelector("button:hover, button:focus");if(!e)return;const t={action:e.dataset.action,childType:e.dataset.childType,direction:e.dataset.direction};let n=null;switch(t.childType){case"row":n=this.tableController.currentRowCells;break;case"column":n=this.tableController.currentColumnCells;break;case"table":n=this.tableController.tableRows}n&&n.forEach((e=>{const n=this.#se.getElementByKey(e.getKey());n&&(n.classList.toggle($f.tableCellHighlight,!0),Object.assign(n.dataset,t))}))}#oa(){this.#e.track(this.#se.registerUpdateListener((()=>{this.#se.getRootElement()&&this.tableController.updateSelectedTable()?this.#Ml():this.#wl()})))}#fa(e){this.tableController.executeTableCommand(e),this.#Ca()}#Ml(){this.#Sa(),this.style.display="flex",this.#va(),this.#wa(),this.#ma()}#wl(){this.style.display="none",this.#xa()}#Ca(){this.#Sa(),this.#va(),this.#wa(),this.#ma()}#wa(){this.querySelector("details[open]")?.removeAttribute("open")}#Sa(){const e=this.tableController.currentTableNode;if(!e)return;const t=this.#se.getElementByKey(e.getKey());if(!t)return;const n=t.getBoundingClientRect(),r=this.#oe.getBoundingClientRect(),i=n.top-r.top,o=(n.left+n.right)/2-r.left;this.style.top=`${i}px`,this.style.left=`${o}px`}#va(){const e=this.tableController.currentTableNode;if(!e)return;const t=py(this.#se,e);if(!t)return;const n=t.rows,r=t.columns;this.rowCount.textContent=`${n} row${1===n?"":"s"}`,this.columnCount.textContent=`${r} column${1===r?"":"s"}`}#ka(){const e=this.tableController.currentCell;if(!e)return;const t=this.#se.getElementByKey(e.getKey());t&&t.classList.add($f.tableCellFocus)}#xa(){this.#oe.querySelectorAll(`.${$f.tableCellFocus}`)?.forEach((e=>{e.classList.remove($f.tableCellFocus)})),this.#oe.querySelectorAll(`.${$f.tableCellHighlight}`)?.forEach((e=>{e.classList.remove($f.tableCellHighlight),e.removeAttribute("data-action"),e.removeAttribute("data-child-type"),e.removeAttribute("data-direction")})),this.#ka()}#pa(e){const{action:t,childType:n}=e,r=[t,n,"insert"==t?e.direction:null].filter(Boolean).join("-");return SC[r]}}function wC(e=document){e.querySelectorAll("pre[data-language]:not([data-highlighted])").forEach((e=>{kC(e)}))}function kC(e){if("true"===e.dataset.highlighted)return;const t=e.getAttribute("data-language"),n=s.languages?.[t];if(!n)return;const{code:r,highlights:i}=function(e){const t=e.querySelector("code")||e,n=[];let r="";function i(e){if(e.nodeType===Node.TEXT_NODE)r+=e.textContent;else if(e.nodeType===Node.ELEMENT_NODE)if("BR"===e.tagName)r+="\n";else if("MARK"===e.tagName){const t=r.length;for(const t of e.childNodes)i(t);const o=function(e){const t=[];e.style?.color&&t.push(`color: ${e.style.color};`);e.style?.backgroundColor&&t.push(`background-color: ${e.style.backgroundColor};`);return t.length>0?t.join(" "):null}(e);o&&n.push({start:t,end:r.length,style:o})}else for(const t of e.childNodes)i(t)}for(const e of t.childNodes)i(e);return{code:r,highlights:n}}(e),o=s.highlight(r,n,t);e.innerHTML=o,i.length>0&&function(e,t){for(const{start:n,end:r,style:i}of t)EC(e,n,r,i)}(e,i),e.dataset.highlighted="true"}function EC(e,t,n,r){const i=function(e){const t=[];let n=0;const r=document.createTreeWalker(e,4);let i;for(;i=r.nextNode();){const e=i.textContent.length;t.push({node:i,start:n,end:n+e}),n+=e}return t}(e);for(let e=i.length-1;e>=0;e--){const{node:o,start:s,end:l}=i[e],a=Math.max(t,s),c=Math.min(n,l);if(a>=c)continue;const u=a-s,d=c-s,h=o.textContent,g=o.parentNode,p=document.createElement("mark");p.setAttribute("style",r),p.textContent=h.slice(u,d),d<h.length&&g.insertBefore(document.createTextNode(h.slice(d)),o.nextSibling),g.insertBefore(p,o.nextSibling),u>0?o.textContent=h.slice(0,u):g.removeChild(o)}}class TC{frozenLinkKey=null;constructor(e){this.editorElement=e,this.editorContentElement=e.editorContentElement}dispatchAttributesChange(e,t,n,r){Mc(this.editorElement,"lexxy:attributes-change",{attributes:e,link:t?{href:t}:null,highlight:n,headingTag:r})}dispatchEditorInitialized(e){Mc(this.editorElement,"lexxy:editor-initialized",e)}freeze(){let e=null;this.editorElement.editor?.getEditorState().read((()=>{const t=to();if(!Di(t))return;const n=nu(t.anchor.getNode(),id);n&&(e=n.getKey())})),this.frozenLinkKey=e,this.editorContentElement.contentEditable="false"}thaw(){this.editorContentElement.contentEditable="true"}unlinkFrozenNode(){const e=this.frozenLinkKey;if(!e)return!1;const t=Ps(e);if(!ld(t))return this.frozenLinkKey=null,!1;const n=t.getChildren();for(const e of n)t.insertBefore(e);t.remove();const r=this.#Ea(n),i=this.#Ta(n);if(r&&i){const e=to();Di(e)&&(e.anchor.set(r.getKey(),0,"text"),e.focus.set(i.getKey(),i.getTextContent().length,"text"))}return this.frozenLinkKey=null,!0}#Ea(e){for(const t of e){if(Ti(t))return t;if(Ko(t)){const e=this.#Ea(t.getChildren());if(e)return e}}return null}#Ta(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(Ti(n))return n;if(Ko(n)){const e=this.#Ta(n.getChildren());if(e)return e}}return null}}const NC=Bg.configure;setTimeout((function(){const e={"lexxy-toolbar":Kc,"lexxy-toolbar-dropdown":Wc,"lexxy-heading-dropdown":qc,"lexxy-highlight-dropdown":Zc,"lexxy-link-dropdown":fd,"lexxy-editor":dC,"lexxy-prompt":bC,"lexxy-code-language-picker":_C,"lexxy-node-delete-button":CC,"lexxy-table-tools":vC};Object.entries(e).forEach((([e,t])=>{customElements.define(e,t)}))}),0);export{Cp as $createActionTextAttachmentNode,cb as $createActionTextAttachmentUploadNode,xp as $isActionTextAttachmentNode,Ug as $isCustomActionTextAttachmentNode,_p as ActionTextAttachmentNode,lb as ActionTextAttachmentUploadNode,Kg as CustomActionTextAttachmentNode,Jg as Extension,Mf as HorizontalDividerNode,sc as Lexical,TC as NativeAdapter,mp as REWRITE_HISTORY_COMMAND,NC as configure,wC as highlightCode,kC as highlightElement};
|