diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml
index 90c43c35..60fa88e5 100644
--- a/.github/workflows/php.yml
+++ b/.github/workflows/php.yml
@@ -19,9 +19,9 @@ jobs:
runs-on: 'ubuntu-latest'
strategy:
matrix:
- php-version: [ '8.2', '8.3' ]
- mysql-version: [ '8.0' ]
- shopware-version: [ 'v6.6.0.0', 'v6.6.1.0', 'v6.6.2.0', 'v6.6.3.0', 'v6.6.4.0' ]
+ php-version: [ '8.1', '8.2' ]
+ mysql-version: [ '5.7', '8.0' ]
+ shopware-version: [ 'v6.5.0.0', 'v6.5.1.0', 'v6.5.2.0', 'v6.5.3.0', 'v6.5.4.0', 'v6.5.5.0', 'v6.5.6.0', 'v6.5.7.3', 'v6.5.8.0' ]
fail-fast: false
max-parallel: 10
services:
diff --git a/composer.json b/composer.json
index 3e09af7d..eea00d18 100644
--- a/composer.json
+++ b/composer.json
@@ -43,7 +43,7 @@
"require": {
"php": "^8.1",
"ratepay/php-library": "^1.8",
- "shopware/core": "~6.6.0",
+ "shopware/core": "~6.5.0",
"ext-simplexml": "*",
"ext-json": "*"
},
diff --git a/src/Resources/app/storefront/dist/storefront/js/rpay-payments.js b/src/Resources/app/storefront/dist/storefront/js/rpay-payments.js
index ba485ecc..83d7d608 100644
--- a/src/Resources/app/storefront/dist/storefront/js/rpay-payments.js
+++ b/src/Resources/app/storefront/dist/storefront/js/rpay-payments.js
@@ -1 +1 @@
-"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["rpay-payments"],{9379:(t,e,i)=>{var n=i(6285),r=i(7906),s=i(8254);let a=null;class l extends n.Z{init(){this._runtimeSelect=this.el.querySelector("#rp-btn-runtime"),this._rateInput=this.el.querySelector("#rp-rate-value"),this._rateButton=this.el.querySelector("#rp-rate-button"),this._resultContainer=this.el.querySelector("#rp-result-container"),this._typeHolder=this.el.querySelector("#rp-calculation-type"),this._valueHolder=this.el.querySelector("#rp-calculation-value"),this._registerEvents()}_registerEvents(){this._runtimeSelect&&this._runtimeSelect.addEventListener("change",this._onSelectRuntime.bind(this)),this._rateInput&&this._rateInput.addEventListener("input",this._onInputRate.bind(this)),this._rateButton&&this._rateButton.addEventListener("click",this._onSubmitRate.bind(this)),this._registerInstallmentPlanEvents()}_registerInstallmentPlanEvents(){this._showInstallmentPlanDetailsButton=this._resultContainer.querySelector("#rp-show-installment-plan-details"),this._hideInstallmentPlanDetailsButton=this._resultContainer.querySelector("#rp-hide-installment-plan-details"),this._installmentPlanDetails=this._resultContainer.querySelectorAll(".rp-installment-plan-details"),this._showInstallmentPlanDetailsButton.addEventListener("click",this._onShowInstallmentPlanDetailsButtonClicked.bind(this)),this._hideInstallmentPlanDetailsButton.addEventListener("click",this._onHideInstallmentPlanDetailsButtonClicked.bind(this))}_onSelectRuntime(){this._fetchInstallmentPlan(this.options.calculationTypeTime,this._runtimeSelect.value)}_onInputRate(){""===this._rateInput.value?this._rateButton.setAttribute("disabled","disabled"):this._rateButton.removeAttribute("disabled")}_onSubmitRate(){this._fetchInstallmentPlan(this.options.calculationTypeRate,this._rateInput.value)}_onShowInstallmentPlanDetailsButtonClicked(){this._hide([this._showInstallmentPlanDetailsButton]),this._show([this._hideInstallmentPlanDetailsButton]),this._show(this._installmentPlanDetails,"table-row")}_onHideInstallmentPlanDetailsButtonClicked(){this._hide([this._hideInstallmentPlanDetailsButton]),this._show([this._showInstallmentPlanDetailsButton]),this._hide(this._installmentPlanDetails,"table-row")}_fetchInstallmentPlan(t,e){const i=new s.Z(window.accessKey,window.contextToken),n=`${window.rpInstallmentCalculateUrl}?type=${t}&value=${e}`;this._activateLoader(),a&&a.abort();a=i.get(n,this._executeCallback.bind(this,(i=>{this._setContent(i),this._typeHolder.value=t,this._valueHolder.value=e,this._registerInstallmentPlanEvents(),window.PluginManager.initializePlugins()})))}_activateLoader(){this._setContent(`
${r.Z.getTemplate()}
`)}_executeCallback(t,e){"function"==typeof t&&t(e)}_setContent(t){this._resultContainer.innerHTML=t}_hide(t,e=this.options.showCls,i=this.options.hiddenCls){t.forEach((t=>{t&&(t.classList.remove(e),t.classList.add(i))}))}_show(t,e=this.options.showCls,i=this.options.hiddenCls){t.forEach((t=>{t&&(t.classList.add(e),t.classList.remove(i))}))}}var o,u,h;o=l,h={hiddenCls:"d-none",showCls:"d-block",calculationTypeTime:"time",calculationTypeRate:"rate"},(u=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(u="options"))in o?Object.defineProperty(o,u,{value:h,enumerable:!0,configurable:!0,writable:!0}):o[u]=h;class c extends n.Z{init(){this._sepaForm=this.el.querySelector("#rp-sepa-form"),this.el.querySelectorAll(this.options.selectorTypeField).forEach((t=>{t.addEventListener("change",this._onChangeType.bind(this))})),this._onChangeType()}_onChangeType(){this.el.querySelector(this.options.selectorTypeField+":checked").value===this.options.paymentTypeDirectDebit?this._showSepaForm():this._hideSepaForm()}_hideSepaForm(){this._sepaForm&&(this._sepaForm.querySelector("#rp-iban-account-holder").removeAttribute("required"),this._sepaForm.querySelector("#rp-iban-account-number").removeAttribute("required"),this._sepaForm.querySelector("#rp-sepa-confirmation").removeAttribute("required"),this._sepaForm.querySelector("#rp-iban-account-holder").setAttribute("disabled","disabled"),this._sepaForm.querySelector("#rp-iban-account-number").setAttribute("disabled","disabled"),this._sepaForm.querySelector("#rp-sepa-confirmation").setAttribute("disabled","disabled"))}_showSepaForm(){this._sepaForm&&(this._sepaForm.querySelector("#rp-iban-account-holder").removeAttribute("disabled"),this._sepaForm.querySelector("#rp-iban-account-number").removeAttribute("disabled"),this._sepaForm.querySelector("#rp-sepa-confirmation").removeAttribute("disabled"),this._sepaForm.querySelector("#rp-iban-account-holder").setAttribute("required","required"),this._sepaForm.querySelector("#rp-iban-account-number").setAttribute("required","required"),this._sepaForm.querySelector("#rp-sepa-confirmation").setAttribute("required","required"))}}!function(t,e,i){(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(c,"options",{paymentTypeBankTransfer:"BANK-TRANSFER",paymentTypeDirectDebit:"DIRECT-DEBIT",selectorTypeField:'input[name="ratepay[installment][paymentType]"]'});const d=window.PluginManager;let p=d.getPluginList();"RatepayInstallment"in p||d.register("RatepayInstallment",l,'[data-ratepay-installment="true"]'),"RatepayInstallmentPaymentSwitch"in p||d.register("RatepayInstallmentPaymentSwitch",c,'[data-ratepay-installment-payment-switch="true"]')}},t=>{t.O(0,["vendor-node","vendor-shared"],(()=>{return e=9379,t(t.s=e);var e}));t.O()}]);
\ No newline at end of file
+"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["rpay-payments"],{9244:(t,e,i)=>{var n=i(6285),r=i(7906),s=i(8254);let a=null;class l extends n.Z{init(){this._runtimeSelect=this.el.querySelector("#rp-btn-runtime"),this._rateInput=this.el.querySelector("#rp-rate-value"),this._rateButton=this.el.querySelector("#rp-rate-button"),this._resultContainer=this.el.querySelector("#rp-result-container"),this._typeHolder=this.el.querySelector("#rp-calculation-type"),this._valueHolder=this.el.querySelector("#rp-calculation-value"),this._registerEvents()}_registerEvents(){this._runtimeSelect&&this._runtimeSelect.addEventListener("change",this._onSelectRuntime.bind(this)),this._rateInput&&this._rateInput.addEventListener("input",this._onInputRate.bind(this)),this._rateButton&&this._rateButton.addEventListener("click",this._onSubmitRate.bind(this)),this._registerInstallmentPlanEvents()}_registerInstallmentPlanEvents(){this._showInstallmentPlanDetailsButton=this._resultContainer.querySelector("#rp-show-installment-plan-details"),this._hideInstallmentPlanDetailsButton=this._resultContainer.querySelector("#rp-hide-installment-plan-details"),this._installmentPlanDetails=this._resultContainer.querySelectorAll(".rp-installment-plan-details"),this._showInstallmentPlanDetailsButton.addEventListener("click",this._onShowInstallmentPlanDetailsButtonClicked.bind(this)),this._hideInstallmentPlanDetailsButton.addEventListener("click",this._onHideInstallmentPlanDetailsButtonClicked.bind(this))}_onSelectRuntime(){this._fetchInstallmentPlan(this.options.calculationTypeTime,this._runtimeSelect.value)}_onInputRate(){""===this._rateInput.value?this._rateButton.setAttribute("disabled","disabled"):this._rateButton.removeAttribute("disabled")}_onSubmitRate(){this._fetchInstallmentPlan(this.options.calculationTypeRate,this._rateInput.value)}_onShowInstallmentPlanDetailsButtonClicked(){this._hide([this._showInstallmentPlanDetailsButton]),this._show([this._hideInstallmentPlanDetailsButton]),this._show(this._installmentPlanDetails,"table-row")}_onHideInstallmentPlanDetailsButtonClicked(){this._hide([this._hideInstallmentPlanDetailsButton]),this._show([this._showInstallmentPlanDetailsButton]),this._hide(this._installmentPlanDetails,"table-row")}_fetchInstallmentPlan(t,e){const i=new s.Z(window.accessKey,window.contextToken),n=`${window.rpInstallmentCalculateUrl}?type=${t}&value=${e}`;this._activateLoader(),a&&a.abort();a=i.get(n,this._executeCallback.bind(this,(i=>{this._setContent(i),this._typeHolder.value=t,this._valueHolder.value=e,this._registerInstallmentPlanEvents(),window.PluginManager.initializePlugins()})))}_activateLoader(){this._setContent(`${r.Z.getTemplate()}
`)}_executeCallback(t,e){"function"==typeof t&&t(e)}_setContent(t){this._resultContainer.innerHTML=t}_hide(t,e=this.options.showCls,i=this.options.hiddenCls){t.forEach((t=>{t&&(t.classList.remove(e),t.classList.add(i))}))}_show(t,e=this.options.showCls,i=this.options.hiddenCls){t.forEach((t=>{t&&(t.classList.add(e),t.classList.remove(i))}))}}var o,u,h;o=l,h={hiddenCls:"d-none",showCls:"d-block",calculationTypeTime:"time",calculationTypeRate:"rate"},(u=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(u="options"))in o?Object.defineProperty(o,u,{value:h,enumerable:!0,configurable:!0,writable:!0}):o[u]=h;class c extends n.Z{init(){this._sepaForm=this.el.querySelector("#rp-sepa-form"),this.el.querySelectorAll(this.options.selectorTypeField).forEach((t=>{t.addEventListener("change",this._onChangeType.bind(this))})),this._onChangeType()}_onChangeType(){this.el.querySelector(this.options.selectorTypeField+":checked").value===this.options.paymentTypeDirectDebit?this._showSepaForm():this._hideSepaForm()}_hideSepaForm(){this._sepaForm&&(this._sepaForm.querySelector("#rp-iban-account-holder").removeAttribute("required"),this._sepaForm.querySelector("#rp-iban-account-number").removeAttribute("required"),this._sepaForm.querySelector("#rp-sepa-confirmation").removeAttribute("required"),this._sepaForm.querySelector("#rp-iban-account-holder").setAttribute("disabled","disabled"),this._sepaForm.querySelector("#rp-iban-account-number").setAttribute("disabled","disabled"),this._sepaForm.querySelector("#rp-sepa-confirmation").setAttribute("disabled","disabled"))}_showSepaForm(){this._sepaForm&&(this._sepaForm.querySelector("#rp-iban-account-holder").removeAttribute("disabled"),this._sepaForm.querySelector("#rp-iban-account-number").removeAttribute("disabled"),this._sepaForm.querySelector("#rp-sepa-confirmation").removeAttribute("disabled"),this._sepaForm.querySelector("#rp-iban-account-holder").setAttribute("required","required"),this._sepaForm.querySelector("#rp-iban-account-number").setAttribute("required","required"),this._sepaForm.querySelector("#rp-sepa-confirmation").setAttribute("required","required"))}}!function(t,e,i){(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}(c,"options",{paymentTypeBankTransfer:"BANK-TRANSFER",paymentTypeDirectDebit:"DIRECT-DEBIT",selectorTypeField:'input[name="ratepay[installment][paymentType]"]'});const d=window.PluginManager;let p=d.getPluginList();"RatepayInstallment"in p||d.register("RatepayInstallment",l,'[data-ratepay-installment="true"]'),"RatepayInstallmentPaymentSwitch"in p||d.register("RatepayInstallmentPaymentSwitch",c,'[data-ratepay-installment-payment-switch="true"]')}},t=>{t.O(0,["vendor-node","vendor-shared"],(()=>{return e=9244,t(t.s=e);var e}));t.O()}]);
\ No newline at end of file
diff --git a/src/Resources/app/storefront/dist/storefront/js/rpay-payments/rpay-payments.js b/src/Resources/app/storefront/dist/storefront/js/rpay-payments/rpay-payments.js
deleted file mode 100644
index fdf18bb5..00000000
--- a/src/Resources/app/storefront/dist/storefront/js/rpay-payments/rpay-payments.js
+++ /dev/null
@@ -1 +0,0 @@
-(()=>{"use strict";var t={857:t=>{var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==r},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?o(Array.isArray(t)?[]:{},t,e):t}function n(t,e,r){return t.concat(e).map(function(t){return i(t,r)})}function s(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function a(t,e){try{return e in t}catch(t){return!1}}function o(t,r,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||e,l.cloneUnlessOtherwiseSpecified=i;var c,u,h=Array.isArray(r);return h!==Array.isArray(t)?i(r,l):h?l.arrayMerge(t,r,l):(u={},(c=l).isMergeableObject(t)&&s(t).forEach(function(e){u[e]=i(t[e],c)}),s(r).forEach(function(e){(!a(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(a(t,e)&&c.isMergeableObject(r[e])?u[e]=(function(t,e){if(!e.customMerge)return o;var r=e.customMerge(t);return"function"==typeof r?r:o})(e,c)(t[e],r[e],c):u[e]=i(r[e],c))}),u)}o.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,r){return o(t,r,e)},{})},t.exports=o}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,r),s.exports}(()=>{r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e}})(),(()=>{r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}})(),(()=>{r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})(),(()=>{var t=r(857),e=r.n(t);class i{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(t,e){let r=i.toUpperCamelCase(t,e);return i.lcFirst(r)}static toUpperCamelCase(t,e){return e?t.split(e).map(t=>i.ucFirst(t.toLowerCase())).join(""):i.ucFirst(t.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}class n{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,e){if(!n.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(e)}static getAttribute(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===n.hasAttribute(t,e))throw Error('The required property "'.concat(e,'" does not exist!'));if("function"!=typeof t.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(e)}static getDataAttribute(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=e.replace(/^data(|-)/,""),a=i.toLowerCamelCase(s,"-");if(!n.isNode(t)){if(r)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===t.dataset){if(r)throw Error("This node doesn't support the dataset attribute!");return}let o=t.dataset[a];if(void 0===o){if(r)throw Error('The required data attribute "'.concat(e,'" does not exist on ').concat(t,"!"));return o}return i.parsePrimitive(o)}static querySelector(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!n.isNode(t))throw Error("The parent node is not a valid HTML Node!");let i=t.querySelector(e)||!1;if(r&&!1===i)throw Error('The required element "'.concat(e,'" does not exist in parent node!'));return i}static querySelectorAll(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!n.isNode(t))throw Error("The parent node is not a valid HTML Node!");let i=t.querySelectorAll(e);if(0===i.length&&(i=!1),r&&!1===i)throw Error('At least one item of "'.concat(e,'" must exist in parent node!'));return i}}class s{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new CustomEvent(t,{detail:e,cancelable:r});return this.el.dispatchEvent(i),i}subscribe(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,n=t.split("."),s=r.scope?e.bind(r.scope):e;if(r.once&&!0===r.once){let e=s;s=function(r){i.unsubscribe(t),e(r)}}return this.el.addEventListener(n[0],s),this.listeners.push({splitEventName:n,opts:r,cb:s}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,r)=>([...r.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(r.splitEventName[0],r.cb):t.push(r),t),[]),!0}reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}}class a{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(t){let r=i.toDashCase(this._pluginName),s=n.getDataAttribute(this.el,"data-".concat(r,"-config"),!1),a=n.getAttribute(this.el,"data-".concat(r,"-options"),!1),o=[this.constructor.options,this.options,t];s&&o.push(window.PluginConfigManager.get(this._pluginName,s));try{a&&o.push(JSON.parse(a))}catch(t){throw console.error(this.el),Error('The data attribute "data-'.concat(r,'-options" could not be parsed to json: ').concat(t.message))}return e().all(o.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}constructor(t,e={},r=!1){if(!n.isNode(t))throw Error("There is no valid element given.");this.el=t,this.$emitter=new s(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(e),this._initialized=!1,this._registerInstance(),this._init()}}class o{static iterate(t,e){if(t instanceof Map||Array.isArray(t))return t.forEach(e);if(t instanceof FormData){for(var r of t.entries())e(r[1],r[0]);return}if(t instanceof NodeList)return t.forEach(e);if(t instanceof HTMLCollection)return Array.from(t).forEach(e);if(t instanceof Object)return Object.keys(t).forEach(r=>{e(t[r],r)});throw Error("The element type ".concat(typeof t," is not iterable!"))}}let l="loader",c={BEFORE:"before",INNER:"inner"};class u{create(){if(!this.exists()){if(this.position===c.INNER){this.parent.innerHTML=u.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),u.getTemplate())}}remove(){let t=this.parent.querySelectorAll(".".concat(l));o.iterate(t,t=>t.remove())}exists(){return this.parent.querySelectorAll(".".concat(l)).length>0}_getPosition(){return this.position===c.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return'\n Loading...\n
')}static SELECTOR_CLASS(){return l}constructor(t,e=c.BEFORE){this.parent=t instanceof Element?t:document.body.querySelector(t),this.position=e}}class h{get(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",i=this._createPreparedRequest("GET",t,r);return this._sendRequest(i,null,e)}post(t,e,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(e,i);let n=this._createPreparedRequest("POST",t,i);return this._sendRequest(n,e,r)}delete(t,e,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(e,i);let n=this._createPreparedRequest("DELETE",t,i);return this._sendRequest(n,e,r)}patch(t,e,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";i=this._getContentType(e,i);let n=this._createPreparedRequest("PATCH",t,i);return this._sendRequest(n,e,r)}abort(){if(this._request)return this._request.abort()}_registerOnLoaded(t,e){e&&t.addEventListener("loadend",()=>{e(t.responseText,t)})}_sendRequest(t,e,r){return this._registerOnLoaded(t,r),t.send(e),t}_getContentType(t,e){return t instanceof FormData&&(e=!1),e}_createPreparedRequest(t,e,r){return this._request=new XMLHttpRequest,this._request.open(t,e),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),r&&this._request.setRequestHeader("Content-type",r),this._request}constructor(){this._request=null}}let d=null;class p extends a{init(){this._runtimeSelect=this.el.querySelector("#rp-btn-runtime"),this._rateInput=this.el.querySelector("#rp-rate-value"),this._rateButton=this.el.querySelector("#rp-rate-button"),this._resultContainer=this.el.querySelector("#rp-result-container"),this._typeHolder=this.el.querySelector("#rp-calculation-type"),this._valueHolder=this.el.querySelector("#rp-calculation-value"),this._registerEvents()}_registerEvents(){this._runtimeSelect&&this._runtimeSelect.addEventListener("change",this._onSelectRuntime.bind(this)),this._rateInput&&this._rateInput.addEventListener("input",this._onInputRate.bind(this)),this._rateButton&&this._rateButton.addEventListener("click",this._onSubmitRate.bind(this)),this._registerInstallmentPlanEvents()}_registerInstallmentPlanEvents(){this._showInstallmentPlanDetailsButton=this._resultContainer.querySelector("#rp-show-installment-plan-details"),this._hideInstallmentPlanDetailsButton=this._resultContainer.querySelector("#rp-hide-installment-plan-details"),this._installmentPlanDetails=this._resultContainer.querySelectorAll(".rp-installment-plan-details"),this._showInstallmentPlanDetailsButton.addEventListener("click",this._onShowInstallmentPlanDetailsButtonClicked.bind(this)),this._hideInstallmentPlanDetailsButton.addEventListener("click",this._onHideInstallmentPlanDetailsButtonClicked.bind(this))}_onSelectRuntime(){this._fetchInstallmentPlan(this.options.calculationTypeTime,this._runtimeSelect.value)}_onInputRate(){""===this._rateInput.value?this._rateButton.setAttribute("disabled","disabled"):this._rateButton.removeAttribute("disabled")}_onSubmitRate(){this._fetchInstallmentPlan(this.options.calculationTypeRate,this._rateInput.value)}_onShowInstallmentPlanDetailsButtonClicked(){this._hide([this._showInstallmentPlanDetailsButton]),this._show([this._hideInstallmentPlanDetailsButton]),this._show(this._installmentPlanDetails,"table-row")}_onHideInstallmentPlanDetailsButtonClicked(){this._hide([this._hideInstallmentPlanDetailsButton]),this._show([this._showInstallmentPlanDetailsButton]),this._hide(this._installmentPlanDetails,"table-row")}_fetchInstallmentPlan(t,e){let r=new h(window.accessKey,window.contextToken),i="".concat(window.rpInstallmentCalculateUrl,"?type=").concat(t,"&value=").concat(e);this._activateLoader(),d&&d.abort(),d=r.get(i,this._executeCallback.bind(this,r=>{this._setContent(r),this._typeHolder.value=t,this._valueHolder.value=e,this._registerInstallmentPlanEvents(),window.PluginManager.initializePlugins()}))}_activateLoader(){this._setContent(''.concat(u.getTemplate(),"
"))}_executeCallback(t,e){"function"==typeof t&&t(e)}_setContent(t){this._resultContainer.innerHTML=t}_hide(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.showCls,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.hiddenCls;t.forEach(t=>{t&&(t.classList.remove(e),t.classList.add(r))})}_show(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.showCls,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.hiddenCls;t.forEach(t=>{t&&(t.classList.add(e),t.classList.remove(r))})}}p.options={hiddenCls:"d-none",showCls:"d-block",calculationTypeTime:"time",calculationTypeRate:"rate"};class m extends a{init(){this._sepaForm=this.el.querySelector("#rp-sepa-form"),this.el.querySelectorAll(this.options.selectorTypeField).forEach(t=>{t.addEventListener("change",this._onChangeType.bind(this))}),this._onChangeType()}_onChangeType(){this.el.querySelector(this.options.selectorTypeField+":checked").value===this.options.paymentTypeDirectDebit?this._showSepaForm():this._hideSepaForm()}_hideSepaForm(){this._sepaForm&&(this._sepaForm.querySelector("#rp-iban-account-holder").removeAttribute("required"),this._sepaForm.querySelector("#rp-iban-account-number").removeAttribute("required"),this._sepaForm.querySelector("#rp-sepa-confirmation").removeAttribute("required"),this._sepaForm.querySelector("#rp-iban-account-holder").setAttribute("disabled","disabled"),this._sepaForm.querySelector("#rp-iban-account-number").setAttribute("disabled","disabled"),this._sepaForm.querySelector("#rp-sepa-confirmation").setAttribute("disabled","disabled"))}_showSepaForm(){this._sepaForm&&(this._sepaForm.querySelector("#rp-iban-account-holder").removeAttribute("disabled"),this._sepaForm.querySelector("#rp-iban-account-number").removeAttribute("disabled"),this._sepaForm.querySelector("#rp-sepa-confirmation").removeAttribute("disabled"),this._sepaForm.querySelector("#rp-iban-account-holder").setAttribute("required","required"),this._sepaForm.querySelector("#rp-iban-account-number").setAttribute("required","required"),this._sepaForm.querySelector("#rp-sepa-confirmation").setAttribute("required","required"))}}m.options={paymentTypeBankTransfer:"BANK-TRANSFER",paymentTypeDirectDebit:"DIRECT-DEBIT",selectorTypeField:'input[name="ratepay[installment][paymentType]"]'};let _=window.PluginManager,b=_.getPluginList();"RatepayInstallment"in b||_.register("RatepayInstallment",p,'[data-ratepay-installment="true"]'),"RatepayInstallmentPaymentSwitch"in b||_.register("RatepayInstallmentPaymentSwitch",m,'[data-ratepay-installment-payment-switch="true"]')})()})();
\ No newline at end of file
diff --git a/src/Resources/public/administration/css/rpay-payments.css b/src/Resources/public/administration/css/rpay-payments.css
index 458b0af5..2953e42a 100755
--- a/src/Resources/public/administration/css/rpay-payments.css
+++ b/src/Resources/public/administration/css/rpay-payments.css
@@ -1 +1 @@
-.ratepay-plugin-icon{background:#fff}.ratepay-xml-log-modal.sw-modal .sw-modal__dialog{max-width:90%}.ratepay-xml-log-modal.sw-modal .sw-modal__dialog,.ratepay-xml-log-modal.sw-modal .sw-modal__body,.ratepay-xml-log-modal.sw-modal .flex-container{height:100%}.ratepay-xml-log-modal.sw-modal .flex-container{display:flex;justify-content:space-between}.ratepay-xml-log-modal.sw-modal .flex-container>div{flex-basis:calc(50% - 10px);width:calc(50% - 10px);overflow:auto;height:100%}.ratepay-xml-log-modal.sw-modal .heading{display:block;font-size:22px;font-weight:700;margin-bottom:10px}.ratepay-xml-log-modal.sw-modal pre{font-size:12px}.hljs{display:block;overflow-x:auto;padding:.5em;color:#333;background:#f8f8f8}.hljs-comment,.hljs-quote{color:#998;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#333;font-weight:700}.hljs-number,.hljs-literal,.hljs-variable,.hljs-template-variable,.hljs-tag .hljs-attr{color:teal}.hljs-string,.hljs-doctag{color:#d14}.hljs-title,.hljs-section,.hljs-selector-id{color:#900;font-weight:700}.hljs-subst{font-weight:400}.hljs-type,.hljs-class .hljs-title{color:#458;font-weight:700}.hljs-tag,.hljs-name,.hljs-attribute{color:navy;font-weight:400}.hljs-regexp,.hljs-link{color:#009926}.hljs-symbol,.hljs-bullet{color:#990073}.hljs-built_in,.hljs-builtin-name{color:#0086b3}.hljs-meta{color:#999;font-weight:700}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.sw-search-bar-item__label.ratepay-api-log-search-result .sw-highlight-text{display:inline}.sw-search-bar-item__label.ratepay-api-log-search-result .order-info{font-size:12px}.sw-search-bar-item__label.ratepay-api-log-search-result .order-info span+span:before{display:inline;content:" - "}.ratepay-order-details-card .sw-description-list{line-height:15px}.ratepay-order-details-card .sw-description-list dt,.ratepay-order-details-card .sw-description-list dd{padding:4px;border-bottom:none}.ratepay-order-details-card .sw-description-list dt{font-weight:600}.ratepay-order-details-card .sw-description-list dt:not(:first-child),.ratepay-order-details-card .sw-description-list dt:only-of-type{padding-top:21px}.ratepay-article-panel .sw-data-grid.is--compact{border-top:1px solid #D1D9E0}.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-data-grid__cell-content{padding:0}.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-data-grid__cell-content,.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-data-grid__cell-content div,.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-data-grid__cell-content select{height:100%}.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-block-field__block{border:0}.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity select{text-align:left;padding-right:30px;background:transparent}.ratepay-article-panel>.sw-card__content{padding:0}.ratepay-article-panel>.sw-card__content .button-group{margin-bottom:15px;padding-left:10px;padding-right:10px}.ratepay-article-panel .sw-tabs__custom-content{padding-bottom:0}.rp-price-field.hide-lock .sw-price-field__lock{visibility:hidden}
+.ratepay-plugin-icon{background:#fff}.ratepay-xml-log-modal.sw-modal .sw-modal__dialog{max-width:90%}.ratepay-xml-log-modal.sw-modal .flex-container,.ratepay-xml-log-modal.sw-modal .sw-modal__body,.ratepay-xml-log-modal.sw-modal .sw-modal__dialog{height:100%}.ratepay-xml-log-modal.sw-modal .flex-container{display:flex;justify-content:space-between}.ratepay-xml-log-modal.sw-modal .flex-container>div{flex-basis:calc(50% - 10px);width:calc(50% - 10px);overflow:auto;height:100%}.ratepay-xml-log-modal.sw-modal .heading{display:block;font-size:22px;font-weight:700;margin-bottom:10px}.ratepay-xml-log-modal.sw-modal pre{font-size:12px}.hljs{display:block;overflow-x:auto;padding:.5em;color:#333;background:#f8f8f8}.hljs-comment,.hljs-quote{color:#998;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#333;font-weight:700}.hljs-literal,.hljs-number,.hljs-tag .hljs-attr,.hljs-template-variable,.hljs-variable{color:teal}.hljs-doctag,.hljs-string{color:#d14}.hljs-section,.hljs-selector-id,.hljs-title{color:#900;font-weight:700}.hljs-subst{font-weight:400}.hljs-class .hljs-title,.hljs-type{color:#458;font-weight:700}.hljs-attribute,.hljs-name,.hljs-tag{color:navy;font-weight:400}.hljs-link,.hljs-regexp{color:#009926}.hljs-bullet,.hljs-symbol{color:#990073}.hljs-built_in,.hljs-builtin-name{color:#0086b3}.hljs-meta{color:#999;font-weight:700}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.sw-search-bar-item__label.ratepay-api-log-search-result .sw-highlight-text{display:inline}.sw-search-bar-item__label.ratepay-api-log-search-result .order-info{font-size:12px}.sw-search-bar-item__label.ratepay-api-log-search-result .order-info span+span:before{display:inline;content:" - "}.ratepay-order-details-card .sw-description-list{line-height:15px}.ratepay-order-details-card .sw-description-list dd,.ratepay-order-details-card .sw-description-list dt{padding:4px;border-bottom:none}.ratepay-order-details-card .sw-description-list dt{font-weight:600}.ratepay-order-details-card .sw-description-list dt:not(:first-child),.ratepay-order-details-card .sw-description-list dt:only-of-type{padding-top:21px}.ratepay-article-panel .sw-data-grid.is--compact{border-top:1px solid #d1d9e0}.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-data-grid__cell-content{padding:0}.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-data-grid__cell-content,.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-data-grid__cell-content div,.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-data-grid__cell-content select{height:100%}.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity .sw-block-field__block{border:0}.ratepay-article-panel .sw-data-grid.is--compact .sw-data-grid__cell--quantity select{text-align:left;padding-right:30px;background:transparent}.ratepay-article-panel>.sw-card__content{padding:0}.ratepay-article-panel>.sw-card__content .button-group{margin-bottom:15px;padding-left:10px;padding-right:10px}.ratepay-article-panel .sw-tabs__custom-content{padding-bottom:0}.rp-price-field.hide-lock .sw-price-field__lock{visibility:hidden}
\ No newline at end of file
diff --git a/src/Resources/public/administration/js/rpay-payments.js b/src/Resources/public/administration/js/rpay-payments.js
index 56afe36b..31cedf86 100755
--- a/src/Resources/public/administration/js/rpay-payments.js
+++ b/src/Resources/public/administration/js/rpay-payments.js
@@ -1,742 +1,3 @@
-(()=>{var Vt=Object.create;var Ne=Object.defineProperty;var Kt=Object.getOwnPropertyDescriptor;var Xt=Object.getOwnPropertyNames;var Zt=Object.getPrototypeOf,Yt=Object.prototype.hasOwnProperty;var ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qt=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Xt(t))!Yt.call(e,l)&&l!==a&&Ne(e,l,{get:()=>t[l],enumerable:!(r=Kt(t,l))||r.enumerable});return e};var me=(e,t,a)=>(a=e!=null?Vt(Zt(e)):{},Qt(t||!e||!e.__esModule?Ne(a,"default",{value:e,enumerable:!0}):a,e));var Fe=ie((lr,Pe)=>{function oa(e,t={}){t.filter=t.filter||(()=>!0);function a(){return n()||x()||h()||u()}function r(){return R(/\s*/),n(!0)||h()||s()||y(!1)}function l(){let b=p(),C=[],_,E=r();for(;E;){if(E.node.type==="Element"){if(_)throw new Error("Found multiple root nodes");_=E.node}E.excluded||C.push(E.node),E=r()}if(!_)throw new Error("Failed to parse XML");return{declaration:b?b.node:null,root:_,children:C}}function p(){return y(!0)}function y(b){let C=R(b?/^<\?(xml)\s*/:/^<\?([\w-:.]+)\s*/);if(!C)return;let _={name:C[1],type:"ProcessingInstruction",attributes:{}};for(;!(Q()||H("?>"));){let E=A();if(!E)return _;_.attributes[E.name]=E.value}return R(/\?>/),{excluded:b?!1:t.filter(_)===!1,node:_}}function n(b){let C=R(/^<([\w-:.]+)\s*/);if(!C)return;let _={type:"Element",name:C[1],attributes:{},children:[]};for(;!(Q()||H(">")||H("?>")||H("/>"));){let N=A();if(!N)return _;_.attributes[N.name]=N.value}let E=b?!1:t.filter(_)===!1;if(R(/^\s*\/>/))return _.children=null,{excluded:E,node:_};if(R(/\??>/),!E){let N=a();for(;N;)N.excluded||_.children.push(N.node),N=a()}return R(/^<\/[\w-:.]+>/),{excluded:E,node:_}}function s(){let b=R(/^]*>/);if(b){let C={type:"DocumentType",content:b[0]};return{excluded:t.filter(C)===!1,node:C}}}function u(){if(e.startsWith("");if(b>-1){let C=b+3,_={type:"CDATA",content:e.substring(0,C)};return e=e.slice(C),{excluded:t.filter(_)===!1,node:_}}}}function h(){let b=R(/^/);if(b){let C={type:"Comment",content:b[0]};return{excluded:t.filter(C)===!1,node:C}}}function x(){let b=R(/^([^<]+)/);if(b){let C={type:"Text",content:b[1]};return{excluded:t.filter(C)===!1,node:C}}}function A(){let b=R(/([\w-:.]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(b)return{name:b[1],value:W(b[2])}}function W(b){return b.replace(/^['"]|['"]$/g,"")}function R(b){let C=e.match(b);if(C)return e=e.slice(C[0].length),C}function Q(){return e.length===0}function H(b){return e.indexOf(b)===0}return e=e.trim(),l()}Pe.exports=oa});var qe=ie((dr,Ge)=>{function se(e){if(!e.options.indentation&&!e.options.lineSeparator)return;e.content+=e.options.lineSeparator;let t;for(t=0;t0&&(!a&&t.content.length>0&&se(t),O(t,e.content))}function da(e,t,a){if(!a&&t.content.length>0&&se(t),O(t,"<"+e.name),ze(t,e.attributes),e.children===null){let r=t.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";O(t,r)}else if(e.children.length===0)O(t,">"+e.name+">");else{O(t,">"),t.level++;let r=e.attributes["xml:space"]==="preserve";if(!r&&t.options.collapseContent){let l=!1,p=!1,y=!1;e.children.forEach(function(n,s){n.type==="Text"?(n.content.includes(`
-`)?(p=!0,n.content=n.content.trim()):(s===0||s===e.children.length-1)&&n.content.trim().length===0&&(n.content=""),n.content.length>0&&(l=!0)):n.type==="CDATA"?l=!0:y=!0}),l&&(!y||!p)&&(r=!0)}e.children.forEach(function(l){je(l,t,a||r,t.options)}),t.level--,!a&&!r&&se(t),O(t,""+e.name+">")}}function ze(e,t){Object.keys(t).forEach(function(a){let r=t[a].replace(/"/g,""");O(e," "+a+'="'+r+'"')})}function He(e,t){t.content.length>0&&se(t),O(t,""+e.name),ze(t,e.attributes),O(t,"?>")}function ca(e,t={}){t.indentation="indentation"in t?t.indentation:" ",t.collapseContent=t.collapseContent===!0,t.lineSeparator="lineSeparator"in t?t.lineSeparator:`\r
-`,t.whiteSpaceAtEndOfSelfclosingTag=!!t.whiteSpaceAtEndOfSelfclosingTag;let r=Fe()(e,{filter:t.filter}),l={content:"",level:0,options:t};return r.declaration&&He(r.declaration,l),r.children.forEach(function(p){je(p,l,!1)}),l.content.replace(/\r\n/g,`
-`).replace(/\n/g,t.lineSeparator)}Ge.exports=ca});var nt=ie((cr,rt)=>{function _e(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var a=e[t];typeof a=="object"&&!Object.isFrozen(a)&&_e(a)}),e}var Ye=_e,pa=_e;Ye.default=pa;var le=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function U(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function F(e,...t){let a=Object.create(null);for(let r in e)a[r]=e[r];return t.forEach(function(r){for(let l in r)a[l]=r[l]}),a}var ua="",Ue=e=>!!e.kind,we=class{constructor(t,a){this.buffer="",this.classPrefix=a.classPrefix,t.walk(this)}addText(t){this.buffer+=U(t)}openNode(t){if(!Ue(t))return;let a=t.kind;t.sublanguage||(a=`${this.classPrefix}${a}`),this.span(a)}closeNode(t){Ue(t)&&(this.buffer+=ua)}value(){return this.buffer}span(t){this.buffer+=``}},Ce=class e{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let a={kind:t,children:[]};this.add(a),this.stack.push(a)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,a){return typeof a=="string"?t.addText(a):a.children&&(t.openNode(a),a.children.forEach(r=>this._walk(t,r)),t.closeNode(a)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(a=>typeof a=="string")?t.children=[t.children.join("")]:t.children.forEach(a=>{e._collapse(a)}))}},ve=class extends Ce{constructor(t){super(),this.options=t}addKeyword(t,a){t!==""&&(this.openNode(a),this.addText(t),this.closeNode())}addText(t){t!==""&&this.add(t)}addSublanguage(t,a){let r=t.root;r.kind=a,r.sublanguage=!0,this.add(r)}toHTML(){return new we(this,this.options).value()}finalize(){return!0}};function ha(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function V(e){return e?typeof e=="string"?e:e.source:null}function ga(...e){return e.map(a=>V(a)).join("")}function fa(...e){return"("+e.map(a=>V(a)).join("|")+")"}function ma(e){return new RegExp(e.toString()+"|").exec("").length-1}function ba(e,t){let a=e&&e.exec(t);return a&&a.index===0}var ya=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function wa(e,t="|"){let a=0;return e.map(r=>{a+=1;let l=a,p=V(r),y="";for(;p.length>0;){let n=ya.exec(p);if(!n){y+=p;break}y+=p.substring(0,n.index),p=p.substring(n.index+n[0].length),n[0][0]==="\\"&&n[1]?y+="\\"+String(Number(n[1])+l):(y+=n[0],n[0]==="("&&a++)}return y}).map(r=>`(${r})`).join(t)}var Ca=/\b\B/,Qe="[a-zA-Z]\\w*",Se="[a-zA-Z_]\\w*",Ee="\\b\\d+(\\.\\d+)?",Je="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",et="\\b(0b[01]+)",va="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",xa=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=ga(t,/.*\b/,e.binary,/\b.*/)),F({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(a,r)=>{a.index!==0&&r.ignoreMatch()}},e)},K={begin:"\\\\[\\s\\S]",relevance:0},_a={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[K]},Sa={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[K]},tt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},de=function(e,t,a={}){let r=F({className:"comment",begin:e,end:t,contains:[]},a);return r.contains.push(tt),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},Ea=de("//","$"),Ma=de("/\\*","\\*/"),Ra=de("#","$"),Da={className:"number",begin:Ee,relevance:0},ka={className:"number",begin:Je,relevance:0},Ia={className:"number",begin:et,relevance:0},Aa={className:"number",begin:Ee+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},Na={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[K,{begin:/\[/,end:/\]/,relevance:0,contains:[K]}]}]},La={className:"title",begin:Qe,relevance:0},Ta={className:"title",begin:Se,relevance:0},$a={begin:"\\.\\s*"+Se,relevance:0},Ba=function(e){return Object.assign(e,{"on:begin":(t,a)=>{a.data._beginMatch=t[1]},"on:end":(t,a)=>{a.data._beginMatch!==t[1]&&a.ignoreMatch()}})},oe=Object.freeze({__proto__:null,MATCH_NOTHING_RE:Ca,IDENT_RE:Qe,UNDERSCORE_IDENT_RE:Se,NUMBER_RE:Ee,C_NUMBER_RE:Je,BINARY_NUMBER_RE:et,RE_STARTERS_RE:va,SHEBANG:xa,BACKSLASH_ESCAPE:K,APOS_STRING_MODE:_a,QUOTE_STRING_MODE:Sa,PHRASAL_WORDS_MODE:tt,COMMENT:de,C_LINE_COMMENT_MODE:Ea,C_BLOCK_COMMENT_MODE:Ma,HASH_COMMENT_MODE:Ra,NUMBER_MODE:Da,C_NUMBER_MODE:ka,BINARY_NUMBER_MODE:Ia,CSS_NUMBER_MODE:Aa,REGEXP_MODE:Na,TITLE_MODE:La,UNDERSCORE_TITLE_MODE:Ta,METHOD_GUARD:$a,END_SAME_AS_BEGIN:Ba});function Oa(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function Pa(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Oa,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Fa(e,t){Array.isArray(e.illegal)&&(e.illegal=fa(...e.illegal))}function ja(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function za(e,t){e.relevance===void 0&&(e.relevance=1)}var Ha=["of","and","for","in","not","or","if","then","parent","list","value"],Ga="keyword";function at(e,t,a=Ga){let r={};return typeof e=="string"?l(a,e.split(" ")):Array.isArray(e)?l(a,e):Object.keys(e).forEach(function(p){Object.assign(r,at(e[p],t,p))}),r;function l(p,y){t&&(y=y.map(n=>n.toLowerCase())),y.forEach(function(n){let s=n.split("|");r[s[0]]=[p,qa(s[0],s[1])]})}}function qa(e,t){return t?Number(t):Ua(e)?0:1}function Ua(e){return Ha.includes(e.toLowerCase())}function Wa(e,{plugins:t}){function a(n,s){return new RegExp(V(n),"m"+(e.case_insensitive?"i":"")+(s?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,s]),this.matchAt+=ma(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let s=this.regexes.map(u=>u[1]);this.matcherRe=a(wa(s),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;let u=this.matcherRe.exec(s);if(!u)return null;let h=u.findIndex((A,W)=>W>0&&A!==void 0),x=this.matchIndexes[h];return u.splice(0,h),Object.assign(u,x)}}class l{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];let u=new r;return this.rules.slice(s).forEach(([h,x])=>u.addRule(h,x)),u.compile(),this.multiRegexes[s]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,u){this.rules.push([s,u]),u.type==="begin"&&this.count++}exec(s){let u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let h=u.exec(s);if(this.resumingScanAtSamePosition()&&!(h&&h.index===this.lastIndex)){let x=this.getMatcher(0);x.lastIndex=this.lastIndex+1,h=x.exec(s)}return h&&(this.regexIndex+=h.position+1,this.regexIndex===this.count&&this.considerAll()),h}}function p(n){let s=new l;return n.contains.forEach(u=>s.addRule(u.begin,{rule:u,type:"begin"})),n.terminatorEnd&&s.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&s.addRule(n.illegal,{type:"illegal"}),s}function y(n,s){let u=n;if(n.isCompiled)return u;[ja].forEach(x=>x(n,s)),e.compilerExtensions.forEach(x=>x(n,s)),n.__beforeBegin=null,[Pa,Fa,za].forEach(x=>x(n,s)),n.isCompiled=!0;let h=null;if(typeof n.keywords=="object"&&(h=n.keywords.$pattern,delete n.keywords.$pattern),n.keywords&&(n.keywords=at(n.keywords,e.case_insensitive)),n.lexemes&&h)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return h=h||n.lexemes||/\w+/,u.keywordPatternRe=a(h,!0),s&&(n.begin||(n.begin=/\B|\b/),u.beginRe=a(n.begin),n.endSameAsBegin&&(n.end=n.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(u.endRe=a(n.end)),u.terminatorEnd=V(n.end)||"",n.endsWithParent&&s.terminatorEnd&&(u.terminatorEnd+=(n.end?"|":"")+s.terminatorEnd)),n.illegal&&(u.illegalRe=a(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(x){return Va(x==="self"?n:x)})),n.contains.forEach(function(x){y(x,u)}),n.starts&&y(n.starts,s),u.matcher=p(u),u}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=F(e.classNameAliases||{}),y(e)}function it(e){return e?e.endsWithParent||it(e.starts):!1}function Va(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return F(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:it(e)?F(e,{starts:e.starts?F(e.starts):null}):Object.isFrozen(e)?F(e):e}var Ka="10.7.3";function Xa(e){return!!(e||e==="")}function Za(e){let t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,U(this.code);let r={};return this.autoDetect?(r=e.highlightAuto(this.code),this.detectedLanguage=r.language):(r=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),r.value},autoDetect(){return!this.language||Xa(this.autodetect)},ignoreIllegals(){return!0}},render(r){return r("pre",{},[r("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(r){r.component("highlightjs",t)}}}}var Ya={"after:highlightElement":({el:e,result:t,text:a})=>{let r=We(e);if(!r.length)return;let l=document.createElement("div");l.innerHTML=t.value,t.value=Qa(r,We(l),a)}};function xe(e){return e.nodeName.toLowerCase()}function We(e){let t=[];return function a(r,l){for(let p=r.firstChild;p;p=p.nextSibling)p.nodeType===3?l+=p.nodeValue.length:p.nodeType===1&&(t.push({event:"start",offset:l,node:p}),l=a(p,l),xe(p).match(/br|hr|img|input/)||t.push({event:"stop",offset:l,node:p}));return l}(e,0),t}function Qa(e,t,a){let r=0,l="",p=[];function y(){return!e.length||!t.length?e.length?e:t:e[0].offset!==t[0].offset?e[0].offset"}function s(h){l+=""+xe(h)+">"}function u(h){(h.event==="start"?n:s)(h.node)}for(;e.length||t.length;){let h=y();if(l+=U(a.substring(r,h[0].offset)),r=h[0].offset,h===e){p.reverse().forEach(s);do u(h.splice(0,1)[0]),h=y();while(h===e&&h.length&&h[0].offset===r);p.reverse().forEach(n)}else h[0].event==="start"?p.push(h[0].node):p.pop(),u(h.splice(0,1)[0])}return l+U(a.substr(r))}var Ve={},be=e=>{console.error(e)},Ke=(e,...t)=>{console.log(`WARN: ${e}`,...t)},I=(e,t)=>{Ve[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Ve[`${e}/${t}`]=!0)},ye=U,Xe=F,Ze=Symbol("nomatch"),Ja=function(e){let t=Object.create(null),a=Object.create(null),r=[],l=!0,p=/(^(<[^>]+>|\t|)+|\n)/gm,y="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]},s={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:ve};function u(i){return s.noHighlightRe.test(i)}function h(i){let o=i.className+" ";o+=i.parentNode?i.parentNode.className:"";let m=s.languageDetectRe.exec(o);if(m){let v=B(m[1]);return v||(Ke(y.replace("{}",m[1])),Ke("Falling back to no-highlight mode for this block.",i)),v?m[1]:"no-highlight"}return o.split(/\s+/).find(v=>u(v)||B(v))}function x(i,o,m,v){let M="",j="";typeof o=="object"?(M=i,m=o.ignoreIllegals,j=o.language,v=void 0):(I("10.7.0","highlight(lang, code, ...args) has been deprecated."),I("10.7.0",`Please use highlight(code, options) instead.
-https://github.com/highlightjs/highlight.js/issues/2277`),j=i,M=o);let L={code:M,language:j};J("before:highlight",L);let T=L.result?L.result:A(L.language,L.code,m,v);return T.code=L.code,J("after:highlight",T),T}function A(i,o,m,v){function M(d,c){let f=G.case_insensitive?c[0].toLowerCase():c[0];return Object.prototype.hasOwnProperty.call(d.keywords,f)&&d.keywords[f]}function j(){if(!g.keywords){D.addText(S);return}let d=0;g.keywordPatternRe.lastIndex=0;let c=g.keywordPatternRe.exec(S),f="";for(;c;){f+=S.substring(d,c.index);let w=M(g,c);if(w){let[k,ae]=w;if(D.addText(f),f="",te+=ae,k.startsWith("_"))f+=c[0];else{let Wt=G.classNameAliases[k]||k;D.addKeyword(c[0],Wt)}}else f+=c[0];d=g.keywordPatternRe.lastIndex,c=g.keywordPatternRe.exec(S)}f+=S.substr(d),D.addText(f)}function L(){if(S==="")return;let d=null;if(typeof g.subLanguage=="string"){if(!t[g.subLanguage]){D.addText(S);return}d=A(g.subLanguage,S,!0,Ae[g.subLanguage]),Ae[g.subLanguage]=d.top}else d=R(S,g.subLanguage.length?g.subLanguage:null);g.relevance>0&&(te+=d.relevance),D.addSublanguage(d.emitter,d.language)}function T(){g.subLanguage!=null?L():j(),S=""}function $(d){return d.className&&D.openNode(G.classNameAliases[d.className]||d.className),g=Object.create(d,{parent:{value:g}}),g}function P(d,c,f){let w=ba(d.endRe,f);if(w){if(d["on:end"]){let k=new le(d);d["on:end"](c,k),k.isMatchIgnored&&(w=!1)}if(w){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return P(d.parent,c,f)}function zt(d){return g.matcher.regexIndex===0?(S+=d[0],1):(fe=!0,0)}function Ht(d){let c=d[0],f=d.rule,w=new le(f),k=[f.__beforeBegin,f["on:begin"]];for(let ae of k)if(ae&&(ae(d,w),w.isMatchIgnored))return zt(c);return f&&f.endSameAsBegin&&(f.endRe=ha(c)),f.skip?S+=c:(f.excludeBegin&&(S+=c),T(),!f.returnBegin&&!f.excludeBegin&&(S=c)),$(f),f.returnBegin?0:c.length}function Gt(d){let c=d[0],f=o.substr(d.index),w=P(g,d,f);if(!w)return Ze;let k=g;k.skip?S+=c:(k.returnEnd||k.excludeEnd||(S+=c),T(),k.excludeEnd&&(S=c));do g.className&&D.closeNode(),!g.skip&&!g.subLanguage&&(te+=g.relevance),g=g.parent;while(g!==w.parent);return w.starts&&(w.endSameAsBegin&&(w.starts.endRe=w.endRe),$(w.starts)),k.returnEnd?0:c.length}function qt(){let d=[];for(let c=g;c!==G;c=c.parent)c.className&&d.unshift(c.className);d.forEach(c=>D.openNode(c))}let ee={};function Ie(d,c){let f=c&&c[0];if(S+=d,f==null)return T(),0;if(ee.type==="begin"&&c.type==="end"&&ee.index===c.index&&f===""){if(S+=o.slice(c.index,c.index+1),!l){let w=new Error("0 width match regex");throw w.languageName=i,w.badRule=ee.rule,w}return 1}if(ee=c,c.type==="begin")return Ht(c);if(c.type==="illegal"&&!m){let w=new Error('Illegal lexeme "'+f+'" for mode "'+(g.className||"")+'"');throw w.mode=g,w}else if(c.type==="end"){let w=Gt(c);if(w!==Ze)return w}if(c.type==="illegal"&&f==="")return 1;if(ge>1e5&&ge>c.index*3)throw new Error("potential infinite loop, way more iterations than matches");return S+=f,f.length}let G=B(i);if(!G)throw be(y.replace("{}",i)),new Error('Unknown language: "'+i+'"');let Ut=Wa(G,{plugins:r}),he="",g=v||Ut,Ae={},D=new s.__emitter(s);qt();let S="",te=0,q=0,ge=0,fe=!1;try{for(g.matcher.considerAll();;){ge++,fe?fe=!1:g.matcher.considerAll(),g.matcher.lastIndex=q;let d=g.matcher.exec(o);if(!d)break;let c=o.substring(q,d.index),f=Ie(c,d);q=d.index+f}return Ie(o.substr(q)),D.closeAllNodes(),D.finalize(),he=D.toHTML(),{relevance:Math.floor(te),value:he,language:i,illegal:!1,emitter:D,top:g}}catch(d){if(d.message&&d.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:d.message,context:o.slice(q-100,q+100),mode:d.mode},sofar:he,relevance:0,value:ye(o),emitter:D};if(l)return{illegal:!1,relevance:0,value:ye(o),emitter:D,language:i,top:g,errorRaised:d};throw d}}function W(i){let o={relevance:0,emitter:new s.__emitter(s),value:ye(i),illegal:!1,top:n};return o.emitter.addText(i),o}function R(i,o){o=o||s.languages||Object.keys(t);let m=W(i),v=o.filter(B).filter(ke).map($=>A($,i,!1));v.unshift(m);let M=v.sort(($,P)=>{if($.relevance!==P.relevance)return P.relevance-$.relevance;if($.language&&P.language){if(B($.language).supersetOf===P.language)return 1;if(B(P.language).supersetOf===$.language)return-1}return 0}),[j,L]=M,T=j;return T.second_best=L,T}function Q(i){return s.tabReplace||s.useBR?i.replace(p,o=>o===`
-`?s.useBR?"
":o:s.tabReplace?o.replace(/\t/g,s.tabReplace):o):i}function H(i,o,m){let v=o?a[o]:m;i.classList.add("hljs"),v&&i.classList.add(v)}let b={"before:highlightElement":({el:i})=>{s.useBR&&(i.innerHTML=i.innerHTML.replace(/\n/g,"").replace(/
/g,`
-`))},"after:highlightElement":({result:i})=>{s.useBR&&(i.value=i.value.replace(/\n/g,"
"))}},C=/^(<[^>]+>|\t)+/gm,_={"after:highlightElement":({result:i})=>{s.tabReplace&&(i.value=i.value.replace(C,o=>o.replace(/\t/g,s.tabReplace)))}};function E(i){let o=null,m=h(i);if(u(m))return;J("before:highlightElement",{el:i,language:m}),o=i;let v=o.textContent,M=m?x(v,{language:m,ignoreIllegals:!0}):R(v);J("after:highlightElement",{el:i,result:M,text:v}),i.innerHTML=M.value,H(i,m,M.language),i.result={language:M.language,re:M.relevance,relavance:M.relevance},M.second_best&&(i.second_best={language:M.second_best.language,re:M.second_best.relevance,relavance:M.second_best.relevance})}function N(i){i.useBR&&(I("10.3.0","'useBR' will be removed entirely in v11.0"),I("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),s=Xe(s,i)}let pe=()=>{if(pe.called)return;pe.called=!0,I("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(E)};function At(){I("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),ue=!0}let ue=!1;function Re(){if(document.readyState==="loading"){ue=!0;return}document.querySelectorAll("pre code").forEach(E)}function Nt(){ue&&Re()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Nt,!1);function Lt(i,o){let m=null;try{m=o(e)}catch(v){if(be("Language definition for '{}' could not be registered.".replace("{}",i)),l)be(v);else throw v;m=n}m.name||(m.name=i),t[i]=m,m.rawDefinition=o.bind(null,e),m.aliases&&De(m.aliases,{languageName:i})}function Tt(i){delete t[i];for(let o of Object.keys(a))a[o]===i&&delete a[o]}function $t(){return Object.keys(t)}function Bt(i){I("10.4.0","requireLanguage will be removed entirely in v11."),I("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");let o=B(i);if(o)return o;throw new Error("The '{}' language is required, but not loaded.".replace("{}",i))}function B(i){return i=(i||"").toLowerCase(),t[i]||t[a[i]]}function De(i,{languageName:o}){typeof i=="string"&&(i=[i]),i.forEach(m=>{a[m.toLowerCase()]=o})}function ke(i){let o=B(i);return o&&!o.disableAutodetect}function Ot(i){i["before:highlightBlock"]&&!i["before:highlightElement"]&&(i["before:highlightElement"]=o=>{i["before:highlightBlock"](Object.assign({block:o.el},o))}),i["after:highlightBlock"]&&!i["after:highlightElement"]&&(i["after:highlightElement"]=o=>{i["after:highlightBlock"](Object.assign({block:o.el},o))})}function Pt(i){Ot(i),r.push(i)}function J(i,o){let m=i;r.forEach(function(v){v[m]&&v[m](o)})}function Ft(i){return I("10.2.0","fixMarkup will be removed entirely in v11.0"),I("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),Q(i)}function jt(i){return I("10.7.0","highlightBlock will be removed entirely in v12.0"),I("10.7.0","Please use highlightElement now."),E(i)}Object.assign(e,{highlight:x,highlightAuto:R,highlightAll:Re,fixMarkup:Ft,highlightElement:E,highlightBlock:jt,configure:N,initHighlighting:pe,initHighlightingOnLoad:At,registerLanguage:Lt,unregisterLanguage:Tt,listLanguages:$t,getLanguage:B,registerAliases:De,requireLanguage:Bt,autoDetection:ke,inherit:Xe,addPlugin:Pt,vuePlugin:Za(e).VuePlugin}),e.debugMode=function(){l=!1},e.safeMode=function(){l=!0},e.versionString=Ka;for(let i in oe)typeof oe[i]=="object"&&Ye(oe[i]);return Object.assign(e,oe),e.addPlugin(b),e.addPlugin(Ya),e.addPlugin(_),e},ei=Ja({});rt.exports=ei});var dt=ie((pr,lt)=>{function ot(e){return e?typeof e=="string"?e:e.source:null}function st(e){return z("(?=",e,")")}function ti(e){return z("(",e,")?")}function z(...e){return e.map(a=>ot(a)).join("")}function ai(...e){return"("+e.map(a=>ot(a)).join("|")+")"}function ii(e){let t=z(/[A-Z_]/,ti(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),a=/[A-Za-z0-9._:-]+/,r={className:"symbol",begin:/&[a-z]+;|[0-9]+;|[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},p=e.inherit(l,{begin:/\(/,end:/\)/}),y=e.inherit(e.APOS_STRING_MODE,{className:"meta-string"}),n=e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),s={endsWithParent:!0,illegal:/,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[l,n,y,p,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[l,p,n,y]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},r,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/