w(node,'a11y_aria_activedescendant_has_tabindex',`An element with an aria-activedescendant attribute should have a tabindex value\nhttps://svelte.dev/e/a11y_aria_activedescendant_has_tabindex`);
w(node,'a11y_aria_activedescendant_has_tabindex',`${`An element with an aria-activedescendant attribute should have a tabindex value`}\nhttps://svelte.dev/e/${'a11y_aria_activedescendant_has_tabindex'}`);
}
/**
*`<%name%>`shouldnothavearia-*attributes
*@param{null|NodeLike}node
*@param{string}name
*@param{{"name":string}}values
*/
exportfunctiona11y_aria_attributes(node,name){
w(node,'a11y_aria_attributes',`\`<${name}>\` should not have aria-* attributes\nhttps://svelte.dev/e/a11y_aria_attributes`);
exportfunctiona11y_aria_attributes(node,values){
w(node,'a11y_aria_attributes',`${`\`<${values.name}>\` should not have aria-* attributes`}\nhttps://svelte.dev/e/${'a11y_aria_attributes'}`);
w(node,'a11y_autocomplete_valid',`'${value}' is an invalid value for 'autocomplete' on \`<input type="${type}">\`\nhttps://svelte.dev/e/a11y_autocomplete_valid`);
w(node,'a11y_autocomplete_valid',`${`'${values.value}' is an invalid value for 'autocomplete' on \`<input type="${values.type}">\``}\nhttps://svelte.dev/e/${'a11y_autocomplete_valid'}`);
}
/**
*Avoidusingautofocus
*@param{null|NodeLike}node
*@param{void}values
*/
exportfunctiona11y_autofocus(node) {
w(node,'a11y_autofocus',`Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus`);
exportfunctiona11y_autofocus(node, values) {
w(node,'a11y_autofocus',`${`Avoid using autofocus`}\nhttps://svelte.dev/e/${'a11y_autofocus'}`);
w(node,'a11y_click_events_have_key_events',`Visible, non-interactive element \`<${element}>\` with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as \`<button type="button">\` or \`<a>\` might be more appropriate\nhttps://svelte.dev/e/a11y_click_events_have_key_events`);
w(node,'a11y_click_events_have_key_events',`${`Visible, non-interactive element \`<${values.element}>\` with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as \`<button type="button">\` or \`<a>\` might be more appropriate`}\nhttps://svelte.dev/e/${'a11y_click_events_have_key_events'}`);
w(node,'a11y_consider_explicit_label',`Buttons and links should either contain text or have an \`aria-label\`, \`aria-labelledby\` or \`title\` attribute\nhttps://svelte.dev/e/a11y_consider_explicit_label`);
w(node,'a11y_consider_explicit_label',`${`Buttons and links should either contain text or have an \`aria-label\`, \`aria-labelledby\` or \`title\` attribute`}\nhttps://svelte.dev/e/${'a11y_consider_explicit_label'}`);
w(node,'a11y_img_redundant_alt',`${`Screenreaders already announce \`<img>\` elements as an image`}\nhttps://svelte.dev/e/${'a11y_img_redundant_alt'}`);
w(node,'a11y_incorrect_aria_attribute_type',`${`The value of '${values.attribute}' must be a ${values.type}`}\nhttps://svelte.dev/e/${'a11y_incorrect_aria_attribute_type'}`);
w(node,'a11y_incorrect_aria_attribute_type_boolean',`The value of '${attribute}' must be either 'true' or 'false'. It cannot be empty\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_boolean`);
w(node,'a11y_incorrect_aria_attribute_type_boolean',`${`The value of '${values.attribute}' must be either 'true' or 'false'. It cannot be empty`}\nhttps://svelte.dev/e/${'a11y_incorrect_aria_attribute_type_boolean'}`);
w(node,'a11y_incorrect_aria_attribute_type_id',`The value of '${attribute}' must be a string that represents a DOM element ID\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_id`);
w(node,'a11y_incorrect_aria_attribute_type_id',`${`The value of '${values.attribute}' must be a string that represents a DOM element ID`}\nhttps://svelte.dev/e/${'a11y_incorrect_aria_attribute_type_id'}`);
w(node,'a11y_incorrect_aria_attribute_type_idlist',`The value of '${attribute}' must be a space-separated list of strings that represent DOM element IDs\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_idlist`);
w(node,'a11y_incorrect_aria_attribute_type_idlist',`${`The value of '${values.attribute}' must be a space-separated list of strings that represent DOM element IDs`}\nhttps://svelte.dev/e/${'a11y_incorrect_aria_attribute_type_idlist'}`);
w(node,'a11y_incorrect_aria_attribute_type_integer',`The value of '${attribute}' must be an integer\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_integer`);
w(node,'a11y_incorrect_aria_attribute_type_integer',`${`The value of '${values.attribute}' must be an integer`}\nhttps://svelte.dev/e/${'a11y_incorrect_aria_attribute_type_integer'}`);
w(node,'a11y_incorrect_aria_attribute_type_token',`The value of '${attribute}' must be exactly one of ${values}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_token`);
w(node,'a11y_incorrect_aria_attribute_type_token',`${`The value of '${values.attribute}' must be exactly one of ${values.values}`}\nhttps://svelte.dev/e/${'a11y_incorrect_aria_attribute_type_token'}`);
w(node,'a11y_incorrect_aria_attribute_type_tokenlist',`The value of '${attribute}' must be a space-separated list of one or more of ${values}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tokenlist`);
w(node,'a11y_incorrect_aria_attribute_type_tokenlist',`${`The value of '${values.attribute}' must be a space-separated list of one or more of ${values.values}`}\nhttps://svelte.dev/e/${'a11y_incorrect_aria_attribute_type_tokenlist'}`);
w(node,'a11y_incorrect_aria_attribute_type_tristate',`The value of '${attribute}' must be exactly one of true, false, or mixed\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tristate`);
w(node,'a11y_incorrect_aria_attribute_type_tristate',`${`The value of '${values.attribute}' must be exactly one of true, false, or mixed`}\nhttps://svelte.dev/e/${'a11y_incorrect_aria_attribute_type_tristate'}`);
w(node,'a11y_interactive_supports_focus',`Elements with the '${role}' interactive role must have a tabindex value\nhttps://svelte.dev/e/a11y_interactive_supports_focus`);
w(node,'a11y_interactive_supports_focus',`${`Elements with the '${values.role}' interactive role must have a tabindex value`}\nhttps://svelte.dev/e/${'a11y_interactive_supports_focus'}`);
w(node,'a11y_invalid_attribute',`${`'${values.href_value}' is not a valid ${values.href_attribute} attribute`}\nhttps://svelte.dev/e/${'a11y_invalid_attribute'}`);
w(node,'a11y_label_has_associated_control',`${`A form label must be associated with a control`}\nhttps://svelte.dev/e/${'a11y_label_has_associated_control'}`);
w(node,'a11y_media_has_caption',`${`\`<video>\` elements must have a \`<track kind="captions">\``}\nhttps://svelte.dev/e/${'a11y_media_has_caption'}`);
}
/**
*`<%name%>`shouldnothaveroleattribute
*@param{null|NodeLike}node
*@param{string}name
*@param{{"name":string}}values
*/
exportfunctiona11y_misplaced_role(node,name){
w(node,'a11y_misplaced_role',`\`<${name}>\` should not have role attribute\nhttps://svelte.dev/e/a11y_misplaced_role`);
exportfunctiona11y_misplaced_role(node,values){
w(node,'a11y_misplaced_role',`${`\`<${values.name}>\` should not have role attribute`}\nhttps://svelte.dev/e/${'a11y_misplaced_role'}`);
w(node,'a11y_missing_attribute',`${`\`<${values.name}>\` element should have ${values.article}${values.sequence} attribute`}\nhttps://svelte.dev/e/${'a11y_missing_attribute'}`);
}
/**
*`<%name%>`elementshouldcontaintext
*@param{null|NodeLike}node
*@param{string}name
*@param{{"name":string}}values
*/
exportfunctiona11y_missing_content(node,name){
w(node,'a11y_missing_content',`\`<${name}>\` element should contain text\nhttps://svelte.dev/e/a11y_missing_content`);
exportfunctiona11y_missing_content(node,values){
w(node,'a11y_missing_content',`${`\`<${values.name}>\` element should contain text`}\nhttps://svelte.dev/e/${'a11y_missing_content'}`);
w(node,'a11y_mouse_events_have_key_events',`'${event}' event must be accompanied by '${accompanied_by}' event\nhttps://svelte.dev/e/a11y_mouse_events_have_key_events`);
w(node,'a11y_mouse_events_have_key_events',`${`'${values.event}' event must be accompanied by '${values.accompanied_by}' event`}\nhttps://svelte.dev/e/${'a11y_mouse_events_have_key_events'}`);
}
/**
*Abstractrole'%role%'isforbidden
*@param{null|NodeLike}node
*@param{string}role
*@param{{"role":string}}values
*/
exportfunctiona11y_no_abstract_role(node,role){
w(node,'a11y_no_abstract_role',`Abstract role '${role}' is forbidden\nhttps://svelte.dev/e/a11y_no_abstract_role`);
exportfunctiona11y_no_abstract_role(node,values){
w(node,'a11y_no_abstract_role',`${`Abstract role '${values.role}' is forbidden`}\nhttps://svelte.dev/e/${'a11y_no_abstract_role'}`);
w(node,'a11y_no_interactive_element_to_noninteractive_role',`\`<${element}>\` cannot have role '${role}'\nhttps://svelte.dev/e/a11y_no_interactive_element_to_noninteractive_role`);
w(node,'a11y_no_interactive_element_to_noninteractive_role',`${`\`<${values.element}>\` cannot have role '${values.role}'`}\nhttps://svelte.dev/e/${'a11y_no_interactive_element_to_noninteractive_role'}`);
w(node,'a11y_no_noninteractive_element_interactions',`Non-interactive element \`<${element}>\` should not be assigned mouse or keyboard event listeners\nhttps://svelte.dev/e/a11y_no_noninteractive_element_interactions`);
w(node,'a11y_no_noninteractive_element_interactions',`${`Non-interactive element \`<${values.element}>\` should not be assigned mouse or keyboard event listeners`}\nhttps://svelte.dev/e/${'a11y_no_noninteractive_element_interactions'}`);
w(node,'a11y_no_noninteractive_element_to_interactive_role',`Non-interactive element \`<${element}>\` cannot have interactive role '${role}'\nhttps://svelte.dev/e/a11y_no_noninteractive_element_to_interactive_role`);
w(node,'a11y_no_noninteractive_element_to_interactive_role',`${`Non-interactive element \`<${values.element}>\` cannot have interactive role '${values.role}'`}\nhttps://svelte.dev/e/${'a11y_no_noninteractive_element_to_interactive_role'}`);
w(node,'a11y_no_noninteractive_tabindex',`noninteractive element cannot have nonnegative tabIndex value\nhttps://svelte.dev/e/a11y_no_noninteractive_tabindex`);
w(node,'a11y_no_noninteractive_tabindex',`${`noninteractive element cannot have nonnegative tabIndex value`}\nhttps://svelte.dev/e/${'a11y_no_noninteractive_tabindex'}`);
}
/**
*Redundantrole'%role%'
*@param{null|NodeLike}node
*@param{string}role
*@param{{"role":string}}values
*/
exportfunctiona11y_no_redundant_roles(node,role){
w(node,'a11y_no_redundant_roles',`Redundant role '${role}'\nhttps://svelte.dev/e/a11y_no_redundant_roles`);
w(node,'a11y_no_static_element_interactions',`\`<${element}>\` with a ${handler} handler must have an ARIA role\nhttps://svelte.dev/e/a11y_no_static_element_interactions`);
w(node,'a11y_no_static_element_interactions',`${`\`<${values.element}>\` with a ${values.handler} handler must have an ARIA role`}\nhttps://svelte.dev/e/${'a11y_no_static_element_interactions'}`);
w(node,'a11y_role_has_required_aria_props',`Elements with the ARIA role "${role}" must have the following attributes defined: ${props}\nhttps://svelte.dev/e/a11y_role_has_required_aria_props`);
w(node,'a11y_role_has_required_aria_props',`${`Elements with the ARIA role "${values.role}" must have the following attributes defined: ${values.props}`}\nhttps://svelte.dev/e/${'a11y_role_has_required_aria_props'}`);
w(node,'a11y_role_supports_aria_props',`The attribute '${attribute}' is not supported by the role '${role}'\nhttps://svelte.dev/e/a11y_role_supports_aria_props`);
w(node,'a11y_role_supports_aria_props',`${`The attribute '${values.attribute}' is not supported by the role '${values.role}'`}\nhttps://svelte.dev/e/${'a11y_role_supports_aria_props'}`);
w(node,'a11y_role_supports_aria_props_implicit',`The attribute '${attribute}' is not supported by the role '${role}'. This role is implicit on the element \`<${name}>\`\nhttps://svelte.dev/e/a11y_role_supports_aria_props_implicit`);
w(node,'a11y_role_supports_aria_props_implicit',`${`The attribute '${values.attribute}' is not supported by the role '${values.role}'. This role is implicit on the element \`<${values.name}>\``}\nhttps://svelte.dev/e/${'a11y_role_supports_aria_props_implicit'}`);
w(node,'a11y_unknown_aria_attribute',`${(values?.suggestion!==undefined?`Unknown aria attribute 'aria-${values.attribute}'. Did you mean '${values.suggestion}'?`:`Unknown aria attribute 'aria-${values.attribute}'`)}\nhttps://svelte.dev/e/${'a11y_unknown_aria_attribute'}`);
?`Unknown role '${role}'. Did you mean '${suggestion}'?`
:`Unknown role '${role}'`}\nhttps://svelte.dev/e/a11y_unknown_role`);
exportfunctiona11y_unknown_role(node,values){
w(node,'a11y_unknown_role',`${(values?.suggestion!==undefined?`Unknown role '${values.role}'. Did you mean '${values.suggestion}'?`:`Unknown role '${values.role}'`)}\nhttps://svelte.dev/e/${'a11y_unknown_role'}`);
w(node,'bidirectional_control_characters',`A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences\nhttps://svelte.dev/e/bidirectional_control_characters`);
w(node,'bidirectional_control_characters',`${`A bidirectional control character was detected in your code. These characters can be used to alter the visual direction of your code and could have unintended consequences`}\nhttps://svelte.dev/e/${'bidirectional_control_characters'}`);
w(node,'legacy_code',`\`${code}\` is no longer valid — please use \`${suggestion}\` instead\nhttps://svelte.dev/e/legacy_code`);
exportfunctionlegacy_code(node,values){
w(node,'legacy_code',`${`\`${values.code}\` is no longer valid — please use \`${values.suggestion}\` instead`}\nhttps://svelte.dev/e/${'legacy_code'}`);
?`\`${code}\` is not a recognised code (did you mean \`${suggestion}\`?)`
:`\`${code}\` is not a recognised code`}\nhttps://svelte.dev/e/unknown_code`);
exportfunctionunknown_code(node,values){
w(node,'unknown_code',`${(values?.suggestion!==undefined?`\`${values.code}\` is not a recognised code (did you mean \`${values.suggestion}\`?)`:`\`${values.code}\` is not a recognised code`)}\nhttps://svelte.dev/e/${'unknown_code'}`);
w(node,'options_deprecated_accessors',`The \`accessors\` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_accessors`);
w(node,'options_deprecated_accessors',`${`The \`accessors\` option has been deprecated. It will have no effect in runes mode`}\nhttps://svelte.dev/e/${'options_deprecated_accessors'}`);
w(node,'options_deprecated_immutable',`The \`immutable\` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_immutable`);
w(node,'options_deprecated_immutable',`${`The \`immutable\` option has been deprecated. It will have no effect in runes mode`}\nhttps://svelte.dev/e/${'options_deprecated_immutable'}`);
w(node,'options_missing_custom_element',`The \`customElement\` option is used when generating a custom element. Did you forget the \`customElement: true\` compile option?\nhttps://svelte.dev/e/options_missing_custom_element`);
w(node,'options_missing_custom_element',`${`The \`customElement\` option is used when generating a custom element. Did you forget the \`customElement: true\` compile option?`}\nhttps://svelte.dev/e/${'options_missing_custom_element'}`);
w(node,'options_removed_enable_sourcemap',`The \`enableSourcemap\` option has been removed. Source maps are always generated now, and tooling can choose to ignore them\nhttps://svelte.dev/e/options_removed_enable_sourcemap`);
w(node,'options_removed_enable_sourcemap',`${`The \`enableSourcemap\` option has been removed. Source maps are always generated now, and tooling can choose to ignore them`}\nhttps://svelte.dev/e/${'options_removed_enable_sourcemap'}`);
w(node,'options_removed_hydratable',`The \`hydratable\` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable`);
w(node,'options_removed_hydratable',`${`The \`hydratable\` option has been removed. Svelte components are always hydratable now`}\nhttps://svelte.dev/e/${'options_removed_hydratable'}`);
w(node,'options_removed_loop_guard_timeout',`The \`loopGuardTimeout\` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout`);
w(node,'options_removed_loop_guard_timeout',`${`The \`loopGuardTimeout\` option has been removed`}\nhttps://svelte.dev/e/${'options_removed_loop_guard_timeout'}`);
w(node,'options_renamed_ssr_dom',`\`generate: "dom"\` and \`generate: "ssr"\` options have been renamed to "client" and "server" respectively\nhttps://svelte.dev/e/options_renamed_ssr_dom`);
w(node,'options_renamed_ssr_dom',`${`\`generate: "dom"\` and \`generate: "ssr"\` options have been renamed to "client" and "server" respectively`}\nhttps://svelte.dev/e/${'options_renamed_ssr_dom'}`);
w(node,'custom_element_props_identifier',`Using a rest element or a non-destructured declaration with \`$props()\` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the \`customElement.props\` option.\nhttps://svelte.dev/e/custom_element_props_identifier`);
w(node,'custom_element_props_identifier',`${`Using a rest element or a non-destructured declaration with \`$props()\` means that Svelte can't infer what properties to expose when creating a custom element. Consider destructuring all the props or explicitly specifying the \`customElement.props\` option.`}\nhttps://svelte.dev/e/${'custom_element_props_identifier'}`);
w(node,'export_let_unused',`Component has unused export property '${name}'. If it is for external reference only, please consider using \`export const ${name}\`\nhttps://svelte.dev/e/export_let_unused`);
exportfunctionexport_let_unused(node,values){
w(node,'export_let_unused',`${`Component has unused export property '${values.name}'. If it is for external reference only, please consider using \`export const ${values.name}\``}\nhttps://svelte.dev/e/${'export_let_unused'}`);
w(node,'legacy_component_creation',`Svelte 5 components are no longer classes. Instantiate them using \`mount\` or \`hydrate\` (imported from 'svelte') instead.\nhttps://svelte.dev/e/legacy_component_creation`);
w(node,'legacy_component_creation',`${`Svelte 5 components are no longer classes. Instantiate them using \`mount\` or \`hydrate\` (imported from 'svelte') instead.`}\nhttps://svelte.dev/e/${'legacy_component_creation'}`);
w(node,'non_reactive_update',`\`${name}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates\nhttps://svelte.dev/e/non_reactive_update`);
exportfunctionnon_reactive_update(node,values){
w(node,'non_reactive_update',`${`\`${values.name}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates`}\nhttps://svelte.dev/e/${'non_reactive_update'}`);
w(node,'perf_avoid_inline_class',`Avoid 'new class' — instead, declare the class at the top level scope\nhttps://svelte.dev/e/perf_avoid_inline_class`);
w(node,'perf_avoid_inline_class',`${`Avoid 'new class' — instead, declare the class at the top level scope`}\nhttps://svelte.dev/e/${'perf_avoid_inline_class'}`);
}
/**
*Avoiddeclaringclassesbelowthetoplevelscope
*@param{null|NodeLike}node
*@param{void}values
*/
exportfunctionperf_avoid_nested_class(node) {
w(node,'perf_avoid_nested_class',`Avoid declaring classes below the top level scope\nhttps://svelte.dev/e/perf_avoid_nested_class`);
w(node,'reactive_declaration_invalid_placement',`Reactive declarations only exist at the top level of the instance script\nhttps://svelte.dev/e/reactive_declaration_invalid_placement`);
w(node,'reactive_declaration_invalid_placement',`${`Reactive declarations only exist at the top level of the instance script`}\nhttps://svelte.dev/e/${'reactive_declaration_invalid_placement'}`);
w(node,'reactive_declaration_module_script_dependency',`Reassignments of module-level declarations will not cause reactive statements to update\nhttps://svelte.dev/e/reactive_declaration_module_script_dependency`);
w(node,'reactive_declaration_module_script_dependency',`${`Reassignments of module-level declarations will not cause reactive statements to update`}\nhttps://svelte.dev/e/${'reactive_declaration_module_script_dependency'}`);
w(node,'state_referenced_locally',`This reference only captures the initial value of \`${name}\`. Did you mean to reference it inside a ${type} instead?\nhttps://svelte.dev/e/state_referenced_locally`);
w(node,'state_referenced_locally',`${`This reference only captures the initial value of \`${values.name}\`. Did you mean to reference it inside a ${values.type} instead?`}\nhttps://svelte.dev/e/${'state_referenced_locally'}`);
w(node,'store_rune_conflict',`It looks like you're using the \`$${name}\` rune, but there is a local binding called \`${name}\`. Referencing a local variable with a \`$\` prefix will create a store subscription. Please rename \`${name}\` to avoid the ambiguity\nhttps://svelte.dev/e/store_rune_conflict`);
exportfunctionstore_rune_conflict(node,values){
w(node,'store_rune_conflict',`${`It looks like you're using the \`$${values.name}\` rune, but there is a local binding called \`${values.name}\`. Referencing a local variable with a \`$\` prefix will create a store subscription. Please rename \`${values.name}\` to avoid the ambiguity`}\nhttps://svelte.dev/e/${'store_rune_conflict'}`);
w(node,'attribute_avoid_is',`The "is" attribute is not supported cross-browser and should be avoided\nhttps://svelte.dev/e/attribute_avoid_is`);
exportfunctionattribute_avoid_is(node, values) {
w(node,'attribute_avoid_is',`${`The "is" attribute is not supported cross-browser and should be avoided`}\nhttps://svelte.dev/e/${'attribute_avoid_is'}`);
w(node,'attribute_global_event_reference',`You are referencing \`globalThis.${name}\`. Did you forget to declare a variable with that name?\nhttps://svelte.dev/e/attribute_global_event_reference`);
w(node,'attribute_global_event_reference',`${`You are referencing \`globalThis.${values.name}\`. Did you forget to declare a variable with that name?`}\nhttps://svelte.dev/e/${'attribute_global_event_reference'}`);
w(node,'attribute_illegal_colon',`Attributes should not contain ':' characters to prevent ambiguity with Svelte directives\nhttps://svelte.dev/e/attribute_illegal_colon`);
w(node,'attribute_illegal_colon',`${`Attributes should not contain ':' characters to prevent ambiguity with Svelte directives`}\nhttps://svelte.dev/e/${'attribute_illegal_colon'}`);
w(node,'attribute_invalid_property_name',`'${wrong}' is not a valid HTML attribute. Did you mean '${right}'?\nhttps://svelte.dev/e/attribute_invalid_property_name`);
w(node,'attribute_invalid_property_name',`${`'${values.wrong}' is not a valid HTML attribute. Did you mean '${values.right}'?`}\nhttps://svelte.dev/e/${'attribute_invalid_property_name'}`);
w(node,'attribute_quoted',`Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes\nhttps://svelte.dev/e/attribute_quoted`);
exportfunctionattribute_quoted(node, values) {
w(node,'attribute_quoted',`${`Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes`}\nhttps://svelte.dev/e/${'attribute_quoted'}`);
w(node,'bind_invalid_each_rest',`The rest operator (...) will create a new object and binding '${name}' with the original object will not work\nhttps://svelte.dev/e/bind_invalid_each_rest`);
w(node,'bind_invalid_each_rest',`${`The rest operator (...) will create a new object and binding '${values.name}' with the original object will not work`}\nhttps://svelte.dev/e/${'bind_invalid_each_rest'}`);
w(node,'component_name_lowercase',`\`<${name}>\` will be treated as an HTML element unless it begins with a capital letter\nhttps://svelte.dev/e/component_name_lowercase`);
w(node,'component_name_lowercase',`${`\`<${values.name}>\` will be treated as an HTML element unless it begins with a capital letter`}\nhttps://svelte.dev/e/${'component_name_lowercase'}`);
w(node,'element_implicitly_closed',`This element is implicitly closed by the following \`${tag}\`, which can cause an unexpected DOM structure. Add an explicit \`${closing}\` to avoid surprises.\nhttps://svelte.dev/e/element_implicitly_closed`);
w(node,'element_implicitly_closed',`${`This element is implicitly closed by the following \`${values.tag}\`, which can cause an unexpected DOM structure. Add an explicit \`${values.closing}\` to avoid surprises.`}\nhttps://svelte.dev/e/${'element_implicitly_closed'}`);
w(node,'element_invalid_self_closing_tag',`Self-closing HTML tags for non-void elements are ambiguous — use \`<${name} ...></${name}>\` rather than \`<${name} ... />\`\nhttps://svelte.dev/e/element_invalid_self_closing_tag`);
w(node,'element_invalid_self_closing_tag',`${`Self-closing HTML tags for non-void elements are ambiguous — use \`<${values.name} ...></${values.name}>\` rather than \`<${values.name} ... />\``}\nhttps://svelte.dev/e/${'element_invalid_self_closing_tag'}`);
w(node,'event_directive_deprecated',`Using \`on:${name}\` to listen to the ${name} event is deprecated. Use the event attribute \`on${name}\` instead\nhttps://svelte.dev/e/event_directive_deprecated`);
w(node,'event_directive_deprecated',`${`Using \`on:${values.name}\` to listen to the ${values.name} event is deprecated. Use the event attribute \`on${values.name}\` instead`}\nhttps://svelte.dev/e/${'event_directive_deprecated'}`);
w(node,'node_invalid_placement_ssr',`${message}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning\nhttps://svelte.dev/e/node_invalid_placement_ssr`);
w(node,'node_invalid_placement_ssr',`${`${values.message}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning`}\nhttps://svelte.dev/e/${'node_invalid_placement_ssr'}`);
w(node,'script_context_deprecated',`\`context="module"\` is deprecated, use the \`module\` attribute instead\nhttps://svelte.dev/e/script_context_deprecated`);
w(node,'script_context_deprecated',`${`\`context="module"\` is deprecated, use the \`module\` attribute instead`}\nhttps://svelte.dev/e/${'script_context_deprecated'}`);
w(node,'script_unknown_attribute',`Unrecognised attribute — should be one of \`generics\`, \`lang\` or \`module\`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute`);
w(node,'script_unknown_attribute',`${`Unrecognised attribute — should be one of \`generics\`, \`lang\` or \`module\`. If this exists for a preprocessor, ensure that the preprocessor removes it`}\nhttps://svelte.dev/e/${'script_unknown_attribute'}`);
w(node,'slot_element_deprecated',`Using \`<slot>\` to render parent content is deprecated. Use \`{@render ...}\` tags instead\nhttps://svelte.dev/e/slot_element_deprecated`);
w(node,'slot_element_deprecated',`${`Using \`<slot>\` to render parent content is deprecated. Use \`{@render ...}\` tags instead`}\nhttps://svelte.dev/e/${'slot_element_deprecated'}`);
w(node,'svelte_component_deprecated',`\`<svelte:component>\` is deprecated in runes mode — components are dynamic by default\nhttps://svelte.dev/e/svelte_component_deprecated`);
w(node,'svelte_component_deprecated',`${`\`<svelte:component>\` is deprecated in runes mode — components are dynamic by default`}\nhttps://svelte.dev/e/${'svelte_component_deprecated'}`);
w(node,'svelte_element_invalid_this',`\`this\` should be an \`{expression}\`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this`);
w(node,'svelte_element_invalid_this',`${`\`this\` should be an \`{expression}\`. Using a string attribute value will cause an error in future versions of Svelte`}\nhttps://svelte.dev/e/${'svelte_element_invalid_this'}`);
}
/**
*`<svelte:self>`isdeprecated—useself-imports(e.g.`import %name% from './%basename%'`)instead
w(node,'svelte_self_deprecated',`\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${name} from './${basename}'\`) instead\nhttps://svelte.dev/e/svelte_self_deprecated`);
w(node,'svelte_self_deprecated',`${`\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${values.name} from './${values.basename}'\`) instead`}\nhttps://svelte.dev/e/${'svelte_self_deprecated'}`);
consterror=newError(`async_derived_orphan\nCannot create a \`$derived(...)\` with an \`await\` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan`);
consterror=newError(`${'async_derived_orphan'}\n${`Cannot create a \`$derived(...)\` with an \`await\` expression outside of an effect tree`}\nhttps://svelte.dev/e/${'async_derived_orphan'}`);
consterror=newError(`bind_invalid_checkbox_value\nUsing \`bind:value\` together with a checkbox input is not allowed. Use \`bind:checked\` instead\nhttps://svelte.dev/e/bind_invalid_checkbox_value`);
consterror=newError(`${'bind_invalid_checkbox_value'}\n${`Using \`bind:value\` together with a checkbox input is not allowed. Use \`bind:checked\` instead`}\nhttps://svelte.dev/e/${'bind_invalid_checkbox_value'}`);
consterror=newError(`bind_invalid_export\nComponent ${component} has an export named \`${key}\` that a consumer component is trying to access using \`bind:${key}\`, which is disallowed. Instead, use \`bind:this\` (e.g. \`<${name} bind:this={component} />\`) and then access the property on the bound component instance (e.g. \`component.${key}\`)\nhttps://svelte.dev/e/bind_invalid_export`);
consterror=newError(`${'bind_invalid_export'}\n${`Component ${values.component} has an export named \`${values.key}\` that a consumer component is trying to access using \`bind:${values.key}\`, which is disallowed. Instead, use \`bind:this\` (e.g. \`<${values.name} bind:this={component} />\`) and then access the property on the bound component instance (e.g. \`component.${values.key}\`)`}\nhttps://svelte.dev/e/${'bind_invalid_export'}`);
consterror=newError(`bind_not_bindable\nA component is attempting to bind to a non-bindable property \`${key}\` belonging to ${component} (i.e. \`<${name} bind:${key}={...}>\`). To mark a property as bindable: \`let { ${key} = $bindable() } = $props()\`\nhttps://svelte.dev/e/bind_not_bindable`);
consterror=newError(`${'bind_not_bindable'}\n${`A component is attempting to bind to a non-bindable property \`${values.key}\` belonging to ${values.component} (i.e. \`<${values.name} bind:${values.key}={...}>\`). To mark a property as bindable: \`let { ${values.key} = $bindable() } = $props()\``}\nhttps://svelte.dev/e/${'bind_not_bindable'}`);
consterror=newError(`component_api_changed\nCalling \`${method}\` on a component instance (of ${component}) is no longer valid in Svelte 5\nhttps://svelte.dev/e/component_api_changed`);
consterror=newError(`${'component_api_changed'}\n${`Calling \`${values.method}\` on a component instance (of ${values.component}) is no longer valid in Svelte 5`}\nhttps://svelte.dev/e/${'component_api_changed'}`);
consterror=newError(`component_api_invalid_new\nAttempted to instantiate ${component} with \`new ${name}\`, which is no longer valid in Svelte 5. If this component is not under your control, set the \`compatibility.componentApi\` compiler option to \`4\` to keep it working.\nhttps://svelte.dev/e/component_api_invalid_new`);
consterror=newError(`${'component_api_invalid_new'}\n${`Attempted to instantiate ${values.component} with \`new ${values.name}\`, which is no longer valid in Svelte 5. If this component is not under your control, set the \`compatibility.componentApi\` compiler option to \`4\` to keep it working.`}\nhttps://svelte.dev/e/${'component_api_invalid_new'}`);
?`Keyed each block has duplicate key \`${value}\` at indexes ${a} and ${b}`
:`Keyed each block has duplicate key at indexes ${a} and ${b}`}\nhttps://svelte.dev/e/each_key_duplicate`);
consterror=newError(`${'each_key_duplicate'}\n${(values?.b!==undefined?`Keyed each block has duplicate key \`${values.value}\` at indexes ${values.a} and ${values.b}`:`Keyed each block has duplicate key at indexes ${values.a} and ${values.b}`)}\nhttps://svelte.dev/e/${'each_key_duplicate'}`);
consterror=newError(`each_key_volatile\nKeyed each block has key that is not idempotent — the key for item at index ${index} was \`${a}\` but is now \`${b}\`. Keys must be the same each time for a given item\nhttps://svelte.dev/e/each_key_volatile`);
consterror=newError(`${'each_key_volatile'}\n${`Keyed each block has key that is not idempotent — the key for item at index ${values.index} was \`${values.a}\` but is now \`${values.b}\`. Keys must be the same each time for a given item`}\nhttps://svelte.dev/e/${'each_key_volatile'}`);
consterror=newError(`effect_in_teardown\n\`${rune}\` cannot be used inside an effect cleanup function\nhttps://svelte.dev/e/effect_in_teardown`);
consterror=newError(`${'effect_in_teardown'}\n${`\`${values.rune}\` cannot be used inside an effect cleanup function`}\nhttps://svelte.dev/e/${'effect_in_teardown'}`);
consterror=newError(`effect_in_unowned_derived\nEffect cannot be created inside a \`$derived\` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived`);
consterror=newError(`${'effect_in_unowned_derived'}\n${`Effect cannot be created inside a \`$derived\` value that was not itself created inside an effect`}\nhttps://svelte.dev/e/${'effect_in_unowned_derived'}`);
consterror=newError(`effect_orphan\n\`${rune}\` can only be used inside an effect (e.g. during component initialisation)\nhttps://svelte.dev/e/effect_orphan`);
consterror=newError(`${'effect_orphan'}\n${`\`${values.rune}\` can only be used inside an effect (e.g. during component initialisation)`}\nhttps://svelte.dev/e/${'effect_orphan'}`);
consterror=newError(`effect_pending_outside_reaction\n\`$effect.pending()\` can only be called inside an effect or derived\nhttps://svelte.dev/e/effect_pending_outside_reaction`);
consterror=newError(`${'effect_pending_outside_reaction'}\n${`\`$effect.pending()\` can only be called inside an effect or derived`}\nhttps://svelte.dev/e/${'effect_pending_outside_reaction'}`);
consterror=newError(`effect_update_depth_exceeded\nMaximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state\nhttps://svelte.dev/e/effect_update_depth_exceeded`);
consterror=newError(`${'effect_update_depth_exceeded'}\n${`Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state`}\nhttps://svelte.dev/e/${'effect_update_depth_exceeded'}`);
consterror=newError(`fork_timing\nCannot create a fork inside an effect or when state changes are pending\nhttps://svelte.dev/e/fork_timing`);
consterror=newError(`${'fork_timing'}\n${`Cannot create a fork inside an effect or when state changes are pending`}\nhttps://svelte.dev/e/${'fork_timing'}`);
consterror=newError(`get_abort_signal_outside_reaction\n\`getAbortSignal()\` can only be called inside an effect or derived\nhttps://svelte.dev/e/get_abort_signal_outside_reaction`);
consterror=newError(`${'get_abort_signal_outside_reaction'}\n${`\`getAbortSignal()\` can only be called inside an effect or derived`}\nhttps://svelte.dev/e/${'get_abort_signal_outside_reaction'}`);
consterror=newError(`hydratable_missing_but_required\nExpected to find a hydratable with key \`${key}\` during hydration, but did not.\nhttps://svelte.dev/e/hydratable_missing_but_required`);
consterror=newError(`${'hydratable_missing_but_required'}\n${`Expected to find a hydratable with key \`${values.key}\` during hydration, but did not.`}\nhttps://svelte.dev/e/${'hydratable_missing_but_required'}`);
consterror=newError(`invalid_snippet\nCould not \`{@render}\` snippet due to the expression being \`null\` or \`undefined\`. Consider using optional chaining \`{@render snippet?.()}\`\nhttps://svelte.dev/e/invalid_snippet`);
consterror=newError(`${'invalid_snippet'}\n${`Could not \`{@render}\` snippet due to the expression being \`null\` or \`undefined\`. Consider using optional chaining \`{@render snippet?.()}\``}\nhttps://svelte.dev/e/${'invalid_snippet'}`);
consterror=newError(`lifecycle_legacy_only\n\`${name}(...)\` cannot be used in runes mode\nhttps://svelte.dev/e/lifecycle_legacy_only`);
consterror=newError(`${'lifecycle_legacy_only'}\n${`\`${values.name}(...)\` cannot be used in runes mode`}\nhttps://svelte.dev/e/${'lifecycle_legacy_only'}`);
consterror=newError(`props_invalid_value\nCannot do \`bind:${key}={undefined}\` when \`${key}\` has a fallback value\nhttps://svelte.dev/e/props_invalid_value`);
consterror=newError(`${'props_invalid_value'}\n${`Cannot do \`bind:${values.key}={undefined}\` when \`${values.key}\` has a fallback value`}\nhttps://svelte.dev/e/${'props_invalid_value'}`);
consterror=newError(`props_rest_readonly\nRest element properties of \`$props()\` such as \`${property}\` are readonly\nhttps://svelte.dev/e/props_rest_readonly`);
consterror=newError(`${'props_rest_readonly'}\n${`Rest element properties of \`$props()\` such as \`${values.property}\` are readonly`}\nhttps://svelte.dev/e/${'props_rest_readonly'}`);
consterror=newError(`rune_outside_svelte\nThe \`${rune}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);
consterror=newError(`${'rune_outside_svelte'}\n${`The \`${values.rune}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files`}\nhttps://svelte.dev/e/${'rune_outside_svelte'}`);
consterror=newError(`state_descriptors_fixed\nProperty descriptors defined on \`$state\` objects must contain \`value\` and always be \`enumerable\`, \`configurable\` and \`writable\`.\nhttps://svelte.dev/e/state_descriptors_fixed`);
consterror=newError(`${'state_descriptors_fixed'}\n${`Property descriptors defined on \`$state\` objects must contain \`value\` and always be \`enumerable\`, \`configurable\` and \`writable\`.`}\nhttps://svelte.dev/e/${'state_descriptors_fixed'}`);
consterror=newError(`state_unsafe_mutation\nUpdating state inside \`$derived(...)\`, \`$inspect(...)\` or a template expression is forbidden. If the value should not be reactive, declare it without \`$state\`\nhttps://svelte.dev/e/state_unsafe_mutation`);
consterror=newError(`${'state_unsafe_mutation'}\n${`Updating state inside \`$derived(...)\`, \`$inspect(...)\` or a template expression is forbidden. If the value should not be reactive, declare it without \`$state\``}\nhttps://svelte.dev/e/${'state_unsafe_mutation'}`);
consterror=newError(`svelte_boundary_reset_onerror\nA \`<svelte:boundary>\`\`reset\` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror`);
consterror=newError(`${'svelte_boundary_reset_onerror'}\n${`A \`<svelte:boundary>\`\`reset\` function cannot be called while an error is still being handled`}\nhttps://svelte.dev/e/${'svelte_boundary_reset_onerror'}`);
console.warn(`%c[svelte] assignment_value_stale\n%cAssignment to \`${property}\` property (${location}) will evaluate to the right-hand side, not the value of \`${property}\` following the assignment. This may result in unexpected behaviour.\nhttps://svelte.dev/e/assignment_value_stale`,bold,normal);
console.warn(
`%c[svelte] ${'assignment_value_stale'}\n%c${`Assignment to \`${values.property}\` property (${values.location}) will evaluate to the right-hand side, not the value of \`${values.property}\` following the assignment. This may result in unexpected behaviour.`}\nhttps://svelte.dev/e/${'assignment_value_stale'}`,
console.warn(`%c[svelte] await_reactivity_loss\n%cDetected reactivity loss when reading \`${name}\`. This happens when state is read in an async function after an earlier \`await\`\nhttps://svelte.dev/e/await_reactivity_loss`,bold,normal);
console.warn(
`%c[svelte] ${'await_reactivity_loss'}\n%c${`Detected reactivity loss when reading \`${values.name}\`. This happens when state is read in an async function after an earlier \`await\``}\nhttps://svelte.dev/e/${'await_reactivity_loss'}`,
console.warn(`%c[svelte] await_waterfall\n%cAn async derived, \`${name}\` (${location}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app\nhttps://svelte.dev/e/await_waterfall`,bold,normal);
console.warn(
`%c[svelte] ${'await_waterfall'}\n%c${`An async derived, \`${values.name}\` (${values.location}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app`}\nhttps://svelte.dev/e/${'await_waterfall'}`,
?`\`${binding}\` (${location}) is binding to a non-reactive property`
:`\`${binding}\` is binding to a non-reactive property`}\nhttps://svelte.dev/e/binding_property_non_reactive`,
`%c[svelte] ${'binding_property_non_reactive'}\n%c${(values?.location!==undefined?`\`${values.binding}\` (${values.location}) is binding to a non-reactive property`:`\`${values.binding}\` is binding to a non-reactive property`)}\nhttps://svelte.dev/e/${'binding_property_non_reactive'}`,
console.warn(`%c[svelte] derived_inert\n%cReading a derived belonging to a now-destroyed effect may result in stale values\nhttps://svelte.dev/e/derived_inert`,bold,normal);
console.warn(
`%c[svelte] ${'derived_inert'}\n%c${`Reading a derived belonging to a now-destroyed effect may result in stale values`}\nhttps://svelte.dev/e/${'derived_inert'}`,
console.warn(`%c[svelte] event_handler_invalid\n%c${handler} should be a function. Did you mean to ${suggestion}?\nhttps://svelte.dev/e/event_handler_invalid`,bold,normal);
console.warn(
`%c[svelte] ${'event_handler_invalid'}\n%c${`${values.handler} should be a function. Did you mean to ${values.suggestion}?`}\nhttps://svelte.dev/e/${'event_handler_invalid'}`,
console.warn(`%c[svelte] hydratable_missing_but_expected\n%cExpected to find a hydratable with key \`${key}\` during hydration, but did not.\nhttps://svelte.dev/e/hydratable_missing_but_expected`,bold,normal);
console.warn(
`%c[svelte] ${'hydratable_missing_but_expected'}\n%c${`Expected to find a hydratable with key \`${values.key}\` during hydration, but did not.`}\nhttps://svelte.dev/e/${'hydratable_missing_but_expected'}`,
console.warn(`%c[svelte] hydration_attribute_changed\n%cThe \`${attribute}\` attribute on \`${html}\` changed its value between server and client renders. The client value, \`${value}\`, will be ignored in favour of the server value\nhttps://svelte.dev/e/hydration_attribute_changed`,bold,normal);
console.warn(
`%c[svelte] ${'hydration_attribute_changed'}\n%c${`The \`${values.attribute}\` attribute on \`${values.html}\` changed its value between server and client renders. The client value, \`${values.value}\`, will be ignored in favour of the server value`}\nhttps://svelte.dev/e/${'hydration_attribute_changed'}`,
?`The value of an \`{@html ...}\` block ${location} changed between server and client renders. The client value will be ignored in favour of the server value`
:'The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value'}\nhttps://svelte.dev/e/hydration_html_changed`,
`%c[svelte] ${'hydration_html_changed'}\n%c${(values?.location!==undefined?`The value of an \`{@html ...}\` block ${values.location} changed between server and client renders. The client value will be ignored in favour of the server value`:`The value of an \`{@html ...}\` block changed between server and client renders. The client value will be ignored in favour of the server value`)}\nhttps://svelte.dev/e/${'hydration_html_changed'}`,
?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}`
:'Hydration failed because the initial UI does not match what was rendered on the server'}\nhttps://svelte.dev/e/hydration_mismatch`,
`%c[svelte] ${'hydration_mismatch'}\n%c${(values?.location!==undefined?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${values.location}`:`Hydration failed because the initial UI does not match what was rendered on the server`)}\nhttps://svelte.dev/e/${'hydration_mismatch'}`,
console.warn(`%c[svelte] invalid_raw_snippet_render\n%cThe \`render\` function passed to \`createRawSnippet\` should return HTML for a single element\nhttps://svelte.dev/e/invalid_raw_snippet_render`,bold,normal);
console.warn(
`%c[svelte] ${'invalid_raw_snippet_render'}\n%c${`The \`render\` function passed to \`createRawSnippet\` should return HTML for a single element`}\nhttps://svelte.dev/e/${'invalid_raw_snippet_render'}`,
console.warn(`%c[svelte] legacy_recursive_reactive_block\n%cDetected a migrated \`$:\` reactive block in \`${filename}\` that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.\nhttps://svelte.dev/e/legacy_recursive_reactive_block`,bold,normal);
console.warn(
`%c[svelte] ${'legacy_recursive_reactive_block'}\n%c${`Detected a migrated \`$:\` reactive block in \`${values.filename}\` that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.`}\nhttps://svelte.dev/e/${'legacy_recursive_reactive_block'}`,
console.warn(`%c[svelte] lifecycle_double_unmount\n%cTried to unmount a component that was not mounted\nhttps://svelte.dev/e/lifecycle_double_unmount`,bold,normal);
console.warn(
`%c[svelte] ${'lifecycle_double_unmount'}\n%c${`Tried to unmount a component that was not mounted`}\nhttps://svelte.dev/e/${'lifecycle_double_unmount'}`,
console.warn(`%c[svelte] ownership_invalid_binding\n%c${parent} passed property \`${prop}\` to ${child} with \`bind:\`, but its parent component ${owner} did not declare \`${prop}\` as a binding. Consider creating a binding between ${owner} and ${parent} (e.g. \`bind:${prop}={...}\` instead of \`${prop}={...}\`)\nhttps://svelte.dev/e/ownership_invalid_binding`,bold,normal);
console.warn(
`%c[svelte] ${'ownership_invalid_binding'}\n%c${`${values.parent} passed property \`${values.prop}\` to ${values.child} with \`bind:\`, but its parent component ${values.owner} did not declare \`${values.prop}\` as a binding. Consider creating a binding between ${values.owner} and ${values.parent} (e.g. \`bind:${values.prop}={...}\` instead of \`${values.prop}={...}\`)`}\nhttps://svelte.dev/e/${'ownership_invalid_binding'}`,
console.warn(`%c[svelte] ownership_invalid_mutation\n%cMutating unbound props (\`${name}\`, at ${location}) is strongly discouraged. Consider using \`bind:${prop}={...}\` in ${parent} (or using a callback) instead\nhttps://svelte.dev/e/ownership_invalid_mutation`,bold,normal);
console.warn(
`%c[svelte] ${'ownership_invalid_mutation'}\n%c${`Mutating unbound props (\`${values.name}\`, at ${values.location}) is strongly discouraged. Consider using \`bind:${values.prop}={...}\` in ${values.parent} (or using a callback) instead`}\nhttps://svelte.dev/e/${'ownership_invalid_mutation'}`,
console.warn(`%c[svelte] select_multiple_invalid_value\n%cThe \`value\` property of a \`<select multiple>\` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value`,bold,normal);
console.warn(
`%c[svelte] ${'select_multiple_invalid_value'}\n%c${`The \`value\` property of a \`<select multiple>\` element should be an array, but it received a non-array value. The selection will be kept as is.`}\nhttps://svelte.dev/e/${'select_multiple_invalid_value'}`,
console.warn(`%c[svelte] state_proxy_equality_mismatch\n%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results\nhttps://svelte.dev/e/state_proxy_equality_mismatch`,bold,normal);
console.warn(
`%c[svelte] ${'state_proxy_equality_mismatch'}\n%c${`Reactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${values.operator}\` will produce unexpected results`}\nhttps://svelte.dev/e/${'state_proxy_equality_mismatch'}`,
console.warn(`%c[svelte] svelte_boundary_reset_noop\n%cA \`<svelte:boundary>\`\`reset\` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop`,bold,normal);
console.warn(
`%c[svelte] ${'svelte_boundary_reset_noop'}\n%c${`A \`<svelte:boundary>\`\`reset\` function only resets the boundary the first time it is called`}\nhttps://svelte.dev/e/${'svelte_boundary_reset_noop'}`,
console.warn(`%c[svelte] transition_slide_display\n%cThe \`slide\` transition does not work correctly for elements with \`display: ${value}\`\nhttps://svelte.dev/e/transition_slide_display`,bold,normal);
console.warn(
`%c[svelte] ${'transition_slide_display'}\n%c${`The \`slide\` transition does not work correctly for elements with \`display: ${values.value}\``}\nhttps://svelte.dev/e/${'transition_slide_display'}`,
consterror=newError(`async_local_storage_unavailable\nThe node API \`AsyncLocalStorage\` is not available, but is required to use async server rendering.\nhttps://svelte.dev/e/async_local_storage_unavailable`);
consterror=newError(`${'async_local_storage_unavailable'}\n${`The node API \`AsyncLocalStorage\` is not available, but is required to use async server rendering.`}\nhttps://svelte.dev/e/${'async_local_storage_unavailable'}`);
consterror=newError(`dynamic_element_invalid_tag\n\`<svelte:element this="${tag}">\` is not a valid element name — the element will not be rendered\nhttps://svelte.dev/e/dynamic_element_invalid_tag`);
consterror=newError(`${'dynamic_element_invalid_tag'}\n${`\`<svelte:element this="${values.tag}">\` is not a valid element name — the element will not be rendered`}\nhttps://svelte.dev/e/${'dynamic_element_invalid_tag'}`);
consterror=newError(`html_deprecated\nThe \`html\` property of server render results has been deprecated. Use \`body\` instead.\nhttps://svelte.dev/e/html_deprecated`);
exportfunctionhtml_deprecated(values){
consterror=newError(`${'html_deprecated'}\n${`The \`html\` property of server render results has been deprecated. Use \`body\` instead.`}\nhttps://svelte.dev/e/${'html_deprecated'}`);
consterror=newError(`invalid_csp\n\`csp.nonce\` was set while \`csp.hash\` was \`true\`. These options cannot be used simultaneously.\nhttps://svelte.dev/e/invalid_csp`);
exportfunctioninvalid_csp(values){
consterror=newError(`${'invalid_csp'}\n${`\`csp.nonce\` was set while \`csp.hash\` was \`true\`. These options cannot be used simultaneously.`}\nhttps://svelte.dev/e/${'invalid_csp'}`);
error.name='Svelte error';
throwerror;
}
/**
*The`idPrefix`optioncannotinclude`--`.
*@param{void}values
*@returns{never}
*/
exportfunctioninvalid_id_prefix(){
consterror=newError(`invalid_id_prefix\nThe \`idPrefix\` option cannot include \`--\`.\nhttps://svelte.dev/e/invalid_id_prefix`);
exportfunctioninvalid_id_prefix(values){
consterror=newError(`${'invalid_id_prefix'}\n${`The \`idPrefix\` option cannot include \`--\`.`}\nhttps://svelte.dev/e/${'invalid_id_prefix'}`);
consterror=newError(`lifecycle_function_unavailable\n\`${name}(...)\` is not available on the server\nhttps://svelte.dev/e/lifecycle_function_unavailable`);
consterror=newError(`${'lifecycle_function_unavailable'}\n${`\`${values.name}(...)\` is not available on the server`}\nhttps://svelte.dev/e/${'lifecycle_function_unavailable'}`);
error.name='Svelte error';
throwerror;
}
/**
*Couldnotresolve`render`context.
*@param{void}values
*@returns{never}
*/
exportfunctionserver_context_required(){
consterror=newError(`server_context_required\nCould not resolve \`render\` context.\nhttps://svelte.dev/e/server_context_required`);
exportfunctionserver_context_required(values){
consterror=newError(`${'server_context_required'}\n${`Could not resolve \`render\` context.`}\nhttps://svelte.dev/e/${'server_context_required'}`);
`%c[svelte] unresolved_hydratable\n%cA \`hydratable\` value with key \`${key}\` was created, but at least part of it was not used during the render.
`%c[svelte] ${'unresolved_hydratable'}\n%c${`A \`hydratable\` value with key \`${values.key}\` was created, but at least part of it was not used during the render.
consterror=newError(`experimental_async_required\nCannot use \`${name}(...)\` unless the \`experimental.async\` compiler option is \`true\`\nhttps://svelte.dev/e/experimental_async_required`);
consterror=newError(`${'experimental_async_required'}\n${`Cannot use \`${values.name}(...)\` unless the \`experimental.async\` compiler option is \`true\``}\nhttps://svelte.dev/e/${'experimental_async_required'}`);
consterror=newError(`invalid_default_snippet\nCannot use \`{@render children(...)}\` if the parent component uses \`let:\` directives. Consider using a named snippet instead\nhttps://svelte.dev/e/invalid_default_snippet`);
consterror=newError(`${'invalid_default_snippet'}\n${`Cannot use \`{@render children(...)}\` if the parent component uses \`let:\` directives. Consider using a named snippet instead`}\nhttps://svelte.dev/e/${'invalid_default_snippet'}`);
consterror=newError(`invalid_snippet_arguments\nA snippet function was passed invalid arguments. Snippets should only be instantiated via \`{@render ...}\`\nhttps://svelte.dev/e/invalid_snippet_arguments`);
consterror=newError(`${'invalid_snippet_arguments'}\n${`A snippet function was passed invalid arguments. Snippets should only be instantiated via \`{@render ...}\``}\nhttps://svelte.dev/e/${'invalid_snippet_arguments'}`);
*Aninvariantviolationoccurred,meaningSvelte'sinternalassumptionswereflawed.ThisisabuginSvelte,notyourapp—pleaseopenanissueathttps://github.com/sveltejs/svelte, citing the following message: "%message%"
*@param{string}message
*@param{{"message":string}}values
*@returns{never}
*/
exportfunctioninvariant_violation(message){
exportfunctioninvariant_violation(values){
if(DEV){
consterror=newError(`invariant_violation\nAn invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${message}"\nhttps://svelte.dev/e/invariant_violation`);
consterror=newError(`${'invariant_violation'}\n${`An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${values.message}"`}\nhttps://svelte.dev/e/${'invariant_violation'}`);
consterror=newError(`lifecycle_outside_component\n\`${name}(...)\` can only be used during component initialisation\nhttps://svelte.dev/e/lifecycle_outside_component`);
consterror=newError(`${'lifecycle_outside_component'}\n${`\`${values.name}(...)\` can only be used during component initialisation`}\nhttps://svelte.dev/e/${'lifecycle_outside_component'}`);
consterror=newError(`missing_context\nContext was not set in the current component or any of its ancestors\nhttps://svelte.dev/e/missing_context`);
consterror=newError(`${'missing_context'}\n${`Context was not set in the current component or any of its ancestors`}\nhttps://svelte.dev/e/${'missing_context'}`);
consterror=newError(`set_context_after_init\n\`setContext\` must be called when a component first initializes, not in a subsequent effect or after an \`await\` expression\nhttps://svelte.dev/e/set_context_after_init`);
consterror=newError(`${'set_context_after_init'}\n${`\`setContext\` must be called when a component first initializes, not in a subsequent effect or after an \`await\` expression`}\nhttps://svelte.dev/e/${'set_context_after_init'}`);
consterror=newError(`snippet_without_render_tag\nAttempted to render a snippet without a \`{@render}\` block. This would cause the snippet code to be stringified instead of its content being rendered to the DOM. To fix this, change \`{snippet}\` to \`{@render snippet()}\`.\nhttps://svelte.dev/e/snippet_without_render_tag`);
consterror=newError(`${'snippet_without_render_tag'}\n${`Attempted to render a snippet without a \`{@render}\` block. This would cause the snippet code to be stringified instead of its content being rendered to the DOM. To fix this, change \`{snippet}\` to \`{@render snippet()}\`.`}\nhttps://svelte.dev/e/${'snippet_without_render_tag'}`);
consterror=newError(`store_invalid_shape\n\`${name}\` is not a store with a \`subscribe\` method\nhttps://svelte.dev/e/store_invalid_shape`);
consterror=newError(`${'store_invalid_shape'}\n${`\`${values.name}\` is not a store with a \`subscribe\` method`}\nhttps://svelte.dev/e/${'store_invalid_shape'}`);
consterror=newError(`svelte_element_invalid_this_value\nThe \`this\` prop on \`<svelte:element>\` must be a string, if defined\nhttps://svelte.dev/e/svelte_element_invalid_this_value`);
consterror=newError(`${'svelte_element_invalid_this_value'}\n${`The \`this\` prop on \`<svelte:element>\` must be a string, if defined`}\nhttps://svelte.dev/e/${'svelte_element_invalid_this_value'}`);
console.warn(`%c[svelte] dynamic_void_element_content\n%c\`<svelte:element this="${tag}">\` is a void element — it cannot have content\nhttps://svelte.dev/e/dynamic_void_element_content`,bold,normal);
console.warn(
`%c[svelte] ${'dynamic_void_element_content'}\n%c${`\`<svelte:element this="${values.tag}">\` is a void element — it cannot have content`}\nhttps://svelte.dev/e/${'dynamic_void_element_content'}`,
?`The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
`%c[svelte] ${'state_snapshot_uncloneable'}\n%c${(values?.properties!==undefined?`The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
${properties}`
:'Value cannot be cloned with `$state.snapshot` — the original value was returned'}\nhttps://svelte.dev/e/state_snapshot_uncloneable`,
${values.properties}` : `Valuecannotbeclonedwith\`$state.snapshot\` — the original value was returned`)}\nhttps://svelte.dev/e/${'state_snapshot_uncloneable'}`,