avo 2.11.3.pre.1 → 2.11.3.pre.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/app/components/avo/actions_component.html.erb +3 -3
  4. data/app/components/avo/actions_component.rb +3 -12
  5. data/app/components/avo/button_component.rb +3 -1
  6. data/app/components/avo/card_component.html.erb +8 -8
  7. data/app/components/avo/cards_list_component.html.erb +16 -0
  8. data/app/components/avo/cards_list_component.rb +13 -0
  9. data/app/components/avo/panel_component.html.erb +1 -1
  10. data/app/components/avo/resource_component.rb +4 -6
  11. data/app/components/avo/sidebar_component.html.erb +1 -1
  12. data/app/components/avo/views/resource_edit_component.rb +20 -0
  13. data/app/components/avo/views/resource_index_component.html.erb +90 -42
  14. data/app/components/avo/views/resource_show_component.html.erb +50 -137
  15. data/app/components/avo/views/resource_show_component.rb +0 -1
  16. data/app/controllers/avo/application_controller.rb +2 -2
  17. data/app/controllers/avo/associations_controller.rb +1 -1
  18. data/app/controllers/avo/base_controller.rb +7 -3
  19. data/app/controllers/avo/cards_controller.rb +18 -5
  20. data/app/controllers/avo/dashboards_controller.rb +4 -2
  21. data/app/javascript/js/controllers/{dashboard_card_controller.js → card_controller.js} +0 -0
  22. data/app/javascript/js/controllers.js +2 -2
  23. data/app/views/avo/cards/_metric_card.html.erb +2 -2
  24. data/app/views/avo/dashboards/show.html.erb +2 -19
  25. data/app/views/avo/debug/report.html.erb +0 -1
  26. data/app/views/avo/private/design.html.erb +1 -1
  27. data/app/views/layouts/avo/application.html.erb +1 -1
  28. data/config/routes.rb +3 -0
  29. data/lib/avo/base_card.rb +40 -20
  30. data/lib/avo/base_resource.rb +2 -5
  31. data/lib/avo/concerns/has_cards.rb +88 -0
  32. data/lib/avo/concerns/has_model.rb +11 -0
  33. data/lib/avo/concerns/styles_cards.rb +48 -0
  34. data/lib/avo/dashboards/base_dashboard.rb +15 -50
  35. data/lib/avo/dashboards/base_divider.rb +5 -1
  36. data/lib/avo/dashboards/chartkick_card.rb +3 -3
  37. data/lib/avo/fields/base_field.rb +2 -6
  38. data/lib/avo/fields/field_extensions/visible_in_different_views.rb +12 -1
  39. data/lib/avo/hosts/dashboard_card.rb +1 -1
  40. data/lib/avo/licensing/pro_license.rb +0 -1
  41. data/lib/avo/tab.rb +3 -1
  42. data/lib/avo/version.rb +1 -1
  43. data/lib/generators/avo/templates/action.tt +1 -1
  44. data/lib/generators/avo/templates/cards/partial_card_partial.tt +1 -1
  45. data/lib/generators/avo/templates/resource_tools/partial.tt +1 -1
  46. data/lib/generators/avo/templates/standalone_action.tt +1 -1
  47. data/public/avo-assets/avo.css +150 -594
  48. data/public/avo-assets/avo.js +6 -6
  49. data/public/avo-assets/avo.js.map +3 -3
  50. metadata +7 -13
  51. data/lib/avo/concerns/has_editable_controls.rb +0 -34
  52. data/lib/avo/resources/controls/action.rb +0 -32
  53. data/lib/avo/resources/controls/actions_list.rb +0 -19
  54. data/lib/avo/resources/controls/back_button.rb +0 -13
  55. data/lib/avo/resources/controls/base_control.rb +0 -59
  56. data/lib/avo/resources/controls/delete_button.rb +0 -13
  57. data/lib/avo/resources/controls/detach_button.rb +0 -13
  58. data/lib/avo/resources/controls/edit_button.rb +0 -13
  59. data/lib/avo/resources/controls/execution_context.rb +0 -59
  60. data/lib/avo/resources/controls/items_holder.rb +0 -19
  61. data/lib/avo/resources/controls/link_to.rb +0 -27
@@ -39,7 +39,7 @@ chart.draw(data, `+JSON.stringify(Re)+");"),H.chart=new this.library.visualizati
39
39
 
40
40
  %o
41
41
 
42
- %o`,r,e,n),(i=window.onerror)===null||i===void 0||i.call(window,r,"",0,0,e)}logFormattedMessage(e,r,n={}){n=Object.assign({application:this},n),this.logger.groupCollapsed(`${e} #${r}`),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}};dGe={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},hGe={array(t){let e=JSON.parse(t);if(!Array.isArray(e))throw new TypeError("Expected array");return e},boolean(t){return!(t=="0"||t=="false")},number(t){return Number(t)},object(t){let e=JSON.parse(t);if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError("Expected object");return e},string(t){return t}},ere={default:pGe,array:tre,object:tre};Ct=class{constructor(e){this.context=e}static get shouldLoad(){return!0}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:r=this.element,detail:n={},prefix:i=this.identifier,bubbles:o=!0,cancelable:a=!0}={}){let s=i?`${i}:${e}`:e,u=new CustomEvent(s,{detail:n,bubbles:o,cancelable:a});return r.dispatchEvent(u),u}};Ct.blessings=[rGe,iGe,aGe];Ct.targets=[];Ct.values={}});var n0,Cre,x1,XR,Are,QR,w1,Tre,Dre,Ore=se(()=>{Pr();n0=class extends Ct{initialize(){this.hide()}connect(){setTimeout(()=>{this.show()},this.showAfter),this.hasDismissAfterValue&&setTimeout(()=>{this.close()},this.dismissAfterValue)}close(){this.hide(),setTimeout(()=>{this.element.remove()},this.removeAfter)}show(){this.element.classList.add(...this.showClasses),this.element.classList.remove(...this.hideClasses)}hide(){this.element.classList.add(...this.hideClasses),this.element.classList.remove(...this.showClasses)}get removeAfter(){return this.hasRemoveDelayValue?this.removeDelayValue:1100}get showAfter(){return this.hasShowDelayValue?this.showDelayValue:200}};n0.values={dismissAfter:Number,showDelay:Number,removeDelay:Number},n0.classes=["show","hide"];Cre=class extends Ct{connect(){this.timeout=null,this.duration=this.data.get("duration")||1e3}save(){clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.statusTarget.textContent="Saving...",Rails.fire(this.formTarget,"submit")},this.duration)}success(){this.setStatus("Saved!")}error(){this.setStatus("Unable to save!")}setStatus(e){this.statusTarget.textContent=e,this.timeout=setTimeout(()=>{this.statusTarget.textContent=""},2e3)}};Cre.targets=["form","status"];x1=class extends Ct{constructor(...e){super(...e),this._onMenuButtonKeydown=r=>{switch(r.keyCode){case 13:case 32:r.preventDefault(),this.toggle()}}}connect(){this.toggleClass=this.data.get("class")||"hidden",this.visibleClass=this.data.get("visibleClass")||null,this.invisibleClass=this.data.get("invisibleClass")||null,this.activeClass=this.data.get("activeClass")||null,this.enteringClass=this.data.get("enteringClass")||null,this.leavingClass=this.data.get("leavingClass")||null,this.hasButtonTarget&&this.buttonTarget.addEventListener("keydown",this._onMenuButtonKeydown),this.element.setAttribute("aria-haspopup","true")}disconnect(){this.hasButtonTarget&&this.buttonTarget.removeEventListener("keydown",this._onMenuButtonKeydown)}toggle(){this.openValue=!this.openValue}openValueChanged(){this.openValue?this._show():this._hide()}_show(e){setTimeout((()=>{this.menuTarget.classList.remove(this.toggleClass),this.element.setAttribute("aria-expanded","true"),this._enteringClassList[0].forEach((r=>{this.menuTarget.classList.add(r)}).bind(this)),this._activeClassList[0].forEach(r=>{this.activeTarget.classList.add(r)}),this._invisibleClassList[0].forEach(r=>this.menuTarget.classList.remove(r)),this._visibleClassList[0].forEach(r=>{this.menuTarget.classList.add(r)}),setTimeout((()=>{this._enteringClassList[0].forEach(r=>this.menuTarget.classList.remove(r))}).bind(this),this.enterTimeout[0]),typeof e=="function"&&e()}).bind(this))}_hide(e){setTimeout((()=>{this.element.setAttribute("aria-expanded","false"),this._invisibleClassList[0].forEach(r=>this.menuTarget.classList.add(r)),this._visibleClassList[0].forEach(r=>this.menuTarget.classList.remove(r)),this._activeClassList[0].forEach(r=>this.activeTarget.classList.remove(r)),this._leavingClassList[0].forEach(r=>this.menuTarget.classList.add(r)),setTimeout((()=>{this._leavingClassList[0].forEach(r=>this.menuTarget.classList.remove(r)),typeof e=="function"&&e(),this.menuTarget.classList.add(this.toggleClass)}).bind(this),this.leaveTimeout[0])}).bind(this))}show(){this.openValue=!0}hide(e){this.element.contains(e.target)===!1&&this.openValue&&(this.openValue=!1)}get activeTarget(){return this.data.has("activeTarget")?document.querySelector(this.data.get("activeTarget")):this.element}get _activeClassList(){return this.activeClass?this.activeClass.split(",").map(e=>e.split(" ")):[[],[]]}get _visibleClassList(){return this.visibleClass?this.visibleClass.split(",").map(e=>e.split(" ")):[[],[]]}get _invisibleClassList(){return this.invisibleClass?this.invisibleClass.split(",").map(e=>e.split(" ")):[[],[]]}get _enteringClassList(){return this.enteringClass?this.enteringClass.split(",").map(e=>e.split(" ")):[[],[]]}get _leavingClassList(){return this.leavingClass?this.leavingClass.split(",").map(e=>e.split(" ")):[[],[]]}get enterTimeout(){return(this.data.get("enterTimeout")||"0,0").split(",").map(e=>parseInt(e))}get leaveTimeout(){return(this.data.get("leaveTimeout")||"0,0").split(",").map(e=>parseInt(e))}};x1.targets=["menu","button"],x1.values={open:Boolean};XR=class extends Ct{connect(){this.toggleClass=this.data.get("class")||"hidden",this.backgroundId=this.data.get("backgroundId")||"modal-background",this.backgroundHtml=this.data.get("backgroundHtml")||this._backgroundHTML(),this.allowBackgroundClose=(this.data.get("allowBackgroundClose")||"true")==="true",this.preventDefaultActionOpening=(this.data.get("preventDefaultActionOpening")||"true")==="true",this.preventDefaultActionClosing=(this.data.get("preventDefaultActionClosing")||"true")==="true"}disconnect(){this.close()}open(e){this.preventDefaultActionOpening&&e.preventDefault(),e.target.blur&&e.target.blur(),this.lockScroll(),this.containerTarget.classList.remove(this.toggleClass),this.data.get("disable-backdrop")||(document.body.insertAdjacentHTML("beforeend",this.backgroundHtml),this.background=document.querySelector(`#${this.backgroundId}`))}close(e){e&&this.preventDefaultActionClosing&&e.preventDefault(),this.unlockScroll(),this.containerTarget.classList.add(this.toggleClass),this.background&&this.background.remove()}closeBackground(e){this.allowBackgroundClose&&e.target===this.containerTarget&&this.close(e)}closeWithKeyboard(e){e.keyCode!==27||this.containerTarget.classList.contains(this.toggleClass)||this.close(e)}_backgroundHTML(){return`<div id="${this.backgroundId}" class="fixed top-0 left-0 w-full h-full" style="background-color: ${this.backdropColorValue}; z-index: 9998;"></div>`}lockScroll(){let e=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight=`${e}px`,this.saveScrollPosition(),document.body.classList.add("fixed","inset-x-0","overflow-hidden"),document.body.style.top=`-${this.scrollPosition}px`}unlockScroll(){document.body.style.paddingRight=null,document.body.classList.remove("fixed","inset-x-0","overflow-hidden"),this.restoreScrollValue&&this.restoreScrollPosition(),document.body.style.top=null}saveScrollPosition(){this.scrollPosition=window.pageYOffset||document.body.scrollTop}restoreScrollPosition(){this.scrollPosition!==void 0&&(document.documentElement.scrollTop=this.scrollPosition)}};XR.targets=["container"],XR.values={backdropColor:{type:String,default:"rgba(0, 0, 0, 0.8)"},restoreScroll:{type:Boolean,default:!0}};Are=class extends Ct{connect(){this.activeTabClasses=(this.data.get("activeTab")||"active").split(" "),this.inactiveTabClasses=(this.data.get("inactiveTab")||"inactive").split(" "),this.anchor&&(this.index=this.tabTargets.findIndex(e=>e.id===this.anchor)),this.showTab()}change(e){e.preventDefault(),this.index=e.currentTarget.dataset.index?e.currentTarget.dataset.index:e.currentTarget.dataset.id?this.tabTargets.findIndex(r=>r.id==e.currentTarget.dataset.id):this.tabTargets.indexOf(e.currentTarget),window.dispatchEvent(new CustomEvent("tsc:tab-change"))}showTab(){this.tabTargets.forEach((e,r)=>{let n=this.panelTargets[r];r===this.index?(n.classList.remove("hidden"),e.classList.remove(...this.inactiveTabClasses),e.classList.add(...this.activeTabClasses),e.id&&(location.hash=e.id)):(n.classList.add("hidden"),e.classList.remove(...this.activeTabClasses),e.classList.add(...this.inactiveTabClasses))})}get index(){return parseInt(this.data.get("index")||0)}set index(e){this.data.set("index",e>=0?e:0),this.showTab()}get anchor(){return document.URL.split("#").length>1?document.URL.split("#")[1]:null}};Are.targets=["tab","panel"];QR=class extends Ct{connect(){this.toggleClass=this.data.get("class")||"hidden"}toggle(e){e.preventDefault(),this.openValue=!this.openValue}hide(e){e.preventDefault(),this.openValue=!1}show(e){e.preventDefault(),this.openValue=!0}openValueChanged(){this.toggleClass&&this.toggleableTargets.forEach(e=>{e.classList.toggle(this.toggleClass)})}};QR.targets=["toggleable"],QR.values={open:Boolean};w1=class extends Ct{initialize(){this.contentTarget.setAttribute("style",`transform:translate(${this.data.get("translateX")}, ${this.data.get("translateY")});`)}mouseOver(){this.contentTarget.classList.remove("hidden")}mouseOut(){this.contentTarget.classList.add("hidden")}};w1.targets=["content"];Tre=class extends x1{_show(){this.overlayTarget.classList.remove(this.toggleClass),super._show((()=>{this._activeClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),this._invisibleClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._visibleClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),setTimeout((()=>{this._enteringClassList[1].forEach(e=>this.overlayTarget.classList.remove(e))}).bind(this),this.enterTimeout[1])}).bind(this))}_hide(){this._leavingClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),super._hide((()=>{setTimeout((()=>{this._visibleClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._invisibleClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),this._activeClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._leavingClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this.overlayTarget.classList.add(this.toggleClass)}).bind(this),this.leaveTimeout[1])}).bind(this))}};Tre.targets=["menu","overlay"];Dre=class extends Ct{connect(){this.styleProperty=this.data.get("style")||"backgroundColor"}update(){this.preview=this.color}set preview(e){this.previewTarget.style[this.styleProperty]=e;let r=this._getContrastYIQ(e);this.styleProperty==="color"?this.previewTarget.style.backgroundColor=r:this.previewTarget.style.color=r}get color(){return this.colorTarget.value}_getContrastYIQ(e){return e=e.replace("#",""),(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3>=128?"#000":"#fff"}};Dre.targets=["preview","color"]});var mr,Mre=se(()=>{Ore();Pr();mr=r0.start();mr.debug=window==null?void 0:window.localStorage.getItem("avo.debug");window.Stimulus=mr;mr.register("alert",n0);mr.register("popover",w1)});var Mo,Qg=se(()=>{Mo=t=>t=="true"});var _1,Ire=se(()=>{Pr();Qg();_1=class extends Ct{connect(){this.resourceIdsTarget.value=this.resourceIds,this.noConfirmation?this.formTarget.submit():this.controllerDivTarget.classList.remove("hidden")}get noConfirmation(){return Mo(this.controllerDivTarget.dataset.noConfirmation)}get resourceName(){return this.controllerDivTarget.dataset.resourceName}get resourceIds(){try{return JSON.parse(document.querySelector(`[data-selected-resources-name="${this.resourceName}"]`).dataset.selectedResources)}catch(t){return[]}}};xt(_1,"targets",["controllerDiv","resourceIds","form"])});var Lre,ZR=se(()=>{Lre=function(){function t(e,r){var n=this;this.element=e,this.started=!1,this.delegate=r,this.elements=new Set,this.mutationObserver=new MutationObserver(function(i){return n.processMutations(i)})}return t.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,childList:!0,subtree:!0}),this.refresh())},t.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},t.prototype.refresh=function(){if(this.started){for(var e=new Set(this.matchElementsInTree()),r=0,n=Array.from(this.elements);r<n.length;r++){var i=n[r];e.has(i)||this.removeElement(i)}for(var o=0,a=Array.from(e);o<a.length;o++){var i=a[o];this.addElement(i)}}},t.prototype.processMutations=function(e){if(this.started)for(var r=0,n=e;r<n.length;r++){var i=n[r];this.processMutation(i)}},t.prototype.processMutation=function(e){e.type=="attributes"?this.processAttributeChange(e.target,e.attributeName):e.type=="childList"&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))},t.prototype.processAttributeChange=function(e,r){var n=e;this.elements.has(n)?this.delegate.elementAttributeChanged&&this.matchElement(n)?this.delegate.elementAttributeChanged(n,r):this.removeElement(n):this.matchElement(n)&&this.addElement(n)},t.prototype.processRemovedNodes=function(e){for(var r=0,n=Array.from(e);r<n.length;r++){var i=n[r],o=this.elementFromNode(i);o&&this.processTree(o,this.removeElement)}},t.prototype.processAddedNodes=function(e){for(var r=0,n=Array.from(e);r<n.length;r++){var i=n[r],o=this.elementFromNode(i);o&&this.elementIsActive(o)&&this.processTree(o,this.addElement)}},t.prototype.matchElement=function(e){return this.delegate.matchElement(e)},t.prototype.matchElementsInTree=function(e){return e===void 0&&(e=this.element),this.delegate.matchElementsInTree(e)},t.prototype.processTree=function(e,r){for(var n=0,i=this.matchElementsInTree(e);n<i.length;n++){var o=i[n];r.call(this,o)}},t.prototype.elementFromNode=function(e){if(e.nodeType==Node.ELEMENT_NODE)return e},t.prototype.elementIsActive=function(e){return e.isConnected!=this.element.isConnected?!1:this.element.contains(e)},t.prototype.addElement=function(e){this.elements.has(e)||this.elementIsActive(e)&&(this.elements.add(e),this.delegate.elementMatched&&this.delegate.elementMatched(e))},t.prototype.removeElement=function(e){this.elements.has(e)&&(this.elements.delete(e),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(e))},t}()});var Zg,JR=se(()=>{ZR();Zg=function(){function t(e,r,n){this.attributeName=r,this.delegate=n,this.elementObserver=new Lre(e,this)}return Object.defineProperty(t.prototype,"element",{get:function(){return this.elementObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selector",{get:function(){return"["+this.attributeName+"]"},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.elementObserver.start()},t.prototype.stop=function(){this.elementObserver.stop()},t.prototype.refresh=function(){this.elementObserver.refresh()},Object.defineProperty(t.prototype,"started",{get:function(){return this.elementObserver.started},enumerable:!1,configurable:!0}),t.prototype.matchElement=function(e){return e.hasAttribute(this.attributeName)},t.prototype.matchElementsInTree=function(e){var r=this.matchElement(e)?[e]:[],n=Array.from(e.querySelectorAll(this.selector));return r.concat(n)},t.prototype.elementMatched=function(e){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(e,this.attributeName)},t.prototype.elementUnmatched=function(e){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(e,this.attributeName)},t.prototype.elementAttributeChanged=function(e,r){this.delegate.elementAttributeValueChanged&&this.attributeName==r&&this.delegate.elementAttributeValueChanged(e,r)},t}()});var S1t,Pre=se(()=>{S1t=function(){function t(e,r){var n=this;this.element=e,this.delegate=r,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(function(i){return n.processMutations(i)})}return t.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0}),this.refresh())},t.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},t.prototype.refresh=function(){if(this.started)for(var e=0,r=this.knownAttributeNames;e<r.length;e++){var n=r[e];this.refreshAttribute(n)}},t.prototype.processMutations=function(e){if(this.started)for(var r=0,n=e;r<n.length;r++){var i=n[r];this.processMutation(i)}},t.prototype.processMutation=function(e){var r=e.attributeName;r&&this.refreshAttribute(r)},t.prototype.refreshAttribute=function(e){var r=this.delegate.getStringMapKeyForAttribute(e);if(r!=null){this.stringMap.has(e)||this.stringMapKeyAdded(r,e);var n=this.element.getAttribute(e);this.stringMap.get(e)!=n&&this.stringMapValueChanged(n,r),n==null?(this.stringMap.delete(e),this.stringMapKeyRemoved(r,e)):this.stringMap.set(e,n)}},t.prototype.stringMapKeyAdded=function(e,r){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(e,r)},t.prototype.stringMapValueChanged=function(e,r){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(e,r)},t.prototype.stringMapKeyRemoved=function(e,r){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(e,r)},Object.defineProperty(t.prototype,"knownAttributeNames",{get:function(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentAttributeNames",{get:function(){return Array.from(this.element.attributes).map(function(e){return e.name})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recordedAttributeNames",{get:function(){return Array.from(this.stringMap.keys())},enumerable:!1,configurable:!0}),t}()});function S1(t,e,r){Rre(t,e).add(r)}function k1(t,e,r){Rre(t,e).delete(r),gGe(t,e)}function Rre(t,e){var r=t.get(e);return r||(r=new Set,t.set(e,r)),r}function gGe(t,e){var r=t.get(e);r!=null&&r.size==0&&t.delete(e)}var E1=se(()=>{});var C1,eq=se(()=>{E1();C1=function(){function t(){this.valuesByKey=new Map}return Object.defineProperty(t.prototype,"values",{get:function(){var e=Array.from(this.valuesByKey.values());return e.reduce(function(r,n){return r.concat(Array.from(n))},[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=Array.from(this.valuesByKey.values());return e.reduce(function(r,n){return r+n.size},0)},enumerable:!1,configurable:!0}),t.prototype.add=function(e,r){S1(this.valuesByKey,e,r)},t.prototype.delete=function(e,r){k1(this.valuesByKey,e,r)},t.prototype.has=function(e,r){var n=this.valuesByKey.get(e);return n!=null&&n.has(r)},t.prototype.hasKey=function(e){return this.valuesByKey.has(e)},t.prototype.hasValue=function(e){var r=Array.from(this.valuesByKey.values());return r.some(function(n){return n.has(e)})},t.prototype.getValuesForKey=function(e){var r=this.valuesByKey.get(e);return r?Array.from(r):[]},t.prototype.getKeysForValue=function(e){return Array.from(this.valuesByKey).filter(function(r){var n=r[0],i=r[1];return i.has(e)}).map(function(r){var n=r[0],i=r[1];return n})},t}()});var mGe,O1t,qre=se(()=>{eq();E1();mGe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),O1t=function(t){mGe(e,t);function e(){var r=t.call(this)||this;return r.keysByValue=new Map,r}return Object.defineProperty(e.prototype,"values",{get:function(){return Array.from(this.keysByValue.keys())},enumerable:!1,configurable:!0}),e.prototype.add=function(r,n){t.prototype.add.call(this,r,n),S1(this.keysByValue,n,r)},e.prototype.delete=function(r,n){t.prototype.delete.call(this,r,n),k1(this.keysByValue,n,r)},e.prototype.hasValue=function(r){return this.keysByValue.has(r)},e.prototype.getKeysForValue=function(r){var n=this.keysByValue.get(r);return n?Array.from(n):[]},e}(C1)});var Fre=se(()=>{qre();eq();E1()});function vGe(t,e,r){return t.trim().split(/\s+/).filter(function(n){return n.length}).map(function(n,i){return{element:e,attributeName:r,content:n,index:i}})}function yGe(t,e){var r=Math.max(t.length,e.length);return Array.from({length:r},function(n,i){return[t[i],e[i]]})}function bGe(t,e){return t&&e&&t.index==e.index&&t.content==e.content}var Nre,tq=se(()=>{JR();Fre();Nre=function(){function t(e,r,n){this.attributeObserver=new Zg(e,r,this),this.delegate=n,this.tokensByElement=new C1}return Object.defineProperty(t.prototype,"started",{get:function(){return this.attributeObserver.started},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.attributeObserver.start()},t.prototype.stop=function(){this.attributeObserver.stop()},t.prototype.refresh=function(){this.attributeObserver.refresh()},Object.defineProperty(t.prototype,"element",{get:function(){return this.attributeObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributeName",{get:function(){return this.attributeObserver.attributeName},enumerable:!1,configurable:!0}),t.prototype.elementMatchedAttribute=function(e){this.tokensMatched(this.readTokensForElement(e))},t.prototype.elementAttributeValueChanged=function(e){var r=this.refreshTokensForElement(e),n=r[0],i=r[1];this.tokensUnmatched(n),this.tokensMatched(i)},t.prototype.elementUnmatchedAttribute=function(e){this.tokensUnmatched(this.tokensByElement.getValuesForKey(e))},t.prototype.tokensMatched=function(e){var r=this;e.forEach(function(n){return r.tokenMatched(n)})},t.prototype.tokensUnmatched=function(e){var r=this;e.forEach(function(n){return r.tokenUnmatched(n)})},t.prototype.tokenMatched=function(e){this.delegate.tokenMatched(e),this.tokensByElement.add(e.element,e)},t.prototype.tokenUnmatched=function(e){this.delegate.tokenUnmatched(e),this.tokensByElement.delete(e.element,e)},t.prototype.refreshTokensForElement=function(e){var r=this.tokensByElement.getValuesForKey(e),n=this.readTokensForElement(e),i=yGe(r,n).findIndex(function(o){var a=o[0],s=o[1];return!bGe(a,s)});return i==-1?[[],[]]:[r.slice(i),n.slice(i)]},t.prototype.readTokensForElement=function(e){var r=this.attributeName,n=e.getAttribute(r)||"";return vGe(n,e,r)},t}()});var j1t,Bre=se(()=>{tq();j1t=function(){function t(e,r,n){this.tokenListObserver=new Nre(e,r,this),this.delegate=n,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}return Object.defineProperty(t.prototype,"started",{get:function(){return this.tokenListObserver.started},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.tokenListObserver.start()},t.prototype.stop=function(){this.tokenListObserver.stop()},t.prototype.refresh=function(){this.tokenListObserver.refresh()},Object.defineProperty(t.prototype,"element",{get:function(){return this.tokenListObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributeName",{get:function(){return this.tokenListObserver.attributeName},enumerable:!1,configurable:!0}),t.prototype.tokenMatched=function(e){var r=e.element,n=this.fetchParseResultForToken(e).value;n&&(this.fetchValuesByTokenForElement(r).set(e,n),this.delegate.elementMatchedValue(r,n))},t.prototype.tokenUnmatched=function(e){var r=e.element,n=this.fetchParseResultForToken(e).value;n&&(this.fetchValuesByTokenForElement(r).delete(e),this.delegate.elementUnmatchedValue(r,n))},t.prototype.fetchParseResultForToken=function(e){var r=this.parseResultsByToken.get(e);return r||(r=this.parseToken(e),this.parseResultsByToken.set(e,r)),r},t.prototype.fetchValuesByTokenForElement=function(e){var r=this.valuesByTokenByElement.get(e);return r||(r=new Map,this.valuesByTokenByElement.set(e,r)),r},t.prototype.parseToken=function(e){try{var r=this.delegate.parseValueForToken(e);return{value:r}}catch(n){return{error:n}}},t}()});var rq=se(()=>{JR();ZR();Pre();tq();Bre()});var i0,jre=se(()=>{rq();Pr();i0=class extends Ct{constructor(){super(...arguments);xt(this,"target",{})}get targetIsDisabled(){return this.target.dataset.disabled==="true"}enableTarget(){this.targetIsDisabled&&(this.target.classList.remove(...this.disabledClasses),this.target.classList.add(...this.enabledClasses),this.target.dataset.disabled=!1)}disableTarget(){this.target.classList.remove(...this.enabledClasses),this.target.classList.add(...this.disabledClasses),this.target.dataset.disabled=!0}visitAction(t){if(this.target=t.target,this.targetIsDisabled){t.preventDefault();return}this.disableTarget();let e=new Zg(document.querySelector("turbo-frame#actions_show"),"busy",{elementUnmatchedAttribute:()=>{this.enableTarget(this.target),e&&e.stop()}});e.start()}};xt(i0,"targets",["resourceAction","standaloneAction"]),xt(i0,"classes",["enabled","disabled"])});var A1,zre=se(()=>{Pr();A1=class extends Ct{connect(){this.formTarget.submit()}};xt(A1,"targets",["form"])});var T1,Hre=se(()=>{Pr();T1=class extends Ct{constructor(){super(...arguments);xt(this,"defaults",{})}get selectedType(){return this.selectTarget.value}get isSearchable(){return this.context.scope.element.dataset.searchable==="true"}get association(){return this.context.scope.element.dataset.association}get associationClass(){return this.context.scope.element.dataset.associationClass}connect(){this.copyValidNames(),this.changeType()}changeType(){this.hideAllTypes(),this.showType(this.selectTarget.value)}hideAllTypes(){this.typeTargets.forEach(t=>{t.classList.add("hidden"),this.invalidateTarget(t)})}copyValidNames(){this.typeTargets.forEach(t=>{let{type:e}=t.dataset;if(this.isSearchable){let r=t.querySelector('input[type="text"]');r&&this.nameToValidName(r);let n=t.querySelector('input[type="hidden"]');n&&this.nameToValidName(n)}else{let r=t.querySelector("select");r&&this.nameToValidName(r);let n=t.querySelector('input[type="hidden"]');n&&this.nameToValidName(n),this.selectedType!==e&&(r.selectedIndex=0)}})}showType(t){let e=this.typeTargets.find(r=>r.dataset.type===t);e&&(e.classList.remove("hidden"),this.validateTarget(e))}validateTarget(t){if(this.isSearchable){let e=t.querySelector('input[type="text"]'),r=t.querySelector('input[type="hidden"]');this.validNameToName(e),this.validNameToName(r)}else{let e=t.querySelector("select"),r=t.querySelector('input[type="hidden"]');this.validNameToName(e),r&&this.validNameToName(r)}}invalidateTarget(t){if(this.isSearchable)try{t.querySelector('input[type="text"]').setAttribute("name",""),t.querySelector('input[type="hidden"]').setAttribute("name","")}catch(e){}else if(t)try{t.querySelector("select").setAttribute("name",""),t.querySelector('input[type="hidden"]').setAttribute("name","")}catch(e){}}validNameToName(t){t.setAttribute("name",t.getAttribute("valid-name"))}nameToValidName(t){t.setAttribute("valid-name",t.getAttribute("name"))}};xt(T1,"targets",["select","type","loadAssociationLink"])});var Wre=Z((Jg,em)=>{(function(t){var e=typeof Jg=="object"&&Jg&&!Jg.nodeType&&Jg,r=typeof em=="object"&&em&&!em.nodeType&&em,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(t=n);var i,o=2147483647,a=36,s=1,u=26,c=38,f=700,p=72,g=128,m="-",x=/^xn--/,w=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=a-s,D=Math.floor,M=String.fromCharCode,P;function _(X){throw new RangeError(k[X])}function C(X,oe){for(var G=X.length,K=[];G--;)K[G]=oe(X[G]);return K}function O(X,oe){var G=X.split("@"),K="";G.length>1&&(K=G[0]+"@",X=G[1]),X=X.replace(T,".");var ve=X.split("."),Se=C(ve,oe).join(".");return K+Se}function F(X){for(var oe=[],G=0,K=X.length,ve,Se;G<K;)ve=X.charCodeAt(G++),ve>=55296&&ve<=56319&&G<K?(Se=X.charCodeAt(G++),(Se&64512)==56320?oe.push(((ve&1023)<<10)+(Se&1023)+65536):(oe.push(ve),G--)):oe.push(ve);return oe}function B(X){return C(X,function(oe){var G="";return oe>65535&&(oe-=65536,G+=M(oe>>>10&1023|55296),oe=56320|oe&1023),G+=M(oe),G}).join("")}function V(X){return X-48<10?X-22:X-65<26?X-65:X-97<26?X-97:a}function S(X,oe){return X+22+75*(X<26)-((oe!=0)<<5)}function R(X,oe,G){var K=0;for(X=G?D(X/f):X>>1,X+=D(X/oe);X>A*u>>1;K+=a)X=D(X/A);return D(K+(A+1)*X/(X+c))}function q(X){var oe=[],G=X.length,K,ve=0,Se=g,_e=p,Ne,Le,it,ze,tt,wt,At,Ve,Oe;for(Ne=X.lastIndexOf(m),Ne<0&&(Ne=0),Le=0;Le<Ne;++Le)X.charCodeAt(Le)>=128&&_("not-basic"),oe.push(X.charCodeAt(Le));for(it=Ne>0?Ne+1:0;it<G;){for(ze=ve,tt=1,wt=a;it>=G&&_("invalid-input"),At=V(X.charCodeAt(it++)),(At>=a||At>D((o-ve)/tt))&&_("overflow"),ve+=At*tt,Ve=wt<=_e?s:wt>=_e+u?u:wt-_e,!(At<Ve);wt+=a)Oe=a-Ve,tt>D(o/Oe)&&_("overflow"),tt*=Oe;K=oe.length+1,_e=R(ve-ze,K,ze==0),D(ve/K)>o-Se&&_("overflow"),Se+=D(ve/K),ve%=K,oe.splice(ve++,0,Se)}return B(oe)}function W(X){var oe,G,K,ve,Se,_e,Ne,Le,it,ze,tt,wt=[],At,Ve,Oe,Me;for(X=F(X),At=X.length,oe=g,G=0,Se=p,_e=0;_e<At;++_e)tt=X[_e],tt<128&&wt.push(M(tt));for(K=ve=wt.length,ve&&wt.push(m);K<At;){for(Ne=o,_e=0;_e<At;++_e)tt=X[_e],tt>=oe&&tt<Ne&&(Ne=tt);for(Ve=K+1,Ne-oe>D((o-G)/Ve)&&_("overflow"),G+=(Ne-oe)*Ve,oe=Ne,_e=0;_e<At;++_e)if(tt=X[_e],tt<oe&&++G>o&&_("overflow"),tt==oe){for(Le=G,it=a;ze=it<=Se?s:it>=Se+u?u:it-Se,!(Le<ze);it+=a)Me=Le-ze,Oe=a-ze,wt.push(M(S(ze+Me%Oe,0))),Le=D(Me/Oe);wt.push(M(S(Le,0))),Se=R(G,Ve,K==ve),G=0,++K}++G,++oe}return wt.join("")}function N(X){return O(X,function(oe){return x.test(oe)?q(oe.slice(4).toLowerCase()):oe})}function z(X){return O(X,function(oe){return w.test(oe)?"xn--"+W(oe):oe})}if(i={version:"1.3.2",ucs2:{decode:F,encode:B},decode:q,encode:W,toASCII:z,toUnicode:N},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(e&&r)if(em.exports==e)r.exports=i;else for(P in i)i.hasOwnProperty(P)&&(e[P]=i[P]);else t.punycode=i})(Jg)});var Vre=Z((Ure,D1)=>{(function(t,e){"use strict";typeof D1=="object"&&D1.exports?D1.exports=e():typeof define=="function"&&define.amd?define(e):t.IPv6=e(t)})(Ure,function(t){"use strict";var e=t&&t.IPv6;function r(i){var o=i.toLowerCase(),a=o.split(":"),s=a.length,u=8;a[0]===""&&a[1]===""&&a[2]===""?(a.shift(),a.shift()):a[0]===""&&a[1]===""?a.shift():a[s-1]===""&&a[s-2]===""&&a.pop(),s=a.length,a[s-1].indexOf(".")!==-1&&(u=7);var c;for(c=0;c<s&&a[c]!=="";c++);if(c<u)for(a.splice(c,1,"0000");a.length<u;)a.splice(c,0,"0000");for(var f,p=0;p<u;p++){f=a[p].split("");for(var g=0;g<3&&(f[0]==="0"&&f.length>1);g++)f.splice(0,1);a[p]=f.join("")}var m=-1,x=0,w=0,T=-1,k=!1;for(p=0;p<u;p++)k?a[p]==="0"?w+=1:(k=!1,w>x&&(m=T,x=w)):a[p]==="0"&&(k=!0,T=p,w=1);w>x&&(m=T,x=w),x>1&&a.splice(m,x,""),s=a.length;var A="";for(a[0]===""&&(A=":"),p=0;p<s&&(A+=a[p],p!==s-1);p++)A+=":";return a[s-1]===""&&(A+=":"),A}function n(){return t.IPv6===this&&(t.IPv6=e),this}return{best:r,noConflict:n}})});var Yre=Z(($re,O1)=>{(function(t,e){"use strict";typeof O1=="object"&&O1.exports?O1.exports=e():typeof define=="function"&&define.amd?define(e):t.SecondLevelDomains=e(t)})($re,function(t){"use strict";var e=t&&t.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(n){var i=n.lastIndexOf(".");if(i<=0||i>=n.length-1)return!1;var o=n.lastIndexOf(".",i-1);if(o<=0||o>=i-1)return!1;var a=r.list[n.slice(i+1)];return a?a.indexOf(" "+n.slice(o+1,i)+" ")>=0:!1},is:function(n){var i=n.lastIndexOf(".");if(i<=0||i>=n.length-1)return!1;var o=n.lastIndexOf(".",i-1);if(o>=0)return!1;var a=r.list[n.slice(i+1)];return a?a.indexOf(" "+n.slice(0,i)+" ")>=0:!1},get:function(n){var i=n.lastIndexOf(".");if(i<=0||i>=n.length-1)return null;var o=n.lastIndexOf(".",i-1);if(o<=0||o>=i-1)return null;var a=r.list[n.slice(i+1)];return!a||a.indexOf(" "+n.slice(o+1,i)+" ")<0?null:n.slice(o+1)},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return r})});var I1=Z((Kre,M1)=>{(function(t,e){"use strict";typeof M1=="object"&&M1.exports?M1.exports=e(Wre(),Vre(),Yre()):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],e):t.URI=e(t.punycode,t.IPv6,t.SecondLevelDomains,t)})(Kre,function(t,e,r,n){"use strict";var i=n&&n.URI;function o(S,R){var q=arguments.length>=1,W=arguments.length>=2;if(!(this instanceof o))return q?W?new o(S,R):new o(S):new o;if(S===void 0){if(q)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?S=location.href+"":S=""}if(S===null&&q)throw new TypeError("null is not a valid argument for URI");return this.href(S),R!==void 0?this.absoluteTo(R):this}function a(S){return/^[0-9]+$/.test(S)}o.version="1.19.11";var s=o.prototype,u=Object.prototype.hasOwnProperty;function c(S){return S.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function f(S){return S===void 0?"Undefined":String(Object.prototype.toString.call(S)).slice(8,-1)}function p(S){return f(S)==="Array"}function g(S,R){var q={},W,N;if(f(R)==="RegExp")q=null;else if(p(R))for(W=0,N=R.length;W<N;W++)q[R[W]]=!0;else q[R]=!0;for(W=0,N=S.length;W<N;W++){var z=q&&q[S[W]]!==void 0||!q&&R.test(S[W]);z&&(S.splice(W,1),N--,W--)}return S}function m(S,R){var q,W;if(p(R)){for(q=0,W=R.length;q<W;q++)if(!m(S,R[q]))return!1;return!0}var N=f(R);for(q=0,W=S.length;q<W;q++)if(N==="RegExp"){if(typeof S[q]=="string"&&S[q].match(R))return!0}else if(S[q]===R)return!0;return!1}function x(S,R){if(!p(S)||!p(R)||S.length!==R.length)return!1;S.sort(),R.sort();for(var q=0,W=S.length;q<W;q++)if(S[q]!==R[q])return!1;return!0}function w(S){var R=/^\/+|\/+$/g;return S.replace(R,"")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(S){if(!(!S||!S.nodeName)){var R=S.nodeName.toLowerCase();if(!(R==="input"&&S.type!=="image"))return o.domAttributes[R]}};function T(S){return escape(S)}function k(S){return encodeURIComponent(S).replace(/[!'()*]/g,T).replace(/\*/g,"%2A")}o.encode=k,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=k,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(S,R){var q=o.encode(S+"");return R===void 0&&(R=o.escapeQuerySpace),R?q.replace(/%20/g,"+"):q},o.decodeQuery=function(S,R){S+="",R===void 0&&(R=o.escapeQuerySpace);try{return o.decode(R?S.replace(/\+/g,"%20"):S)}catch{return S}};var A={encode:"encode",decode:"decode"},D,M=function(S,R){return function(q){try{return o[R](q+"").replace(o.characters[S][R].expression,function(W){return o.characters[S][R].map[W]})}catch{return q}}};for(D in A)o[D+"PathSegment"]=M("pathname",A[D]),o[D+"UrnPathSegment"]=M("urnpath",A[D]);var P=function(S,R,q){return function(W){var N;q?N=function(G){return o[R](o[q](G))}:N=o[R];for(var z=(W+"").split(S),X=0,oe=z.length;X<oe;X++)z[X]=N(z[X]);return z.join(S)}};o.decodePath=P("/","decodePathSegment"),o.decodeUrnPath=P(":","decodeUrnPathSegment"),o.recodePath=P("/","encodePathSegment","decode"),o.recodeUrnPath=P(":","encodeUrnPathSegment","decode"),o.encodeReserved=M("reserved","encode"),o.parse=function(S,R){var q;return R||(R={preventInvalidHostname:o.preventInvalidHostname}),S=S.replace(o.leading_whitespace_expression,""),S=S.replace(o.ascii_tab_whitespace,""),q=S.indexOf("#"),q>-1&&(R.fragment=S.substring(q+1)||null,S=S.substring(0,q)),q=S.indexOf("?"),q>-1&&(R.query=S.substring(q+1)||null,S=S.substring(0,q)),S=S.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),S=S.replace(/^[/\\]{2,}/i,"//"),S.substring(0,2)==="//"?(R.protocol=null,S=S.substring(2),S=o.parseAuthority(S,R)):(q=S.indexOf(":"),q>-1&&(R.protocol=S.substring(0,q)||null,R.protocol&&!R.protocol.match(o.protocol_expression)?R.protocol=void 0:S.substring(q+1,q+3).replace(/\\/g,"/")==="//"?(S=S.substring(q+3),S=o.parseAuthority(S,R)):(S=S.substring(q+1),R.urn=!0))),R.path=S,R},o.parseHost=function(S,R){S||(S=""),S=S.replace(/\\/g,"/");var q=S.indexOf("/"),W,N;if(q===-1&&(q=S.length),S.charAt(0)==="[")W=S.indexOf("]"),R.hostname=S.substring(1,W)||null,R.port=S.substring(W+2,q)||null,R.port==="/"&&(R.port=null);else{var z=S.indexOf(":"),X=S.indexOf("/"),oe=S.indexOf(":",z+1);oe!==-1&&(X===-1||oe<X)?(R.hostname=S.substring(0,q)||null,R.port=null):(N=S.substring(0,q).split(":"),R.hostname=N[0]||null,R.port=N[1]||null)}return R.hostname&&S.substring(q).charAt(0)!=="/"&&(q++,S="/"+S),R.preventInvalidHostname&&o.ensureValidHostname(R.hostname,R.protocol),R.port&&o.ensureValidPort(R.port),S.substring(q)||"/"},o.parseAuthority=function(S,R){return S=o.parseUserinfo(S,R),o.parseHost(S,R)},o.parseUserinfo=function(S,R){var q=S,W=S.indexOf("\\");W!==-1&&(S=S.replace(/\\/g,"/"));var N=S.indexOf("/"),z=S.lastIndexOf("@",N>-1?N:S.length-1),X;return z>-1&&(N===-1||z<N)?(X=S.substring(0,z).split(":"),R.username=X[0]?o.decode(X[0]):null,X.shift(),R.password=X[0]?o.decode(X.join(":")):null,S=q.substring(z+1)):(R.username=null,R.password=null),S},o.parseQuery=function(S,R){if(!S)return{};if(S=S.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!S)return{};for(var q={},W=S.split("&"),N=W.length,z,X,oe,G=0;G<N;G++)z=W[G].split("="),X=o.decodeQuery(z.shift(),R),oe=z.length?o.decodeQuery(z.join("="),R):null,X!=="__proto__"&&(u.call(q,X)?((typeof q[X]=="string"||q[X]===null)&&(q[X]=[q[X]]),q[X].push(oe)):q[X]=oe);return q},o.build=function(S){var R="",q=!1;return S.protocol&&(R+=S.protocol+":"),!S.urn&&(R||S.hostname)&&(R+="//",q=!0),R+=o.buildAuthority(S)||"",typeof S.path=="string"&&(S.path.charAt(0)!=="/"&&q&&(R+="/"),R+=S.path),typeof S.query=="string"&&S.query&&(R+="?"+S.query),typeof S.fragment=="string"&&S.fragment&&(R+="#"+S.fragment),R},o.buildHost=function(S){var R="";if(S.hostname)o.ip6_expression.test(S.hostname)?R+="["+S.hostname+"]":R+=S.hostname;else return"";return S.port&&(R+=":"+S.port),R},o.buildAuthority=function(S){return o.buildUserinfo(S)+o.buildHost(S)},o.buildUserinfo=function(S){var R="";return S.username&&(R+=o.encode(S.username)),S.password&&(R+=":"+o.encode(S.password)),R&&(R+="@"),R},o.buildQuery=function(S,R,q){var W="",N,z,X,oe;for(z in S)if(z!=="__proto__"&&u.call(S,z))if(p(S[z]))for(N={},X=0,oe=S[z].length;X<oe;X++)S[z][X]!==void 0&&N[S[z][X]+""]===void 0&&(W+="&"+o.buildQueryParameter(z,S[z][X],q),R!==!0&&(N[S[z][X]+""]=!0));else S[z]!==void 0&&(W+="&"+o.buildQueryParameter(z,S[z],q));return W.substring(1)},o.buildQueryParameter=function(S,R,q){return o.encodeQuery(S,q)+(R!==null?"="+o.encodeQuery(R,q):"")},o.addQuery=function(S,R,q){if(typeof R=="object")for(var W in R)u.call(R,W)&&o.addQuery(S,W,R[W]);else if(typeof R=="string"){if(S[R]===void 0){S[R]=q;return}else typeof S[R]=="string"&&(S[R]=[S[R]]);p(q)||(q=[q]),S[R]=(S[R]||[]).concat(q)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")},o.setQuery=function(S,R,q){if(typeof R=="object")for(var W in R)u.call(R,W)&&o.setQuery(S,W,R[W]);else if(typeof R=="string")S[R]=q===void 0?null:q;else throw new TypeError("URI.setQuery() accepts an object, string as the name parameter")},o.removeQuery=function(S,R,q){var W,N,z;if(p(R))for(W=0,N=R.length;W<N;W++)S[R[W]]=void 0;else if(f(R)==="RegExp")for(z in S)R.test(z)&&(S[z]=void 0);else if(typeof R=="object")for(z in R)u.call(R,z)&&o.removeQuery(S,z,R[z]);else if(typeof R=="string")q!==void 0?f(q)==="RegExp"?!p(S[R])&&q.test(S[R])?S[R]=void 0:S[R]=g(S[R],q):S[R]===String(q)&&(!p(q)||q.length===1)?S[R]=void 0:p(S[R])&&(S[R]=g(S[R],q)):S[R]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter")},o.hasQuery=function(S,R,q,W){switch(f(R)){case"String":break;case"RegExp":for(var N in S)if(u.call(S,N)&&R.test(N)&&(q===void 0||o.hasQuery(S,N,q)))return!0;return!1;case"Object":for(var z in R)if(u.call(R,z)&&!o.hasQuery(S,z,R[z]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(f(q)){case"Undefined":return R in S;case"Boolean":var X=Boolean(p(S[R])?S[R].length:S[R]);return q===X;case"Function":return!!q(S[R],R,S);case"Array":if(!p(S[R]))return!1;var oe=W?m:x;return oe(S[R],q);case"RegExp":return p(S[R])?W?m(S[R],q):!1:Boolean(S[R]&&S[R].match(q));case"Number":q=String(q);case"String":return p(S[R])?W?m(S[R],q):!1:S[R]===q;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var S=[],R=[],q=0,W=0;W<arguments.length;W++){var N=new o(arguments[W]);S.push(N);for(var z=N.segment(),X=0;X<z.length;X++)typeof z[X]=="string"&&R.push(z[X]),z[X]&&q++}if(!R.length||!q)return new o("");var oe=new o("").segment(R);return(S[0].path()===""||S[0].path().slice(0,1)==="/")&&oe.path("/"+oe.path()),oe.normalize()},o.commonPath=function(S,R){var q=Math.min(S.length,R.length),W;for(W=0;W<q;W++)if(S.charAt(W)!==R.charAt(W)){W--;break}return W<1?S.charAt(0)===R.charAt(0)&&S.charAt(0)==="/"?"/":"":((S.charAt(W)!=="/"||R.charAt(W)!=="/")&&(W=S.substring(0,W).lastIndexOf("/")),S.substring(0,W+1))},o.withinString=function(S,R,q){q||(q={});var W=q.start||o.findUri.start,N=q.end||o.findUri.end,z=q.trim||o.findUri.trim,X=q.parens||o.findUri.parens,oe=/[a-z0-9-]=["']?$/i;for(W.lastIndex=0;;){var G=W.exec(S);if(!G)break;var K=G.index;if(q.ignoreHtml){var ve=S.slice(Math.max(K-3,0),K);if(ve&&oe.test(ve))continue}for(var Se=K+S.slice(K).search(N),_e=S.slice(K,Se),Ne=-1;;){var Le=X.exec(_e);if(!Le)break;var it=Le.index+Le[0].length;Ne=Math.max(Ne,it)}if(Ne>-1?_e=_e.slice(0,Ne)+_e.slice(Ne).replace(z,""):_e=_e.replace(z,""),!(_e.length<=G[0].length)&&!(q.ignore&&q.ignore.test(_e))){Se=K+_e.length;var ze=R(_e,K,Se,S);if(ze===void 0){W.lastIndex=Se;continue}ze=String(ze),S=S.slice(0,K)+ze+S.slice(Se),W.lastIndex=K+ze.length}}return W.lastIndex=0,S},o.ensureValidHostname=function(S,R){var q=!!S,W=!!R,N=!1;if(W&&(N=m(o.hostProtocols,R)),N&&!q)throw new TypeError("Hostname cannot be empty, if protocol is "+R);if(S&&S.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(S).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(S){if(!!S){var R=Number(S);if(!(a(R)&&R>0&&R<65536))throw new TypeError('Port "'+S+'" is not a valid port')}},o.noConflict=function(S){if(S){var R={URI:this.noConflict()};return n.URITemplate&&typeof n.URITemplate.noConflict=="function"&&(R.URITemplate=n.URITemplate.noConflict()),n.IPv6&&typeof n.IPv6.noConflict=="function"&&(R.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&typeof n.SecondLevelDomains.noConflict=="function"&&(R.SecondLevelDomains=n.SecondLevelDomains.noConflict()),R}else n.URI===this&&(n.URI=i);return this},s.build=function(S){return S===!0?this._deferred_build=!0:(S===void 0||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new o(this)},s.valueOf=s.toString=function(){return this.build(!1)._string};function _(S){return function(R,q){return R===void 0?this._parts[S]||"":(this._parts[S]=R||null,this.build(!q),this)}}function C(S,R){return function(q,W){return q===void 0?this._parts[S]||"":(q!==null&&(q=q+"",q.charAt(0)===R&&(q=q.substring(1))),this._parts[S]=q,this.build(!W),this)}}s.protocol=_("protocol"),s.username=_("username"),s.password=_("password"),s.hostname=_("hostname"),s.port=_("port"),s.query=C("query","?"),s.fragment=C("fragment","#"),s.search=function(S,R){var q=this.query(S,R);return typeof q=="string"&&q.length?"?"+q:q},s.hash=function(S,R){var q=this.fragment(S,R);return typeof q=="string"&&q.length?"#"+q:q},s.pathname=function(S,R){if(S===void 0||S===!0){var q=this._parts.path||(this._parts.hostname?"/":"");return S?(this._parts.urn?o.decodeUrnPath:o.decodePath)(q):q}else return this._parts.urn?this._parts.path=S?o.recodeUrnPath(S):"":this._parts.path=S?o.recodePath(S):"/",this.build(!R),this},s.path=s.pathname,s.href=function(S,R){var q;if(S===void 0)return this.toString();this._string="",this._parts=o._parts();var W=S instanceof o,N=typeof S=="object"&&(S.hostname||S.path||S.pathname);if(S.nodeName){var z=o.getDomAttribute(S);S=S[z]||"",N=!1}if(!W&&N&&S.pathname!==void 0&&(S=S.toString()),typeof S=="string"||S instanceof String)this._parts=o.parse(String(S),this._parts);else if(W||N){var X=W?S._parts:S;for(q in X)q!=="query"&&u.call(this._parts,q)&&(this._parts[q]=X[q]);X.query&&this.query(X.query,!1)}else throw new TypeError("invalid input");return this.build(!R),this},s.is=function(S){var R=!1,q=!1,W=!1,N=!1,z=!1,X=!1,oe=!1,G=!this._parts.urn;switch(this._parts.hostname&&(G=!1,q=o.ip4_expression.test(this._parts.hostname),W=o.ip6_expression.test(this._parts.hostname),R=q||W,N=!R,z=N&&r&&r.has(this._parts.hostname),X=N&&o.idn_expression.test(this._parts.hostname),oe=N&&o.punycode_expression.test(this._parts.hostname)),S.toLowerCase()){case"relative":return G;case"absolute":return!G;case"domain":case"name":return N;case"sld":return z;case"ip":return R;case"ip4":case"ipv4":case"inet4":return q;case"ip6":case"ipv6":case"inet6":return W;case"idn":return X;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return oe}return null};var O=s.protocol,F=s.port,B=s.hostname;s.protocol=function(S,R){if(S&&(S=S.replace(/:(\/\/)?$/,""),!S.match(o.protocol_expression)))throw new TypeError('Protocol "'+S+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return O.call(this,S,R)},s.scheme=s.protocol,s.port=function(S,R){return this._parts.urn?S===void 0?"":this:(S!==void 0&&(S===0&&(S=null),S&&(S+="",S.charAt(0)===":"&&(S=S.substring(1)),o.ensureValidPort(S))),F.call(this,S,R))},s.hostname=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S!==void 0){var q={preventInvalidHostname:this._parts.preventInvalidHostname},W=o.parseHost(S,q);if(W!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');S=q.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(S,this._parts.protocol)}return B.call(this,S,R)},s.origin=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){var q=this.protocol(),W=this.authority();return W?(q?q+"://":"")+this.authority():""}else{var N=o(S);return this.protocol(N.protocol()).authority(N.authority()).build(!R),this}},s.host=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0)return this._parts.hostname?o.buildHost(this._parts):"";var q=o.parseHost(S,this._parts);if(q!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');return this.build(!R),this},s.authority=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0)return this._parts.hostname?o.buildAuthority(this._parts):"";var q=o.parseAuthority(S,this._parts);if(q!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');return this.build(!R),this},s.userinfo=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){var q=o.buildUserinfo(this._parts);return q&&q.substring(0,q.length-1)}else return S[S.length-1]!=="@"&&(S+="@"),o.parseUserinfo(S,this._parts),this.build(!R),this},s.resource=function(S,R){var q;return S===void 0?this.path()+this.search()+this.hash():(q=o.parse(S),this._parts.path=q.path,this._parts.query=q.query,this._parts.fragment=q.fragment,this.build(!R),this)},s.subdomain=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var q=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,q)||""}else{var W=this._parts.hostname.length-this.domain().length,N=this._parts.hostname.substring(0,W),z=new RegExp("^"+c(N));if(S&&S.charAt(S.length-1)!=="."&&(S+="."),S.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return S&&o.ensureValidHostname(S,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(z,S),this.build(!R),this}},s.domain=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(typeof S=="boolean"&&(R=S,S=void 0),S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var q=this._parts.hostname.match(/\./g);if(q&&q.length<2)return this._parts.hostname;var W=this._parts.hostname.length-this.tld(R).length-1;return W=this._parts.hostname.lastIndexOf(".",W-1)+1,this._parts.hostname.substring(W)||""}else{if(!S)throw new TypeError("cannot set domain empty");if(S.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(S,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=S;else{var N=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(N,S)}return this.build(!R),this}},s.tld=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(typeof S=="boolean"&&(R=S,S=void 0),S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var q=this._parts.hostname.lastIndexOf("."),W=this._parts.hostname.substring(q+1);return R!==!0&&r&&r.list[W.toLowerCase()]&&r.get(this._parts.hostname)||W}else{var N;if(S)if(S.match(/[^a-zA-Z0-9-]/))if(r&&r.is(S))N=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(N,S);else throw new TypeError('TLD "'+S+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");N=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(N,S)}else throw new TypeError("cannot set TLD empty");return this.build(!R),this}},s.directory=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0||S===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var q=this._parts.path.length-this.filename().length-1,W=this._parts.path.substring(0,q)||(this._parts.hostname?"/":"");return S?o.decodePath(W):W}else{var N=this._parts.path.length-this.filename().length,z=this._parts.path.substring(0,N),X=new RegExp("^"+c(z));return this.is("relative")||(S||(S="/"),S.charAt(0)!=="/"&&(S="/"+S)),S&&S.charAt(S.length-1)!=="/"&&(S+="/"),S=o.recodePath(S),this._parts.path=this._parts.path.replace(X,S),this.build(!R),this}},s.filename=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(typeof S!="string"){if(!this._parts.path||this._parts.path==="/")return"";var q=this._parts.path.lastIndexOf("/"),W=this._parts.path.substring(q+1);return S?o.decodePathSegment(W):W}else{var N=!1;S.charAt(0)==="/"&&(S=S.substring(1)),S.match(/\.?\//)&&(N=!0);var z=new RegExp(c(this.filename())+"$");return S=o.recodePath(S),this._parts.path=this._parts.path.replace(z,S),N?this.normalizePath(R):this.build(!R),this}},s.suffix=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0||S===!0){if(!this._parts.path||this._parts.path==="/")return"";var q=this.filename(),W=q.lastIndexOf("."),N,z;return W===-1?"":(N=q.substring(W+1),z=/^[a-z0-9%]+$/i.test(N)?N:"",S?o.decodePathSegment(z):z)}else{S.charAt(0)==="."&&(S=S.substring(1));var X=this.suffix(),oe;if(X)S?oe=new RegExp(c(X)+"$"):oe=new RegExp(c("."+X)+"$");else{if(!S)return this;this._parts.path+="."+o.recodePath(S)}return oe&&(S=o.recodePath(S),this._parts.path=this._parts.path.replace(oe,S)),this.build(!R),this}},s.segment=function(S,R,q){var W=this._parts.urn?":":"/",N=this.path(),z=N.substring(0,1)==="/",X=N.split(W);if(S!==void 0&&typeof S!="number"&&(q=R,R=S,S=void 0),S!==void 0&&typeof S!="number")throw new Error('Bad segment "'+S+'", must be 0-based integer');if(z&&X.shift(),S<0&&(S=Math.max(X.length+S,0)),R===void 0)return S===void 0?X:X[S];if(S===null||X[S]===void 0)if(p(R)){X=[];for(var oe=0,G=R.length;oe<G;oe++)!R[oe].length&&(!X.length||!X[X.length-1].length)||(X.length&&!X[X.length-1].length&&X.pop(),X.push(w(R[oe])))}else(R||typeof R=="string")&&(R=w(R),X[X.length-1]===""?X[X.length-1]=R:X.push(R));else R?X[S]=w(R):X.splice(S,1);return z&&X.unshift(""),this.path(X.join(W),q)},s.segmentCoded=function(S,R,q){var W,N,z;if(typeof S!="number"&&(q=R,R=S,S=void 0),R===void 0){if(W=this.segment(S,R,q),!p(W))W=W!==void 0?o.decode(W):void 0;else for(N=0,z=W.length;N<z;N++)W[N]=o.decode(W[N]);return W}if(!p(R))R=typeof R=="string"||R instanceof String?o.encode(R):R;else for(N=0,z=R.length;N<z;N++)R[N]=o.encode(R[N]);return this.segment(S,R,q)};var V=s.query;return s.query=function(S,R){if(S===!0)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof S=="function"){var q=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),W=S.call(this,q);return this._parts.query=o.buildQuery(W||q,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!R),this}else return S!==void 0&&typeof S!="string"?(this._parts.query=o.buildQuery(S,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!R),this):V.call(this,S,R)},s.setQuery=function(S,R,q){var W=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof S=="string"||S instanceof String)W[S]=R!==void 0?R:null;else if(typeof S=="object")for(var N in S)u.call(S,N)&&(W[N]=S[N]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=o.buildQuery(W,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof S!="string"&&(q=R),this.build(!q),this},s.addQuery=function(S,R,q){var W=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(W,S,R===void 0?null:R),this._parts.query=o.buildQuery(W,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof S!="string"&&(q=R),this.build(!q),this},s.removeQuery=function(S,R,q){var W=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(W,S,R),this._parts.query=o.buildQuery(W,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof S!="string"&&(q=R),this.build(!q),this},s.hasQuery=function(S,R,q){var W=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(W,S,R,q)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(S){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!S)),this},s.normalizeHostname=function(S){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!S)),this},s.normalizePort=function(S){return typeof this._parts.protocol=="string"&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!S)),this},s.normalizePath=function(S){var R=this._parts.path;if(!R)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!S),this;if(this._parts.path==="/")return this;R=o.recodePath(R);var q,W="",N,z;for(R.charAt(0)!=="/"&&(q=!0,R="/"+R),(R.slice(-3)==="/.."||R.slice(-2)==="/.")&&(R+="/"),R=R.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),q&&(W=R.substring(1).match(/^(\.\.\/)+/)||"",W&&(W=W[0]));N=R.search(/\/\.\.(\/|$)/),N!==-1;){if(N===0){R=R.substring(3);continue}z=R.substring(0,N).lastIndexOf("/"),z===-1&&(z=N),R=R.substring(0,z)+R.substring(N+3)}return q&&this.is("relative")&&(R=W+R.substring(1)),this._parts.path=R,this.build(!S),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(S){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!S)),this},s.normalizeFragment=function(S){return this._parts.fragment||(this._parts.fragment=null,this.build(!S)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var S=o.encode,R=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=S,o.decode=R}return this},s.unicode=function(){var S=o.encode,R=o.decode;o.encode=k,o.decode=unescape;try{this.normalize()}finally{o.encode=S,o.decode=R}return this},s.readable=function(){var S=this.clone();S.username("").password("").normalize();var R="";if(S._parts.protocol&&(R+=S._parts.protocol+"://"),S._parts.hostname&&(S.is("punycode")&&t?(R+=t.toUnicode(S._parts.hostname),S._parts.port&&(R+=":"+S._parts.port)):R+=S.host()),S._parts.hostname&&S._parts.path&&S._parts.path.charAt(0)!=="/"&&(R+="/"),R+=S.path(!0),S._parts.query){for(var q="",W=0,N=S._parts.query.split("&"),z=N.length;W<z;W++){var X=(N[W]||"").split("=");q+="&"+o.decodeQuery(X[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),X[1]!==void 0&&(q+="="+o.decodeQuery(X[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}R+="?"+q.substring(1)}return R+=o.decodeQuery(S.hash(),!0),R},s.absoluteTo=function(S){var R=this.clone(),q=["protocol","username","password","hostname","port"],W,N,z;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(S instanceof o||(S=new o(S)),R._parts.protocol||(R._parts.protocol=S._parts.protocol,this._parts.hostname))return R;for(N=0;z=q[N];N++)R._parts[z]=S._parts[z];return R._parts.path?(R._parts.path.substring(-2)===".."&&(R._parts.path+="/"),R.path().charAt(0)!=="/"&&(W=S.directory(),W=W||(S.path().indexOf("/")===0?"/":""),R._parts.path=(W?W+"/":"")+R._parts.path,R.normalizePath())):(R._parts.path=S._parts.path,R._parts.query||(R._parts.query=S._parts.query)),R.build(),R},s.relativeTo=function(S){var R=this.clone().normalize(),q,W,N,z,X;if(R._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(S=new o(S).normalize(),q=R._parts,W=S._parts,z=R.path(),X=S.path(),z.charAt(0)!=="/")throw new Error("URI is already relative");if(X.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if(q.protocol===W.protocol&&(q.protocol=null),q.username!==W.username||q.password!==W.password||q.protocol!==null||q.username!==null||q.password!==null)return R.build();if(q.hostname===W.hostname&&q.port===W.port)q.hostname=null,q.port=null;else return R.build();if(z===X)return q.path="",R.build();if(N=o.commonPath(z,X),!N)return R.build();var oe=W.path.substring(N.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return q.path=oe+q.path.substring(N.length)||"./",R.build()},s.equals=function(S){var R=this.clone(),q=new o(S),W={},N={},z={},X,oe,G;if(R.normalize(),q.normalize(),R.toString()===q.toString())return!0;if(X=R.query(),oe=q.query(),R.query(""),q.query(""),R.toString()!==q.toString()||X.length!==oe.length)return!1;W=o.parseQuery(X,this._parts.escapeQuerySpace),N=o.parseQuery(oe,this._parts.escapeQuerySpace);for(G in W)if(u.call(W,G)){if(p(W[G])){if(!x(W[G],N[G]))return!1}else if(W[G]!==N[G])return!1;z[G]=!0}for(G in N)if(u.call(N,G)&&!z[G])return!1;return!0},s.preventInvalidHostname=function(S){return this._parts.preventInvalidHostname=!!S,this},s.duplicateQueryParameters=function(S){return this._parts.duplicateQueryParameters=!!S,this},s.escapeQuerySpace=function(S){return this._parts.escapeQuerySpace=!!S,this},o})});var nq,Ca,tm=se(()=>{Pr();nq=Vr(I1()),Ca=class extends Ct{uriParams(){return(0,nq.default)(window.location.toString()).query(!0)}viaResourceName(){return this.uriParams().via_resource_name}uriParam(t){return this.viaResourceName()?`${this.viaResourceName}_${t}`:t}b64EncodeUnicode(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(e,r)=>String.fromCharCode(`0x${r}`)))}b64DecodeUnicode(t){return decodeURIComponent(atob(t).split("").map(e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""))}changeFilter(){let t=this.getFilterValue(),e=this.getFilterClass(),r=this.uriParams()[this.uriParam("filters")];r?r=JSON.parse(this.b64DecodeUnicode(r)):r={},r[e]=t;let n=Object.keys(r).filter(o=>r[o]!==null).reduce((o,a)=>(o[a]=r[a],o),{}),i;n&&Object.keys(n).length>0&&(i=this.b64EncodeUnicode(JSON.stringify(n))),this.navigateToURLWithFilters(i)}navigateToURLWithFilters(t){let e=new nq.default(this.urlRedirectTarget.href),r=Bc({},e.query(!0));this.keepFiltersPanelOpenValue&&(r.keep_filters_panel_open=this.keepFiltersPanelOpenValue?1:null),r.page=1,t?r.filters=t:delete r.filters,e.query(r),this.urlRedirectTarget.href=e,this.urlRedirectTarget.click()}};xt(Ca,"targets",["urlRedirect"]),xt(Ca,"values",{keepFiltersPanelOpen:Boolean})});var L1,Gre=se(()=>{tm();L1=class extends Ca{getFilterValue(){let t={};return this.optionTargets.forEach(e=>{t[e.value]=e.checked}),t}getFilterClass(){let{filterClass:t}=this.optionTarget.dataset;return t}};xt(L1,"targets",["option"])});var Br=Z((iq,oq)=>{(function(t,e){typeof iq=="object"&&typeof oq<"u"?oq.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.CodeMirror=e())})(iq,function(){"use strict";var t=navigator.userAgent,e=navigator.platform,r=/gecko\/\d/i.test(t),n=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=n||i||o,s=a&&(n?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(t),c=u&&/Qt\/\d+\.\d+/.test(t),f=!o&&/Chrome\//.test(t),p=/Opera\//.test(t),g=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),x=/PhantomJS/.test(t),w=g&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),T=/Android/.test(t),k=w||T||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),A=w||/Mac/.test(e),D=/\bCrOS\b/.test(t),M=/win/i.test(e),P=p&&t.match(/Version\/(\d*\.\d*)/);P&&(P=Number(P[1])),P&&P>=15&&(p=!1,u=!0);var _=A&&(c||p&&(P==null||P<12.11)),C=r||a&&s>=9;function O(l){return new RegExp("(^|\\s)"+l+"(?:$|\\s)\\s*")}var F=function(l,d){var y=l.className,v=O(d).exec(y);if(v){var E=y.slice(v.index+v[0].length);l.className=y.slice(0,v.index)+(E?v[1]+E:"")}};function B(l){for(var d=l.childNodes.length;d>0;--d)l.removeChild(l.firstChild);return l}function V(l,d){return B(l).appendChild(d)}function S(l,d,y,v){var E=document.createElement(l);if(y&&(E.className=y),v&&(E.style.cssText=v),typeof d=="string")E.appendChild(document.createTextNode(d));else if(d)for(var L=0;L<d.length;++L)E.appendChild(d[L]);return E}function R(l,d,y,v){var E=S(l,d,y,v);return E.setAttribute("role","presentation"),E}var q;document.createRange?q=function(l,d,y,v){var E=document.createRange();return E.setEnd(v||l,y),E.setStart(l,d),E}:q=function(l,d,y){var v=document.body.createTextRange();try{v.moveToElementText(l.parentNode)}catch{return v}return v.collapse(!0),v.moveEnd("character",y),v.moveStart("character",d),v};function W(l,d){if(d.nodeType==3&&(d=d.parentNode),l.contains)return l.contains(d);do if(d.nodeType==11&&(d=d.host),d==l)return!0;while(d=d.parentNode)}function N(){var l;try{l=document.activeElement}catch{l=document.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function z(l,d){var y=l.className;O(d).test(y)||(l.className+=(y?" ":"")+d)}function X(l,d){for(var y=l.split(" "),v=0;v<y.length;v++)y[v]&&!O(y[v]).test(d)&&(d+=" "+y[v]);return d}var oe=function(l){l.select()};w?oe=function(l){l.selectionStart=0,l.selectionEnd=l.value.length}:a&&(oe=function(l){try{l.select()}catch{}});function G(l){var d=Array.prototype.slice.call(arguments,1);return function(){return l.apply(null,d)}}function K(l,d,y){d||(d={});for(var v in l)l.hasOwnProperty(v)&&(y!==!1||!d.hasOwnProperty(v))&&(d[v]=l[v]);return d}function ve(l,d,y,v,E){d==null&&(d=l.search(/[^\s\u00a0]/),d==-1&&(d=l.length));for(var L=v||0,j=E||0;;){var Y=l.indexOf(" ",L);if(Y<0||Y>=d)return j+(d-L);j+=Y-L,j+=y-j%y,L=Y+1}}var Se=function(){this.id=null,this.f=null,this.time=0,this.handler=G(this.onTimeout,this)};Se.prototype.onTimeout=function(l){l.id=0,l.time<=+new Date?l.f():setTimeout(l.handler,l.time-+new Date)},Se.prototype.set=function(l,d){this.f=d;var y=+new Date+l;(!this.id||y<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,l),this.time=y)};function _e(l,d){for(var y=0;y<l.length;++y)if(l[y]==d)return y;return-1}var Ne=50,Le={toString:function(){return"CodeMirror.Pass"}},it={scroll:!1},ze={origin:"*mouse"},tt={origin:"+move"};function wt(l,d,y){for(var v=0,E=0;;){var L=l.indexOf(" ",v);L==-1&&(L=l.length);var j=L-v;if(L==l.length||E+j>=d)return v+Math.min(j,d-E);if(E+=L-v,E+=y-E%y,v=L+1,E>=d)return v}}var At=[""];function Ve(l){for(;At.length<=l;)At.push(Oe(At)+" ");return At[l]}function Oe(l){return l[l.length-1]}function Me(l,d){for(var y=[],v=0;v<l.length;v++)y[v]=d(l[v],v);return y}function he(l,d,y){for(var v=0,E=y(d);v<l.length&&y(l[v])<=E;)v++;l.splice(v,0,d)}function J(){}function re(l,d){var y;return Object.create?y=Object.create(l):(J.prototype=l,y=new J),d&&K(d,y),y}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ht(l){return/\w/.test(l)||l>"\x80"&&(l.toUpperCase()!=l.toLowerCase()||fe.test(l))}function ke(l,d){return d?d.source.indexOf("\\w")>-1&&ht(l)?!0:d.test(l):ht(l)}function $e(l){for(var d in l)if(l.hasOwnProperty(d)&&l[d])return!1;return!0}var Fe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function It(l){return l.charCodeAt(0)>=768&&Fe.test(l)}function ut(l,d,y){for(;(y<0?d>0:d<l.length)&&It(l.charAt(d));)d+=y;return d}function pt(l,d,y){for(var v=d>y?-1:1;;){if(d==y)return d;var E=(d+y)/2,L=v<0?Math.ceil(E):Math.floor(E);if(L==d)return l(L)?d:y;l(L)?y=L:d=L+v}}function st(l,d,y,v){if(!l)return v(d,y,"ltr",0);for(var E=!1,L=0;L<l.length;++L){var j=l[L];(j.from<y&&j.to>d||d==y&&j.to==d)&&(v(Math.max(j.from,d),Math.min(j.to,y),j.level==1?"rtl":"ltr",L),E=!0)}E||v(d,y,"ltr")}var ye=null;function xe(l,d,y){var v;ye=null;for(var E=0;E<l.length;++E){var L=l[E];if(L.from<d&&L.to>d)return E;L.to==d&&(L.from!=L.to&&y=="before"?v=E:ye=E),L.from==d&&(L.from!=L.to&&y!="before"?v=E:ye=E)}return v??ye}var We=function(){var l="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",d="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function y(ee){return ee<=247?l.charAt(ee):1424<=ee&&ee<=1524?"R":1536<=ee&&ee<=1785?d.charAt(ee-1536):1774<=ee&&ee<=2220?"r":8192<=ee&&ee<=8203?"w":ee==8204?"b":"L"}var v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,L=/[LRr]/,j=/[Lb1n]/,Y=/[1n]/;function Q(ee,ce,pe){this.level=ee,this.from=ce,this.to=pe}return function(ee,ce){var pe=ce=="ltr"?"L":"R";if(ee.length==0||ce=="ltr"&&!v.test(ee))return!1;for(var Te=ee.length,Ce=[],je=0;je<Te;++je)Ce.push(y(ee.charCodeAt(je)));for(var Ke=0,ot=pe;Ke<Te;++Ke){var ct=Ce[Ke];ct=="m"?Ce[Ke]=ot:ot=ct}for(var bt=0,ft=pe;bt<Te;++bt){var St=Ce[bt];St=="1"&&ft=="r"?Ce[bt]="n":L.test(St)&&(ft=St,St=="r"&&(Ce[bt]="R"))}for(var Pt=1,Lt=Ce[0];Pt<Te-1;++Pt){var ir=Ce[Pt];ir=="+"&&Lt=="1"&&Ce[Pt+1]=="1"?Ce[Pt]="1":ir==","&&Lt==Ce[Pt+1]&&(Lt=="1"||Lt=="n")&&(Ce[Pt]=Lt),Lt=ir}for(var Rr=0;Rr<Te;++Rr){var qn=Ce[Rr];if(qn==",")Ce[Rr]="N";else if(qn=="%"){var Zr=void 0;for(Zr=Rr+1;Zr<Te&&Ce[Zr]=="%";++Zr);for(var Oi=Rr&&Ce[Rr-1]=="!"||Zr<Te&&Ce[Zr]=="1"?"1":"N",Mi=Rr;Mi<Zr;++Mi)Ce[Mi]=Oi;Rr=Zr-1}}for(var Sn=0,ni=pe;Sn<Te;++Sn){var Un=Ce[Sn];ni=="L"&&Un=="1"?Ce[Sn]="L":L.test(Un)&&(ni=Un)}for(var Ur=0;Ur<Te;++Ur)if(E.test(Ce[Ur])){var rn=void 0;for(rn=Ur+1;rn<Te&&E.test(Ce[rn]);++rn);for(var yn=(Ur?Ce[Ur-1]:pe)=="L",Ii=(rn<Te?Ce[rn]:pe)=="L",qc=yn==Ii?yn?"L":"R":pe,yl=Ur;yl<rn;++yl)Ce[yl]=qc;Ur=rn-1}for(var vi=[],Na,Vn=0;Vn<Te;)if(j.test(Ce[Vn])){var pv=Vn;for(++Vn;Vn<Te&&j.test(Ce[Vn]);++Vn);vi.push(new Q(0,pv,Vn))}else{var ys=Vn,vu=vi.length,yu=ce=="rtl"?1:0;for(++Vn;Vn<Te&&Ce[Vn]!="L";++Vn);for(var Li=ys;Li<Vn;)if(Y.test(Ce[Li])){ys<Li&&(vi.splice(vu,0,new Q(1,ys,Li)),vu+=yu);var Fc=Li;for(++Li;Li<Vn&&Y.test(Ce[Li]);++Li);vi.splice(vu,0,new Q(2,Fc,Li)),vu+=yu,ys=Li}else++Li;ys<Vn&&vi.splice(vu,0,new Q(1,ys,Vn))}return ce=="ltr"&&(vi[0].level==1&&(Na=ee.match(/^\s+/))&&(vi[0].from=Na[0].length,vi.unshift(new Q(0,0,Na[0].length))),Oe(vi).level==1&&(Na=ee.match(/\s+$/))&&(Oe(vi).to-=Na[0].length,vi.push(new Q(0,Te-Na[0].length,Te)))),ce=="rtl"?vi.reverse():vi}}();function yt(l,d){var y=l.order;return y==null&&(y=l.order=We(l.text,d)),y}var Gr=[],mt=function(l,d,y){if(l.addEventListener)l.addEventListener(d,y,!1);else if(l.attachEvent)l.attachEvent("on"+d,y);else{var v=l._handlers||(l._handlers={});v[d]=(v[d]||Gr).concat(y)}};function er(l,d){return l._handlers&&l._handlers[d]||Gr}function Ie(l,d,y){if(l.removeEventListener)l.removeEventListener(d,y,!1);else if(l.detachEvent)l.detachEvent("on"+d,y);else{var v=l._handlers,E=v&&v[d];if(E){var L=_e(E,y);L>-1&&(v[d]=E.slice(0,L).concat(E.slice(L+1)))}}}function Ze(l,d){var y=er(l,d);if(!!y.length)for(var v=Array.prototype.slice.call(arguments,2),E=0;E<y.length;++E)y[E].apply(null,v)}function dt(l,d,y){return typeof d=="string"&&(d={type:d,preventDefault:function(){this.defaultPrevented=!0}}),Ze(l,y||d.type,l,d),le(d)||d.codemirrorIgnore}function Zt(l){var d=l._handlers&&l._handlers.cursorActivity;if(!!d)for(var y=l.curOp.cursorActivityHandlers||(l.curOp.cursorActivityHandlers=[]),v=0;v<d.length;++v)_e(y,d[v])==-1&&y.push(d[v])}function jt(l,d){return er(l,d).length>0}function tr(l){l.prototype.on=function(d,y){mt(this,d,y)},l.prototype.off=function(d,y){Ie(this,d,y)}}function sr(l){l.preventDefault?l.preventDefault():l.returnValue=!1}function zn(l){l.stopPropagation?l.stopPropagation():l.cancelBubble=!0}function le(l){return l.defaultPrevented!=null?l.defaultPrevented:l.returnValue==!1}function de(l){sr(l),zn(l)}function Ae(l){return l.target||l.srcElement}function He(l){var d=l.which;return d==null&&(l.button&1?d=1:l.button&2?d=3:l.button&4&&(d=2)),A&&l.ctrlKey&&d==1&&(d=3),d}var lt=function(){if(a&&s<9)return!1;var l=S("div");return"draggable"in l||"dragDrop"in l}(),Qe;function Dt(l){if(Qe==null){var d=S("span","\u200B");V(l,S("span",[d,document.createTextNode("x")])),l.firstChild.offsetHeight!=0&&(Qe=d.offsetWidth<=1&&d.offsetHeight>2&&!(a&&s<8))}var y=Qe?S("span","\u200B"):S("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return y.setAttribute("cm-text",""),y}var _t;function Xt(l){if(_t!=null)return _t;var d=V(l,document.createTextNode("A\u062EA")),y=q(d,0,1).getBoundingClientRect(),v=q(d,1,2).getBoundingClientRect();return B(l),!y||y.left==y.right?!1:_t=v.right-y.right<3}var Yt=`
42
+ %o`,r,e,n),(i=window.onerror)===null||i===void 0||i.call(window,r,"",0,0,e)}logFormattedMessage(e,r,n={}){n=Object.assign({application:this},n),this.logger.groupCollapsed(`${e} #${r}`),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}};dGe={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},hGe={array(t){let e=JSON.parse(t);if(!Array.isArray(e))throw new TypeError("Expected array");return e},boolean(t){return!(t=="0"||t=="false")},number(t){return Number(t)},object(t){let e=JSON.parse(t);if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError("Expected object");return e},string(t){return t}},ere={default:pGe,array:tre,object:tre};Ct=class{constructor(e){this.context=e}static get shouldLoad(){return!0}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:r=this.element,detail:n={},prefix:i=this.identifier,bubbles:o=!0,cancelable:a=!0}={}){let s=i?`${i}:${e}`:e,u=new CustomEvent(s,{detail:n,bubbles:o,cancelable:a});return r.dispatchEvent(u),u}};Ct.blessings=[rGe,iGe,aGe];Ct.targets=[];Ct.values={}});var n0,Cre,x1,XR,Are,QR,w1,Tre,Dre,Ore=se(()=>{Pr();n0=class extends Ct{initialize(){this.hide()}connect(){setTimeout(()=>{this.show()},this.showAfter),this.hasDismissAfterValue&&setTimeout(()=>{this.close()},this.dismissAfterValue)}close(){this.hide(),setTimeout(()=>{this.element.remove()},this.removeAfter)}show(){this.element.classList.add(...this.showClasses),this.element.classList.remove(...this.hideClasses)}hide(){this.element.classList.add(...this.hideClasses),this.element.classList.remove(...this.showClasses)}get removeAfter(){return this.hasRemoveDelayValue?this.removeDelayValue:1100}get showAfter(){return this.hasShowDelayValue?this.showDelayValue:200}};n0.values={dismissAfter:Number,showDelay:Number,removeDelay:Number},n0.classes=["show","hide"];Cre=class extends Ct{connect(){this.timeout=null,this.duration=this.data.get("duration")||1e3}save(){clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.statusTarget.textContent="Saving...",Rails.fire(this.formTarget,"submit")},this.duration)}success(){this.setStatus("Saved!")}error(){this.setStatus("Unable to save!")}setStatus(e){this.statusTarget.textContent=e,this.timeout=setTimeout(()=>{this.statusTarget.textContent=""},2e3)}};Cre.targets=["form","status"];x1=class extends Ct{constructor(...e){super(...e),this._onMenuButtonKeydown=r=>{switch(r.keyCode){case 13:case 32:r.preventDefault(),this.toggle()}}}connect(){this.toggleClass=this.data.get("class")||"hidden",this.visibleClass=this.data.get("visibleClass")||null,this.invisibleClass=this.data.get("invisibleClass")||null,this.activeClass=this.data.get("activeClass")||null,this.enteringClass=this.data.get("enteringClass")||null,this.leavingClass=this.data.get("leavingClass")||null,this.hasButtonTarget&&this.buttonTarget.addEventListener("keydown",this._onMenuButtonKeydown),this.element.setAttribute("aria-haspopup","true")}disconnect(){this.hasButtonTarget&&this.buttonTarget.removeEventListener("keydown",this._onMenuButtonKeydown)}toggle(){this.openValue=!this.openValue}openValueChanged(){this.openValue?this._show():this._hide()}_show(e){setTimeout((()=>{this.menuTarget.classList.remove(this.toggleClass),this.element.setAttribute("aria-expanded","true"),this._enteringClassList[0].forEach((r=>{this.menuTarget.classList.add(r)}).bind(this)),this._activeClassList[0].forEach(r=>{this.activeTarget.classList.add(r)}),this._invisibleClassList[0].forEach(r=>this.menuTarget.classList.remove(r)),this._visibleClassList[0].forEach(r=>{this.menuTarget.classList.add(r)}),setTimeout((()=>{this._enteringClassList[0].forEach(r=>this.menuTarget.classList.remove(r))}).bind(this),this.enterTimeout[0]),typeof e=="function"&&e()}).bind(this))}_hide(e){setTimeout((()=>{this.element.setAttribute("aria-expanded","false"),this._invisibleClassList[0].forEach(r=>this.menuTarget.classList.add(r)),this._visibleClassList[0].forEach(r=>this.menuTarget.classList.remove(r)),this._activeClassList[0].forEach(r=>this.activeTarget.classList.remove(r)),this._leavingClassList[0].forEach(r=>this.menuTarget.classList.add(r)),setTimeout((()=>{this._leavingClassList[0].forEach(r=>this.menuTarget.classList.remove(r)),typeof e=="function"&&e(),this.menuTarget.classList.add(this.toggleClass)}).bind(this),this.leaveTimeout[0])}).bind(this))}show(){this.openValue=!0}hide(e){this.element.contains(e.target)===!1&&this.openValue&&(this.openValue=!1)}get activeTarget(){return this.data.has("activeTarget")?document.querySelector(this.data.get("activeTarget")):this.element}get _activeClassList(){return this.activeClass?this.activeClass.split(",").map(e=>e.split(" ")):[[],[]]}get _visibleClassList(){return this.visibleClass?this.visibleClass.split(",").map(e=>e.split(" ")):[[],[]]}get _invisibleClassList(){return this.invisibleClass?this.invisibleClass.split(",").map(e=>e.split(" ")):[[],[]]}get _enteringClassList(){return this.enteringClass?this.enteringClass.split(",").map(e=>e.split(" ")):[[],[]]}get _leavingClassList(){return this.leavingClass?this.leavingClass.split(",").map(e=>e.split(" ")):[[],[]]}get enterTimeout(){return(this.data.get("enterTimeout")||"0,0").split(",").map(e=>parseInt(e))}get leaveTimeout(){return(this.data.get("leaveTimeout")||"0,0").split(",").map(e=>parseInt(e))}};x1.targets=["menu","button"],x1.values={open:Boolean};XR=class extends Ct{connect(){this.toggleClass=this.data.get("class")||"hidden",this.backgroundId=this.data.get("backgroundId")||"modal-background",this.backgroundHtml=this.data.get("backgroundHtml")||this._backgroundHTML(),this.allowBackgroundClose=(this.data.get("allowBackgroundClose")||"true")==="true",this.preventDefaultActionOpening=(this.data.get("preventDefaultActionOpening")||"true")==="true",this.preventDefaultActionClosing=(this.data.get("preventDefaultActionClosing")||"true")==="true"}disconnect(){this.close()}open(e){this.preventDefaultActionOpening&&e.preventDefault(),e.target.blur&&e.target.blur(),this.lockScroll(),this.containerTarget.classList.remove(this.toggleClass),this.data.get("disable-backdrop")||(document.body.insertAdjacentHTML("beforeend",this.backgroundHtml),this.background=document.querySelector(`#${this.backgroundId}`))}close(e){e&&this.preventDefaultActionClosing&&e.preventDefault(),this.unlockScroll(),this.containerTarget.classList.add(this.toggleClass),this.background&&this.background.remove()}closeBackground(e){this.allowBackgroundClose&&e.target===this.containerTarget&&this.close(e)}closeWithKeyboard(e){e.keyCode!==27||this.containerTarget.classList.contains(this.toggleClass)||this.close(e)}_backgroundHTML(){return`<div id="${this.backgroundId}" class="fixed top-0 left-0 w-full h-full" style="background-color: ${this.backdropColorValue}; z-index: 9998;"></div>`}lockScroll(){let e=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight=`${e}px`,this.saveScrollPosition(),document.body.classList.add("fixed","inset-x-0","overflow-hidden"),document.body.style.top=`-${this.scrollPosition}px`}unlockScroll(){document.body.style.paddingRight=null,document.body.classList.remove("fixed","inset-x-0","overflow-hidden"),this.restoreScrollValue&&this.restoreScrollPosition(),document.body.style.top=null}saveScrollPosition(){this.scrollPosition=window.pageYOffset||document.body.scrollTop}restoreScrollPosition(){this.scrollPosition!==void 0&&(document.documentElement.scrollTop=this.scrollPosition)}};XR.targets=["container"],XR.values={backdropColor:{type:String,default:"rgba(0, 0, 0, 0.8)"},restoreScroll:{type:Boolean,default:!0}};Are=class extends Ct{connect(){this.activeTabClasses=(this.data.get("activeTab")||"active").split(" "),this.inactiveTabClasses=(this.data.get("inactiveTab")||"inactive").split(" "),this.anchor&&(this.index=this.tabTargets.findIndex(e=>e.id===this.anchor)),this.showTab()}change(e){e.preventDefault(),this.index=e.currentTarget.dataset.index?e.currentTarget.dataset.index:e.currentTarget.dataset.id?this.tabTargets.findIndex(r=>r.id==e.currentTarget.dataset.id):this.tabTargets.indexOf(e.currentTarget),window.dispatchEvent(new CustomEvent("tsc:tab-change"))}showTab(){this.tabTargets.forEach((e,r)=>{let n=this.panelTargets[r];r===this.index?(n.classList.remove("hidden"),e.classList.remove(...this.inactiveTabClasses),e.classList.add(...this.activeTabClasses),e.id&&(location.hash=e.id)):(n.classList.add("hidden"),e.classList.remove(...this.activeTabClasses),e.classList.add(...this.inactiveTabClasses))})}get index(){return parseInt(this.data.get("index")||0)}set index(e){this.data.set("index",e>=0?e:0),this.showTab()}get anchor(){return document.URL.split("#").length>1?document.URL.split("#")[1]:null}};Are.targets=["tab","panel"];QR=class extends Ct{connect(){this.toggleClass=this.data.get("class")||"hidden"}toggle(e){e.preventDefault(),this.openValue=!this.openValue}hide(e){e.preventDefault(),this.openValue=!1}show(e){e.preventDefault(),this.openValue=!0}openValueChanged(){this.toggleClass&&this.toggleableTargets.forEach(e=>{e.classList.toggle(this.toggleClass)})}};QR.targets=["toggleable"],QR.values={open:Boolean};w1=class extends Ct{initialize(){this.contentTarget.setAttribute("style",`transform:translate(${this.data.get("translateX")}, ${this.data.get("translateY")});`)}mouseOver(){this.contentTarget.classList.remove("hidden")}mouseOut(){this.contentTarget.classList.add("hidden")}};w1.targets=["content"];Tre=class extends x1{_show(){this.overlayTarget.classList.remove(this.toggleClass),super._show((()=>{this._activeClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),this._invisibleClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._visibleClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),setTimeout((()=>{this._enteringClassList[1].forEach(e=>this.overlayTarget.classList.remove(e))}).bind(this),this.enterTimeout[1])}).bind(this))}_hide(){this._leavingClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),super._hide((()=>{setTimeout((()=>{this._visibleClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._invisibleClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),this._activeClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._leavingClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this.overlayTarget.classList.add(this.toggleClass)}).bind(this),this.leaveTimeout[1])}).bind(this))}};Tre.targets=["menu","overlay"];Dre=class extends Ct{connect(){this.styleProperty=this.data.get("style")||"backgroundColor"}update(){this.preview=this.color}set preview(e){this.previewTarget.style[this.styleProperty]=e;let r=this._getContrastYIQ(e);this.styleProperty==="color"?this.previewTarget.style.backgroundColor=r:this.previewTarget.style.color=r}get color(){return this.colorTarget.value}_getContrastYIQ(e){return e=e.replace("#",""),(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3>=128?"#000":"#fff"}};Dre.targets=["preview","color"]});var mr,Mre=se(()=>{Ore();Pr();mr=r0.start();mr.debug=window==null?void 0:window.localStorage.getItem("avo.debug");window.Stimulus=mr;mr.register("alert",n0);mr.register("popover",w1)});var Mo,Qg=se(()=>{Mo=t=>t=="true"});var _1,Ire=se(()=>{Pr();Qg();_1=class extends Ct{connect(){this.resourceIdsTarget.value=this.resourceIds,this.noConfirmation?this.formTarget.submit():this.controllerDivTarget.classList.remove("hidden")}get noConfirmation(){return Mo(this.controllerDivTarget.dataset.noConfirmation)}get resourceName(){return this.controllerDivTarget.dataset.resourceName}get resourceIds(){try{return JSON.parse(document.querySelector(`[data-selected-resources-name="${this.resourceName}"]`).dataset.selectedResources)}catch(t){return[]}}};xt(_1,"targets",["controllerDiv","resourceIds","form"])});var Lre,ZR=se(()=>{Lre=function(){function t(e,r){var n=this;this.element=e,this.started=!1,this.delegate=r,this.elements=new Set,this.mutationObserver=new MutationObserver(function(i){return n.processMutations(i)})}return t.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,childList:!0,subtree:!0}),this.refresh())},t.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},t.prototype.refresh=function(){if(this.started){for(var e=new Set(this.matchElementsInTree()),r=0,n=Array.from(this.elements);r<n.length;r++){var i=n[r];e.has(i)||this.removeElement(i)}for(var o=0,a=Array.from(e);o<a.length;o++){var i=a[o];this.addElement(i)}}},t.prototype.processMutations=function(e){if(this.started)for(var r=0,n=e;r<n.length;r++){var i=n[r];this.processMutation(i)}},t.prototype.processMutation=function(e){e.type=="attributes"?this.processAttributeChange(e.target,e.attributeName):e.type=="childList"&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))},t.prototype.processAttributeChange=function(e,r){var n=e;this.elements.has(n)?this.delegate.elementAttributeChanged&&this.matchElement(n)?this.delegate.elementAttributeChanged(n,r):this.removeElement(n):this.matchElement(n)&&this.addElement(n)},t.prototype.processRemovedNodes=function(e){for(var r=0,n=Array.from(e);r<n.length;r++){var i=n[r],o=this.elementFromNode(i);o&&this.processTree(o,this.removeElement)}},t.prototype.processAddedNodes=function(e){for(var r=0,n=Array.from(e);r<n.length;r++){var i=n[r],o=this.elementFromNode(i);o&&this.elementIsActive(o)&&this.processTree(o,this.addElement)}},t.prototype.matchElement=function(e){return this.delegate.matchElement(e)},t.prototype.matchElementsInTree=function(e){return e===void 0&&(e=this.element),this.delegate.matchElementsInTree(e)},t.prototype.processTree=function(e,r){for(var n=0,i=this.matchElementsInTree(e);n<i.length;n++){var o=i[n];r.call(this,o)}},t.prototype.elementFromNode=function(e){if(e.nodeType==Node.ELEMENT_NODE)return e},t.prototype.elementIsActive=function(e){return e.isConnected!=this.element.isConnected?!1:this.element.contains(e)},t.prototype.addElement=function(e){this.elements.has(e)||this.elementIsActive(e)&&(this.elements.add(e),this.delegate.elementMatched&&this.delegate.elementMatched(e))},t.prototype.removeElement=function(e){this.elements.has(e)&&(this.elements.delete(e),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(e))},t}()});var Zg,JR=se(()=>{ZR();Zg=function(){function t(e,r,n){this.attributeName=r,this.delegate=n,this.elementObserver=new Lre(e,this)}return Object.defineProperty(t.prototype,"element",{get:function(){return this.elementObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selector",{get:function(){return"["+this.attributeName+"]"},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.elementObserver.start()},t.prototype.stop=function(){this.elementObserver.stop()},t.prototype.refresh=function(){this.elementObserver.refresh()},Object.defineProperty(t.prototype,"started",{get:function(){return this.elementObserver.started},enumerable:!1,configurable:!0}),t.prototype.matchElement=function(e){return e.hasAttribute(this.attributeName)},t.prototype.matchElementsInTree=function(e){var r=this.matchElement(e)?[e]:[],n=Array.from(e.querySelectorAll(this.selector));return r.concat(n)},t.prototype.elementMatched=function(e){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(e,this.attributeName)},t.prototype.elementUnmatched=function(e){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(e,this.attributeName)},t.prototype.elementAttributeChanged=function(e,r){this.delegate.elementAttributeValueChanged&&this.attributeName==r&&this.delegate.elementAttributeValueChanged(e,r)},t}()});var S1t,Pre=se(()=>{S1t=function(){function t(e,r){var n=this;this.element=e,this.delegate=r,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(function(i){return n.processMutations(i)})}return t.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0}),this.refresh())},t.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},t.prototype.refresh=function(){if(this.started)for(var e=0,r=this.knownAttributeNames;e<r.length;e++){var n=r[e];this.refreshAttribute(n)}},t.prototype.processMutations=function(e){if(this.started)for(var r=0,n=e;r<n.length;r++){var i=n[r];this.processMutation(i)}},t.prototype.processMutation=function(e){var r=e.attributeName;r&&this.refreshAttribute(r)},t.prototype.refreshAttribute=function(e){var r=this.delegate.getStringMapKeyForAttribute(e);if(r!=null){this.stringMap.has(e)||this.stringMapKeyAdded(r,e);var n=this.element.getAttribute(e);this.stringMap.get(e)!=n&&this.stringMapValueChanged(n,r),n==null?(this.stringMap.delete(e),this.stringMapKeyRemoved(r,e)):this.stringMap.set(e,n)}},t.prototype.stringMapKeyAdded=function(e,r){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(e,r)},t.prototype.stringMapValueChanged=function(e,r){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(e,r)},t.prototype.stringMapKeyRemoved=function(e,r){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(e,r)},Object.defineProperty(t.prototype,"knownAttributeNames",{get:function(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentAttributeNames",{get:function(){return Array.from(this.element.attributes).map(function(e){return e.name})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recordedAttributeNames",{get:function(){return Array.from(this.stringMap.keys())},enumerable:!1,configurable:!0}),t}()});function S1(t,e,r){Rre(t,e).add(r)}function k1(t,e,r){Rre(t,e).delete(r),gGe(t,e)}function Rre(t,e){var r=t.get(e);return r||(r=new Set,t.set(e,r)),r}function gGe(t,e){var r=t.get(e);r!=null&&r.size==0&&t.delete(e)}var E1=se(()=>{});var C1,eq=se(()=>{E1();C1=function(){function t(){this.valuesByKey=new Map}return Object.defineProperty(t.prototype,"values",{get:function(){var e=Array.from(this.valuesByKey.values());return e.reduce(function(r,n){return r.concat(Array.from(n))},[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=Array.from(this.valuesByKey.values());return e.reduce(function(r,n){return r+n.size},0)},enumerable:!1,configurable:!0}),t.prototype.add=function(e,r){S1(this.valuesByKey,e,r)},t.prototype.delete=function(e,r){k1(this.valuesByKey,e,r)},t.prototype.has=function(e,r){var n=this.valuesByKey.get(e);return n!=null&&n.has(r)},t.prototype.hasKey=function(e){return this.valuesByKey.has(e)},t.prototype.hasValue=function(e){var r=Array.from(this.valuesByKey.values());return r.some(function(n){return n.has(e)})},t.prototype.getValuesForKey=function(e){var r=this.valuesByKey.get(e);return r?Array.from(r):[]},t.prototype.getKeysForValue=function(e){return Array.from(this.valuesByKey).filter(function(r){var n=r[0],i=r[1];return i.has(e)}).map(function(r){var n=r[0],i=r[1];return n})},t}()});var mGe,O1t,qre=se(()=>{eq();E1();mGe=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),O1t=function(t){mGe(e,t);function e(){var r=t.call(this)||this;return r.keysByValue=new Map,r}return Object.defineProperty(e.prototype,"values",{get:function(){return Array.from(this.keysByValue.keys())},enumerable:!1,configurable:!0}),e.prototype.add=function(r,n){t.prototype.add.call(this,r,n),S1(this.keysByValue,n,r)},e.prototype.delete=function(r,n){t.prototype.delete.call(this,r,n),k1(this.keysByValue,n,r)},e.prototype.hasValue=function(r){return this.keysByValue.has(r)},e.prototype.getKeysForValue=function(r){var n=this.keysByValue.get(r);return n?Array.from(n):[]},e}(C1)});var Fre=se(()=>{qre();eq();E1()});function vGe(t,e,r){return t.trim().split(/\s+/).filter(function(n){return n.length}).map(function(n,i){return{element:e,attributeName:r,content:n,index:i}})}function yGe(t,e){var r=Math.max(t.length,e.length);return Array.from({length:r},function(n,i){return[t[i],e[i]]})}function bGe(t,e){return t&&e&&t.index==e.index&&t.content==e.content}var Nre,tq=se(()=>{JR();Fre();Nre=function(){function t(e,r,n){this.attributeObserver=new Zg(e,r,this),this.delegate=n,this.tokensByElement=new C1}return Object.defineProperty(t.prototype,"started",{get:function(){return this.attributeObserver.started},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.attributeObserver.start()},t.prototype.stop=function(){this.attributeObserver.stop()},t.prototype.refresh=function(){this.attributeObserver.refresh()},Object.defineProperty(t.prototype,"element",{get:function(){return this.attributeObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributeName",{get:function(){return this.attributeObserver.attributeName},enumerable:!1,configurable:!0}),t.prototype.elementMatchedAttribute=function(e){this.tokensMatched(this.readTokensForElement(e))},t.prototype.elementAttributeValueChanged=function(e){var r=this.refreshTokensForElement(e),n=r[0],i=r[1];this.tokensUnmatched(n),this.tokensMatched(i)},t.prototype.elementUnmatchedAttribute=function(e){this.tokensUnmatched(this.tokensByElement.getValuesForKey(e))},t.prototype.tokensMatched=function(e){var r=this;e.forEach(function(n){return r.tokenMatched(n)})},t.prototype.tokensUnmatched=function(e){var r=this;e.forEach(function(n){return r.tokenUnmatched(n)})},t.prototype.tokenMatched=function(e){this.delegate.tokenMatched(e),this.tokensByElement.add(e.element,e)},t.prototype.tokenUnmatched=function(e){this.delegate.tokenUnmatched(e),this.tokensByElement.delete(e.element,e)},t.prototype.refreshTokensForElement=function(e){var r=this.tokensByElement.getValuesForKey(e),n=this.readTokensForElement(e),i=yGe(r,n).findIndex(function(o){var a=o[0],s=o[1];return!bGe(a,s)});return i==-1?[[],[]]:[r.slice(i),n.slice(i)]},t.prototype.readTokensForElement=function(e){var r=this.attributeName,n=e.getAttribute(r)||"";return vGe(n,e,r)},t}()});var j1t,Bre=se(()=>{tq();j1t=function(){function t(e,r,n){this.tokenListObserver=new Nre(e,r,this),this.delegate=n,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}return Object.defineProperty(t.prototype,"started",{get:function(){return this.tokenListObserver.started},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.tokenListObserver.start()},t.prototype.stop=function(){this.tokenListObserver.stop()},t.prototype.refresh=function(){this.tokenListObserver.refresh()},Object.defineProperty(t.prototype,"element",{get:function(){return this.tokenListObserver.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributeName",{get:function(){return this.tokenListObserver.attributeName},enumerable:!1,configurable:!0}),t.prototype.tokenMatched=function(e){var r=e.element,n=this.fetchParseResultForToken(e).value;n&&(this.fetchValuesByTokenForElement(r).set(e,n),this.delegate.elementMatchedValue(r,n))},t.prototype.tokenUnmatched=function(e){var r=e.element,n=this.fetchParseResultForToken(e).value;n&&(this.fetchValuesByTokenForElement(r).delete(e),this.delegate.elementUnmatchedValue(r,n))},t.prototype.fetchParseResultForToken=function(e){var r=this.parseResultsByToken.get(e);return r||(r=this.parseToken(e),this.parseResultsByToken.set(e,r)),r},t.prototype.fetchValuesByTokenForElement=function(e){var r=this.valuesByTokenByElement.get(e);return r||(r=new Map,this.valuesByTokenByElement.set(e,r)),r},t.prototype.parseToken=function(e){try{var r=this.delegate.parseValueForToken(e);return{value:r}}catch(n){return{error:n}}},t}()});var rq=se(()=>{JR();ZR();Pre();tq();Bre()});var i0,jre=se(()=>{rq();Pr();i0=class extends Ct{constructor(){super(...arguments);xt(this,"target",{})}get targetIsDisabled(){return this.target.dataset.disabled==="true"}enableTarget(){this.targetIsDisabled&&(this.target.classList.remove(...this.disabledClasses),this.target.classList.add(...this.enabledClasses),this.target.dataset.disabled=!1)}disableTarget(){this.target.classList.remove(...this.enabledClasses),this.target.classList.add(...this.disabledClasses),this.target.dataset.disabled=!0}visitAction(t){if(this.target=t.target,this.targetIsDisabled){t.preventDefault();return}this.disableTarget();let e=new Zg(document.querySelector("turbo-frame#actions_show"),"busy",{elementUnmatchedAttribute:()=>{this.enableTarget(this.target),e&&e.stop()}});e.start()}};xt(i0,"targets",["resourceAction","standaloneAction"]),xt(i0,"classes",["enabled","disabled"])});var A1,zre=se(()=>{Pr();A1=class extends Ct{connect(){this.formTarget.submit()}};xt(A1,"targets",["form"])});var T1,Hre=se(()=>{Pr();T1=class extends Ct{constructor(){super(...arguments);xt(this,"defaults",{})}get selectedType(){return this.selectTarget.value}get isSearchable(){return this.context.scope.element.dataset.searchable==="true"}get association(){return this.context.scope.element.dataset.association}get associationClass(){return this.context.scope.element.dataset.associationClass}connect(){this.copyValidNames(),this.changeType()}changeType(){this.hideAllTypes(),this.showType(this.selectTarget.value)}hideAllTypes(){this.typeTargets.forEach(t=>{t.classList.add("hidden"),this.invalidateTarget(t)})}copyValidNames(){this.typeTargets.forEach(t=>{let{type:e}=t.dataset;if(this.isSearchable){let r=t.querySelector('input[type="text"]');r&&this.nameToValidName(r);let n=t.querySelector('input[type="hidden"]');n&&this.nameToValidName(n)}else{let r=t.querySelector("select");r&&this.nameToValidName(r);let n=t.querySelector('input[type="hidden"]');n&&this.nameToValidName(n),this.selectedType!==e&&(r.selectedIndex=0)}})}showType(t){let e=this.typeTargets.find(r=>r.dataset.type===t);e&&(e.classList.remove("hidden"),this.validateTarget(e))}validateTarget(t){if(this.isSearchable){let e=t.querySelector('input[type="text"]'),r=t.querySelector('input[type="hidden"]');this.validNameToName(e),this.validNameToName(r)}else{let e=t.querySelector("select"),r=t.querySelector('input[type="hidden"]');this.validNameToName(e),r&&this.validNameToName(r)}}invalidateTarget(t){if(this.isSearchable)try{t.querySelector('input[type="text"]').setAttribute("name",""),t.querySelector('input[type="hidden"]').setAttribute("name","")}catch(e){}else if(t)try{t.querySelector("select").setAttribute("name",""),t.querySelector('input[type="hidden"]').setAttribute("name","")}catch(e){}}validNameToName(t){t.setAttribute("name",t.getAttribute("valid-name"))}nameToValidName(t){t.setAttribute("valid-name",t.getAttribute("name"))}};xt(T1,"targets",["select","type","loadAssociationLink"])});var Wre=Z((Jg,em)=>{(function(t){var e=typeof Jg=="object"&&Jg&&!Jg.nodeType&&Jg,r=typeof em=="object"&&em&&!em.nodeType&&em,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(t=n);var i,o=2147483647,a=36,s=1,u=26,c=38,f=700,p=72,g=128,m="-",x=/^xn--/,w=/[^\x20-\x7E]/,T=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=a-s,D=Math.floor,M=String.fromCharCode,P;function _(X){throw new RangeError(k[X])}function C(X,oe){for(var G=X.length,K=[];G--;)K[G]=oe(X[G]);return K}function O(X,oe){var G=X.split("@"),K="";G.length>1&&(K=G[0]+"@",X=G[1]),X=X.replace(T,".");var ve=X.split("."),Se=C(ve,oe).join(".");return K+Se}function F(X){for(var oe=[],G=0,K=X.length,ve,Se;G<K;)ve=X.charCodeAt(G++),ve>=55296&&ve<=56319&&G<K?(Se=X.charCodeAt(G++),(Se&64512)==56320?oe.push(((ve&1023)<<10)+(Se&1023)+65536):(oe.push(ve),G--)):oe.push(ve);return oe}function B(X){return C(X,function(oe){var G="";return oe>65535&&(oe-=65536,G+=M(oe>>>10&1023|55296),oe=56320|oe&1023),G+=M(oe),G}).join("")}function V(X){return X-48<10?X-22:X-65<26?X-65:X-97<26?X-97:a}function S(X,oe){return X+22+75*(X<26)-((oe!=0)<<5)}function R(X,oe,G){var K=0;for(X=G?D(X/f):X>>1,X+=D(X/oe);X>A*u>>1;K+=a)X=D(X/A);return D(K+(A+1)*X/(X+c))}function q(X){var oe=[],G=X.length,K,ve=0,Se=g,_e=p,Ne,Le,it,ze,tt,wt,At,Ve,Oe;for(Ne=X.lastIndexOf(m),Ne<0&&(Ne=0),Le=0;Le<Ne;++Le)X.charCodeAt(Le)>=128&&_("not-basic"),oe.push(X.charCodeAt(Le));for(it=Ne>0?Ne+1:0;it<G;){for(ze=ve,tt=1,wt=a;it>=G&&_("invalid-input"),At=V(X.charCodeAt(it++)),(At>=a||At>D((o-ve)/tt))&&_("overflow"),ve+=At*tt,Ve=wt<=_e?s:wt>=_e+u?u:wt-_e,!(At<Ve);wt+=a)Oe=a-Ve,tt>D(o/Oe)&&_("overflow"),tt*=Oe;K=oe.length+1,_e=R(ve-ze,K,ze==0),D(ve/K)>o-Se&&_("overflow"),Se+=D(ve/K),ve%=K,oe.splice(ve++,0,Se)}return B(oe)}function W(X){var oe,G,K,ve,Se,_e,Ne,Le,it,ze,tt,wt=[],At,Ve,Oe,Me;for(X=F(X),At=X.length,oe=g,G=0,Se=p,_e=0;_e<At;++_e)tt=X[_e],tt<128&&wt.push(M(tt));for(K=ve=wt.length,ve&&wt.push(m);K<At;){for(Ne=o,_e=0;_e<At;++_e)tt=X[_e],tt>=oe&&tt<Ne&&(Ne=tt);for(Ve=K+1,Ne-oe>D((o-G)/Ve)&&_("overflow"),G+=(Ne-oe)*Ve,oe=Ne,_e=0;_e<At;++_e)if(tt=X[_e],tt<oe&&++G>o&&_("overflow"),tt==oe){for(Le=G,it=a;ze=it<=Se?s:it>=Se+u?u:it-Se,!(Le<ze);it+=a)Me=Le-ze,Oe=a-ze,wt.push(M(S(ze+Me%Oe,0))),Le=D(Me/Oe);wt.push(M(S(Le,0))),Se=R(G,Ve,K==ve),G=0,++K}++G,++oe}return wt.join("")}function N(X){return O(X,function(oe){return x.test(oe)?q(oe.slice(4).toLowerCase()):oe})}function z(X){return O(X,function(oe){return w.test(oe)?"xn--"+W(oe):oe})}if(i={version:"1.3.2",ucs2:{decode:F,encode:B},decode:q,encode:W,toASCII:z,toUnicode:N},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(e&&r)if(em.exports==e)r.exports=i;else for(P in i)i.hasOwnProperty(P)&&(e[P]=i[P]);else t.punycode=i})(Jg)});var Vre=Z((Ure,D1)=>{(function(t,e){"use strict";typeof D1=="object"&&D1.exports?D1.exports=e():typeof define=="function"&&define.amd?define(e):t.IPv6=e(t)})(Ure,function(t){"use strict";var e=t&&t.IPv6;function r(i){var o=i.toLowerCase(),a=o.split(":"),s=a.length,u=8;a[0]===""&&a[1]===""&&a[2]===""?(a.shift(),a.shift()):a[0]===""&&a[1]===""?a.shift():a[s-1]===""&&a[s-2]===""&&a.pop(),s=a.length,a[s-1].indexOf(".")!==-1&&(u=7);var c;for(c=0;c<s&&a[c]!=="";c++);if(c<u)for(a.splice(c,1,"0000");a.length<u;)a.splice(c,0,"0000");for(var f,p=0;p<u;p++){f=a[p].split("");for(var g=0;g<3&&(f[0]==="0"&&f.length>1);g++)f.splice(0,1);a[p]=f.join("")}var m=-1,x=0,w=0,T=-1,k=!1;for(p=0;p<u;p++)k?a[p]==="0"?w+=1:(k=!1,w>x&&(m=T,x=w)):a[p]==="0"&&(k=!0,T=p,w=1);w>x&&(m=T,x=w),x>1&&a.splice(m,x,""),s=a.length;var A="";for(a[0]===""&&(A=":"),p=0;p<s&&(A+=a[p],p!==s-1);p++)A+=":";return a[s-1]===""&&(A+=":"),A}function n(){return t.IPv6===this&&(t.IPv6=e),this}return{best:r,noConflict:n}})});var Yre=Z(($re,O1)=>{(function(t,e){"use strict";typeof O1=="object"&&O1.exports?O1.exports=e():typeof define=="function"&&define.amd?define(e):t.SecondLevelDomains=e(t)})($re,function(t){"use strict";var e=t&&t.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(n){var i=n.lastIndexOf(".");if(i<=0||i>=n.length-1)return!1;var o=n.lastIndexOf(".",i-1);if(o<=0||o>=i-1)return!1;var a=r.list[n.slice(i+1)];return a?a.indexOf(" "+n.slice(o+1,i)+" ")>=0:!1},is:function(n){var i=n.lastIndexOf(".");if(i<=0||i>=n.length-1)return!1;var o=n.lastIndexOf(".",i-1);if(o>=0)return!1;var a=r.list[n.slice(i+1)];return a?a.indexOf(" "+n.slice(0,i)+" ")>=0:!1},get:function(n){var i=n.lastIndexOf(".");if(i<=0||i>=n.length-1)return null;var o=n.lastIndexOf(".",i-1);if(o<=0||o>=i-1)return null;var a=r.list[n.slice(i+1)];return!a||a.indexOf(" "+n.slice(o+1,i)+" ")<0?null:n.slice(o+1)},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return r})});var I1=Z((Kre,M1)=>{(function(t,e){"use strict";typeof M1=="object"&&M1.exports?M1.exports=e(Wre(),Vre(),Yre()):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],e):t.URI=e(t.punycode,t.IPv6,t.SecondLevelDomains,t)})(Kre,function(t,e,r,n){"use strict";var i=n&&n.URI;function o(S,R){var q=arguments.length>=1,W=arguments.length>=2;if(!(this instanceof o))return q?W?new o(S,R):new o(S):new o;if(S===void 0){if(q)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?S=location.href+"":S=""}if(S===null&&q)throw new TypeError("null is not a valid argument for URI");return this.href(S),R!==void 0?this.absoluteTo(R):this}function a(S){return/^[0-9]+$/.test(S)}o.version="1.19.11";var s=o.prototype,u=Object.prototype.hasOwnProperty;function c(S){return S.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function f(S){return S===void 0?"Undefined":String(Object.prototype.toString.call(S)).slice(8,-1)}function p(S){return f(S)==="Array"}function g(S,R){var q={},W,N;if(f(R)==="RegExp")q=null;else if(p(R))for(W=0,N=R.length;W<N;W++)q[R[W]]=!0;else q[R]=!0;for(W=0,N=S.length;W<N;W++){var z=q&&q[S[W]]!==void 0||!q&&R.test(S[W]);z&&(S.splice(W,1),N--,W--)}return S}function m(S,R){var q,W;if(p(R)){for(q=0,W=R.length;q<W;q++)if(!m(S,R[q]))return!1;return!0}var N=f(R);for(q=0,W=S.length;q<W;q++)if(N==="RegExp"){if(typeof S[q]=="string"&&S[q].match(R))return!0}else if(S[q]===R)return!0;return!1}function x(S,R){if(!p(S)||!p(R)||S.length!==R.length)return!1;S.sort(),R.sort();for(var q=0,W=S.length;q<W;q++)if(S[q]!==R[q])return!1;return!0}function w(S){var R=/^\/+|\/+$/g;return S.replace(R,"")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(S){if(!(!S||!S.nodeName)){var R=S.nodeName.toLowerCase();if(!(R==="input"&&S.type!=="image"))return o.domAttributes[R]}};function T(S){return escape(S)}function k(S){return encodeURIComponent(S).replace(/[!'()*]/g,T).replace(/\*/g,"%2A")}o.encode=k,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=k,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(S,R){var q=o.encode(S+"");return R===void 0&&(R=o.escapeQuerySpace),R?q.replace(/%20/g,"+"):q},o.decodeQuery=function(S,R){S+="",R===void 0&&(R=o.escapeQuerySpace);try{return o.decode(R?S.replace(/\+/g,"%20"):S)}catch{return S}};var A={encode:"encode",decode:"decode"},D,M=function(S,R){return function(q){try{return o[R](q+"").replace(o.characters[S][R].expression,function(W){return o.characters[S][R].map[W]})}catch{return q}}};for(D in A)o[D+"PathSegment"]=M("pathname",A[D]),o[D+"UrnPathSegment"]=M("urnpath",A[D]);var P=function(S,R,q){return function(W){var N;q?N=function(G){return o[R](o[q](G))}:N=o[R];for(var z=(W+"").split(S),X=0,oe=z.length;X<oe;X++)z[X]=N(z[X]);return z.join(S)}};o.decodePath=P("/","decodePathSegment"),o.decodeUrnPath=P(":","decodeUrnPathSegment"),o.recodePath=P("/","encodePathSegment","decode"),o.recodeUrnPath=P(":","encodeUrnPathSegment","decode"),o.encodeReserved=M("reserved","encode"),o.parse=function(S,R){var q;return R||(R={preventInvalidHostname:o.preventInvalidHostname}),S=S.replace(o.leading_whitespace_expression,""),S=S.replace(o.ascii_tab_whitespace,""),q=S.indexOf("#"),q>-1&&(R.fragment=S.substring(q+1)||null,S=S.substring(0,q)),q=S.indexOf("?"),q>-1&&(R.query=S.substring(q+1)||null,S=S.substring(0,q)),S=S.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),S=S.replace(/^[/\\]{2,}/i,"//"),S.substring(0,2)==="//"?(R.protocol=null,S=S.substring(2),S=o.parseAuthority(S,R)):(q=S.indexOf(":"),q>-1&&(R.protocol=S.substring(0,q)||null,R.protocol&&!R.protocol.match(o.protocol_expression)?R.protocol=void 0:S.substring(q+1,q+3).replace(/\\/g,"/")==="//"?(S=S.substring(q+3),S=o.parseAuthority(S,R)):(S=S.substring(q+1),R.urn=!0))),R.path=S,R},o.parseHost=function(S,R){S||(S=""),S=S.replace(/\\/g,"/");var q=S.indexOf("/"),W,N;if(q===-1&&(q=S.length),S.charAt(0)==="[")W=S.indexOf("]"),R.hostname=S.substring(1,W)||null,R.port=S.substring(W+2,q)||null,R.port==="/"&&(R.port=null);else{var z=S.indexOf(":"),X=S.indexOf("/"),oe=S.indexOf(":",z+1);oe!==-1&&(X===-1||oe<X)?(R.hostname=S.substring(0,q)||null,R.port=null):(N=S.substring(0,q).split(":"),R.hostname=N[0]||null,R.port=N[1]||null)}return R.hostname&&S.substring(q).charAt(0)!=="/"&&(q++,S="/"+S),R.preventInvalidHostname&&o.ensureValidHostname(R.hostname,R.protocol),R.port&&o.ensureValidPort(R.port),S.substring(q)||"/"},o.parseAuthority=function(S,R){return S=o.parseUserinfo(S,R),o.parseHost(S,R)},o.parseUserinfo=function(S,R){var q=S,W=S.indexOf("\\");W!==-1&&(S=S.replace(/\\/g,"/"));var N=S.indexOf("/"),z=S.lastIndexOf("@",N>-1?N:S.length-1),X;return z>-1&&(N===-1||z<N)?(X=S.substring(0,z).split(":"),R.username=X[0]?o.decode(X[0]):null,X.shift(),R.password=X[0]?o.decode(X.join(":")):null,S=q.substring(z+1)):(R.username=null,R.password=null),S},o.parseQuery=function(S,R){if(!S)return{};if(S=S.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!S)return{};for(var q={},W=S.split("&"),N=W.length,z,X,oe,G=0;G<N;G++)z=W[G].split("="),X=o.decodeQuery(z.shift(),R),oe=z.length?o.decodeQuery(z.join("="),R):null,X!=="__proto__"&&(u.call(q,X)?((typeof q[X]=="string"||q[X]===null)&&(q[X]=[q[X]]),q[X].push(oe)):q[X]=oe);return q},o.build=function(S){var R="",q=!1;return S.protocol&&(R+=S.protocol+":"),!S.urn&&(R||S.hostname)&&(R+="//",q=!0),R+=o.buildAuthority(S)||"",typeof S.path=="string"&&(S.path.charAt(0)!=="/"&&q&&(R+="/"),R+=S.path),typeof S.query=="string"&&S.query&&(R+="?"+S.query),typeof S.fragment=="string"&&S.fragment&&(R+="#"+S.fragment),R},o.buildHost=function(S){var R="";if(S.hostname)o.ip6_expression.test(S.hostname)?R+="["+S.hostname+"]":R+=S.hostname;else return"";return S.port&&(R+=":"+S.port),R},o.buildAuthority=function(S){return o.buildUserinfo(S)+o.buildHost(S)},o.buildUserinfo=function(S){var R="";return S.username&&(R+=o.encode(S.username)),S.password&&(R+=":"+o.encode(S.password)),R&&(R+="@"),R},o.buildQuery=function(S,R,q){var W="",N,z,X,oe;for(z in S)if(z!=="__proto__"&&u.call(S,z))if(p(S[z]))for(N={},X=0,oe=S[z].length;X<oe;X++)S[z][X]!==void 0&&N[S[z][X]+""]===void 0&&(W+="&"+o.buildQueryParameter(z,S[z][X],q),R!==!0&&(N[S[z][X]+""]=!0));else S[z]!==void 0&&(W+="&"+o.buildQueryParameter(z,S[z],q));return W.substring(1)},o.buildQueryParameter=function(S,R,q){return o.encodeQuery(S,q)+(R!==null?"="+o.encodeQuery(R,q):"")},o.addQuery=function(S,R,q){if(typeof R=="object")for(var W in R)u.call(R,W)&&o.addQuery(S,W,R[W]);else if(typeof R=="string"){if(S[R]===void 0){S[R]=q;return}else typeof S[R]=="string"&&(S[R]=[S[R]]);p(q)||(q=[q]),S[R]=(S[R]||[]).concat(q)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")},o.setQuery=function(S,R,q){if(typeof R=="object")for(var W in R)u.call(R,W)&&o.setQuery(S,W,R[W]);else if(typeof R=="string")S[R]=q===void 0?null:q;else throw new TypeError("URI.setQuery() accepts an object, string as the name parameter")},o.removeQuery=function(S,R,q){var W,N,z;if(p(R))for(W=0,N=R.length;W<N;W++)S[R[W]]=void 0;else if(f(R)==="RegExp")for(z in S)R.test(z)&&(S[z]=void 0);else if(typeof R=="object")for(z in R)u.call(R,z)&&o.removeQuery(S,z,R[z]);else if(typeof R=="string")q!==void 0?f(q)==="RegExp"?!p(S[R])&&q.test(S[R])?S[R]=void 0:S[R]=g(S[R],q):S[R]===String(q)&&(!p(q)||q.length===1)?S[R]=void 0:p(S[R])&&(S[R]=g(S[R],q)):S[R]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter")},o.hasQuery=function(S,R,q,W){switch(f(R)){case"String":break;case"RegExp":for(var N in S)if(u.call(S,N)&&R.test(N)&&(q===void 0||o.hasQuery(S,N,q)))return!0;return!1;case"Object":for(var z in R)if(u.call(R,z)&&!o.hasQuery(S,z,R[z]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(f(q)){case"Undefined":return R in S;case"Boolean":var X=Boolean(p(S[R])?S[R].length:S[R]);return q===X;case"Function":return!!q(S[R],R,S);case"Array":if(!p(S[R]))return!1;var oe=W?m:x;return oe(S[R],q);case"RegExp":return p(S[R])?W?m(S[R],q):!1:Boolean(S[R]&&S[R].match(q));case"Number":q=String(q);case"String":return p(S[R])?W?m(S[R],q):!1:S[R]===q;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var S=[],R=[],q=0,W=0;W<arguments.length;W++){var N=new o(arguments[W]);S.push(N);for(var z=N.segment(),X=0;X<z.length;X++)typeof z[X]=="string"&&R.push(z[X]),z[X]&&q++}if(!R.length||!q)return new o("");var oe=new o("").segment(R);return(S[0].path()===""||S[0].path().slice(0,1)==="/")&&oe.path("/"+oe.path()),oe.normalize()},o.commonPath=function(S,R){var q=Math.min(S.length,R.length),W;for(W=0;W<q;W++)if(S.charAt(W)!==R.charAt(W)){W--;break}return W<1?S.charAt(0)===R.charAt(0)&&S.charAt(0)==="/"?"/":"":((S.charAt(W)!=="/"||R.charAt(W)!=="/")&&(W=S.substring(0,W).lastIndexOf("/")),S.substring(0,W+1))},o.withinString=function(S,R,q){q||(q={});var W=q.start||o.findUri.start,N=q.end||o.findUri.end,z=q.trim||o.findUri.trim,X=q.parens||o.findUri.parens,oe=/[a-z0-9-]=["']?$/i;for(W.lastIndex=0;;){var G=W.exec(S);if(!G)break;var K=G.index;if(q.ignoreHtml){var ve=S.slice(Math.max(K-3,0),K);if(ve&&oe.test(ve))continue}for(var Se=K+S.slice(K).search(N),_e=S.slice(K,Se),Ne=-1;;){var Le=X.exec(_e);if(!Le)break;var it=Le.index+Le[0].length;Ne=Math.max(Ne,it)}if(Ne>-1?_e=_e.slice(0,Ne)+_e.slice(Ne).replace(z,""):_e=_e.replace(z,""),!(_e.length<=G[0].length)&&!(q.ignore&&q.ignore.test(_e))){Se=K+_e.length;var ze=R(_e,K,Se,S);if(ze===void 0){W.lastIndex=Se;continue}ze=String(ze),S=S.slice(0,K)+ze+S.slice(Se),W.lastIndex=K+ze.length}}return W.lastIndex=0,S},o.ensureValidHostname=function(S,R){var q=!!S,W=!!R,N=!1;if(W&&(N=m(o.hostProtocols,R)),N&&!q)throw new TypeError("Hostname cannot be empty, if protocol is "+R);if(S&&S.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(S).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(S){if(!!S){var R=Number(S);if(!(a(R)&&R>0&&R<65536))throw new TypeError('Port "'+S+'" is not a valid port')}},o.noConflict=function(S){if(S){var R={URI:this.noConflict()};return n.URITemplate&&typeof n.URITemplate.noConflict=="function"&&(R.URITemplate=n.URITemplate.noConflict()),n.IPv6&&typeof n.IPv6.noConflict=="function"&&(R.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&typeof n.SecondLevelDomains.noConflict=="function"&&(R.SecondLevelDomains=n.SecondLevelDomains.noConflict()),R}else n.URI===this&&(n.URI=i);return this},s.build=function(S){return S===!0?this._deferred_build=!0:(S===void 0||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new o(this)},s.valueOf=s.toString=function(){return this.build(!1)._string};function _(S){return function(R,q){return R===void 0?this._parts[S]||"":(this._parts[S]=R||null,this.build(!q),this)}}function C(S,R){return function(q,W){return q===void 0?this._parts[S]||"":(q!==null&&(q=q+"",q.charAt(0)===R&&(q=q.substring(1))),this._parts[S]=q,this.build(!W),this)}}s.protocol=_("protocol"),s.username=_("username"),s.password=_("password"),s.hostname=_("hostname"),s.port=_("port"),s.query=C("query","?"),s.fragment=C("fragment","#"),s.search=function(S,R){var q=this.query(S,R);return typeof q=="string"&&q.length?"?"+q:q},s.hash=function(S,R){var q=this.fragment(S,R);return typeof q=="string"&&q.length?"#"+q:q},s.pathname=function(S,R){if(S===void 0||S===!0){var q=this._parts.path||(this._parts.hostname?"/":"");return S?(this._parts.urn?o.decodeUrnPath:o.decodePath)(q):q}else return this._parts.urn?this._parts.path=S?o.recodeUrnPath(S):"":this._parts.path=S?o.recodePath(S):"/",this.build(!R),this},s.path=s.pathname,s.href=function(S,R){var q;if(S===void 0)return this.toString();this._string="",this._parts=o._parts();var W=S instanceof o,N=typeof S=="object"&&(S.hostname||S.path||S.pathname);if(S.nodeName){var z=o.getDomAttribute(S);S=S[z]||"",N=!1}if(!W&&N&&S.pathname!==void 0&&(S=S.toString()),typeof S=="string"||S instanceof String)this._parts=o.parse(String(S),this._parts);else if(W||N){var X=W?S._parts:S;for(q in X)q!=="query"&&u.call(this._parts,q)&&(this._parts[q]=X[q]);X.query&&this.query(X.query,!1)}else throw new TypeError("invalid input");return this.build(!R),this},s.is=function(S){var R=!1,q=!1,W=!1,N=!1,z=!1,X=!1,oe=!1,G=!this._parts.urn;switch(this._parts.hostname&&(G=!1,q=o.ip4_expression.test(this._parts.hostname),W=o.ip6_expression.test(this._parts.hostname),R=q||W,N=!R,z=N&&r&&r.has(this._parts.hostname),X=N&&o.idn_expression.test(this._parts.hostname),oe=N&&o.punycode_expression.test(this._parts.hostname)),S.toLowerCase()){case"relative":return G;case"absolute":return!G;case"domain":case"name":return N;case"sld":return z;case"ip":return R;case"ip4":case"ipv4":case"inet4":return q;case"ip6":case"ipv6":case"inet6":return W;case"idn":return X;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return oe}return null};var O=s.protocol,F=s.port,B=s.hostname;s.protocol=function(S,R){if(S&&(S=S.replace(/:(\/\/)?$/,""),!S.match(o.protocol_expression)))throw new TypeError('Protocol "'+S+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return O.call(this,S,R)},s.scheme=s.protocol,s.port=function(S,R){return this._parts.urn?S===void 0?"":this:(S!==void 0&&(S===0&&(S=null),S&&(S+="",S.charAt(0)===":"&&(S=S.substring(1)),o.ensureValidPort(S))),F.call(this,S,R))},s.hostname=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S!==void 0){var q={preventInvalidHostname:this._parts.preventInvalidHostname},W=o.parseHost(S,q);if(W!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');S=q.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(S,this._parts.protocol)}return B.call(this,S,R)},s.origin=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){var q=this.protocol(),W=this.authority();return W?(q?q+"://":"")+this.authority():""}else{var N=o(S);return this.protocol(N.protocol()).authority(N.authority()).build(!R),this}},s.host=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0)return this._parts.hostname?o.buildHost(this._parts):"";var q=o.parseHost(S,this._parts);if(q!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');return this.build(!R),this},s.authority=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0)return this._parts.hostname?o.buildAuthority(this._parts):"";var q=o.parseAuthority(S,this._parts);if(q!=="/")throw new TypeError('Hostname "'+S+'" contains characters other than [A-Z0-9.-]');return this.build(!R),this},s.userinfo=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){var q=o.buildUserinfo(this._parts);return q&&q.substring(0,q.length-1)}else return S[S.length-1]!=="@"&&(S+="@"),o.parseUserinfo(S,this._parts),this.build(!R),this},s.resource=function(S,R){var q;return S===void 0?this.path()+this.search()+this.hash():(q=o.parse(S),this._parts.path=q.path,this._parts.query=q.query,this._parts.fragment=q.fragment,this.build(!R),this)},s.subdomain=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var q=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,q)||""}else{var W=this._parts.hostname.length-this.domain().length,N=this._parts.hostname.substring(0,W),z=new RegExp("^"+c(N));if(S&&S.charAt(S.length-1)!=="."&&(S+="."),S.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return S&&o.ensureValidHostname(S,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(z,S),this.build(!R),this}},s.domain=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(typeof S=="boolean"&&(R=S,S=void 0),S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var q=this._parts.hostname.match(/\./g);if(q&&q.length<2)return this._parts.hostname;var W=this._parts.hostname.length-this.tld(R).length-1;return W=this._parts.hostname.lastIndexOf(".",W-1)+1,this._parts.hostname.substring(W)||""}else{if(!S)throw new TypeError("cannot set domain empty");if(S.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(S,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=S;else{var N=new RegExp(c(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(N,S)}return this.build(!R),this}},s.tld=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(typeof S=="boolean"&&(R=S,S=void 0),S===void 0){if(!this._parts.hostname||this.is("IP"))return"";var q=this._parts.hostname.lastIndexOf("."),W=this._parts.hostname.substring(q+1);return R!==!0&&r&&r.list[W.toLowerCase()]&&r.get(this._parts.hostname)||W}else{var N;if(S)if(S.match(/[^a-zA-Z0-9-]/))if(r&&r.is(S))N=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(N,S);else throw new TypeError('TLD "'+S+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");N=new RegExp(c(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(N,S)}else throw new TypeError("cannot set TLD empty");return this.build(!R),this}},s.directory=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0||S===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var q=this._parts.path.length-this.filename().length-1,W=this._parts.path.substring(0,q)||(this._parts.hostname?"/":"");return S?o.decodePath(W):W}else{var N=this._parts.path.length-this.filename().length,z=this._parts.path.substring(0,N),X=new RegExp("^"+c(z));return this.is("relative")||(S||(S="/"),S.charAt(0)!=="/"&&(S="/"+S)),S&&S.charAt(S.length-1)!=="/"&&(S+="/"),S=o.recodePath(S),this._parts.path=this._parts.path.replace(X,S),this.build(!R),this}},s.filename=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(typeof S!="string"){if(!this._parts.path||this._parts.path==="/")return"";var q=this._parts.path.lastIndexOf("/"),W=this._parts.path.substring(q+1);return S?o.decodePathSegment(W):W}else{var N=!1;S.charAt(0)==="/"&&(S=S.substring(1)),S.match(/\.?\//)&&(N=!0);var z=new RegExp(c(this.filename())+"$");return S=o.recodePath(S),this._parts.path=this._parts.path.replace(z,S),N?this.normalizePath(R):this.build(!R),this}},s.suffix=function(S,R){if(this._parts.urn)return S===void 0?"":this;if(S===void 0||S===!0){if(!this._parts.path||this._parts.path==="/")return"";var q=this.filename(),W=q.lastIndexOf("."),N,z;return W===-1?"":(N=q.substring(W+1),z=/^[a-z0-9%]+$/i.test(N)?N:"",S?o.decodePathSegment(z):z)}else{S.charAt(0)==="."&&(S=S.substring(1));var X=this.suffix(),oe;if(X)S?oe=new RegExp(c(X)+"$"):oe=new RegExp(c("."+X)+"$");else{if(!S)return this;this._parts.path+="."+o.recodePath(S)}return oe&&(S=o.recodePath(S),this._parts.path=this._parts.path.replace(oe,S)),this.build(!R),this}},s.segment=function(S,R,q){var W=this._parts.urn?":":"/",N=this.path(),z=N.substring(0,1)==="/",X=N.split(W);if(S!==void 0&&typeof S!="number"&&(q=R,R=S,S=void 0),S!==void 0&&typeof S!="number")throw new Error('Bad segment "'+S+'", must be 0-based integer');if(z&&X.shift(),S<0&&(S=Math.max(X.length+S,0)),R===void 0)return S===void 0?X:X[S];if(S===null||X[S]===void 0)if(p(R)){X=[];for(var oe=0,G=R.length;oe<G;oe++)!R[oe].length&&(!X.length||!X[X.length-1].length)||(X.length&&!X[X.length-1].length&&X.pop(),X.push(w(R[oe])))}else(R||typeof R=="string")&&(R=w(R),X[X.length-1]===""?X[X.length-1]=R:X.push(R));else R?X[S]=w(R):X.splice(S,1);return z&&X.unshift(""),this.path(X.join(W),q)},s.segmentCoded=function(S,R,q){var W,N,z;if(typeof S!="number"&&(q=R,R=S,S=void 0),R===void 0){if(W=this.segment(S,R,q),!p(W))W=W!==void 0?o.decode(W):void 0;else for(N=0,z=W.length;N<z;N++)W[N]=o.decode(W[N]);return W}if(!p(R))R=typeof R=="string"||R instanceof String?o.encode(R):R;else for(N=0,z=R.length;N<z;N++)R[N]=o.encode(R[N]);return this.segment(S,R,q)};var V=s.query;return s.query=function(S,R){if(S===!0)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof S=="function"){var q=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),W=S.call(this,q);return this._parts.query=o.buildQuery(W||q,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!R),this}else return S!==void 0&&typeof S!="string"?(this._parts.query=o.buildQuery(S,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!R),this):V.call(this,S,R)},s.setQuery=function(S,R,q){var W=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof S=="string"||S instanceof String)W[S]=R!==void 0?R:null;else if(typeof S=="object")for(var N in S)u.call(S,N)&&(W[N]=S[N]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=o.buildQuery(W,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof S!="string"&&(q=R),this.build(!q),this},s.addQuery=function(S,R,q){var W=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(W,S,R===void 0?null:R),this._parts.query=o.buildQuery(W,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof S!="string"&&(q=R),this.build(!q),this},s.removeQuery=function(S,R,q){var W=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(W,S,R),this._parts.query=o.buildQuery(W,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof S!="string"&&(q=R),this.build(!q),this},s.hasQuery=function(S,R,q){var W=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(W,S,R,q)},s.setSearch=s.setQuery,s.addSearch=s.addQuery,s.removeSearch=s.removeQuery,s.hasSearch=s.hasQuery,s.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},s.normalizeProtocol=function(S){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!S)),this},s.normalizeHostname=function(S){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!S)),this},s.normalizePort=function(S){return typeof this._parts.protocol=="string"&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!S)),this},s.normalizePath=function(S){var R=this._parts.path;if(!R)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!S),this;if(this._parts.path==="/")return this;R=o.recodePath(R);var q,W="",N,z;for(R.charAt(0)!=="/"&&(q=!0,R="/"+R),(R.slice(-3)==="/.."||R.slice(-2)==="/.")&&(R+="/"),R=R.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),q&&(W=R.substring(1).match(/^(\.\.\/)+/)||"",W&&(W=W[0]));N=R.search(/\/\.\.(\/|$)/),N!==-1;){if(N===0){R=R.substring(3);continue}z=R.substring(0,N).lastIndexOf("/"),z===-1&&(z=N),R=R.substring(0,z)+R.substring(N+3)}return q&&this.is("relative")&&(R=W+R.substring(1)),this._parts.path=R,this.build(!S),this},s.normalizePathname=s.normalizePath,s.normalizeQuery=function(S){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!S)),this},s.normalizeFragment=function(S){return this._parts.fragment||(this._parts.fragment=null,this.build(!S)),this},s.normalizeSearch=s.normalizeQuery,s.normalizeHash=s.normalizeFragment,s.iso8859=function(){var S=o.encode,R=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=S,o.decode=R}return this},s.unicode=function(){var S=o.encode,R=o.decode;o.encode=k,o.decode=unescape;try{this.normalize()}finally{o.encode=S,o.decode=R}return this},s.readable=function(){var S=this.clone();S.username("").password("").normalize();var R="";if(S._parts.protocol&&(R+=S._parts.protocol+"://"),S._parts.hostname&&(S.is("punycode")&&t?(R+=t.toUnicode(S._parts.hostname),S._parts.port&&(R+=":"+S._parts.port)):R+=S.host()),S._parts.hostname&&S._parts.path&&S._parts.path.charAt(0)!=="/"&&(R+="/"),R+=S.path(!0),S._parts.query){for(var q="",W=0,N=S._parts.query.split("&"),z=N.length;W<z;W++){var X=(N[W]||"").split("=");q+="&"+o.decodeQuery(X[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),X[1]!==void 0&&(q+="="+o.decodeQuery(X[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}R+="?"+q.substring(1)}return R+=o.decodeQuery(S.hash(),!0),R},s.absoluteTo=function(S){var R=this.clone(),q=["protocol","username","password","hostname","port"],W,N,z;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(S instanceof o||(S=new o(S)),R._parts.protocol||(R._parts.protocol=S._parts.protocol,this._parts.hostname))return R;for(N=0;z=q[N];N++)R._parts[z]=S._parts[z];return R._parts.path?(R._parts.path.substring(-2)===".."&&(R._parts.path+="/"),R.path().charAt(0)!=="/"&&(W=S.directory(),W=W||(S.path().indexOf("/")===0?"/":""),R._parts.path=(W?W+"/":"")+R._parts.path,R.normalizePath())):(R._parts.path=S._parts.path,R._parts.query||(R._parts.query=S._parts.query)),R.build(),R},s.relativeTo=function(S){var R=this.clone().normalize(),q,W,N,z,X;if(R._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(S=new o(S).normalize(),q=R._parts,W=S._parts,z=R.path(),X=S.path(),z.charAt(0)!=="/")throw new Error("URI is already relative");if(X.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if(q.protocol===W.protocol&&(q.protocol=null),q.username!==W.username||q.password!==W.password||q.protocol!==null||q.username!==null||q.password!==null)return R.build();if(q.hostname===W.hostname&&q.port===W.port)q.hostname=null,q.port=null;else return R.build();if(z===X)return q.path="",R.build();if(N=o.commonPath(z,X),!N)return R.build();var oe=W.path.substring(N.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return q.path=oe+q.path.substring(N.length)||"./",R.build()},s.equals=function(S){var R=this.clone(),q=new o(S),W={},N={},z={},X,oe,G;if(R.normalize(),q.normalize(),R.toString()===q.toString())return!0;if(X=R.query(),oe=q.query(),R.query(""),q.query(""),R.toString()!==q.toString()||X.length!==oe.length)return!1;W=o.parseQuery(X,this._parts.escapeQuerySpace),N=o.parseQuery(oe,this._parts.escapeQuerySpace);for(G in W)if(u.call(W,G)){if(p(W[G])){if(!x(W[G],N[G]))return!1}else if(W[G]!==N[G])return!1;z[G]=!0}for(G in N)if(u.call(N,G)&&!z[G])return!1;return!0},s.preventInvalidHostname=function(S){return this._parts.preventInvalidHostname=!!S,this},s.duplicateQueryParameters=function(S){return this._parts.duplicateQueryParameters=!!S,this},s.escapeQuerySpace=function(S){return this._parts.escapeQuerySpace=!!S,this},o})});var nq,Ca,tm=se(()=>{Pr();nq=Vr(I1()),Ca=class extends Ct{uriParams(){return(0,nq.default)(window.location.toString()).query(!0)}viaResourceName(){return this.uriParams().via_resource_name}uriParam(t){return this.viaResourceName()?`${this.viaResourceName}_${t}`:t}b64EncodeUnicode(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(e,r)=>String.fromCharCode(`0x${r}`)))}b64DecodeUnicode(t){return decodeURIComponent(atob(t).split("").map(e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`).join(""))}changeFilter(){let t=this.getFilterValue(),e=this.getFilterClass(),r=this.uriParams()[this.uriParam("filters")];r?r=JSON.parse(this.b64DecodeUnicode(r)):r={},r[e]=t;let n=Object.keys(r).filter(o=>r[o]!==null).reduce((o,a)=>(o[a]=r[a],o),{}),i;n&&Object.keys(n).length>0&&(i=this.b64EncodeUnicode(JSON.stringify(n))),this.navigateToURLWithFilters(i)}navigateToURLWithFilters(t){let e=new nq.default(this.urlRedirectTarget.href),r=Bc({},e.query(!0));this.keepFiltersPanelOpenValue&&(r.keep_filters_panel_open=this.keepFiltersPanelOpenValue?1:null),r.page=1,t?r.filters=t:delete r.filters,e.query(r),this.urlRedirectTarget.href=e,this.urlRedirectTarget.click()}};xt(Ca,"targets",["urlRedirect"]),xt(Ca,"values",{keepFiltersPanelOpen:Boolean})});var L1,Gre=se(()=>{tm();L1=class extends Ca{getFilterValue(){let t={};return this.optionTargets.forEach(e=>{t[e.value]=e.checked}),t}getFilterClass(){let{filterClass:t}=this.optionTarget.dataset;return t}};xt(L1,"targets",["option"])});var P1,Xre=se(()=>{Pr();P1=class extends Ct{constructor(){super(...arguments);xt(this,"interval")}get parentTurboFrame(){return this.context.scope.element.closest("turbo-frame")}get refreshInterval(){if(this.cardTarget.dataset.refreshEvery)return parseInt(this.cardTarget.dataset.refreshEvery,10)*1e3}connect(){this.refreshInterval&&(this.interval=setInterval(()=>{this.parentTurboFrame.reload()},this.refreshInterval))}cardTargetDisconnected(){this.interval&&clearInterval(this.interval)}};xt(P1,"targets",["card"])});var Br=Z((iq,oq)=>{(function(t,e){typeof iq=="object"&&typeof oq<"u"?oq.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.CodeMirror=e())})(iq,function(){"use strict";var t=navigator.userAgent,e=navigator.platform,r=/gecko\/\d/i.test(t),n=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=n||i||o,s=a&&(n?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(t),c=u&&/Qt\/\d+\.\d+/.test(t),f=!o&&/Chrome\//.test(t),p=/Opera\//.test(t),g=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),x=/PhantomJS/.test(t),w=g&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),T=/Android/.test(t),k=w||T||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),A=w||/Mac/.test(e),D=/\bCrOS\b/.test(t),M=/win/i.test(e),P=p&&t.match(/Version\/(\d*\.\d*)/);P&&(P=Number(P[1])),P&&P>=15&&(p=!1,u=!0);var _=A&&(c||p&&(P==null||P<12.11)),C=r||a&&s>=9;function O(l){return new RegExp("(^|\\s)"+l+"(?:$|\\s)\\s*")}var F=function(l,d){var y=l.className,v=O(d).exec(y);if(v){var E=y.slice(v.index+v[0].length);l.className=y.slice(0,v.index)+(E?v[1]+E:"")}};function B(l){for(var d=l.childNodes.length;d>0;--d)l.removeChild(l.firstChild);return l}function V(l,d){return B(l).appendChild(d)}function S(l,d,y,v){var E=document.createElement(l);if(y&&(E.className=y),v&&(E.style.cssText=v),typeof d=="string")E.appendChild(document.createTextNode(d));else if(d)for(var L=0;L<d.length;++L)E.appendChild(d[L]);return E}function R(l,d,y,v){var E=S(l,d,y,v);return E.setAttribute("role","presentation"),E}var q;document.createRange?q=function(l,d,y,v){var E=document.createRange();return E.setEnd(v||l,y),E.setStart(l,d),E}:q=function(l,d,y){var v=document.body.createTextRange();try{v.moveToElementText(l.parentNode)}catch{return v}return v.collapse(!0),v.moveEnd("character",y),v.moveStart("character",d),v};function W(l,d){if(d.nodeType==3&&(d=d.parentNode),l.contains)return l.contains(d);do if(d.nodeType==11&&(d=d.host),d==l)return!0;while(d=d.parentNode)}function N(){var l;try{l=document.activeElement}catch{l=document.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function z(l,d){var y=l.className;O(d).test(y)||(l.className+=(y?" ":"")+d)}function X(l,d){for(var y=l.split(" "),v=0;v<y.length;v++)y[v]&&!O(y[v]).test(d)&&(d+=" "+y[v]);return d}var oe=function(l){l.select()};w?oe=function(l){l.selectionStart=0,l.selectionEnd=l.value.length}:a&&(oe=function(l){try{l.select()}catch{}});function G(l){var d=Array.prototype.slice.call(arguments,1);return function(){return l.apply(null,d)}}function K(l,d,y){d||(d={});for(var v in l)l.hasOwnProperty(v)&&(y!==!1||!d.hasOwnProperty(v))&&(d[v]=l[v]);return d}function ve(l,d,y,v,E){d==null&&(d=l.search(/[^\s\u00a0]/),d==-1&&(d=l.length));for(var L=v||0,j=E||0;;){var Y=l.indexOf(" ",L);if(Y<0||Y>=d)return j+(d-L);j+=Y-L,j+=y-j%y,L=Y+1}}var Se=function(){this.id=null,this.f=null,this.time=0,this.handler=G(this.onTimeout,this)};Se.prototype.onTimeout=function(l){l.id=0,l.time<=+new Date?l.f():setTimeout(l.handler,l.time-+new Date)},Se.prototype.set=function(l,d){this.f=d;var y=+new Date+l;(!this.id||y<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,l),this.time=y)};function _e(l,d){for(var y=0;y<l.length;++y)if(l[y]==d)return y;return-1}var Ne=50,Le={toString:function(){return"CodeMirror.Pass"}},it={scroll:!1},ze={origin:"*mouse"},tt={origin:"+move"};function wt(l,d,y){for(var v=0,E=0;;){var L=l.indexOf(" ",v);L==-1&&(L=l.length);var j=L-v;if(L==l.length||E+j>=d)return v+Math.min(j,d-E);if(E+=L-v,E+=y-E%y,v=L+1,E>=d)return v}}var At=[""];function Ve(l){for(;At.length<=l;)At.push(Oe(At)+" ");return At[l]}function Oe(l){return l[l.length-1]}function Me(l,d){for(var y=[],v=0;v<l.length;v++)y[v]=d(l[v],v);return y}function he(l,d,y){for(var v=0,E=y(d);v<l.length&&y(l[v])<=E;)v++;l.splice(v,0,d)}function J(){}function re(l,d){var y;return Object.create?y=Object.create(l):(J.prototype=l,y=new J),d&&K(d,y),y}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ht(l){return/\w/.test(l)||l>"\x80"&&(l.toUpperCase()!=l.toLowerCase()||fe.test(l))}function ke(l,d){return d?d.source.indexOf("\\w")>-1&&ht(l)?!0:d.test(l):ht(l)}function $e(l){for(var d in l)if(l.hasOwnProperty(d)&&l[d])return!1;return!0}var Fe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function It(l){return l.charCodeAt(0)>=768&&Fe.test(l)}function ut(l,d,y){for(;(y<0?d>0:d<l.length)&&It(l.charAt(d));)d+=y;return d}function pt(l,d,y){for(var v=d>y?-1:1;;){if(d==y)return d;var E=(d+y)/2,L=v<0?Math.ceil(E):Math.floor(E);if(L==d)return l(L)?d:y;l(L)?y=L:d=L+v}}function st(l,d,y,v){if(!l)return v(d,y,"ltr",0);for(var E=!1,L=0;L<l.length;++L){var j=l[L];(j.from<y&&j.to>d||d==y&&j.to==d)&&(v(Math.max(j.from,d),Math.min(j.to,y),j.level==1?"rtl":"ltr",L),E=!0)}E||v(d,y,"ltr")}var ye=null;function xe(l,d,y){var v;ye=null;for(var E=0;E<l.length;++E){var L=l[E];if(L.from<d&&L.to>d)return E;L.to==d&&(L.from!=L.to&&y=="before"?v=E:ye=E),L.from==d&&(L.from!=L.to&&y!="before"?v=E:ye=E)}return v??ye}var We=function(){var l="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",d="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function y(ee){return ee<=247?l.charAt(ee):1424<=ee&&ee<=1524?"R":1536<=ee&&ee<=1785?d.charAt(ee-1536):1774<=ee&&ee<=2220?"r":8192<=ee&&ee<=8203?"w":ee==8204?"b":"L"}var v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,L=/[LRr]/,j=/[Lb1n]/,Y=/[1n]/;function Q(ee,ce,pe){this.level=ee,this.from=ce,this.to=pe}return function(ee,ce){var pe=ce=="ltr"?"L":"R";if(ee.length==0||ce=="ltr"&&!v.test(ee))return!1;for(var Te=ee.length,Ce=[],je=0;je<Te;++je)Ce.push(y(ee.charCodeAt(je)));for(var Ke=0,ot=pe;Ke<Te;++Ke){var ct=Ce[Ke];ct=="m"?Ce[Ke]=ot:ot=ct}for(var bt=0,ft=pe;bt<Te;++bt){var St=Ce[bt];St=="1"&&ft=="r"?Ce[bt]="n":L.test(St)&&(ft=St,St=="r"&&(Ce[bt]="R"))}for(var Pt=1,Lt=Ce[0];Pt<Te-1;++Pt){var ir=Ce[Pt];ir=="+"&&Lt=="1"&&Ce[Pt+1]=="1"?Ce[Pt]="1":ir==","&&Lt==Ce[Pt+1]&&(Lt=="1"||Lt=="n")&&(Ce[Pt]=Lt),Lt=ir}for(var Rr=0;Rr<Te;++Rr){var qn=Ce[Rr];if(qn==",")Ce[Rr]="N";else if(qn=="%"){var Zr=void 0;for(Zr=Rr+1;Zr<Te&&Ce[Zr]=="%";++Zr);for(var Oi=Rr&&Ce[Rr-1]=="!"||Zr<Te&&Ce[Zr]=="1"?"1":"N",Mi=Rr;Mi<Zr;++Mi)Ce[Mi]=Oi;Rr=Zr-1}}for(var Sn=0,ni=pe;Sn<Te;++Sn){var Un=Ce[Sn];ni=="L"&&Un=="1"?Ce[Sn]="L":L.test(Un)&&(ni=Un)}for(var Ur=0;Ur<Te;++Ur)if(E.test(Ce[Ur])){var rn=void 0;for(rn=Ur+1;rn<Te&&E.test(Ce[rn]);++rn);for(var yn=(Ur?Ce[Ur-1]:pe)=="L",Ii=(rn<Te?Ce[rn]:pe)=="L",qc=yn==Ii?yn?"L":"R":pe,yl=Ur;yl<rn;++yl)Ce[yl]=qc;Ur=rn-1}for(var vi=[],Na,Vn=0;Vn<Te;)if(j.test(Ce[Vn])){var pv=Vn;for(++Vn;Vn<Te&&j.test(Ce[Vn]);++Vn);vi.push(new Q(0,pv,Vn))}else{var ys=Vn,vu=vi.length,yu=ce=="rtl"?1:0;for(++Vn;Vn<Te&&Ce[Vn]!="L";++Vn);for(var Li=ys;Li<Vn;)if(Y.test(Ce[Li])){ys<Li&&(vi.splice(vu,0,new Q(1,ys,Li)),vu+=yu);var Fc=Li;for(++Li;Li<Vn&&Y.test(Ce[Li]);++Li);vi.splice(vu,0,new Q(2,Fc,Li)),vu+=yu,ys=Li}else++Li;ys<Vn&&vi.splice(vu,0,new Q(1,ys,Vn))}return ce=="ltr"&&(vi[0].level==1&&(Na=ee.match(/^\s+/))&&(vi[0].from=Na[0].length,vi.unshift(new Q(0,0,Na[0].length))),Oe(vi).level==1&&(Na=ee.match(/\s+$/))&&(Oe(vi).to-=Na[0].length,vi.push(new Q(0,Te-Na[0].length,Te)))),ce=="rtl"?vi.reverse():vi}}();function yt(l,d){var y=l.order;return y==null&&(y=l.order=We(l.text,d)),y}var Gr=[],mt=function(l,d,y){if(l.addEventListener)l.addEventListener(d,y,!1);else if(l.attachEvent)l.attachEvent("on"+d,y);else{var v=l._handlers||(l._handlers={});v[d]=(v[d]||Gr).concat(y)}};function er(l,d){return l._handlers&&l._handlers[d]||Gr}function Ie(l,d,y){if(l.removeEventListener)l.removeEventListener(d,y,!1);else if(l.detachEvent)l.detachEvent("on"+d,y);else{var v=l._handlers,E=v&&v[d];if(E){var L=_e(E,y);L>-1&&(v[d]=E.slice(0,L).concat(E.slice(L+1)))}}}function Ze(l,d){var y=er(l,d);if(!!y.length)for(var v=Array.prototype.slice.call(arguments,2),E=0;E<y.length;++E)y[E].apply(null,v)}function dt(l,d,y){return typeof d=="string"&&(d={type:d,preventDefault:function(){this.defaultPrevented=!0}}),Ze(l,y||d.type,l,d),le(d)||d.codemirrorIgnore}function Zt(l){var d=l._handlers&&l._handlers.cursorActivity;if(!!d)for(var y=l.curOp.cursorActivityHandlers||(l.curOp.cursorActivityHandlers=[]),v=0;v<d.length;++v)_e(y,d[v])==-1&&y.push(d[v])}function jt(l,d){return er(l,d).length>0}function tr(l){l.prototype.on=function(d,y){mt(this,d,y)},l.prototype.off=function(d,y){Ie(this,d,y)}}function sr(l){l.preventDefault?l.preventDefault():l.returnValue=!1}function zn(l){l.stopPropagation?l.stopPropagation():l.cancelBubble=!0}function le(l){return l.defaultPrevented!=null?l.defaultPrevented:l.returnValue==!1}function de(l){sr(l),zn(l)}function Ae(l){return l.target||l.srcElement}function He(l){var d=l.which;return d==null&&(l.button&1?d=1:l.button&2?d=3:l.button&4&&(d=2)),A&&l.ctrlKey&&d==1&&(d=3),d}var lt=function(){if(a&&s<9)return!1;var l=S("div");return"draggable"in l||"dragDrop"in l}(),Qe;function Dt(l){if(Qe==null){var d=S("span","\u200B");V(l,S("span",[d,document.createTextNode("x")])),l.firstChild.offsetHeight!=0&&(Qe=d.offsetWidth<=1&&d.offsetHeight>2&&!(a&&s<8))}var y=Qe?S("span","\u200B"):S("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return y.setAttribute("cm-text",""),y}var _t;function Xt(l){if(_t!=null)return _t;var d=V(l,document.createTextNode("A\u062EA")),y=q(d,0,1).getBoundingClientRect(),v=q(d,1,2).getBoundingClientRect();return B(l),!y||y.left==y.right?!1:_t=v.right-y.right<3}var Yt=`
43
43
 
44
44
  b`.split(/\n/).length!=3?function(l){for(var d=0,y=[],v=l.length;d<=v;){var E=l.indexOf(`
45
45
  `,d);E==-1&&(E=l.length);var L=l.slice(d,l.charAt(E-1)=="\r"?E-1:E),j=L.indexOf("\r");j!=-1?(y.push(L.slice(0,j)),d+=j+1):(y.push(L),d=E+1)}return y}:function(l){return l.split(/\r\n?|\n/)},dr=window.getSelection?function(l){try{return l.selectionStart!=l.selectionEnd}catch{return!1}}:function(l){var d;try{d=l.ownerDocument.selection.createRange()}catch{}return!d||d.parentElement()!=l?!1:d.compareEndPoints("StartToEnd",d)!=0},sn=function(){var l=S("div");return"oncopy"in l?!0:(l.setAttribute("oncopy","return;"),typeof l.oncopy=="function")}(),zr=null;function go(l){if(zr!=null)return zr;var d=V(l,S("span","x")),y=d.getBoundingClientRect(),v=q(d,0,1).getBoundingClientRect();return zr=Math.abs(y.left-v.left)>1}var Hr={},Zn={};function Wi(l,d){arguments.length>2&&(d.dependencies=Array.prototype.slice.call(arguments,2)),Hr[l]=d}function ki(l,d){Zn[l]=d}function ln(l){if(typeof l=="string"&&Zn.hasOwnProperty(l))l=Zn[l];else if(l&&typeof l.name=="string"&&Zn.hasOwnProperty(l.name)){var d=Zn[l.name];typeof d=="string"&&(d={name:d}),l=re(d,l),l.name=d.name}else{if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(l))return ln("application/xml");if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(l))return ln("application/json")}return typeof l=="string"?{name:l}:l||{name:"null"}}function Po(l,d){d=ln(d);var y=Hr[d.name];if(!y)return Po(l,"text/plain");var v=y(l,d);if(Ei.hasOwnProperty(d.name)){var E=Ei[d.name];for(var L in E)!E.hasOwnProperty(L)||(v.hasOwnProperty(L)&&(v["_"+L]=v[L]),v[L]=E[L])}if(v.name=d.name,d.helperType&&(v.helperType=d.helperType),d.modeProps)for(var j in d.modeProps)v[j]=d.modeProps[j];return v}var Ei={};function Ws(l,d){var y=Ei.hasOwnProperty(l)?Ei[l]:Ei[l]={};K(d,y)}function mo(l,d){if(d===!0)return d;if(l.copyState)return l.copyState(d);var y={};for(var v in d){var E=d[v];E instanceof Array&&(E=E.concat([])),y[v]=E}return y}function Ro(l,d){for(var y;l.innerMode&&(y=l.innerMode(d),!(!y||y.mode==l));)d=y.state,l=y.mode;return y||{mode:l,state:d}}function Ar(l,d,y){return l.startState?l.startState(d,y):!0}var Xr=function(l,d,y){this.pos=this.start=0,this.string=l,this.tabSize=d||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=y};Xr.prototype.eol=function(){return this.pos>=this.string.length},Xr.prototype.sol=function(){return this.pos==this.lineStart},Xr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xr.prototype.eat=function(l){var d=this.string.charAt(this.pos),y;if(typeof l=="string"?y=d==l:y=d&&(l.test?l.test(d):l(d)),y)return++this.pos,d},Xr.prototype.eatWhile=function(l){for(var d=this.pos;this.eat(l););return this.pos>d},Xr.prototype.eatSpace=function(){for(var l=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>l},Xr.prototype.skipToEnd=function(){this.pos=this.string.length},Xr.prototype.skipTo=function(l){var d=this.string.indexOf(l,this.pos);if(d>-1)return this.pos=d,!0},Xr.prototype.backUp=function(l){this.pos-=l},Xr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},Xr.prototype.indentation=function(){return ve(this.string,null,this.tabSize)-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},Xr.prototype.match=function(l,d,y){if(typeof l=="string"){var v=function(j){return y?j.toLowerCase():j},E=this.string.substr(this.pos,l.length);if(v(E)==v(l))return d!==!1&&(this.pos+=l.length),!0}else{var L=this.string.slice(this.pos).match(l);return L&&L.index>0?null:(L&&d!==!1&&(this.pos+=L[0].length),L)}},Xr.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xr.prototype.hideFirstChars=function(l,d){this.lineStart+=l;try{return d()}finally{this.lineStart-=l}},Xr.prototype.lookAhead=function(l){var d=this.lineOracle;return d&&d.lookAhead(l)},Xr.prototype.baseToken=function(){var l=this.lineOracle;return l&&l.baseToken(this.pos)};function Ot(l,d){if(d-=l.first,d<0||d>=l.size)throw new Error("There is no line "+(d+l.first)+" in the document.");for(var y=l;!y.lines;)for(var v=0;;++v){var E=y.children[v],L=E.chunkSize();if(d<L){y=E;break}d-=L}return y.lines[d]}function to(l,d,y){var v=[],E=d.line;return l.iter(d.line,y.line+1,function(L){var j=L.text;E==y.line&&(j=j.slice(0,y.ch)),E==d.line&&(j=j.slice(d.ch)),v.push(j),++E}),v}function Us(l,d,y){var v=[];return l.iter(d,y,function(E){v.push(E.text)}),v}function ro(l,d){var y=d-l.height;if(y)for(var v=l;v;v=v.parent)v.height+=y}function wr(l){if(l.parent==null)return null;for(var d=l.parent,y=_e(d.lines,l),v=d.parent;v;d=v,v=v.parent)for(var E=0;v.children[E]!=d;++E)y+=v.children[E].chunkSize();return y+d.first}function vo(l,d){var y=l.first;e:do{for(var v=0;v<l.children.length;++v){var E=l.children[v],L=E.height;if(d<L){l=E;continue e}d-=L,y+=E.chunkSize()}return y}while(!l.lines);for(var j=0;j<l.lines.length;++j){var Y=l.lines[j],Q=Y.height;if(d<Q)break;d-=Q}return y+j}function ne(l,d){return d>=l.first&&d<l.first+l.size}function me(l,d){return String(l.lineNumberFormatter(d+l.firstLineNumber))}function be(l,d,y){if(y===void 0&&(y=null),!(this instanceof be))return new be(l,d,y);this.line=l,this.ch=d,this.sticky=y}function $(l,d){return l.line-d.line||l.ch-d.ch}function H(l,d){return l.sticky==d.sticky&&$(l,d)==0}function ae(l){return be(l.line,l.ch)}function ge(l,d){return $(l,d)<0?d:l}function Re(l,d){return $(l,d)<0?l:d}function Ue(l,d){return Math.max(l.first,Math.min(d,l.first+l.size-1))}function Xe(l,d){if(d.line<l.first)return be(l.first,0);var y=l.first+l.size-1;return d.line>y?be(y,Ot(l,y).text.length):zt(d,Ot(l,d.line).text.length)}function zt(l,d){var y=l.ch;return y==null||y>d?be(l.line,d):y<0?be(l.line,0):l}function Ht(l,d){for(var y=[],v=0;v<d.length;v++)y[v]=Xe(l,d[v]);return y}var Wt=function(l,d){this.state=l,this.lookAhead=d},$t=function(l,d,y,v){this.state=d,this.doc=l,this.line=y,this.maxLookAhead=v||0,this.baseTokens=null,this.baseTokenPos=1};$t.prototype.lookAhead=function(l){var d=this.doc.getLine(this.line+l);return d!=null&&l>this.maxLookAhead&&(this.maxLookAhead=l),d},$t.prototype.baseToken=function(l){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=l;)this.baseTokenPos+=2;var d=this.baseTokens[this.baseTokenPos+1];return{type:d&&d.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-l}},$t.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$t.fromSaved=function(l,d,y){return d instanceof Wt?new $t(l,mo(l.mode,d.state),y,d.lookAhead):new $t(l,mo(l.mode,d),y)},$t.prototype.save=function(l){var d=l!==!1?mo(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wt(d,this.maxLookAhead):d};function gn(l,d,y,v){var E=[l.state.modeGen],L={};ci(l,d.text,l.doc.mode,y,function(ee,ce){return E.push(ee,ce)},L,v);for(var j=y.state,Y=function(ee){y.baseTokens=E;var ce=l.state.overlays[ee],pe=1,Te=0;y.state=!0,ci(l,d.text,ce.mode,y,function(Ce,je){for(var Ke=pe;Te<Ce;){var ot=E[pe];ot>Ce&&E.splice(pe,1,Ce,E[pe+1],ot),pe+=2,Te=Math.min(Ce,ot)}if(!!je)if(ce.opaque)E.splice(Ke,pe-Ke,Ce,"overlay "+je),pe=Ke+2;else for(;Ke<pe;Ke+=2){var ct=E[Ke+1];E[Ke+1]=(ct?ct+" ":"")+"overlay "+je}},L),y.state=j,y.baseTokens=null,y.baseTokenPos=1},Q=0;Q<l.state.overlays.length;++Q)Y(Q);return{styles:E,classes:L.bgClass||L.textClass?L:null}}function Ut(l,d,y){if(!d.styles||d.styles[0]!=l.state.modeGen){var v=nr(l,wr(d)),E=d.text.length>l.options.maxHighlightLength&&mo(l.doc.mode,v.state),L=gn(l,d,v);E&&(v.state=E),d.stateAfter=v.save(!E),d.styles=L.styles,L.classes?d.styleClasses=L.classes:d.styleClasses&&(d.styleClasses=null),y===l.doc.highlightFrontier&&(l.doc.modeFrontier=Math.max(l.doc.modeFrontier,++l.doc.highlightFrontier))}return d.styles}function nr(l,d,y){var v=l.doc,E=l.display;if(!v.mode.startState)return new $t(v,!0,d);var L=Zl(l,d,y),j=L>v.first&&Ot(v,L-1).stateAfter,Y=j?$t.fromSaved(v,j,L):new $t(v,Ar(v.mode),L);return v.iter(L,d,function(Q){Ci(l,Q.text,Y);var ee=Y.line;Q.stateAfter=ee==d-1||ee%5==0||ee>=E.viewFrom&&ee<E.viewTo?Y.save():null,Y.nextLine()}),y&&(v.modeFrontier=Y.line),Y}function Ci(l,d,y,v){var E=l.doc.mode,L=new Xr(d,l.options.tabSize,y);for(L.start=L.pos=v||0,d==""&&oc(E,y.state);!L.eol();)Vs(E,L,y.state),L.start=L.pos}function oc(l,d){if(l.blankLine)return l.blankLine(d);if(!!l.innerMode){var y=Ro(l,d);if(y.mode.blankLine)return y.mode.blankLine(y.state)}}function Vs(l,d,y,v){for(var E=0;E<10;E++){v&&(v[0]=Ro(l,y).mode);var L=l.token(d,y);if(d.pos>d.start)return L}throw new Error("Mode "+l.name+" failed to advance stream.")}var os=function(l,d,y){this.start=l.start,this.end=l.pos,this.string=l.current(),this.type=d||null,this.state=y};function un(l,d,y,v){var E=l.doc,L=E.mode,j;d=Xe(E,d);var Y=Ot(E,d.line),Q=nr(l,d.line,y),ee=new Xr(Y.text,l.options.tabSize,Q),ce;for(v&&(ce=[]);(v||ee.pos<d.ch)&&!ee.eol();)ee.start=ee.pos,j=Vs(L,ee,Q.state),v&&ce.push(new os(ee,j,mo(E.mode,Q.state)));return v?ce:new os(ee,j,Q.state)}function Cn(l,d){if(l)for(;;){var y=l.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!y)break;l=l.slice(0,y.index)+l.slice(y.index+y[0].length);var v=y[1]?"bgClass":"textClass";d[v]==null?d[v]=y[2]:new RegExp("(?:^|\\s)"+y[2]+"(?:$|\\s)").test(d[v])||(d[v]+=" "+y[2])}return l}function ci(l,d,y,v,E,L,j){var Y=y.flattenSpans;Y==null&&(Y=l.options.flattenSpans);var Q=0,ee=null,ce=new Xr(d,l.options.tabSize,v),pe,Te=l.options.addModeClass&&[null];for(d==""&&Cn(oc(y,v.state),L);!ce.eol();){if(ce.pos>l.options.maxHighlightLength?(Y=!1,j&&Ci(l,d,v,ce.pos),ce.pos=d.length,pe=null):pe=Cn(Vs(y,ce,v.state,Te),L),Te){var Ce=Te[0].name;Ce&&(pe="m-"+(pe?Ce+" "+pe:Ce))}if(!Y||ee!=pe){for(;Q<ce.start;)Q=Math.min(ce.start,Q+5e3),E(Q,ee);ee=pe}ce.start=ce.pos}for(;Q<ce.pos;){var je=Math.min(ce.pos,Q+5e3);E(je,ee),Q=je}}function Zl(l,d,y){for(var v,E,L=l.doc,j=y?-1:d-(l.doc.mode.innerMode?1e3:100),Y=d;Y>j;--Y){if(Y<=L.first)return L.first;var Q=Ot(L,Y-1),ee=Q.stateAfter;if(ee&&(!y||Y+(ee instanceof Wt?ee.lookAhead:0)<=L.modeFrontier))return Y;var ce=ve(Q.text,null,l.options.tabSize);(E==null||v>ce)&&(E=Y-1,v=ce)}return E}function $s(l,d){if(l.modeFrontier=Math.min(l.modeFrontier,d),!(l.highlightFrontier<d-10)){for(var y=l.first,v=d-1;v>y;v--){var E=Ot(l,v).stateAfter;if(E&&(!(E instanceof Wt)||v+E.lookAhead<d)){y=v+1;break}}l.highlightFrontier=Math.min(l.highlightFrontier,y)}}var as=!1,Ui=!1;function Ys(){as=!0}function yo(){Ui=!0}function ss(l,d,y){this.marker=l,this.from=d,this.to=y}function ls(l,d){if(l)for(var y=0;y<l.length;++y){var v=l[y];if(v.marker==d)return v}}function Jl(l,d){for(var y,v=0;v<l.length;++v)l[v]!=d&&(y||(y=[])).push(l[v]);return y}function qf(l,d){l.markedSpans=l.markedSpans?l.markedSpans.concat([d]):[d],d.marker.attachLine(l)}function Ks(l,d,y){var v;if(l)for(var E=0;E<l.length;++E){var L=l[E],j=L.marker,Y=L.from==null||(j.inclusiveLeft?L.from<=d:L.from<d);if(Y||L.from==d&&j.type=="bookmark"&&(!y||!L.marker.insertLeft)){var Q=L.to==null||(j.inclusiveRight?L.to>=d:L.to>d);(v||(v=[])).push(new ss(j,L.from,Q?null:L.to))}}return v}function Ff(l,d,y){var v;if(l)for(var E=0;E<l.length;++E){var L=l[E],j=L.marker,Y=L.to==null||(j.inclusiveRight?L.to>=d:L.to>d);if(Y||L.from==d&&j.type=="bookmark"&&(!y||L.marker.insertLeft)){var Q=L.from==null||(j.inclusiveLeft?L.from<=d:L.from<d);(v||(v=[])).push(new ss(j,Q?null:L.from-d,L.to==null?null:L.to-d))}}return v}function qo(l,d){if(d.full)return null;var y=ne(l,d.from.line)&&Ot(l,d.from.line).markedSpans,v=ne(l,d.to.line)&&Ot(l,d.to.line).markedSpans;if(!y&&!v)return null;var E=d.from.ch,L=d.to.ch,j=$(d.from,d.to)==0,Y=Ks(y,E,j),Q=Ff(v,L,j),ee=d.text.length==1,ce=Oe(d.text).length+(ee?E:0);if(Y)for(var pe=0;pe<Y.length;++pe){var Te=Y[pe];if(Te.to==null){var Ce=ls(Q,Te.marker);Ce?ee&&(Te.to=Ce.to==null?null:Ce.to+ce):Te.to=E}}if(Q)for(var je=0;je<Q.length;++je){var Ke=Q[je];if(Ke.to!=null&&(Ke.to+=ce),Ke.from==null){var ot=ls(Y,Ke.marker);ot||(Ke.from=ce,ee&&(Y||(Y=[])).push(Ke))}else Ke.from+=ce,ee&&(Y||(Y=[])).push(Ke)}Y&&(Y=us(Y)),Q&&Q!=Y&&(Q=us(Q));var ct=[Y];if(!ee){var bt=d.text.length-2,ft;if(bt>0&&Y)for(var St=0;St<Y.length;++St)Y[St].to==null&&(ft||(ft=[])).push(new ss(Y[St].marker,null,null));for(var Pt=0;Pt<bt;++Pt)ct.push(ft);ct.push(Q)}return ct}function us(l){for(var d=0;d<l.length;++d){var y=l[d];y.from!=null&&y.from==y.to&&y.marker.clearWhenEmpty!==!1&&l.splice(d--,1)}return l.length?l:null}function Gs(l,d,y){var v=null;if(l.iter(d.line,y.line+1,function(Ce){if(Ce.markedSpans)for(var je=0;je<Ce.markedSpans.length;++je){var Ke=Ce.markedSpans[je].marker;Ke.readOnly&&(!v||_e(v,Ke)==-1)&&(v||(v=[])).push(Ke)}}),!v)return null;for(var E=[{from:d,to:y}],L=0;L<v.length;++L)for(var j=v[L],Y=j.find(0),Q=0;Q<E.length;++Q){var ee=E[Q];if(!($(ee.to,Y.from)<0||$(ee.from,Y.to)>0)){var ce=[Q,1],pe=$(ee.from,Y.from),Te=$(ee.to,Y.to);(pe<0||!j.inclusiveLeft&&!pe)&&ce.push({from:ee.from,to:Y.from}),(Te>0||!j.inclusiveRight&&!Te)&&ce.push({from:Y.to,to:ee.to}),E.splice.apply(E,ce),Q+=ce.length-3}}return E}function An(l){var d=l.markedSpans;if(!!d){for(var y=0;y<d.length;++y)d[y].marker.detachLine(l);l.markedSpans=null}}function Nf(l,d){if(!!d){for(var y=0;y<d.length;++y)d[y].marker.attachLine(l);l.markedSpans=d}}function ac(l){return l.inclusiveLeft?-1:0}function sc(l){return l.inclusiveRight?1:0}function Fo(l,d){var y=l.lines.length-d.lines.length;if(y!=0)return y;var v=l.find(),E=d.find(),L=$(v.from,E.from)||ac(l)-ac(d);if(L)return-L;var j=$(v.to,E.to)||sc(l)-sc(d);return j||d.id-l.id}function yr(l,d){var y=Ui&&l.markedSpans,v;if(y)for(var E=void 0,L=0;L<y.length;++L)E=y[L],E.marker.collapsed&&(d?E.from:E.to)==null&&(!v||Fo(v,E.marker)<0)&&(v=E.marker);return v}function Mr(l){return yr(l,!0)}function Xs(l){return yr(l,!1)}function lc(l,d){var y=Ui&&l.markedSpans,v;if(y)for(var E=0;E<y.length;++E){var L=y[E];L.marker.collapsed&&(L.from==null||L.from<d)&&(L.to==null||L.to>d)&&(!v||Fo(v,L.marker)<0)&&(v=L.marker)}return v}function cs(l,d,y,v,E){var L=Ot(l,d),j=Ui&&L.markedSpans;if(j)for(var Y=0;Y<j.length;++Y){var Q=j[Y];if(!!Q.marker.collapsed){var ee=Q.marker.find(0),ce=$(ee.from,y)||ac(Q.marker)-ac(E),pe=$(ee.to,v)||sc(Q.marker)-sc(E);if(!(ce>=0&&pe<=0||ce<=0&&pe>=0)&&(ce<=0&&(Q.marker.inclusiveRight&&E.inclusiveLeft?$(ee.to,y)>=0:$(ee.to,y)>0)||ce>=0&&(Q.marker.inclusiveRight&&E.inclusiveLeft?$(ee.from,v)<=0:$(ee.from,v)<0)))return!0}}}function Hn(l){for(var d;d=Mr(l);)l=d.find(-1,!0).line;return l}function Ah(l){for(var d;d=Xs(l);)l=d.find(1,!0).line;return l}function Bf(l){for(var d,y;d=Xs(l);)l=d.find(1,!0).line,(y||(y=[])).push(l);return y}function uc(l,d){var y=Ot(l,d),v=Hn(y);return y==v?d:wr(v)}function z0(l,d){if(d>l.lastLine())return d;var y=Ot(l,d),v;if(!cn(l,y))return d;for(;v=Xs(y);)y=v.find(1,!0).line;return wr(y)+1}function cn(l,d){var y=Ui&&d.markedSpans;if(y){for(var v=void 0,E=0;E<y.length;++E)if(v=y[E],!!v.marker.collapsed){if(v.from==null)return!0;if(!v.marker.widgetNode&&v.from==0&&v.marker.inclusiveLeft&&jf(l,d,v))return!0}}}function jf(l,d,y){if(y.to==null){var v=y.marker.find(1,!0);return jf(l,v.line,ls(v.line.markedSpans,y.marker))}if(y.marker.inclusiveRight&&y.to==d.text.length)return!0;for(var E=void 0,L=0;L<d.markedSpans.length;++L)if(E=d.markedSpans[L],E.marker.collapsed&&!E.marker.widgetNode&&E.from==y.to&&(E.to==null||E.to!=y.from)&&(E.marker.inclusiveLeft||y.marker.inclusiveRight)&&jf(l,d,E))return!0}function Vi(l){l=Hn(l);for(var d=0,y=l.parent,v=0;v<y.lines.length;++v){var E=y.lines[v];if(E==l)break;d+=E.height}for(var L=y.parent;L;y=L,L=y.parent)for(var j=0;j<L.children.length;++j){var Y=L.children[j];if(Y==y)break;d+=Y.height}return d}function zf(l){if(l.height==0)return 0;for(var d=l.text.length,y,v=l;y=Mr(v);){var E=y.find(0,!0);v=E.from.line,d+=E.from.ch-E.to.ch}for(v=l;y=Xs(v);){var L=y.find(0,!0);d-=v.text.length-L.from.ch,v=L.to.line,d+=v.text.length-L.to.ch}return d}function Hf(l){var d=l.display,y=l.doc;d.maxLine=Ot(y,y.first),d.maxLineLength=zf(d.maxLine),d.maxLineChanged=!0,y.iter(function(v){var E=zf(v);E>d.maxLineLength&&(d.maxLineLength=E,d.maxLine=v)})}var fi=function(l,d,y){this.text=l,Nf(this,d),this.height=y?y(this):1};fi.prototype.lineNo=function(){return wr(this)},tr(fi);function H0(l,d,y,v){l.text=d,l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null),l.order!=null&&(l.order=null),An(l),Nf(l,y);var E=v?v(l):1;E!=l.height&&ro(l,E)}function W0(l){l.parent=null,An(l)}var U0={},V0={};function Am(l,d){if(!l||/^\s*$/.test(l))return null;var y=d.addModeClass?V0:U0;return y[l]||(y[l]=l.replace(/\S+/g,"cm-$&"))}function Tm(l,d){var y=R("span",null,null,u?"padding-right: .1px":null),v={pre:R("pre",[y],"CodeMirror-line"),content:y,col:0,pos:0,cm:l,trailingSpace:!1,splitSpaces:l.getOption("lineWrapping")};d.measure={};for(var E=0;E<=(d.rest?d.rest.length:0);E++){var L=E?d.rest[E-1]:d.line,j=void 0;v.pos=0,v.addToken=EC,Xt(l.display.measure)&&(j=yt(L,l.doc.direction))&&(v.addToken=CC(v.addToken,j)),v.map=[];var Y=d!=l.display.externalMeasured&&wr(L);Qs(L,v,Ut(l,L,Y)),L.styleClasses&&(L.styleClasses.bgClass&&(v.bgClass=X(L.styleClasses.bgClass,v.bgClass||"")),L.styleClasses.textClass&&(v.textClass=X(L.styleClasses.textClass,v.textClass||""))),v.map.length==0&&v.map.push(0,0,v.content.appendChild(Dt(l.display.measure))),E==0?(d.measure.map=v.map,d.measure.cache={}):((d.measure.maps||(d.measure.maps=[])).push(v.map),(d.measure.caches||(d.measure.caches=[])).push({}))}if(u){var Q=v.content.lastChild;(/\bcm-tab\b/.test(Q.className)||Q.querySelector&&Q.querySelector(".cm-tab"))&&(v.content.className="cm-tab-wrap-hack")}return Ze(l,"renderLine",l,d.line,v.pre),v.pre.className&&(v.textClass=X(v.pre.className,v.textClass||"")),v}function bo(l){var d=S("span","\u2022","cm-invalidchar");return d.title="\\u"+l.charCodeAt(0).toString(16),d.setAttribute("aria-label",d.title),d}function EC(l,d,y,v,E,L,j){if(!!d){var Y=l.splitSpaces?No(d,l.trailingSpace):d,Q=l.cm.state.specialChars,ee=!1,ce;if(!Q.test(d))l.col+=d.length,ce=document.createTextNode(Y),l.map.push(l.pos,l.pos+d.length,ce),a&&s<9&&(ee=!0),l.pos+=d.length;else{ce=document.createDocumentFragment();for(var pe=0;;){Q.lastIndex=pe;var Te=Q.exec(d),Ce=Te?Te.index-pe:d.length-pe;if(Ce){var je=document.createTextNode(Y.slice(pe,pe+Ce));a&&s<9?ce.appendChild(S("span",[je])):ce.appendChild(je),l.map.push(l.pos,l.pos+Ce,je),l.col+=Ce,l.pos+=Ce}if(!Te)break;pe+=Ce+1;var Ke=void 0;if(Te[0]==" "){var ot=l.cm.options.tabSize,ct=ot-l.col%ot;Ke=ce.appendChild(S("span",Ve(ct),"cm-tab")),Ke.setAttribute("role","presentation"),Ke.setAttribute("cm-text"," "),l.col+=ct}else Te[0]=="\r"||Te[0]==`
@@ -62,9 +62,9 @@ b`.split(/\n/).length!=3?function(l){for(var d=0,y=[],v=l.length;d<=v;){var E=l.
62
62
  `)>-1?y.value=l.prevInput="":l.prevInput=E,l.composing&&(l.composing.range.clear(),l.composing.range=d.markText(l.composing.start,d.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},_n.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},_n.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},_n.prototype.onContextMenu=function(l){var d=this,y=d.cm,v=y.display,E=d.textarea;d.contextMenuPending&&d.contextMenuPending();var L=Ia(y,l),j=v.scroller.scrollTop;if(!L||p)return;var Y=y.options.resetSelectionOnContextMenu;Y&&y.doc.sel.contains(L)==-1&&vn(y,ei)(y.doc,cl(L),it);var Q=E.style.cssText,ee=d.wrapper.style.cssText,ce=d.wrapper.offsetParent.getBoundingClientRect();d.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
63
63
  top: `+(l.clientY-ce.top-5)+"px; left: "+(l.clientX-ce.left-5)+`px;
64
64
  z-index: 1000; background: `+(a?"rgba(255, 255, 255, .05)":"transparent")+`;
65
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var pe;u&&(pe=window.scrollY),v.input.focus(),u&&window.scrollTo(null,pe),v.input.reset(),y.somethingSelected()||(E.value=d.prevInput=" "),d.contextMenuPending=Ce,v.selForContextMenu=y.doc.sel,clearTimeout(v.detectingSelectAll);function Te(){if(E.selectionStart!=null){var Ke=y.somethingSelected(),ot="\u200B"+(Ke?E.value:"");E.value="\u21DA",E.value=ot,d.prevInput=Ke?"":"\u200B",E.selectionStart=1,E.selectionEnd=ot.length,v.selForContextMenu=y.doc.sel}}function Ce(){if(d.contextMenuPending==Ce&&(d.contextMenuPending=!1,d.wrapper.style.cssText=ee,E.style.cssText=Q,a&&s<9&&v.scrollbars.setScrollTop(v.scroller.scrollTop=j),E.selectionStart!=null)){(!a||a&&s<9)&&Te();var Ke=0,ot=function(){v.selForContextMenu==y.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&d.prevInput=="\u200B"?vn(y,mx)(y):Ke++<10?v.detectingSelectAll=setTimeout(ot,500):(v.selForContextMenu=null,v.input.reset())};v.detectingSelectAll=setTimeout(ot,200)}}if(a&&s>=9&&Te(),C){de(l);var je=function(){Ie(window,"mouseup",je),setTimeout(Ce,20)};mt(window,"mouseup",je)}else setTimeout(Ce,50)},_n.prototype.readOnlyChanged=function(l){l||this.reset(),this.textarea.disabled=l=="nocursor",this.textarea.readOnly=!!l},_n.prototype.setUneditable=function(){},_n.prototype.needsContentAttribute=!1;function hv(l,d){if(d=d?K(d):{},d.value=l.value,!d.tabindex&&l.tabIndex&&(d.tabindex=l.tabIndex),!d.placeholder&&l.placeholder&&(d.placeholder=l.placeholder),d.autofocus==null){var y=N();d.autofocus=y==l||l.getAttribute("autofocus")!=null&&y==document.body}function v(){l.value=Y.getValue()}var E;if(l.form&&(mt(l.form,"submit",v),!d.leaveSubmitMethodAlone)){var L=l.form;E=L.submit;try{var j=L.submit=function(){v(),L.submit=E,L.submit(),L.submit=j}}catch{}}d.finishInit=function(Q){Q.save=v,Q.getTextArea=function(){return l},Q.toTextArea=function(){Q.toTextArea=isNaN,v(),l.parentNode.removeChild(Q.getWrapperElement()),l.style.display="",l.form&&(Ie(l.form,"submit",v),!d.leaveSubmitMethodAlone&&typeof l.form.submit=="function"&&(l.form.submit=E))}},l.style.display="none";var Y=Qr(function(Q){return l.parentNode.insertBefore(Q,l.nextSibling)},d);return Y}function Wx(l){l.off=Ie,l.on=mt,l.wheelEventPixels=VC,l.Doc=Ai,l.splitLines=Yt,l.countColumn=ve,l.findColumn=wt,l.isWordChar=ht,l.Pass=Le,l.signal=Ze,l.Line=fi,l.changeEnd=fl,l.scrollbarModel=Nh,l.Pos=be,l.cmpPos=$,l.modes=Hr,l.mimeModes=Zn,l.resolveMode=ln,l.getMode=Po,l.modeExtensions=Ei,l.extendMode=Ws,l.copyState=mo,l.startState=Ar,l.innerMode=Ro,l.commands=pu,l.keyMap=gs,l.keyName=nv,l.isModifierKey=Jh,l.lookupKey=ms,l.normalizeKeyMap=ZC,l.StringStream=Xr,l.SharedTextMarker=Ac,l.TextMarker=pl,l.LineWidget=id,l.e_preventDefault=sr,l.e_stopPropagation=zn,l.e_stop=de,l.addClass=z,l.contains=W,l.rmClass=F,l.keyNames=ml}op(Qr),vs(Qr);var Di="iter insert remove copy getEditor constructor".split(" ");for(var up in Ai.prototype)Ai.prototype.hasOwnProperty(up)&&_e(Di,up)<0&&(Qr.prototype[up]=function(l){return function(){return l.apply(this.doc,arguments)}}(Ai.prototype[up]));return tr(Ai),Qr.inputStyles={textarea:_n,contenteditable:Dr},Qr.defineMode=function(l){!Qr.defaults.mode&&l!="null"&&(Qr.defaults.mode=l),Wi.apply(this,arguments)},Qr.defineMIME=ki,Qr.defineMode("null",function(){return{token:function(l){return l.skipToEnd()}}}),Qr.defineMIME("text/plain","null"),Qr.defineExtension=function(l,d){Qr.prototype[l]=d},Qr.defineDocExtension=function(l,d){Ai.prototype[l]=d},Qr.fromTextArea=hv,Wx(Qr),Qr.version="5.59.1",Qr})});var rm=Z((Xre,Qre)=>{(function(t){typeof Xre=="object"&&typeof Qre=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("css",function(O,F){var B=F.inline;F.propertyKeywords||(F=t.resolveMode("text/css"));var V=O.indentUnit,S=F.tokenHooks,R=F.documentTypes||{},q=F.mediaTypes||{},W=F.mediaFeatures||{},N=F.mediaValueKeywords||{},z=F.propertyKeywords||{},X=F.nonStandardPropertyKeywords||{},oe=F.fontProperties||{},G=F.counterDescriptors||{},K=F.colorKeywords||{},ve=F.valueKeywords||{},Se=F.allowNested,_e=F.lineComment,Ne=F.supportsAtComponent===!0,Le=O.highlightNonStandardPropertyKeywords!==!1,it,ze;function tt(ke,$e){return it=$e,ke}function wt(ke,$e){var Fe=ke.next();if(S[Fe]){var It=S[Fe](ke,$e);if(It!==!1)return It}if(Fe=="@")return ke.eatWhile(/[\w\\\-]/),tt("def",ke.current());if(Fe=="="||(Fe=="~"||Fe=="|")&&ke.eat("="))return tt(null,"compare");if(Fe=='"'||Fe=="'")return $e.tokenize=At(Fe),$e.tokenize(ke,$e);if(Fe=="#")return ke.eatWhile(/[\w\\\-]/),tt("atom","hash");if(Fe=="!")return ke.match(/^\s*\w*/),tt("keyword","important");if(/\d/.test(Fe)||Fe=="."&&ke.eat(/\d/))return ke.eatWhile(/[\w.%]/),tt("number","unit");if(Fe==="-"){if(/[\d.]/.test(ke.peek()))return ke.eatWhile(/[\w.%]/),tt("number","unit");if(ke.match(/^-[\w\\\-]*/))return ke.eatWhile(/[\w\\\-]/),ke.match(/^\s*:/,!1)?tt("variable-2","variable-definition"):tt("variable-2","variable");if(ke.match(/^\w+-/))return tt("meta","meta")}else return/[,+>*\/]/.test(Fe)?tt(null,"select-op"):Fe=="."&&ke.match(/^-?[_a-z][_a-z0-9-]*/i)?tt("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Fe)?tt(null,Fe):ke.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(ke.current().toLowerCase())&&($e.tokenize=Ve),tt("variable callee","variable")):/[\w\\\-]/.test(Fe)?(ke.eatWhile(/[\w\\\-]/),tt("property","word")):tt(null,null)}function At(ke){return function($e,Fe){for(var It=!1,ut;(ut=$e.next())!=null;){if(ut==ke&&!It){ke==")"&&$e.backUp(1);break}It=!It&&ut=="\\"}return(ut==ke||!It&&ke!=")")&&(Fe.tokenize=null),tt("string","string")}}function Ve(ke,$e){return ke.next(),ke.match(/\s*[\"\')]/,!1)?$e.tokenize=null:$e.tokenize=At(")"),tt(null,"(")}function Oe(ke,$e,Fe){this.type=ke,this.indent=$e,this.prev=Fe}function Me(ke,$e,Fe,It){return ke.context=new Oe(Fe,$e.indentation()+(It===!1?0:V),ke.context),Fe}function he(ke){return ke.context.prev&&(ke.context=ke.context.prev),ke.context.type}function J(ke,$e,Fe){return ht[Fe.context.type](ke,$e,Fe)}function re(ke,$e,Fe,It){for(var ut=It||1;ut>0;ut--)Fe.context=Fe.context.prev;return J(ke,$e,Fe)}function fe(ke){var $e=ke.current().toLowerCase();ve.hasOwnProperty($e)?ze="atom":K.hasOwnProperty($e)?ze="keyword":ze="variable"}var ht={};return ht.top=function(ke,$e,Fe){if(ke=="{")return Me(Fe,$e,"block");if(ke=="}"&&Fe.context.prev)return he(Fe);if(Ne&&/@component/i.test(ke))return Me(Fe,$e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(ke))return Me(Fe,$e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(ke))return Me(Fe,$e,"atBlock");if(/^@(font-face|counter-style)/i.test(ke))return Fe.stateArg=ke,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(ke))return"keyframes";if(ke&&ke.charAt(0)=="@")return Me(Fe,$e,"at");if(ke=="hash")ze="builtin";else if(ke=="word")ze="tag";else{if(ke=="variable-definition")return"maybeprop";if(ke=="interpolation")return Me(Fe,$e,"interpolation");if(ke==":")return"pseudo";if(Se&&ke=="(")return Me(Fe,$e,"parens")}return Fe.context.type},ht.block=function(ke,$e,Fe){if(ke=="word"){var It=$e.current().toLowerCase();return z.hasOwnProperty(It)?(ze="property","maybeprop"):X.hasOwnProperty(It)?(ze=Le?"string-2":"property","maybeprop"):Se?(ze=$e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ze+=" error","maybeprop")}else return ke=="meta"?"block":!Se&&(ke=="hash"||ke=="qualifier")?(ze="error","block"):ht.top(ke,$e,Fe)},ht.maybeprop=function(ke,$e,Fe){return ke==":"?Me(Fe,$e,"prop"):J(ke,$e,Fe)},ht.prop=function(ke,$e,Fe){if(ke==";")return he(Fe);if(ke=="{"&&Se)return Me(Fe,$e,"propBlock");if(ke=="}"||ke=="{")return re(ke,$e,Fe);if(ke=="(")return Me(Fe,$e,"parens");if(ke=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test($e.current()))ze+=" error";else if(ke=="word")fe($e);else if(ke=="interpolation")return Me(Fe,$e,"interpolation");return"prop"},ht.propBlock=function(ke,$e,Fe){return ke=="}"?he(Fe):ke=="word"?(ze="property","maybeprop"):Fe.context.type},ht.parens=function(ke,$e,Fe){return ke=="{"||ke=="}"?re(ke,$e,Fe):ke==")"?he(Fe):ke=="("?Me(Fe,$e,"parens"):ke=="interpolation"?Me(Fe,$e,"interpolation"):(ke=="word"&&fe($e),"parens")},ht.pseudo=function(ke,$e,Fe){return ke=="meta"?"pseudo":ke=="word"?(ze="variable-3",Fe.context.type):J(ke,$e,Fe)},ht.documentTypes=function(ke,$e,Fe){return ke=="word"&&R.hasOwnProperty($e.current())?(ze="tag",Fe.context.type):ht.atBlock(ke,$e,Fe)},ht.atBlock=function(ke,$e,Fe){if(ke=="(")return Me(Fe,$e,"atBlock_parens");if(ke=="}"||ke==";")return re(ke,$e,Fe);if(ke=="{")return he(Fe)&&Me(Fe,$e,Se?"block":"top");if(ke=="interpolation")return Me(Fe,$e,"interpolation");if(ke=="word"){var It=$e.current().toLowerCase();It=="only"||It=="not"||It=="and"||It=="or"?ze="keyword":q.hasOwnProperty(It)?ze="attribute":W.hasOwnProperty(It)?ze="property":N.hasOwnProperty(It)?ze="keyword":z.hasOwnProperty(It)?ze="property":X.hasOwnProperty(It)?ze=Le?"string-2":"property":ve.hasOwnProperty(It)?ze="atom":K.hasOwnProperty(It)?ze="keyword":ze="error"}return Fe.context.type},ht.atComponentBlock=function(ke,$e,Fe){return ke=="}"?re(ke,$e,Fe):ke=="{"?he(Fe)&&Me(Fe,$e,Se?"block":"top",!1):(ke=="word"&&(ze="error"),Fe.context.type)},ht.atBlock_parens=function(ke,$e,Fe){return ke==")"?he(Fe):ke=="{"||ke=="}"?re(ke,$e,Fe,2):ht.atBlock(ke,$e,Fe)},ht.restricted_atBlock_before=function(ke,$e,Fe){return ke=="{"?Me(Fe,$e,"restricted_atBlock"):ke=="word"&&Fe.stateArg=="@counter-style"?(ze="variable","restricted_atBlock_before"):J(ke,$e,Fe)},ht.restricted_atBlock=function(ke,$e,Fe){return ke=="}"?(Fe.stateArg=null,he(Fe)):ke=="word"?(Fe.stateArg=="@font-face"&&!oe.hasOwnProperty($e.current().toLowerCase())||Fe.stateArg=="@counter-style"&&!G.hasOwnProperty($e.current().toLowerCase())?ze="error":ze="property","maybeprop"):"restricted_atBlock"},ht.keyframes=function(ke,$e,Fe){return ke=="word"?(ze="variable","keyframes"):ke=="{"?Me(Fe,$e,"top"):J(ke,$e,Fe)},ht.at=function(ke,$e,Fe){return ke==";"?he(Fe):ke=="{"||ke=="}"?re(ke,$e,Fe):(ke=="word"?ze="tag":ke=="hash"&&(ze="builtin"),"at")},ht.interpolation=function(ke,$e,Fe){return ke=="}"?he(Fe):ke=="{"||ke==";"?re(ke,$e,Fe):(ke=="word"?ze="variable":ke!="variable"&&ke!="("&&ke!=")"&&(ze="error"),"interpolation")},{startState:function(ke){return{tokenize:null,state:B?"block":"top",stateArg:null,context:new Oe(B?"block":"top",ke||0,null)}},token:function(ke,$e){if(!$e.tokenize&&ke.eatSpace())return null;var Fe=($e.tokenize||wt)(ke,$e);return Fe&&typeof Fe=="object"&&(it=Fe[1],Fe=Fe[0]),ze=Fe,it!="comment"&&($e.state=ht[$e.state](it,ke,$e)),ze},indent:function(ke,$e){var Fe=ke.context,It=$e&&$e.charAt(0),ut=Fe.indent;return Fe.type=="prop"&&(It=="}"||It==")")&&(Fe=Fe.prev),Fe.prev&&(It=="}"&&(Fe.type=="block"||Fe.type=="top"||Fe.type=="interpolation"||Fe.type=="restricted_atBlock")?(Fe=Fe.prev,ut=Fe.indent):(It==")"&&(Fe.type=="parens"||Fe.type=="atBlock_parens")||It=="{"&&(Fe.type=="at"||Fe.type=="atBlock"))&&(ut=Math.max(0,Fe.indent-V))),ut},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function e(O){for(var F={},B=0;B<O.length;++B)F[O[B].toLowerCase()]=!0;return F}var r=["domain","regexp","url","url-prefix"],n=e(r),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=e(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],s=e(a),u=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],c=e(u),f=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=e(f),g=["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],m=e(g),x=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],w=e(x),T=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],k=e(T),A=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],D=e(A),M=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],P=e(M),_=r.concat(i).concat(a).concat(u).concat(f).concat(g).concat(A).concat(M);t.registerHelper("hintWords","css",_);function C(O,F){for(var B=!1,V;(V=O.next())!=null;){if(B&&V=="/"){F.tokenize=null;break}B=V=="*"}return["comment","comment"]}t.defineMIME("text/css",{documentTypes:n,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:m,fontProperties:w,counterDescriptors:k,colorKeywords:D,valueKeywords:P,tokenHooks:{"/":function(O,F){return O.eat("*")?(F.tokenize=C,C(O,F)):!1}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:m,colorKeywords:D,valueKeywords:P,fontProperties:w,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(O,F){return O.eat("/")?(O.skipToEnd(),["comment","comment"]):O.eat("*")?(F.tokenize=C,C(O,F)):["operator","operator"]},":":function(O){return O.match(/\s*\{/,!1)?[null,null]:!1},$:function(O){return O.match(/^[\w-]+/),O.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(O){return O.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:m,colorKeywords:D,valueKeywords:P,fontProperties:w,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(O,F){return O.eat("/")?(O.skipToEnd(),["comment","comment"]):O.eat("*")?(F.tokenize=C,C(O,F)):["operator","operator"]},"@":function(O){return O.eat("{")?[null,"interpolation"]:O.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(O.eatWhile(/[\w\\\-]/),O.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:n,mediaTypes:o,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:m,fontProperties:w,counterDescriptors:k,colorKeywords:D,valueKeywords:P,supportsAtComponent:!0,tokenHooks:{"/":function(O,F){return O.eat("*")?(F.tokenize=C,C(O,F)):!1}},name:"css",helperType:"gss"})})});var aq=Z((Zre,Jre)=>{(function(t){typeof Zre=="object"&&typeof Jre=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineSimpleMode=function(f,p){t.defineMode(f,function(g){return t.simpleMode(g,p)})},t.simpleMode=function(f,p){e(p,"start");var g={},m=p.meta||{},x=!1;for(var w in p)if(w!=m&&p.hasOwnProperty(w))for(var T=g[w]=[],k=p[w],A=0;A<k.length;A++){var D=k[A];T.push(new i(D,p)),(D.indent||D.dedent)&&(x=!0)}var M={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:x?[]:null}},copyState:function(_){var C={state:_.state,pending:_.pending,local:_.local,localState:null,indent:_.indent&&_.indent.slice(0)};_.localState&&(C.localState=t.copyState(_.local.mode,_.localState)),_.stack&&(C.stack=_.stack.slice(0));for(var O=_.persistentStates;O;O=O.next)C.persistentStates={mode:O.mode,spec:O.spec,state:O.state==_.localState?C.localState:t.copyState(O.mode,O.state),next:C.persistentStates};return C},token:o(g,f),innerMode:function(_){return _.local&&{mode:_.local.mode,state:_.localState}},indent:c(g,m)};if(m)for(var P in m)m.hasOwnProperty(P)&&(M[P]=m[P]);return M};function e(f,p){if(!f.hasOwnProperty(p))throw new Error("Undefined state "+p+" in simple mode")}function r(f,p){if(!f)return/(?:)/;var g="";return f instanceof RegExp?(f.ignoreCase&&(g="i"),f=f.source):f=String(f),new RegExp((p===!1?"":"^")+"(?:"+f+")",g)}function n(f){if(!f)return null;if(f.apply)return f;if(typeof f=="string")return f.replace(/\./g," ");for(var p=[],g=0;g<f.length;g++)p.push(f[g]&&f[g].replace(/\./g," "));return p}function i(f,p){(f.next||f.push)&&e(p,f.next||f.push),this.regex=r(f.regex),this.token=n(f.token),this.data=f}function o(f,p){return function(g,m){if(m.pending){var x=m.pending.shift();return m.pending.length==0&&(m.pending=null),g.pos+=x.text.length,x.token}if(m.local)if(m.local.end&&g.match(m.local.end)){var w=m.local.endToken||null;return m.local=m.localState=null,w}else{var w=m.local.mode.token(g,m.localState),T;return m.local.endScan&&(T=m.local.endScan.exec(g.current()))&&(g.pos=g.start+T.index),w}for(var k=f[m.state],A=0;A<k.length;A++){var D=k[A],M=(!D.data.sol||g.sol())&&g.match(D.regex);if(M){D.data.next?m.state=D.data.next:D.data.push?((m.stack||(m.stack=[])).push(m.state),m.state=D.data.push):D.data.pop&&m.stack&&m.stack.length&&(m.state=m.stack.pop()),D.data.mode&&s(p,m,D.data.mode,D.token),D.data.indent&&m.indent.push(g.indentation()+p.indentUnit),D.data.dedent&&m.indent.pop();var P=D.token;if(P&&P.apply&&(P=P(M)),M.length>2&&D.token&&typeof D.token!="string"){m.pending=[];for(var _=2;_<M.length;_++)M[_]&&m.pending.push({text:M[_],token:D.token[_-1]});return g.backUp(M[0].length-(M[1]?M[1].length:0)),P[0]}else return P&&P.join?P[0]:P}}return g.next(),null}}function a(f,p){if(f===p)return!0;if(!f||typeof f!="object"||!p||typeof p!="object")return!1;var g=0;for(var m in f)if(f.hasOwnProperty(m)){if(!p.hasOwnProperty(m)||!a(f[m],p[m]))return!1;g++}for(var m in p)p.hasOwnProperty(m)&&g--;return g==0}function s(f,p,g,m){var x;if(g.persistent)for(var w=p.persistentStates;w&&!x;w=w.next)(g.spec?a(g.spec,w.spec):g.mode==w.mode)&&(x=w);var T=x?x.mode:g.mode||t.getMode(f,g.spec),k=x?x.state:t.startState(T);g.persistent&&!x&&(p.persistentStates={mode:T,spec:g.spec,state:k,next:p.persistentStates}),p.localState=k,p.local={mode:T,end:g.end&&r(g.end),endScan:g.end&&g.forceEnd!==!1&&r(g.end,!1),endToken:m&&m.join?m[m.length-1]:m}}function u(f,p){for(var g=0;g<p.length;g++)if(p[g]===f)return!0}function c(f,p){return function(g,m,x){if(g.local&&g.local.mode.indent)return g.local.mode.indent(g.localState,m,x);if(g.indent==null||g.local||p.dontIndentStates&&u(g.state,p.dontIndentStates)>-1)return t.Pass;var w=g.indent.length-1,T=f[g.state];e:for(;;){for(var k=0;k<T.length;k++){var A=T[k];if(A.data.dedent&&A.data.dedentIfLineStart!==!1){var D=A.regex.exec(m);if(D&&D[0]){w--,(A.next||A.push)&&(T=f[A.next||A.push]),m=m.slice(D[0].length);continue e}}}break}return w<0?0:g.indent[w]}}})});var rne=Z((ene,tne)=>{(function(t){typeof ene=="object"&&typeof tne=="object"?t(Br(),aq()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],t):t(CodeMirror)})(function(t){"use strict";var e="from",r=new RegExp("^(\\s*)\\b("+e+")\\b","i"),n=["run","cmd","entrypoint","shell"],i=new RegExp("^(\\s*)("+n.join("|")+")(\\s+\\[)","i"),o="expose",a=new RegExp("^(\\s*)("+o+")(\\s+)","i"),s=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],u=[e,o].concat(n).concat(s),c="("+u.join("|")+")",f=new RegExp("^(\\s*)"+c+"(\\s*)(#.*)?$","i"),p=new RegExp("^(\\s*)"+c+"(\\s+)","i");t.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:r,token:[null,"keyword"],sol:!0,next:"from"},{regex:f,token:[null,"keyword",null,"error"],sol:!0},{regex:i,token:[null,"keyword",null],sol:!0,next:"array"},{regex:a,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:p,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),t.defineMIME("text/x-dockerfile","dockerfile")})});var nm=Z((nne,ine)=>{(function(t){typeof nne=="object"&&typeof ine=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(n,i){var o=n.indentUnit,a={},s=i.htmlMode?e:r;for(var u in s)a[u]=s[u];for(var u in i)a[u]=i[u];var c,f;function p(S,R){function q(z){return R.tokenize=z,z(S,R)}var W=S.next();if(W=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?q(x("atom","]]>")):null:S.match("--")?q(x("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),q(w(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=x("meta","?>"),"meta"):(c=S.eat("/")?"closeTag":"openTag",R.tokenize=g,"tag bracket");if(W=="&"){var N;return S.eat("#")?S.eat("x")?N=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):N=S.eatWhile(/[\d]/)&&S.eat(";"):N=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),N?"atom":"error"}else return S.eatWhile(/[^&<]/),null}p.isInText=!0;function g(S,R){var q=S.next();if(q==">"||q=="/"&&S.eat(">"))return R.tokenize=p,c=q==">"?"endTag":"selfcloseTag","tag bracket";if(q=="=")return c="equals",null;if(q=="<"){R.tokenize=p,R.state=D,R.tagName=R.tagStart=null;var W=R.tokenize(S,R);return W?W+" tag error":"tag error"}else return/[\'\"]/.test(q)?(R.tokenize=m(q),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function m(S){var R=function(q,W){for(;!q.eol();)if(q.next()==S){W.tokenize=g;break}return"string"};return R.isInAttribute=!0,R}function x(S,R){return function(q,W){for(;!q.eol();){if(q.match(R)){W.tokenize=p;break}q.next()}return S}}function w(S){return function(R,q){for(var W;(W=R.next())!=null;){if(W=="<")return q.tokenize=w(S+1),q.tokenize(R,q);if(W==">")if(S==1){q.tokenize=p;break}else return q.tokenize=w(S-1),q.tokenize(R,q)}return"meta"}}function T(S,R,q){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=q,(a.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function k(S){S.context&&(S.context=S.context.prev)}function A(S,R){for(var q;;){if(!S.context||(q=S.context.tagName,!a.contextGrabbers.hasOwnProperty(q)||!a.contextGrabbers[q].hasOwnProperty(R)))return;k(S)}}function D(S,R,q){return S=="openTag"?(q.tagStart=R.column(),M):S=="closeTag"?P:D}function M(S,R,q){return S=="word"?(q.tagName=R.current(),f="tag",O):a.allowMissingTagName&&S=="endTag"?(f="tag bracket",O(S,R,q)):(f="error",M)}function P(S,R,q){if(S=="word"){var W=R.current();return q.context&&q.context.tagName!=W&&a.implicitlyClosed.hasOwnProperty(q.context.tagName)&&k(q),q.context&&q.context.tagName==W||a.matchClosing===!1?(f="tag",_):(f="tag error",C)}else return a.allowMissingTagName&&S=="endTag"?(f="tag bracket",_(S,R,q)):(f="error",C)}function _(S,R,q){return S!="endTag"?(f="error",_):(k(q),D)}function C(S,R,q){return f="error",_(S,R,q)}function O(S,R,q){if(S=="word")return f="attribute",F;if(S=="endTag"||S=="selfcloseTag"){var W=q.tagName,N=q.tagStart;return q.tagName=q.tagStart=null,S=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(W)?A(q,W):(A(q,W),q.context=new T(q,W,N==q.indented)),D}return f="error",O}function F(S,R,q){return S=="equals"?B:(a.allowMissing||(f="error"),O(S,R,q))}function B(S,R,q){return S=="string"?V:S=="word"&&a.allowUnquoted?(f="string",O):(f="error",O(S,R,q))}function V(S,R,q){return S=="string"?V:O(S,R,q)}return{startState:function(S){var R={tokenize:p,state:D,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;c=null;var q=R.tokenize(S,R);return(q||c)&&q!="comment"&&(f=null,R.state=R.state(c||q,S,R),f&&(q=f=="error"?q+" error":f)),q},indent:function(S,R,q){var W=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+o;if(W&&W.noIndent)return t.Pass;if(S.tokenize!=g&&S.tokenize!=p)return q?q.match(/^(\s*)/)[0].length:0;if(S.tagName)return a.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+o*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var N=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(N&&N[1])for(;W;)if(W.tagName==N[2]){W=W.prev;break}else if(a.implicitlyClosed.hasOwnProperty(W.tagName))W=W.prev;else break;else if(N)for(;W;){var z=a.contextGrabbers[W.tagName];if(z&&z.hasOwnProperty(N[2]))W=W.prev;else break}for(;W&&W.prev&&!W.startOfLine;)W=W.prev;return W?W.indent+o:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(S){S.state==B&&(S.state=O)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],q=S.context;q;q=q.prev)R.push(q.tagName);return R.reverse()}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var o0=Z((one,ane)=>{(function(t){typeof one=="object"&&typeof ane=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("javascript",function(e,r){var n=e.indentUnit,i=r.statementIndent,o=r.jsonld,a=r.json||o,s=r.typescript,u=r.wordCharacters||/[\w$\xa1-\uffff]/,c=function(){function ne(Re){return{type:Re,style:"keyword"}}var me=ne("keyword a"),be=ne("keyword b"),$=ne("keyword c"),H=ne("keyword d"),ae=ne("operator"),ge={type:"atom",style:"atom"};return{if:ne("if"),while:me,with:me,else:be,do:be,try:be,finally:be,return:H,break:H,continue:H,new:ne("new"),delete:$,void:$,throw:$,debugger:ne("debugger"),var:ne("var"),const:ne("var"),let:ne("var"),function:ne("function"),catch:ne("catch"),for:ne("for"),switch:ne("switch"),case:ne("case"),default:ne("default"),in:ae,typeof:ae,instanceof:ae,true:ge,false:ge,null:ge,undefined:ge,NaN:ge,Infinity:ge,this:ne("this"),class:ne("class"),super:ne("atom"),yield:$,export:ne("export"),import:ne("import"),extends:$,await:$}}(),f=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(ne){for(var me=!1,be,$=!1;(be=ne.next())!=null;){if(!me){if(be=="/"&&!$)return;be=="["?$=!0:$&&be=="]"&&($=!1)}me=!me&&be=="\\"}}var m,x;function w(ne,me,be){return m=ne,x=be,me}function T(ne,me){var be=ne.next();if(be=='"'||be=="'")return me.tokenize=k(be),me.tokenize(ne,me);if(be=="."&&ne.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(be=="."&&ne.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(be))return w(be);if(be=="="&&ne.eat(">"))return w("=>","operator");if(be=="0"&&ne.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(be))return ne.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(be=="/")return ne.eat("*")?(me.tokenize=A,A(ne,me)):ne.eat("/")?(ne.skipToEnd(),w("comment","comment")):vo(ne,me,1)?(g(ne),ne.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(ne.eat("="),w("operator","operator",ne.current()));if(be=="`")return me.tokenize=D,D(ne,me);if(be=="#"&&ne.peek()=="!")return ne.skipToEnd(),w("meta","meta");if(be=="#"&&ne.eatWhile(u))return w("variable","property");if(be=="<"&&ne.match("!--")||be=="-"&&ne.match("->")&&!/\S/.test(ne.string.slice(0,ne.start)))return ne.skipToEnd(),w("comment","comment");if(f.test(be))return(be!=">"||!me.lexical||me.lexical.type!=">")&&(ne.eat("=")?(be=="!"||be=="=")&&ne.eat("="):/[<>*+\-|&?]/.test(be)&&(ne.eat(be),be==">"&&ne.eat(be))),be=="?"&&ne.eat(".")?w("."):w("operator","operator",ne.current());if(u.test(be)){ne.eatWhile(u);var $=ne.current();if(me.lastType!="."){if(c.propertyIsEnumerable($)){var H=c[$];return w(H.type,H.style,$)}if($=="async"&&ne.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",$)}return w("variable","variable",$)}}function k(ne){return function(me,be){var $=!1,H;if(o&&me.peek()=="@"&&me.match(p))return be.tokenize=T,w("jsonld-keyword","meta");for(;(H=me.next())!=null&&!(H==ne&&!$);)$=!$&&H=="\\";return $||(be.tokenize=T),w("string","string")}}function A(ne,me){for(var be=!1,$;$=ne.next();){if($=="/"&&be){me.tokenize=T;break}be=$=="*"}return w("comment","comment")}function D(ne,me){for(var be=!1,$;($=ne.next())!=null;){if(!be&&($=="`"||$=="$"&&ne.eat("{"))){me.tokenize=T;break}be=!be&&$=="\\"}return w("quasi","string-2",ne.current())}var M="([{}])";function P(ne,me){me.fatArrowAt&&(me.fatArrowAt=null);var be=ne.string.indexOf("=>",ne.start);if(!(be<0)){if(s){var $=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ne.string.slice(ne.start,be));$&&(be=$.index)}for(var H=0,ae=!1,ge=be-1;ge>=0;--ge){var Re=ne.string.charAt(ge),Ue=M.indexOf(Re);if(Ue>=0&&Ue<3){if(!H){++ge;break}if(--H==0){Re=="("&&(ae=!0);break}}else if(Ue>=3&&Ue<6)++H;else if(u.test(Re))ae=!0;else if(/["'\/`]/.test(Re))for(;;--ge){if(ge==0)return;var Xe=ne.string.charAt(ge-1);if(Xe==Re&&ne.string.charAt(ge-2)!="\\"){ge--;break}}else if(ae&&!H){++ge;break}}ae&&!H&&(me.fatArrowAt=ge)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function C(ne,me,be,$,H,ae){this.indented=ne,this.column=me,this.type=be,this.prev=H,this.info=ae,$!=null&&(this.align=$)}function O(ne,me){for(var be=ne.localVars;be;be=be.next)if(be.name==me)return!0;for(var $=ne.context;$;$=$.prev)for(var be=$.vars;be;be=be.next)if(be.name==me)return!0}function F(ne,me,be,$,H){var ae=ne.cc;for(B.state=ne,B.stream=H,B.marked=null,B.cc=ae,B.style=me,ne.lexical.hasOwnProperty("align")||(ne.lexical.align=!0);;){var ge=ae.length?ae.pop():a?ze:Le;if(ge(be,$)){for(;ae.length&&ae[ae.length-1].lex;)ae.pop()();return B.marked?B.marked:be=="variable"&&O(ne,$)?"variable-2":me}}}var B={state:null,column:null,marked:null,cc:null};function V(){for(var ne=arguments.length-1;ne>=0;ne--)B.cc.push(arguments[ne])}function S(){return V.apply(null,arguments),!0}function R(ne,me){for(var be=me;be;be=be.next)if(be.name==ne)return!0;return!1}function q(ne){var me=B.state;if(B.marked="def",me.context){if(me.lexical.info=="var"&&me.context&&me.context.block){var be=W(ne,me.context);if(be!=null){me.context=be;return}}else if(!R(ne,me.localVars)){me.localVars=new X(ne,me.localVars);return}}r.globalVars&&!R(ne,me.globalVars)&&(me.globalVars=new X(ne,me.globalVars))}function W(ne,me){if(me)if(me.block){var be=W(ne,me.prev);return be?be==me.prev?me:new z(be,me.vars,!0):null}else return R(ne,me.vars)?me:new z(me.prev,new X(ne,me.vars),!1);else return null}function N(ne){return ne=="public"||ne=="private"||ne=="protected"||ne=="abstract"||ne=="readonly"}function z(ne,me,be){this.prev=ne,this.vars=me,this.block=be}function X(ne,me){this.name=ne,this.next=me}var oe=new X("this",new X("arguments",null));function G(){B.state.context=new z(B.state.context,B.state.localVars,!1),B.state.localVars=oe}function K(){B.state.context=new z(B.state.context,B.state.localVars,!0),B.state.localVars=null}function ve(){B.state.localVars=B.state.context.vars,B.state.context=B.state.context.prev}ve.lex=!0;function Se(ne,me){var be=function(){var $=B.state,H=$.indented;if($.lexical.type=="stat")H=$.lexical.indented;else for(var ae=$.lexical;ae&&ae.type==")"&&ae.align;ae=ae.prev)H=ae.indented;$.lexical=new C(H,B.stream.column(),ne,null,$.lexical,me)};return be.lex=!0,be}function _e(){var ne=B.state;ne.lexical.prev&&(ne.lexical.type==")"&&(ne.indented=ne.lexical.indented),ne.lexical=ne.lexical.prev)}_e.lex=!0;function Ne(ne){function me(be){return be==ne?S():ne==";"||be=="}"||be==")"||be=="]"?V():S(me)}return me}function Le(ne,me){return ne=="var"?S(Se("vardef",me),de,Ne(";"),_e):ne=="keyword a"?S(Se("form"),wt,Le,_e):ne=="keyword b"?S(Se("form"),Le,_e):ne=="keyword d"?B.stream.match(/^\s*$/,!1)?S():S(Se("stat"),Ve,Ne(";"),_e):ne=="debugger"?S(Ne(";")):ne=="{"?S(Se("}"),K,We,_e,ve):ne==";"?S():ne=="if"?(B.state.lexical.info=="else"&&B.state.cc[B.state.cc.length-1]==_e&&B.state.cc.pop()(),S(Se("form"),wt,Le,_e,_t)):ne=="function"?S(sn):ne=="for"?S(Se("form"),Xt,Le,_e):ne=="class"||s&&me=="interface"?(B.marked="keyword",S(Se("form",ne=="class"?ne:me),Wi,_e)):ne=="variable"?s&&me=="declare"?(B.marked="keyword",S(Le)):s&&(me=="module"||me=="enum"||me=="type")&&B.stream.match(/^\s*\w/,!1)?(B.marked="keyword",me=="enum"?S(Us):me=="type"?S(go,Ne("operator"),Ie,Ne(";")):S(Se("form"),Ae,Ne("{"),Se("}"),We,_e,_e)):s&&me=="namespace"?(B.marked="keyword",S(Se("form"),ze,Le,_e)):s&&me=="abstract"?(B.marked="keyword",S(Le)):S(Se("stat"),Fe):ne=="switch"?S(Se("form"),wt,Ne("{"),Se("}","switch"),K,We,_e,_e,ve):ne=="case"?S(ze,Ne(":")):ne=="default"?S(Ne(":")):ne=="catch"?S(Se("form"),G,it,Le,_e,ve):ne=="export"?S(Se("stat"),Ei,_e):ne=="import"?S(Se("stat"),mo,_e):ne=="async"?S(Le):me=="@"?S(ze,Le):V(Se("stat"),ze,Ne(";"),_e)}function it(ne){if(ne=="(")return S(Hr,Ne(")"))}function ze(ne,me){return At(ne,me,!1)}function tt(ne,me){return At(ne,me,!0)}function wt(ne){return ne!="("?V():S(Se(")"),Ve,Ne(")"),_e)}function At(ne,me,be){if(B.state.fatArrowAt==B.stream.start){var $=be?fe:re;if(ne=="(")return S(G,Se(")"),ye(Hr,")"),_e,Ne("=>"),$,ve);if(ne=="variable")return V(G,Ae,Ne("=>"),$,ve)}var H=be?Me:Oe;return _.hasOwnProperty(ne)?S(H):ne=="function"?S(sn,H):ne=="class"||s&&me=="interface"?(B.marked="keyword",S(Se("form"),Zn,_e)):ne=="keyword c"||ne=="async"?S(be?tt:ze):ne=="("?S(Se(")"),Ve,Ne(")"),_e,H):ne=="operator"||ne=="spread"?S(be?tt:ze):ne=="["?S(Se("]"),to,_e,H):ne=="{"?xe(ut,"}",null,H):ne=="quasi"?V(he,H):ne=="new"?S(ht(be)):ne=="import"?S(ze):S()}function Ve(ne){return ne.match(/[;\}\)\],]/)?V():V(ze)}function Oe(ne,me){return ne==","?S(Ve):Me(ne,me,!1)}function Me(ne,me,be){var $=be==!1?Oe:Me,H=be==!1?ze:tt;if(ne=="=>")return S(G,be?fe:re,ve);if(ne=="operator")return/\+\+|--/.test(me)||s&&me=="!"?S($):s&&me=="<"&&B.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Se(">"),ye(Ie,">"),_e,$):me=="?"?S(ze,Ne(":"),H):S(H);if(ne=="quasi")return V(he,$);if(ne!=";"){if(ne=="(")return xe(tt,")","call",$);if(ne==".")return S(It,$);if(ne=="[")return S(Se("]"),Ve,Ne("]"),_e,$);if(s&&me=="as")return B.marked="keyword",S(Ie,$);if(ne=="regexp")return B.state.lastType=B.marked="operator",B.stream.backUp(B.stream.pos-B.stream.start-1),S(H)}}function he(ne,me){return ne!="quasi"?V():me.slice(me.length-2)!="${"?S(he):S(ze,J)}function J(ne){if(ne=="}")return B.marked="string-2",B.state.tokenize=D,S(he)}function re(ne){return P(B.stream,B.state),V(ne=="{"?Le:ze)}function fe(ne){return P(B.stream,B.state),V(ne=="{"?Le:tt)}function ht(ne){return function(me){return me=="."?S(ne?$e:ke):me=="variable"&&s?S(sr,ne?Me:Oe):V(ne?tt:ze)}}function ke(ne,me){if(me=="target")return B.marked="keyword",S(Oe)}function $e(ne,me){if(me=="target")return B.marked="keyword",S(Me)}function Fe(ne){return ne==":"?S(_e,Le):V(Oe,Ne(";"),_e)}function It(ne){if(ne=="variable")return B.marked="property",S()}function ut(ne,me){if(ne=="async")return B.marked="property",S(ut);if(ne=="variable"||B.style=="keyword"){if(B.marked="property",me=="get"||me=="set")return S(pt);var be;return s&&B.state.fatArrowAt==B.stream.start&&(be=B.stream.match(/^\s*:\s*/,!1))&&(B.state.fatArrowAt=B.stream.pos+be[0].length),S(st)}else{if(ne=="number"||ne=="string")return B.marked=o?"property":B.style+" property",S(st);if(ne=="jsonld-keyword")return S(st);if(s&&N(me))return B.marked="keyword",S(ut);if(ne=="[")return S(ze,yt,Ne("]"),st);if(ne=="spread")return S(tt,st);if(me=="*")return B.marked="keyword",S(ut);if(ne==":")return V(st)}}function pt(ne){return ne!="variable"?V(st):(B.marked="property",S(sn))}function st(ne){if(ne==":")return S(tt);if(ne=="(")return V(sn)}function ye(ne,me,be){function $(H,ae){if(be?be.indexOf(H)>-1:H==","){var ge=B.state.lexical;return ge.info=="call"&&(ge.pos=(ge.pos||0)+1),S(function(Re,Ue){return Re==me||Ue==me?V():V(ne)},$)}return H==me||ae==me?S():be&&be.indexOf(";")>-1?V(ne):S(Ne(me))}return function(H,ae){return H==me||ae==me?S():V(ne,$)}}function xe(ne,me,be){for(var $=3;$<arguments.length;$++)B.cc.push(arguments[$]);return S(Se(me,be),ye(ne,me),_e)}function We(ne){return ne=="}"?S():V(Le,We)}function yt(ne,me){if(s){if(ne==":")return S(Ie);if(me=="?")return S(yt)}}function Gr(ne,me){if(s&&(ne==":"||me=="in"))return S(Ie)}function mt(ne){if(s&&ne==":")return B.stream.match(/^\s*\w+\s+is\b/,!1)?S(ze,er,Ie):S(Ie)}function er(ne,me){if(me=="is")return B.marked="keyword",S()}function Ie(ne,me){if(me=="keyof"||me=="typeof"||me=="infer")return B.marked="keyword",S(me=="typeof"?tt:Ie);if(ne=="variable"||me=="void")return B.marked="type",S(tr);if(me=="|"||me=="&")return S(Ie);if(ne=="string"||ne=="number"||ne=="atom")return S(tr);if(ne=="[")return S(Se("]"),ye(Ie,"]",","),_e,tr);if(ne=="{")return S(Se("}"),dt,_e,tr);if(ne=="(")return S(ye(jt,")"),Ze,tr);if(ne=="<")return S(ye(Ie,">"),Ie)}function Ze(ne){if(ne=="=>")return S(Ie)}function dt(ne){return ne=="}"?S():ne==","||ne==";"?S(dt):V(Zt,dt)}function Zt(ne,me){if(ne=="variable"||B.style=="keyword")return B.marked="property",S(Zt);if(me=="?"||ne=="number"||ne=="string")return S(Zt);if(ne==":")return S(Ie);if(ne=="[")return S(Ne("variable"),Gr,Ne("]"),Zt);if(ne=="(")return V(zr,Zt);if(!ne.match(/[;\}\)\],]/))return S()}function jt(ne,me){return ne=="variable"&&B.stream.match(/^\s*[?:]/,!1)||me=="?"?S(jt):ne==":"?S(Ie):ne=="spread"?S(jt):V(Ie)}function tr(ne,me){if(me=="<")return S(Se(">"),ye(Ie,">"),_e,tr);if(me=="|"||ne=="."||me=="&")return S(Ie);if(ne=="[")return S(Ie,Ne("]"),tr);if(me=="extends"||me=="implements")return B.marked="keyword",S(Ie);if(me=="?")return S(Ie,Ne(":"),Ie)}function sr(ne,me){if(me=="<")return S(Se(">"),ye(Ie,">"),_e,tr)}function zn(){return V(Ie,le)}function le(ne,me){if(me=="=")return S(Ie)}function de(ne,me){return me=="enum"?(B.marked="keyword",S(Us)):V(Ae,yt,Qe,Dt)}function Ae(ne,me){if(s&&N(me))return B.marked="keyword",S(Ae);if(ne=="variable")return q(me),S();if(ne=="spread")return S(Ae);if(ne=="[")return xe(lt,"]");if(ne=="{")return xe(He,"}")}function He(ne,me){return ne=="variable"&&!B.stream.match(/^\s*:/,!1)?(q(me),S(Qe)):(ne=="variable"&&(B.marked="property"),ne=="spread"?S(Ae):ne=="}"?V():ne=="["?S(ze,Ne("]"),Ne(":"),He):S(Ne(":"),Ae,Qe))}function lt(){return V(Ae,Qe)}function Qe(ne,me){if(me=="=")return S(tt)}function Dt(ne){if(ne==",")return S(de)}function _t(ne,me){if(ne=="keyword b"&&me=="else")return S(Se("form","else"),Le,_e)}function Xt(ne,me){if(me=="await")return S(Xt);if(ne=="(")return S(Se(")"),Yt,_e)}function Yt(ne){return ne=="var"?S(de,dr):ne=="variable"?S(dr):V(dr)}function dr(ne,me){return ne==")"?S():ne==";"?S(dr):me=="in"||me=="of"?(B.marked="keyword",S(ze,dr)):V(ze,dr)}function sn(ne,me){if(me=="*")return B.marked="keyword",S(sn);if(ne=="variable")return q(me),S(sn);if(ne=="(")return S(G,Se(")"),ye(Hr,")"),_e,mt,Le,ve);if(s&&me=="<")return S(Se(">"),ye(zn,">"),_e,sn)}function zr(ne,me){if(me=="*")return B.marked="keyword",S(zr);if(ne=="variable")return q(me),S(zr);if(ne=="(")return S(G,Se(")"),ye(Hr,")"),_e,mt,ve);if(s&&me=="<")return S(Se(">"),ye(zn,">"),_e,zr)}function go(ne,me){if(ne=="keyword"||ne=="variable")return B.marked="type",S(go);if(me=="<")return S(Se(">"),ye(zn,">"),_e)}function Hr(ne,me){return me=="@"&&S(ze,Hr),ne=="spread"?S(Hr):s&&N(me)?(B.marked="keyword",S(Hr)):s&&ne=="this"?S(yt,Qe):V(Ae,yt,Qe)}function Zn(ne,me){return ne=="variable"?Wi(ne,me):ki(ne,me)}function Wi(ne,me){if(ne=="variable")return q(me),S(ki)}function ki(ne,me){if(me=="<")return S(Se(">"),ye(zn,">"),_e,ki);if(me=="extends"||me=="implements"||s&&ne==",")return me=="implements"&&(B.marked="keyword"),S(s?Ie:ze,ki);if(ne=="{")return S(Se("}"),ln,_e)}function ln(ne,me){if(ne=="async"||ne=="variable"&&(me=="static"||me=="get"||me=="set"||s&&N(me))&&B.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return B.marked="keyword",S(ln);if(ne=="variable"||B.style=="keyword")return B.marked="property",S(Po,ln);if(ne=="number"||ne=="string")return S(Po,ln);if(ne=="[")return S(ze,yt,Ne("]"),Po,ln);if(me=="*")return B.marked="keyword",S(ln);if(s&&ne=="(")return V(zr,ln);if(ne==";"||ne==",")return S(ln);if(ne=="}")return S();if(me=="@")return S(ze,ln)}function Po(ne,me){if(me=="?")return S(Po);if(ne==":")return S(Ie,Qe);if(me=="=")return S(tt);var be=B.state.lexical.prev,$=be&&be.info=="interface";return V($?zr:sn)}function Ei(ne,me){return me=="*"?(B.marked="keyword",S(Ot,Ne(";"))):me=="default"?(B.marked="keyword",S(ze,Ne(";"))):ne=="{"?S(ye(Ws,"}"),Ot,Ne(";")):V(Le)}function Ws(ne,me){if(me=="as")return B.marked="keyword",S(Ne("variable"));if(ne=="variable")return V(tt,Ws)}function mo(ne){return ne=="string"?S():ne=="("?V(ze):V(Ro,Ar,Ot)}function Ro(ne,me){return ne=="{"?xe(Ro,"}"):(ne=="variable"&&q(me),me=="*"&&(B.marked="keyword"),S(Xr))}function Ar(ne){if(ne==",")return S(Ro,Ar)}function Xr(ne,me){if(me=="as")return B.marked="keyword",S(Ro)}function Ot(ne,me){if(me=="from")return B.marked="keyword",S(ze)}function to(ne){return ne=="]"?S():V(ye(tt,"]"))}function Us(){return V(Se("form"),Ae,Ne("{"),Se("}"),ye(ro,"}"),_e,_e)}function ro(){return V(Ae,Qe)}function wr(ne,me){return ne.lastType=="operator"||ne.lastType==","||f.test(me.charAt(0))||/[,.]/.test(me.charAt(0))}function vo(ne,me,be){return me.tokenize==T&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(me.lastType)||me.lastType=="quasi"&&/\{\s*$/.test(ne.string.slice(0,ne.pos-(be||0)))}return{startState:function(ne){var me={tokenize:T,lastType:"sof",cc:[],lexical:new C((ne||0)-n,0,"block",!1),localVars:r.localVars,context:r.localVars&&new z(null,null,!1),indented:ne||0};return r.globalVars&&typeof r.globalVars=="object"&&(me.globalVars=r.globalVars),me},token:function(ne,me){if(ne.sol()&&(me.lexical.hasOwnProperty("align")||(me.lexical.align=!1),me.indented=ne.indentation(),P(ne,me)),me.tokenize!=A&&ne.eatSpace())return null;var be=me.tokenize(ne,me);return m=="comment"?be:(me.lastType=m=="operator"&&(x=="++"||x=="--")?"incdec":m,F(me,be,m,x,ne))},indent:function(ne,me){if(ne.tokenize==A||ne.tokenize==D)return t.Pass;if(ne.tokenize!=T)return 0;var be=me&&me.charAt(0),$=ne.lexical,H;if(!/^\s*else\b/.test(me))for(var ae=ne.cc.length-1;ae>=0;--ae){var ge=ne.cc[ae];if(ge==_e)$=$.prev;else if(ge!=_t)break}for(;($.type=="stat"||$.type=="form")&&(be=="}"||(H=ne.cc[ne.cc.length-1])&&(H==Oe||H==Me)&&!/^[,\.=+\-*:?[\(]/.test(me));)$=$.prev;i&&$.type==")"&&$.prev.type=="stat"&&($=$.prev);var Re=$.type,Ue=be==Re;return Re=="vardef"?$.indented+(ne.lastType=="operator"||ne.lastType==","?$.info.length+1:0):Re=="form"&&be=="{"?$.indented:Re=="form"?$.indented+n:Re=="stat"?$.indented+(wr(ne,me)?i||n:0):$.info=="switch"&&!Ue&&r.doubleIndentSwitch!=!1?$.indented+(/^(?:case|default)\b/.test(me)?n:2*n):$.align?$.column+(Ue?0:1):$.indented+(Ue?0:n)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:a?null:"/*",blockCommentEnd:a?null:"*/",blockCommentContinue:a?null:" * ",lineComment:a?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:a?"json":"javascript",jsonldMode:o,jsonMode:a,expressionAllowed:vo,skipExpression:function(ne){var me=ne.cc[ne.cc.length-1];(me==ze||me==tt)&&ne.cc.pop()}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var P1=Z((sne,lne)=>{(function(t){typeof sne=="object"&&typeof lne=="object"?t(Br(),nm(),o0(),rm()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],t):t(CodeMirror)})(function(t){"use strict";var e={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function r(c,f,p){var g=c.current(),m=g.search(f);return m>-1?c.backUp(g.length-m):g.match(/<\/?$/)&&(c.backUp(g.length),c.match(f,!1)||c.match(g)),p}var n={};function i(c){var f=n[c];return f||(n[c]=new RegExp("\\s+"+c+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function o(c,f){var p=c.match(i(f));return p?/^\s*(.*?)\s*$/.exec(p[2])[1]:""}function a(c,f){return new RegExp((f?"^":"")+"</s*"+c+"s*>","i")}function s(c,f){for(var p in c)for(var g=f[p]||(f[p]=[]),m=c[p],x=m.length-1;x>=0;x--)g.unshift(m[x])}function u(c,f){for(var p=0;p<c.length;p++){var g=c[p];if(!g[0]||g[1].test(o(f,g[0])))return g[2]}}t.defineMode("htmlmixed",function(c,f){var p=t.getMode(c,{name:"xml",htmlMode:!0,multilineTagIndentFactor:f.multilineTagIndentFactor,multilineTagIndentPastTag:f.multilineTagIndentPastTag,allowMissingTagName:f.allowMissingTagName}),g={},m=f&&f.tags,x=f&&f.scriptTypes;if(s(e,g),m&&s(m,g),x)for(var w=x.length-1;w>=0;w--)g.script.unshift(["type",x[w].matches,x[w].mode]);function T(k,A){var D=p.token(k,A.htmlState),M=/\btag\b/.test(D),P;if(M&&!/[<>\s\/]/.test(k.current())&&(P=A.htmlState.tagName&&A.htmlState.tagName.toLowerCase())&&g.hasOwnProperty(P))A.inTag=P+" ";else if(A.inTag&&M&&/>$/.test(k.current())){var _=/^([\S]+) (.*)/.exec(A.inTag);A.inTag=null;var C=k.current()==">"&&u(g[_[1]],_[2]),O=t.getMode(c,C),F=a(_[1],!0),B=a(_[1],!1);A.token=function(V,S){return V.match(F,!1)?(S.token=T,S.localState=S.localMode=null,null):r(V,B,S.localMode.token(V,S.localState))},A.localMode=O,A.localState=t.startState(O,p.indent(A.htmlState,"",""))}else A.inTag&&(A.inTag+=k.current(),k.eol()&&(A.inTag+=" "));return D}return{startState:function(){var k=t.startState(p);return{token:T,inTag:null,localMode:null,localState:null,htmlState:k}},copyState:function(k){var A;return k.localState&&(A=t.copyState(k.localMode,k.localState)),{token:k.token,inTag:k.inTag,localMode:k.localMode,localState:A,htmlState:t.copyState(p,k.htmlState)}},token:function(k,A){return A.token(k,A)},indent:function(k,A,D){return!k.localMode||/^\s*<\//.test(A)?p.indent(k.htmlState,A,D):k.localMode.indent?k.localMode.indent(k.localState,A,D):t.Pass},innerMode:function(k){return{state:k.localState||k.htmlState,mode:k.localMode||p}}}},"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")})});var fne=Z((une,cne)=>{(function(t){typeof une=="object"&&typeof cne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e<t.modeInfo.length;e++){var r=t.modeInfo[e];r.mimes&&(r.mime=r.mimes[0])}t.findModeByMIME=function(n){n=n.toLowerCase();for(var i=0;i<t.modeInfo.length;i++){var o=t.modeInfo[i];if(o.mime==n)return o;if(o.mimes){for(var a=0;a<o.mimes.length;a++)if(o.mimes[a]==n)return o}}if(/\+xml$/.test(n))return t.findModeByMIME("application/xml");if(/\+json$/.test(n))return t.findModeByMIME("application/json")},t.findModeByExtension=function(n){n=n.toLowerCase();for(var i=0;i<t.modeInfo.length;i++){var o=t.modeInfo[i];if(o.ext){for(var a=0;a<o.ext.length;a++)if(o.ext[a]==n)return o}}},t.findModeByFileName=function(n){for(var i=0;i<t.modeInfo.length;i++){var o=t.modeInfo[i];if(o.file&&o.file.test(n))return o}var a=n.lastIndexOf("."),s=a>-1&&n.substring(a+1,n.length);if(s)return t.findModeByExtension(s)},t.findModeByName=function(n){n=n.toLowerCase();for(var i=0;i<t.modeInfo.length;i++){var o=t.modeInfo[i];if(o.name.toLowerCase()==n)return o;if(o.alias){for(var a=0;a<o.alias.length;a++)if(o.alias[a].toLowerCase()==n)return o}}}})});var R1=Z((dne,hne)=>{(function(t){typeof dne=="object"&&typeof hne=="object"?t(Br(),nm(),fne()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("markdown",function(e,r){var n=t.getMode(e,"text/html"),i=n.name=="null";function o(G){if(t.findModeByName){var K=t.findModeByName(G);K&&(G=K.mime||K.mimes[0])}var ve=t.getMode(e,G);return ve.name=="null"?null:ve}r.highlightFormatting===void 0&&(r.highlightFormatting=!1),r.maxBlockquoteDepth===void 0&&(r.maxBlockquoteDepth=0),r.taskLists===void 0&&(r.taskLists=!1),r.strikethrough===void 0&&(r.strikethrough=!1),r.emoji===void 0&&(r.emoji=!1),r.fencedCodeBlockHighlighting===void 0&&(r.fencedCodeBlockHighlighting=!0),r.fencedCodeBlockDefaultMode===void 0&&(r.fencedCodeBlockDefaultMode="text/plain"),r.xml===void 0&&(r.xml=!0),r.tokenTypeOverrides===void 0&&(r.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&r.tokenTypeOverrides[s]&&(a[s]=r.tokenTypeOverrides[s]);var u=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,f=/^\[(x| )\](?=\s)/i,p=r.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,g=/^ {0,3}(?:\={1,}|-{2,})\s*$/,m=/^[^#!\[\]*_\\<>` "'(~:]+/,x=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,w=/^\s*\[[^\]]+?\]:.*$/,T=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,k=" ";function A(G,K,ve){return K.f=K.inline=ve,ve(G,K)}function D(G,K,ve){return K.f=K.block=ve,ve(G,K)}function M(G){return!G||!/\S/.test(G.string)}function P(G){if(G.linkTitle=!1,G.linkHref=!1,G.linkText=!1,G.em=!1,G.strong=!1,G.strikethrough=!1,G.quote=0,G.indentedCode=!1,G.f==C){var K=i;if(!K){var ve=t.innerMode(n,G.htmlState);K=ve.mode.name=="xml"&&ve.state.tagStart===null&&!ve.state.context&&ve.state.tokenize.isInText}K&&(G.f=V,G.block=_,G.htmlState=null)}return G.trailingSpace=0,G.trailingSpaceNewLine=!1,G.prevLine=G.thisLine,G.thisLine={stream:null},null}function _(G,K){var ve=G.column()===K.indentation,Se=M(K.prevLine.stream),_e=K.indentedCode,Ne=K.prevLine.hr,Le=K.list!==!1,it=(K.listStack[K.listStack.length-1]||0)+3;K.indentedCode=!1;var ze=K.indentation;if(K.indentationDiff===null&&(K.indentationDiff=K.indentation,Le)){for(K.list=null;ze<K.listStack[K.listStack.length-1];)K.listStack.pop(),K.listStack.length?K.indentation=K.listStack[K.listStack.length-1]:K.list=!1;K.list!==!1&&(K.indentationDiff=ze-K.listStack[K.listStack.length-1])}var tt=!Se&&!Ne&&!K.prevLine.header&&(!Le||!_e)&&!K.prevLine.fencedCodeEnd,wt=(K.list===!1||Ne||Se)&&K.indentation<=it&&G.match(u),At=null;if(K.indentationDiff>=4&&(_e||K.prevLine.fencedCodeEnd||K.prevLine.header||Se))return G.skipToEnd(),K.indentedCode=!0,a.code;if(G.eatSpace())return null;if(ve&&K.indentation<=it&&(At=G.match(p))&&At[1].length<=6)return K.quote=0,K.header=At[1].length,K.thisLine.header=!0,r.highlightFormatting&&(K.formatting="header"),K.f=K.inline,F(K);if(K.indentation<=it&&G.eat(">"))return K.quote=ve?1:K.quote+1,r.highlightFormatting&&(K.formatting="quote"),G.eatSpace(),F(K);if(!wt&&!K.setext&&ve&&K.indentation<=it&&(At=G.match(c))){var Ve=At[1]?"ol":"ul";return K.indentation=ze+G.current().length,K.list=!0,K.quote=0,K.listStack.push(K.indentation),K.em=!1,K.strong=!1,K.code=!1,K.strikethrough=!1,r.taskLists&&G.match(f,!1)&&(K.taskList=!0),K.f=K.inline,r.highlightFormatting&&(K.formatting=["list","list-"+Ve]),F(K)}else{if(ve&&K.indentation<=it&&(At=G.match(x,!0)))return K.quote=0,K.fencedEndRE=new RegExp(At[1]+"+ *$"),K.localMode=r.fencedCodeBlockHighlighting&&o(At[2]||r.fencedCodeBlockDefaultMode),K.localMode&&(K.localState=t.startState(K.localMode)),K.f=K.block=O,r.highlightFormatting&&(K.formatting="code-block"),K.code=-1,F(K);if(K.setext||(!tt||!Le)&&!K.quote&&K.list===!1&&!K.code&&!wt&&!w.test(G.string)&&(At=G.lookAhead(1))&&(At=At.match(g)))return K.setext?(K.header=K.setext,K.setext=0,G.skipToEnd(),r.highlightFormatting&&(K.formatting="header")):(K.header=At[0].charAt(0)=="="?1:2,K.setext=K.header),K.thisLine.header=!0,K.f=K.inline,F(K);if(wt)return G.skipToEnd(),K.hr=!0,K.thisLine.hr=!0,a.hr;if(G.peek()==="[")return A(G,K,N)}return A(G,K,K.inline)}function C(G,K){var ve=n.token(G,K.htmlState);if(!i){var Se=t.innerMode(n,K.htmlState);(Se.mode.name=="xml"&&Se.state.tagStart===null&&!Se.state.context&&Se.state.tokenize.isInText||K.md_inside&&G.current().indexOf(">")>-1)&&(K.f=V,K.block=_,K.htmlState=null)}return ve}function O(G,K){var ve=K.listStack[K.listStack.length-1]||0,Se=K.indentation<ve,_e=ve+3;if(K.fencedEndRE&&K.indentation<=_e&&(Se||G.match(K.fencedEndRE))){r.highlightFormatting&&(K.formatting="code-block");var Ne;return Se||(Ne=F(K)),K.localMode=K.localState=null,K.block=_,K.f=V,K.fencedEndRE=null,K.code=0,K.thisLine.fencedCodeEnd=!0,Se?D(G,K,K.block):Ne}else return K.localMode?K.localMode.token(G,K.localState):(G.skipToEnd(),a.code)}function F(G){var K=[];if(G.formatting){K.push(a.formatting),typeof G.formatting=="string"&&(G.formatting=[G.formatting]);for(var ve=0;ve<G.formatting.length;ve++)K.push(a.formatting+"-"+G.formatting[ve]),G.formatting[ve]==="header"&&K.push(a.formatting+"-"+G.formatting[ve]+"-"+G.header),G.formatting[ve]==="quote"&&(!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=G.quote?K.push(a.formatting+"-"+G.formatting[ve]+"-"+G.quote):K.push("error"))}if(G.taskOpen)return K.push("meta"),K.length?K.join(" "):null;if(G.taskClosed)return K.push("property"),K.length?K.join(" "):null;if(G.linkHref?K.push(a.linkHref,"url"):(G.strong&&K.push(a.strong),G.em&&K.push(a.em),G.strikethrough&&K.push(a.strikethrough),G.emoji&&K.push(a.emoji),G.linkText&&K.push(a.linkText),G.code&&K.push(a.code),G.image&&K.push(a.image),G.imageAltText&&K.push(a.imageAltText,"link"),G.imageMarker&&K.push(a.imageMarker)),G.header&&K.push(a.header,a.header+"-"+G.header),G.quote&&(K.push(a.quote),!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=G.quote?K.push(a.quote+"-"+G.quote):K.push(a.quote+"-"+r.maxBlockquoteDepth)),G.list!==!1){var Se=(G.listStack.length-1)%3;Se?Se===1?K.push(a.list2):K.push(a.list3):K.push(a.list1)}return G.trailingSpaceNewLine?K.push("trailing-space-new-line"):G.trailingSpace&&K.push("trailing-space-"+(G.trailingSpace%2?"a":"b")),K.length?K.join(" "):null}function B(G,K){if(G.match(m,!0))return F(K)}function V(G,K){var ve=K.text(G,K);if(typeof ve<"u")return ve;if(K.list)return K.list=null,F(K);if(K.taskList){var Se=G.match(f,!0)[1]===" ";return Se?K.taskOpen=!0:K.taskClosed=!0,r.highlightFormatting&&(K.formatting="task"),K.taskList=!1,F(K)}if(K.taskOpen=!1,K.taskClosed=!1,K.header&&G.match(/^#+$/,!0))return r.highlightFormatting&&(K.formatting="header"),F(K);var _e=G.next();if(K.linkTitle){K.linkTitle=!1;var Ne=_e;_e==="("&&(Ne=")"),Ne=(Ne+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Le="^\\s*(?:[^"+Ne+"\\\\]+|\\\\\\\\|\\\\.)"+Ne;if(G.match(new RegExp(Le),!0))return a.linkHref}if(_e==="`"){var it=K.formatting;r.highlightFormatting&&(K.formatting="code"),G.eatWhile("`");var ze=G.current().length;if(K.code==0&&(!K.quote||ze==1))return K.code=ze,F(K);if(ze==K.code){var tt=F(K);return K.code=0,tt}else return K.formatting=it,F(K)}else if(K.code)return F(K);if(_e==="\\"&&(G.next(),r.highlightFormatting)){var wt=F(K),At=a.formatting+"-escape";return wt?wt+" "+At:At}if(_e==="!"&&G.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return K.imageMarker=!0,K.image=!0,r.highlightFormatting&&(K.formatting="image"),F(K);if(_e==="["&&K.imageMarker&&G.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return K.imageMarker=!1,K.imageAltText=!0,r.highlightFormatting&&(K.formatting="image"),F(K);if(_e==="]"&&K.imageAltText){r.highlightFormatting&&(K.formatting="image");var wt=F(K);return K.imageAltText=!1,K.image=!1,K.inline=K.f=R,wt}if(_e==="["&&!K.image)return K.linkText&&G.match(/^.*?\]/)||(K.linkText=!0,r.highlightFormatting&&(K.formatting="link")),F(K);if(_e==="]"&&K.linkText){r.highlightFormatting&&(K.formatting="link");var wt=F(K);return K.linkText=!1,K.inline=K.f=G.match(/\(.*?\)| ?\[.*?\]/,!1)?R:V,wt}if(_e==="<"&&G.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=S,r.highlightFormatting&&(K.formatting="link");var wt=F(K);return wt?wt+=" ":wt="",wt+a.linkInline}if(_e==="<"&&G.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=S,r.highlightFormatting&&(K.formatting="link");var wt=F(K);return wt?wt+=" ":wt="",wt+a.linkEmail}if(r.xml&&_e==="<"&&G.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ve=G.string.indexOf(">",G.pos);if(Ve!=-1){var Oe=G.string.substring(G.start,Ve);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Oe)&&(K.md_inside=!0)}return G.backUp(1),K.htmlState=t.startState(n),D(G,K,C)}if(r.xml&&_e==="<"&&G.match(/^\/\w*?>/))return K.md_inside=!1,"tag";if(_e==="*"||_e==="_"){for(var Me=1,he=G.pos==1?" ":G.string.charAt(G.pos-2);Me<3&&G.eat(_e);)Me++;var J=G.peek()||" ",re=!/\s/.test(J)&&(!T.test(J)||/\s/.test(he)||T.test(he)),fe=!/\s/.test(he)&&(!T.test(he)||/\s/.test(J)||T.test(J)),ht=null,ke=null;if(Me%2&&(!K.em&&re&&(_e==="*"||!fe||T.test(he))?ht=!0:K.em==_e&&fe&&(_e==="*"||!re||T.test(J))&&(ht=!1)),Me>1&&(!K.strong&&re&&(_e==="*"||!fe||T.test(he))?ke=!0:K.strong==_e&&fe&&(_e==="*"||!re||T.test(J))&&(ke=!1)),ke!=null||ht!=null){r.highlightFormatting&&(K.formatting=ht==null?"strong":ke==null?"em":"strong em"),ht===!0&&(K.em=_e),ke===!0&&(K.strong=_e);var tt=F(K);return ht===!1&&(K.em=!1),ke===!1&&(K.strong=!1),tt}}else if(_e===" "&&(G.eat("*")||G.eat("_"))){if(G.peek()===" ")return F(K);G.backUp(1)}if(r.strikethrough){if(_e==="~"&&G.eatWhile(_e)){if(K.strikethrough){r.highlightFormatting&&(K.formatting="strikethrough");var tt=F(K);return K.strikethrough=!1,tt}else if(G.match(/^[^\s]/,!1))return K.strikethrough=!0,r.highlightFormatting&&(K.formatting="strikethrough"),F(K)}else if(_e===" "&&G.match(/^~~/,!0)){if(G.peek()===" ")return F(K);G.backUp(2)}}if(r.emoji&&_e===":"&&G.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){K.emoji=!0,r.highlightFormatting&&(K.formatting="emoji");var $e=F(K);return K.emoji=!1,$e}return _e===" "&&(G.match(/^ +$/,!1)?K.trailingSpace++:K.trailingSpace&&(K.trailingSpaceNewLine=!0)),F(K)}function S(G,K){var ve=G.next();if(ve===">"){K.f=K.inline=V,r.highlightFormatting&&(K.formatting="link");var Se=F(K);return Se?Se+=" ":Se="",Se+a.linkInline}return G.match(/^[^>]+/,!0),a.linkInline}function R(G,K){if(G.eatSpace())return null;var ve=G.next();return ve==="("||ve==="["?(K.f=K.inline=W(ve==="("?")":"]"),r.highlightFormatting&&(K.formatting="link-string"),K.linkHref=!0,F(K)):"error"}var q={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function W(G){return function(K,ve){var Se=K.next();if(Se===G){ve.f=ve.inline=V,r.highlightFormatting&&(ve.formatting="link-string");var _e=F(ve);return ve.linkHref=!1,_e}return K.match(q[G]),ve.linkHref=!0,F(ve)}}function N(G,K){return G.match(/^([^\]\\]|\\.)*\]:/,!1)?(K.f=z,G.next(),r.highlightFormatting&&(K.formatting="link"),K.linkText=!0,F(K)):A(G,K,V)}function z(G,K){if(G.match(/^\]:/,!0)){K.f=K.inline=X,r.highlightFormatting&&(K.formatting="link");var ve=F(K);return K.linkText=!1,ve}return G.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function X(G,K){return G.eatSpace()?null:(G.match(/^[^\s]+/,!0),G.peek()===void 0?K.linkTitle=!0:G.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),K.f=K.inline=V,a.linkHref+" url")}var oe={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:V,text:B,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(G){return{f:G.f,prevLine:G.prevLine,thisLine:G.thisLine,block:G.block,htmlState:G.htmlState&&t.copyState(n,G.htmlState),indentation:G.indentation,localMode:G.localMode,localState:G.localMode?t.copyState(G.localMode,G.localState):null,inline:G.inline,text:G.text,formatting:!1,linkText:G.linkText,linkTitle:G.linkTitle,linkHref:G.linkHref,code:G.code,em:G.em,strong:G.strong,strikethrough:G.strikethrough,emoji:G.emoji,header:G.header,setext:G.setext,hr:G.hr,taskList:G.taskList,list:G.list,listStack:G.listStack.slice(0),quote:G.quote,indentedCode:G.indentedCode,trailingSpace:G.trailingSpace,trailingSpaceNewLine:G.trailingSpaceNewLine,md_inside:G.md_inside,fencedEndRE:G.fencedEndRE}},token:function(G,K){if(K.formatting=!1,G!=K.thisLine.stream){if(K.header=0,K.hr=!1,G.match(/^\s*$/,!0))return P(K),null;if(K.prevLine=K.thisLine,K.thisLine={stream:G},K.taskList=!1,K.trailingSpace=0,K.trailingSpaceNewLine=!1,!K.localState&&(K.f=K.block,K.f!=C)){var ve=G.match(/^\s*/,!0)[0].replace(/\t/g,k).length;if(K.indentation=ve,K.indentationDiff=null,ve>0)return null}}return K.f(G,K)},innerMode:function(G){return G.block==C?{state:G.htmlState,mode:n}:G.localState?{state:G.localState,mode:G.localMode}:{state:G,mode:oe}},indent:function(G,K,ve){return G.block==C&&n.indent?n.indent(G.htmlState,K,ve):G.localState&&G.localMode.indent?G.localMode.indent(G.localState,K,ve):t.Pass},blankLine:P,getType:F,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return oe},"xml"),t.defineMIME("text/markdown","markdown"),t.defineMIME("text/x-markdown","markdown")})});var mne=Z((pne,gne)=>{(function(t){typeof pne=="object"&&typeof gne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("nginx",function(e){function r(m){for(var x={},w=m.split(" "),T=0;T<w.length;++T)x[w[T]]=!0;return x}var n=r("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),i=r("http mail events server types location upstream charset_map limit_except if geo map"),o=r("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),a=e.indentUnit,s;function u(m,x){return s=x,m}function c(m,x){m.eatWhile(/[\w\$_]/);var w=m.current();if(n.propertyIsEnumerable(w))return"keyword";if(i.propertyIsEnumerable(w))return"variable-2";if(o.propertyIsEnumerable(w))return"string-2";var T=m.next();if(T=="@")return m.eatWhile(/[\w\\\-]/),u("meta",m.current());if(T=="/"&&m.eat("*"))return x.tokenize=f,f(m,x);if(T=="<"&&m.eat("!"))return x.tokenize=p,p(m,x);if(T=="=")u(null,"compare");else return(T=="~"||T=="|")&&m.eat("=")?u(null,"compare"):T=='"'||T=="'"?(x.tokenize=g(T),x.tokenize(m,x)):T=="#"?(m.skipToEnd(),u("comment","comment")):T=="!"?(m.match(/^\s*\w*/),u("keyword","important")):/\d/.test(T)?(m.eatWhile(/[\w.%]/),u("number","unit")):/[,.+>*\/]/.test(T)?u(null,"select-op"):/[;{}:\[\]]/.test(T)?u(null,T):(m.eatWhile(/[\w\\\-]/),u("variable","variable"))}function f(m,x){for(var w=!1,T;(T=m.next())!=null;){if(w&&T=="/"){x.tokenize=c;break}w=T=="*"}return u("comment","comment")}function p(m,x){for(var w=0,T;(T=m.next())!=null;){if(w>=2&&T==">"){x.tokenize=c;break}w=T=="-"?w+1:0}return u("comment","comment")}function g(m){return function(x,w){for(var T=!1,k;(k=x.next())!=null&&!(k==m&&!T);)T=!T&&k=="\\";return T||(w.tokenize=c),u("string","string")}}return{startState:function(m){return{tokenize:c,baseIndent:m||0,stack:[]}},token:function(m,x){if(m.eatSpace())return null;s=null;var w=x.tokenize(m,x),T=x.stack[x.stack.length-1];return s=="hash"&&T=="rule"?w="atom":w=="variable"&&(T=="rule"?w="number":(!T||T=="@media{")&&(w="tag")),T=="rule"&&/^[\{\};]$/.test(s)&&x.stack.pop(),s=="{"?T=="@media"?x.stack[x.stack.length-1]="@media{":x.stack.push("{"):s=="}"?x.stack.pop():s=="@media"?x.stack.push("@media"):T=="{"&&s!="comment"&&x.stack.push("rule"),w},indent:function(m,x){var w=m.stack.length;return/^\}/.test(x)&&(w-=m.stack[m.stack.length-1]=="rule"?2:1),m.baseIndent+w*a},electricChars:"}"}}),t.defineMIME("text/x-nginx-conf","nginx")})});var bne=Z((vne,yne)=>{(function(t){typeof vne=="object"&&typeof yne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";function e(N,z,X,oe,G,K){this.indented=N,this.column=z,this.type=X,this.info=oe,this.align=G,this.prev=K}function r(N,z,X,oe){var G=N.indented;return N.context&&N.context.type=="statement"&&X!="statement"&&(G=N.context.indented),N.context=new e(G,z,X,oe,null,N.context)}function n(N){var z=N.context.type;return(z==")"||z=="]"||z=="}")&&(N.indented=N.context.indented),N.context=N.context.prev}function i(N,z,X){if(z.prevToken=="variable"||z.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(N.string.slice(0,X))||z.typeAtEndOfLine&&N.column()==N.indentation())return!0}function o(N){for(;;){if(!N||N.type=="top")return!0;if(N.type=="}"&&N.prev.info!="namespace")return!1;N=N.prev}}t.defineMode("clike",function(N,z){var X=N.indentUnit,oe=z.statementIndentUnit||X,G=z.dontAlignCalls,K=z.keywords||{},ve=z.types||{},Se=z.builtin||{},_e=z.blockKeywords||{},Ne=z.defKeywords||{},Le=z.atoms||{},it=z.hooks||{},ze=z.multiLineStrings,tt=z.indentStatements!==!1,wt=z.indentSwitch!==!1,At=z.namespaceSeparator,Ve=z.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,Oe=z.numberStart||/[\d\.]/,Me=z.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,he=z.isOperatorChar||/[+\-*&%=<>!?|\/]/,J=z.isIdentifierChar||/[\w\$_\xa1-\uffff]/,re=z.isReservedIdentifier||!1,fe,ht;function ke(ut,pt){var st=ut.next();if(it[st]){var ye=it[st](ut,pt);if(ye!==!1)return ye}if(st=='"'||st=="'")return pt.tokenize=$e(st),pt.tokenize(ut,pt);if(Oe.test(st)){if(ut.backUp(1),ut.match(Me))return"number";ut.next()}if(Ve.test(st))return fe=st,null;if(st=="/"){if(ut.eat("*"))return pt.tokenize=Fe,Fe(ut,pt);if(ut.eat("/"))return ut.skipToEnd(),"comment"}if(he.test(st)){for(;!ut.match(/^\/[\/*]/,!1)&&ut.eat(he););return"operator"}if(ut.eatWhile(J),At)for(;ut.match(At);)ut.eatWhile(J);var xe=ut.current();return s(K,xe)?(s(_e,xe)&&(fe="newstatement"),s(Ne,xe)&&(ht=!0),"keyword"):s(ve,xe)?"type":s(Se,xe)||re&&re(xe)?(s(_e,xe)&&(fe="newstatement"),"builtin"):s(Le,xe)?"atom":"variable"}function $e(ut){return function(pt,st){for(var ye=!1,xe,We=!1;(xe=pt.next())!=null;){if(xe==ut&&!ye){We=!0;break}ye=!ye&&xe=="\\"}return(We||!(ye||ze))&&(st.tokenize=null),"string"}}function Fe(ut,pt){for(var st=!1,ye;ye=ut.next();){if(ye=="/"&&st){pt.tokenize=null;break}st=ye=="*"}return"comment"}function It(ut,pt){z.typeFirstDefinitions&&ut.eol()&&o(pt.context)&&(pt.typeAtEndOfLine=i(ut,pt,ut.pos))}return{startState:function(ut){return{tokenize:null,context:new e((ut||0)-X,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(ut,pt){var st=pt.context;if(ut.sol()&&(st.align==null&&(st.align=!1),pt.indented=ut.indentation(),pt.startOfLine=!0),ut.eatSpace())return It(ut,pt),null;fe=ht=null;var ye=(pt.tokenize||ke)(ut,pt);if(ye=="comment"||ye=="meta")return ye;if(st.align==null&&(st.align=!0),fe==";"||fe==":"||fe==","&&ut.match(/^\s*(?:\/\/.*)?$/,!1))for(;pt.context.type=="statement";)n(pt);else if(fe=="{")r(pt,ut.column(),"}");else if(fe=="[")r(pt,ut.column(),"]");else if(fe=="(")r(pt,ut.column(),")");else if(fe=="}"){for(;st.type=="statement";)st=n(pt);for(st.type=="}"&&(st=n(pt));st.type=="statement";)st=n(pt)}else fe==st.type?n(pt):tt&&((st.type=="}"||st.type=="top")&&fe!=";"||st.type=="statement"&&fe=="newstatement")&&r(pt,ut.column(),"statement",ut.current());if(ye=="variable"&&(pt.prevToken=="def"||z.typeFirstDefinitions&&i(ut,pt,ut.start)&&o(pt.context)&&ut.match(/^\s*\(/,!1))&&(ye="def"),it.token){var xe=it.token(ut,pt,ye);xe!==void 0&&(ye=xe)}return ye=="def"&&z.styleDefs===!1&&(ye="variable"),pt.startOfLine=!1,pt.prevToken=ht?"def":ye||fe,It(ut,pt),ye},indent:function(ut,pt){if(ut.tokenize!=ke&&ut.tokenize!=null||ut.typeAtEndOfLine)return t.Pass;var st=ut.context,ye=pt&&pt.charAt(0),xe=ye==st.type;if(st.type=="statement"&&ye=="}"&&(st=st.prev),z.dontIndentStatements)for(;st.type=="statement"&&z.dontIndentStatements.test(st.info);)st=st.prev;if(it.indent){var We=it.indent(ut,st,pt,X);if(typeof We=="number")return We}var yt=st.prev&&st.prev.info=="switch";if(z.allmanIndentation&&/[{(]/.test(ye)){for(;st.type!="top"&&st.type!="}";)st=st.prev;return st.indented}return st.type=="statement"?st.indented+(ye=="{"?0:oe):st.align&&(!G||st.type!=")")?st.column+(xe?0:1):st.type==")"&&!xe?st.indented+oe:st.indented+(xe?0:X)+(!xe&&yt&&!/^(?:case|default)\b/.test(pt)?X:0)},electricInput:wt?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function a(N){for(var z={},X=N.split(" "),oe=0;oe<X.length;++oe)z[X[oe]]=!0;return z}function s(N,z){return typeof N=="function"?N(z):N.propertyIsEnumerable(z)}var u="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",f="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",p="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",g=a("int long char short double float unsigned signed void bool"),m=a("SEL instancetype id Class Protocol BOOL");function x(N){return s(g,N)||/.+_t$/.test(N)}function w(N){return x(N)||s(m,N)}var T="case do else for if switch while struct enum union",k="struct enum union";function A(N,z){if(!z.startOfLine)return!1;for(var X,oe=null;X=N.peek();){if(X=="\\"&&N.match(/^.$/)){oe=A;break}else if(X=="/"&&N.match(/^\/[\/\*]/,!1))break;N.next()}return z.tokenize=oe,"meta"}function D(N,z){return z.prevToken=="type"?"type":!1}function M(N){return!N||N.length<2||N[0]!="_"?!1:N[1]=="_"||N[1]!==N[1].toLowerCase()}function P(N){return N.eatWhile(/[\w\.']/),"number"}function _(N,z){if(N.backUp(1),N.match(/(R|u8R|uR|UR|LR)/)){var X=N.match(/"([^\s\\()]{0,16})\(/);return X?(z.cpp11RawStringDelim=X[1],z.tokenize=F,F(N,z)):!1}return N.match(/(u8|u|U|L)/)?N.match(/["']/,!1)?"string":!1:(N.next(),!1)}function C(N){var z=/(\w+)::~?(\w+)$/.exec(N);return z&&z[1]==z[2]}function O(N,z){for(var X;(X=N.next())!=null;)if(X=='"'&&!N.eat('"')){z.tokenize=null;break}return"string"}function F(N,z){var X=z.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),oe=N.match(new RegExp(".*?\\)"+X+'"'));return oe?z.tokenize=null:N.skipToEnd(),"string"}function B(N,z){typeof N=="string"&&(N=[N]);var X=[];function oe(K){if(K)for(var ve in K)K.hasOwnProperty(ve)&&X.push(ve)}oe(z.keywords),oe(z.types),oe(z.builtin),oe(z.atoms),X.length&&(z.helperType=N[0],t.registerHelper("hintWords",N[0],X));for(var G=0;G<N.length;++G)t.defineMIME(N[G],z)}B(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(u),types:x,blockKeywords:a(T),defKeywords:a(k),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:M,hooks:{"#":A,"*":D},modeProps:{fold:["brace","include"]}}),B(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(u+" "+c),types:x,blockKeywords:a(T+" class try catch"),defKeywords:a(k+" class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:M,hooks:{"#":A,"*":D,u:_,U:_,L:_,R:_,"0":P,"1":P,"2":P,"3":P,"4":P,"5":P,"6":P,"7":P,"8":P,"9":P,token:function(N,z,X){if(X=="variable"&&N.peek()=="("&&(z.prevToken==";"||z.prevToken==null||z.prevToken=="}")&&C(N.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),B("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(N){return N.match("interface",!1)?!1:(N.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),B("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(N,z){return N.eat('"')?(z.tokenize=O,O(N,z)):(N.eatWhile(/[\w\$_]/),"meta")}}});function V(N,z){for(var X=!1;!N.eol();){if(!X&&N.match('"""')){z.tokenize=null;break}X=N.next()=="\\"&&!X}return"string"}function S(N){return function(z,X){for(var oe;oe=z.next();)if(oe=="*"&&z.eat("/"))if(N==1){X.tokenize=null;break}else return X.tokenize=S(N-1),X.tokenize(z,X);else if(oe=="/"&&z.eat("*"))return X.tokenize=S(N+1),X.tokenize(z,X);return"comment"}}B("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(N){return N.eatWhile(/[\w\$_]/),"meta"},'"':function(N,z){return N.match('""')?(z.tokenize=V,z.tokenize(N,z)):!1},"'":function(N){return N.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(N,z){var X=z.context;return X.type=="}"&&X.align&&N.eat(">")?(z.context=new e(X.indented,X.column,X.type,X.info,null,X.prev),"operator"):!1},"/":function(N,z){return N.eat("*")?(z.tokenize=S(1),z.tokenize(N,z)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function R(N){return function(z,X){for(var oe=!1,G,K=!1;!z.eol();){if(!N&&!oe&&z.match('"')){K=!0;break}if(N&&z.match('"""')){K=!0;break}G=z.next(),!oe&&G=="$"&&z.match("{")&&z.skipTo("}"),oe=!oe&&G=="\\"&&!N}return(K||!N)&&(X.tokenize=null),"string"}}B("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(N){return N.eatWhile(/[\w\$_]/),"meta"},"*":function(N,z){return z.prevToken=="."?"variable":"operator"},'"':function(N,z){return z.tokenize=R(N.match('""')),z.tokenize(N,z)},"/":function(N,z){return N.eat("*")?(z.tokenize=S(1),z.tokenize(N,z)):!1},indent:function(N,z,X,oe){var G=X&&X.charAt(0);if((N.prevToken=="}"||N.prevToken==")")&&X=="")return N.indented;if(N.prevToken=="operator"&&X!="}"&&N.context.type!="}"||N.prevToken=="variable"&&G=="."||(N.prevToken=="}"||N.prevToken==")")&&G==".")return oe*2+z.indented;if(z.align&&z.type=="}")return z.indented+(N.context.type==(X||"").charAt(0)?0:oe)}},modeProps:{closeBrackets:{triples:'"'}}}),B(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":A},modeProps:{fold:["brace","include"]}}),B("text/x-nesc",{name:"clike",keywords:a(u+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:x,blockKeywords:a(T),atoms:a("null true false"),hooks:{"#":A},modeProps:{fold:["brace","include"]}}),B("text/x-objectivec",{name:"clike",keywords:a(u+" "+f),types:w,builtin:a(p),blockKeywords:a(T+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(k+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:M,hooks:{"#":A,"*":D},modeProps:{fold:["brace","include"]}}),B("text/x-objectivec++",{name:"clike",keywords:a(u+" "+f+" "+c),types:w,builtin:a(p),blockKeywords:a(T+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(k+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:M,hooks:{"#":A,"*":D,u:_,U:_,L:_,R:_,"0":P,"1":P,"2":P,"3":P,"4":P,"5":P,"6":P,"7":P,"8":P,"9":P,token:function(N,z,X){if(X=="variable"&&N.peek()=="("&&(z.prevToken==";"||z.prevToken==null||z.prevToken=="}")&&C(N.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),B("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:x,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":A},modeProps:{fold:["brace","include"]}});var q=null;function W(N){return function(z,X){for(var oe=!1,G,K=!1;!z.eol();){if(!oe&&z.match('"')&&(N=="single"||z.match('""'))){K=!0;break}if(!oe&&z.match("``")){q=W(N),K=!0;break}G=z.next(),oe=N=="single"&&!oe&&G=="\\"}return K&&(X.tokenize=null),"string"}}B("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(N){var z=N.charAt(0);return z===z.toUpperCase()&&z!==z.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(N){return N.eatWhile(/[\w\$_]/),"meta"},'"':function(N,z){return z.tokenize=W(N.match('""')?"triple":"single"),z.tokenize(N,z)},"`":function(N,z){return!q||!N.match("`")?!1:(z.tokenize=q,q=null,z.tokenize(N,z))},"'":function(N){return N.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(N,z,X){if((X=="variable"||X=="type")&&z.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var _ne=Z((xne,wne)=>{(function(t){typeof xne=="object"&&typeof wne=="object"?t(Br(),P1(),bne()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],t):t(CodeMirror)})(function(t){"use strict";function e(c){for(var f={},p=c.split(" "),g=0;g<p.length;++g)f[p[g]]=!0;return f}function r(c,f,p){return c.length==0?n(f):function(g,m){for(var x=c[0],w=0;w<x.length;w++)if(g.match(x[w][0]))return m.tokenize=r(c.slice(1),f),x[w][1];return m.tokenize=n(f,p),"string"}}function n(c,f){return function(p,g){return i(p,g,c,f)}}function i(c,f,p,g){if(g!==!1&&c.match("${",!1)||c.match("{$",!1))return f.tokenize=null,"string";if(g!==!1&&c.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return c.match("[",!1)&&(f.tokenize=r([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],p,g)),c.match(/\-\>\w/,!1)&&(f.tokenize=r([[["->",null]],[[/[\w]+/,"variable"]]],p,g)),"variable-2";for(var m=!1;!c.eol()&&(m||g===!1||!c.match("{$",!1)&&!c.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!m&&c.match(p)){f.tokenize=null,f.tokStack.pop(),f.tokStack.pop();break}m=c.next()=="\\"&&!m}return"string"}var o="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",s="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";t.registerHelper("hintWords","php",[o,a,s].join(" ").split(" ")),t.registerHelper("wordChars","php",/[\w$]/);var u={name:"clike",helperType:"php",keywords:e(o),blockKeywords:e("catch do else elseif for foreach if switch try while finally"),defKeywords:e("class function interface namespace trait"),atoms:e(a),builtin:e(s),multiLineStrings:!0,hooks:{$:function(c){return c.eatWhile(/[\w\$_]/),"variable-2"},"<":function(c,f){var p;if(p=c.match(/<<\s*/)){var g=c.eat(/['"]/);c.eatWhile(/[\w\.]/);var m=c.current().slice(p[0].length+(g?2:1));if(g&&c.eat(g),m)return(f.tokStack||(f.tokStack=[])).push(m,0),f.tokenize=n(m,g!="'"),"string"}return!1},"#":function(c){for(;!c.eol()&&!c.match("?>",!1);)c.next();return"comment"},"/":function(c){if(c.eat("/")){for(;!c.eol()&&!c.match("?>",!1);)c.next();return"comment"}return!1},'"':function(c,f){return(f.tokStack||(f.tokStack=[])).push('"',0),f.tokenize=n('"'),"string"},"{":function(c,f){return f.tokStack&&f.tokStack.length&&f.tokStack[f.tokStack.length-1]++,!1},"}":function(c,f){return f.tokStack&&f.tokStack.length>0&&!--f.tokStack[f.tokStack.length-1]&&(f.tokenize=n(f.tokStack[f.tokStack.length-2])),!1}}};t.defineMode("php",function(c,f){var p=t.getMode(c,f&&f.htmlMode||"text/html"),g=t.getMode(c,u);function m(x,w){var T=w.curMode==g;if(x.sol()&&w.pending&&w.pending!='"'&&w.pending!="'"&&(w.pending=null),T)return T&&w.php.tokenize==null&&x.match("?>")?(w.curMode=p,w.curState=w.html,w.php.context.prev||(w.php=null),"meta"):g.token(x,w.curState);if(x.match(/^<\?\w*/))return w.curMode=g,w.php||(w.php=t.startState(g,p.indent(w.html,"",""))),w.curState=w.php,"meta";if(w.pending=='"'||w.pending=="'"){for(;!x.eol()&&x.next()!=w.pending;);var k="string"}else if(w.pending&&x.pos<w.pending.end){x.pos=w.pending.end;var k=w.pending.style}else var k=p.token(x,w.curState);w.pending&&(w.pending=null);var A=x.current(),D=A.search(/<\?/),M;return D!=-1&&(k=="string"&&(M=A.match(/[\'\"]$/))&&!/\?>/.test(A)?w.pending=M[0]:w.pending={end:x.pos,style:k},x.backUp(A.length-D)),k}return{startState:function(){var x=t.startState(p),w=f.startOpen?t.startState(g):null;return{html:x,php:w,curMode:f.startOpen?g:p,curState:f.startOpen?w:x,pending:null}},copyState:function(x){var w=x.html,T=t.copyState(p,w),k=x.php,A=k&&t.copyState(g,k),D;return x.curMode==p?D=T:D=A,{html:T,php:A,curMode:x.curMode,curState:D,pending:x.pending}},token:m,indent:function(x,w,T){return x.curMode!=g&&/^\s*<\//.test(w)||x.curMode==g&&/^\?>/.test(w)?p.indent(x.html,w,T):x.curMode.indent(x.curState,w,T)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(x){return{state:x.curState,mode:x.curMode}}}},"htmlmixed","clike"),t.defineMIME("application/x-httpd-php","php"),t.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),t.defineMIME("text/x-php",u)})});var Ene=Z((Sne,kne)=>{(function(t){typeof Sne=="object"&&typeof kne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";function e(u){for(var c={},f=0,p=u.length;f<p;++f)c[u[f]]=!0;return c}var r=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],n=e(r),i=e(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),o=e(["end","until"]),a={"[":"]","{":"}","(":")"},s={"]":"[","}":"{",")":"("};t.defineMode("ruby",function(u){var c;function f(A,D,M){return M.tokenize.push(A),A(D,M)}function p(A,D){if(A.sol()&&A.match("=begin")&&A.eol())return D.tokenize.push(k),"comment";if(A.eatSpace())return null;var M=A.next(),P;if(M=="`"||M=="'"||M=='"')return f(w(M,"string",M=='"'||M=="`"),A,D);if(M=="/")return g(A)?f(w(M,"string-2",!0),A,D):"operator";if(M=="%"){var _="string",C=!0;A.eat("s")?_="atom":A.eat(/[WQ]/)?_="string":A.eat(/[r]/)?_="string-2":A.eat(/[wxq]/)&&(_="string",C=!1);var O=A.eat(/[^\w\s=]/);return O?(a.propertyIsEnumerable(O)&&(O=a[O]),f(w(O,_,C,!0),A,D)):"operator"}else{if(M=="#")return A.skipToEnd(),"comment";if(M=="<"&&(P=A.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return f(T(P[2],P[1]),A,D);if(M=="0")return A.eat("x")?A.eatWhile(/[\da-fA-F]/):A.eat("b")?A.eatWhile(/[01]/):A.eatWhile(/[0-7]/),"number";if(/\d/.test(M))return A.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(M=="?"){for(;A.match(/^\\[CM]-/););return A.eat("\\")?A.eatWhile(/\w/):A.next(),"string"}else{if(M==":")return A.eat("'")?f(w("'","atom",!1),A,D):A.eat('"')?f(w('"',"atom",!0),A,D):A.eat(/[\<\>]/)?(A.eat(/[\<\>]/),"atom"):A.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":A.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(A.eatWhile(/[\w$\xa1-\uffff]/),A.eat(/[\?\!\=]/),"atom"):"operator";if(M=="@"&&A.match(/^@?[a-zA-Z_\xa1-\uffff]/))return A.eat("@"),A.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(M=="$")return A.eat(/[a-zA-Z_]/)?A.eatWhile(/[\w]/):A.eat(/\d/)?A.eat(/\d/):A.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(M))return A.eatWhile(/[\w\xa1-\uffff]/),A.eat(/[\?\!]/),A.eat(":")?"atom":"ident";if(M=="|"&&(D.varList||D.lastTok=="{"||D.lastTok=="do"))return c="|",null;if(/[\(\)\[\]{}\\;]/.test(M))return c=M,null;if(M=="-"&&A.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(M)){var F=A.eatWhile(/[=+\-\/*:\.^%<>~|]/);return M=="."&&!F&&(c="."),"operator"}else return null}}}function g(A){for(var D=A.pos,M=0,P,_=!1,C=!1;(P=A.next())!=null;)if(C)C=!1;else{if("[{(".indexOf(P)>-1)M++;else if("]})".indexOf(P)>-1){if(M--,M<0)break}else if(P=="/"&&M==0){_=!0;break}C=P=="\\"}return A.backUp(A.pos-D),_}function m(A){return A||(A=1),function(D,M){if(D.peek()=="}"){if(A==1)return M.tokenize.pop(),M.tokenize[M.tokenize.length-1](D,M);M.tokenize[M.tokenize.length-1]=m(A-1)}else D.peek()=="{"&&(M.tokenize[M.tokenize.length-1]=m(A+1));return p(D,M)}}function x(){var A=!1;return function(D,M){return A?(M.tokenize.pop(),M.tokenize[M.tokenize.length-1](D,M)):(A=!0,p(D,M))}}function w(A,D,M,P){return function(_,C){var O=!1,F;for(C.context.type==="read-quoted-paused"&&(C.context=C.context.prev,_.eat("}"));(F=_.next())!=null;){if(F==A&&(P||!O)){C.tokenize.pop();break}if(M&&F=="#"&&!O){if(_.eat("{")){A=="}"&&(C.context={prev:C.context,type:"read-quoted-paused"}),C.tokenize.push(m());break}else if(/[@\$]/.test(_.peek())){C.tokenize.push(x());break}}O=!O&&F=="\\"}return D}}function T(A,D){return function(M,P){return D&&M.eatSpace(),M.match(A)?P.tokenize.pop():M.skipToEnd(),"string"}}function k(A,D){return A.sol()&&A.match("=end")&&A.eol()&&D.tokenize.pop(),A.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[p],indented:0,context:{type:"top",indented:-u.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(A,D){c=null,A.sol()&&(D.indented=A.indentation());var M=D.tokenize[D.tokenize.length-1](A,D),P,_=c;if(M=="ident"){var C=A.current();M=D.lastTok=="."?"property":n.propertyIsEnumerable(A.current())?"keyword":/^[A-Z]/.test(C)?"tag":D.lastTok=="def"||D.lastTok=="class"||D.varList?"def":"variable",M=="keyword"&&(_=C,i.propertyIsEnumerable(C)?P="indent":o.propertyIsEnumerable(C)?P="dedent":((C=="if"||C=="unless")&&A.column()==A.indentation()||C=="do"&&D.context.indented<D.indented)&&(P="indent"))}return(c||M&&M!="comment")&&(D.lastTok=_),c=="|"&&(D.varList=!D.varList),P=="indent"||/[\(\[\{]/.test(c)?D.context={prev:D.context,type:c||M,indented:D.indented}:(P=="dedent"||/[\)\]\}]/.test(c))&&D.context.prev&&(D.context=D.context.prev),A.eol()&&(D.continuedLine=c=="\\"||M=="operator"),M},indent:function(A,D){if(A.tokenize[A.tokenize.length-1]!=p)return t.Pass;var M=D&&D.charAt(0),P=A.context,_=P.type==s[M]||P.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(D);return P.indented+(_?0:u.indentUnit)+(A.continuedLine?u.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),t.defineMIME("text/x-ruby","ruby"),t.registerHelper("hintWords","ruby",r)})});var sq=Z((Cne,Ane)=>{(function(t){typeof Cne=="object"&&typeof Ane=="object"?t(Br(),rm()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../css/css"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("sass",function(e){var r=t.mimeModes["text/css"],n=r.propertyKeywords||{},i=r.colorKeywords||{},o=r.valueKeywords||{},a=r.fontProperties||{};function s(C){return new RegExp("^"+C.join("|"))}var u=["true","false","null","auto"],c=new RegExp("^"+u.join("|")),f=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],p=s(f),g=/^::?[a-zA-Z_][\w\-]*/,m;function x(C){return!C.peek()||C.match(/\s+$/,!1)}function w(C,O){var F=C.peek();return F===")"?(C.next(),O.tokenizer=P,"operator"):F==="("?(C.next(),C.eatSpace(),"operator"):F==="'"||F==='"'?(O.tokenizer=k(C.next()),"string"):(O.tokenizer=k(")",!1),"string")}function T(C,O){return function(F,B){return F.sol()&&F.indentation()<=C?(B.tokenizer=P,P(F,B)):(O&&F.skipTo("*/")?(F.next(),F.next(),B.tokenizer=P):F.skipToEnd(),"comment")}}function k(C,O){O==null&&(O=!0);function F(B,V){var S=B.next(),R=B.peek(),q=B.string.charAt(B.pos-2),W=S!=="\\"&&R===C||S===C&&q!=="\\";return W?(S!==C&&O&&B.next(),x(B)&&(V.cursorHalf=0),V.tokenizer=P,"string"):S==="#"&&R==="{"?(V.tokenizer=A(F),B.next(),"operator"):"string"}return F}function A(C){return function(O,F){return O.peek()==="}"?(O.next(),F.tokenizer=C,"operator"):P(O,F)}}function D(C){if(C.indentCount==0){C.indentCount++;var O=C.scopes[0].offset,F=O+e.indentUnit;C.scopes.unshift({offset:F})}}function M(C){C.scopes.length!=1&&C.scopes.shift()}function P(C,O){var F=C.peek();if(C.match("/*"))return O.tokenizer=T(C.indentation(),!0),O.tokenizer(C,O);if(C.match("//"))return O.tokenizer=T(C.indentation(),!1),O.tokenizer(C,O);if(C.match("#{"))return O.tokenizer=A(P),"operator";if(F==='"'||F==="'")return C.next(),O.tokenizer=k(F),"string";if(O.cursorHalf){if(F==="#"&&(C.next(),C.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||C.match(/^-?[0-9\.]+/))return x(C)&&(O.cursorHalf=0),"number";if(C.match(/^(px|em|in)\b/))return x(C)&&(O.cursorHalf=0),"unit";if(C.match(c))return x(C)&&(O.cursorHalf=0),"keyword";if(C.match(/^url/)&&C.peek()==="(")return O.tokenizer=w,x(C)&&(O.cursorHalf=0),"atom";if(F==="$")return C.next(),C.eatWhile(/[\w-]/),x(C)&&(O.cursorHalf=0),"variable-2";if(F==="!")return C.next(),O.cursorHalf=0,C.match(/^[\w]+/)?"keyword":"operator";if(C.match(p))return x(C)&&(O.cursorHalf=0),"operator";if(C.eatWhile(/[\w-]/))return x(C)&&(O.cursorHalf=0),m=C.current().toLowerCase(),o.hasOwnProperty(m)?"atom":i.hasOwnProperty(m)?"keyword":n.hasOwnProperty(m)?(O.prevProp=C.current().toLowerCase(),"property"):"tag";if(x(C))return O.cursorHalf=0,null}else{if(F==="-"&&C.match(/^-\w+-/))return"meta";if(F==="."){if(C.next(),C.match(/^[\w-]+/))return D(O),"qualifier";if(C.peek()==="#")return D(O),"tag"}if(F==="#"){if(C.next(),C.match(/^[\w-]+/))return D(O),"builtin";if(C.peek()==="#")return D(O),"tag"}if(F==="$")return C.next(),C.eatWhile(/[\w-]/),"variable-2";if(C.match(/^-?[0-9\.]+/))return"number";if(C.match(/^(px|em|in)\b/))return"unit";if(C.match(c))return"keyword";if(C.match(/^url/)&&C.peek()==="(")return O.tokenizer=w,"atom";if(F==="="&&C.match(/^=[\w-]+/))return D(O),"meta";if(F==="+"&&C.match(/^\+[\w-]+/))return"variable-3";if(F==="@"&&C.match(/@extend/)&&(C.match(/\s*[\w]/)||M(O)),C.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return D(O),"def";if(F==="@")return C.next(),C.eatWhile(/[\w-]/),"def";if(C.eatWhile(/[\w-]/))if(C.match(/ *: *[\w-\+\$#!\("']/,!1)){m=C.current().toLowerCase();var B=O.prevProp+"-"+m;return n.hasOwnProperty(B)?"property":n.hasOwnProperty(m)?(O.prevProp=m,"property"):a.hasOwnProperty(m)?"property":"tag"}else return C.match(/ *:/,!1)?(D(O),O.cursorHalf=1,O.prevProp=C.current().toLowerCase(),"property"):(C.match(/ *,/,!1)||D(O),"tag");if(F===":")return C.match(g)?"variable-3":(C.next(),O.cursorHalf=1,"operator")}return C.match(p)?"operator":(C.next(),null)}function _(C,O){C.sol()&&(O.indentCount=0);var F=O.tokenizer(C,O),B=C.current();if((B==="@return"||B==="}")&&M(O),F!==null){for(var V=C.pos-B.length,S=V+e.indentUnit*O.indentCount,R=[],q=0;q<O.scopes.length;q++){var W=O.scopes[q];W.offset<=S&&R.push(W)}O.scopes=R}return F}return{startState:function(){return{tokenizer:P,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(C,O){var F=_(C,O);return O.lastToken={style:F,content:C.current()},F},indent:function(C){return C.scopes[0].offset}}},"css"),t.defineMIME("text/x-sass","sass")})});var One=Z((Tne,Dne)=>{(function(t){typeof Tne=="object"&&typeof Dne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("shell",function(){var e={};function r(g,m){for(var x=0;x<m.length;x++)e[m[x]]=g}var n=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],o=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];t.registerHelper("hintWords","shell",n.concat(i,o)),r("atom",n),r("keyword",i),r("builtin",o);function a(g,m){if(g.eatSpace())return null;var x=g.sol(),w=g.next();if(w==="\\")return g.next(),null;if(w==="'"||w==='"'||w==="`")return m.tokens.unshift(s(w,w==="`"?"quote":"string")),p(g,m);if(w==="#")return x&&g.eat("!")?(g.skipToEnd(),"meta"):(g.skipToEnd(),"comment");if(w==="$")return m.tokens.unshift(c),p(g,m);if(w==="+"||w==="=")return"operator";if(w==="-")return g.eat("-"),g.eatWhile(/\w/),"attribute";if(w=="<"){if(g.match("<<"))return"operator";var T=g.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(T)return m.tokens.unshift(f(T[1])),"string-2"}if(/\d/.test(w)&&(g.eatWhile(/\d/),g.eol()||!/\w/.test(g.peek())))return"number";g.eatWhile(/[\w-]/);var k=g.current();return g.peek()==="="&&/\w+/.test(k)?"def":e.hasOwnProperty(k)?e[k]:null}function s(g,m){var x=g=="("?")":g=="{"?"}":g;return function(w,T){for(var k,A=!1;(k=w.next())!=null;){if(k===x&&!A){T.tokens.shift();break}else if(k==="$"&&!A&&g!=="'"&&w.peek()!=x){A=!0,w.backUp(1),T.tokens.unshift(c);break}else{if(!A&&g!==x&&k===g)return T.tokens.unshift(s(g,m)),p(w,T);if(!A&&/['"]/.test(k)&&!/['"]/.test(g)){T.tokens.unshift(u(k,"string")),w.backUp(1);break}}A=!A&&k==="\\"}return m}}function u(g,m){return function(x,w){return w.tokens[0]=s(g,m),x.next(),p(x,w)}}var c=function(g,m){m.tokens.length>1&&g.eat("$");var x=g.next();return/['"({]/.test(x)?(m.tokens[0]=s(x,x=="("?"quote":x=="{"?"def":"string"),p(g,m)):(/\d/.test(x)||g.eatWhile(/\w/),m.tokens.shift(),"def")};function f(g){return function(m,x){return m.sol()&&m.string==g&&x.tokens.shift(),m.skipToEnd(),"string-2"}}function p(g,m){return(m.tokens[0]||a)(g,m)}return{startState:function(){return{tokens:[]}},token:function(g,m){return p(g,m)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),t.defineMIME("text/x-sh","shell"),t.defineMIME("application/x-sh","shell")})});var Lne=Z((Mne,Ine)=>{(function(t){typeof Mne=="object"&&typeof Ine=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("sql",function(u,c){var f=c.client||{},p=c.atoms||{false:!0,true:!0,null:!0},g=c.builtin||a(s),m=c.keywords||a(o),x=c.operatorChars||/^[*+\-%<>!=&|~^\/]/,w=c.support||{},T=c.hooks||{},k=c.dateSQL||{date:!0,time:!0,timestamp:!0},A=c.backslashStringEscapes!==!1,D=c.brackets||/^[\{}\(\)\[\]]/,M=c.punctuation||/^[;.,:]/;function P(B,V){var S=B.next();if(T[S]){var R=T[S](B,V);if(R!==!1)return R}if(w.hexNumber&&(S=="0"&&B.match(/^[xX][0-9a-fA-F]+/)||(S=="x"||S=="X")&&B.match(/^'[0-9a-fA-F]+'/)))return"number";if(w.binaryNumber&&((S=="b"||S=="B")&&B.match(/^'[01]+'/)||S=="0"&&B.match(/^b[01]+/)))return"number";if(S.charCodeAt(0)>47&&S.charCodeAt(0)<58)return B.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),w.decimallessFloat&&B.match(/^\.(?!\.)/),"number";if(S=="?"&&(B.eatSpace()||B.eol()||B.eat(";")))return"variable-3";if(S=="'"||S=='"'&&w.doubleQuote)return V.tokenize=_(S),V.tokenize(B,V);if((w.nCharCast&&(S=="n"||S=="N")||w.charsetCast&&S=="_"&&B.match(/[a-z][a-z0-9]*/i))&&(B.peek()=="'"||B.peek()=='"'))return"keyword";if(w.escapeConstant&&(S=="e"||S=="E")&&(B.peek()=="'"||B.peek()=='"'&&w.doubleQuote))return V.tokenize=function(W,N){return(N.tokenize=_(W.next(),!0))(W,N)},"keyword";if(w.commentSlashSlash&&S=="/"&&B.eat("/"))return B.skipToEnd(),"comment";if(w.commentHash&&S=="#"||S=="-"&&B.eat("-")&&(!w.commentSpaceRequired||B.eat(" ")))return B.skipToEnd(),"comment";if(S=="/"&&B.eat("*"))return V.tokenize=C(1),V.tokenize(B,V);if(S=="."){if(w.zerolessFloat&&B.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(B.match(/^\.+/))return null;if(w.ODBCdotTable&&B.match(/^[\w\d_$#]+/))return"variable-2"}else{if(x.test(S))return B.eatWhile(x),"operator";if(D.test(S))return"bracket";if(M.test(S))return B.eatWhile(M),"punctuation";if(S=="{"&&(B.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||B.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";B.eatWhile(/^[_\w\d]/);var q=B.current().toLowerCase();return k.hasOwnProperty(q)&&(B.match(/^( )+'[^']*'/)||B.match(/^( )+"[^"]*"/))?"number":p.hasOwnProperty(q)?"atom":g.hasOwnProperty(q)?"builtin":m.hasOwnProperty(q)?"keyword":f.hasOwnProperty(q)?"string-2":null}}function _(B,V){return function(S,R){for(var q=!1,W;(W=S.next())!=null;){if(W==B&&!q){R.tokenize=P;break}q=(A||V)&&!q&&W=="\\"}return"string"}}function C(B){return function(V,S){var R=V.match(/^.*?(\/\*|\*\/)/);return R?R[1]=="/*"?S.tokenize=C(B+1):B>1?S.tokenize=C(B-1):S.tokenize=P:V.skipToEnd(),"comment"}}function O(B,V,S){V.context={prev:V.context,indent:B.indentation(),col:B.column(),type:S}}function F(B){B.indent=B.context.indent,B.context=B.context.prev}return{startState:function(){return{tokenize:P,context:null}},token:function(B,V){if(B.sol()&&V.context&&V.context.align==null&&(V.context.align=!1),V.tokenize==P&&B.eatSpace())return null;var S=V.tokenize(B,V);if(S=="comment")return S;V.context&&V.context.align==null&&(V.context.align=!0);var R=B.current();return R=="("?O(B,V,")"):R=="["?O(B,V,"]"):V.context&&V.context.type==R&&F(V),S},indent:function(B,V){var S=B.context;if(!S)return t.Pass;var R=V.charAt(0)==S.type;return S.align?S.col+(R?0:1):S.indent+(R?0:u.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:w.commentSlashSlash?"//":w.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function e(u){for(var c;(c=u.next())!=null;)if(c=="`"&&!u.eat("`"))return"variable-2";return u.backUp(u.current().length-1),u.eatWhile(/\w/)?"variable-2":null}function r(u){for(var c;(c=u.next())!=null;)if(c=='"'&&!u.eat('"'))return"variable-2";return u.backUp(u.current().length-1),u.eatWhile(/\w/)?"variable-2":null}function n(u){return u.eat("@")&&(u.match(/^session\./),u.match(/^local\./),u.match(/^global\./)),u.eat("'")?(u.match(/^.*'/),"variable-2"):u.eat('"')?(u.match(/^.*"/),"variable-2"):u.eat("`")?(u.match(/^.*`/),"variable-2"):u.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function i(u){return u.eat("N")?"atom":u.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var o="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function a(u){for(var c={},f=u.split(" "),p=0;p<f.length;++p)c[f[p]]=!0;return c}var s="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";t.defineMIME("text/x-sql",{name:"sql",keywords:a(o+"begin"),builtin:a(s),atoms:a("false true null unknown"),dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),t.defineMIME("text/x-mssql",{name:"sql",client:a("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:a(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:a("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:a("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:a("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),t.defineMIME("text/x-mysql",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":e,"\\":i}}),t.defineMIME("text/x-mariadb",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":e,"\\":i}}),t.defineMIME("text/x-sqlite",{name:"sql",client:a("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:a(o+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:a("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:a("date time timestamp datetime"),support:a("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':r,"`":e}}),t.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:a("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:a("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:a("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:a("commentSlashSlash decimallessFloat"),hooks:{}}),t.defineMIME("text/x-plsql",{name:"sql",client:a("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:a("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:a("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:a("date time timestamp"),support:a("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),t.defineMIME("text/x-hive",{name:"sql",keywords:a("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:a("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),t.defineMIME("text/x-pgsql",{name:"sql",client:a("source"),keywords:a(o+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),t.defineMIME("text/x-gql",{name:"sql",keywords:a("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:a("false true"),builtin:a("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),t.defineMIME("text/x-gpsql",{name:"sql",client:a("source"),keywords:a("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),t.defineMIME("text/x-sparksql",{name:"sql",keywords:a("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:a("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:a("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote zerolessFloat")}),t.defineMIME("text/x-esper",{name:"sql",client:a("source"),keywords:a("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:a("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("time"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber")})})});var q1=Z((Pne,Rne)=>{(function(t){typeof Pne=="object"&&typeof Rne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.overlayMode=function(e,r,n){return{startState:function(){return{base:t.startState(e),overlay:t.startState(r),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(r,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(i,o){return(i!=o.streamSeen||Math.min(o.basePos,o.overlayPos)<i.start)&&(o.streamSeen=i,o.basePos=o.overlayPos=i.start),i.start==o.basePos&&(o.baseCur=e.token(i,o.base),o.basePos=i.pos),i.start==o.overlayPos&&(i.pos=i.start,o.overlayCur=r.token(i,o.overlay),o.overlayPos=i.pos),i.pos=Math.min(o.basePos,o.overlayPos),o.overlayCur==null?o.baseCur:o.baseCur!=null&&o.overlay.combineTokens||n&&o.overlay.combineTokens==null?o.baseCur+" "+o.overlayCur:o.overlayCur},indent:e.indent&&function(i,o,a){return e.indent(i.base,o,a)},electricChars:e.electricChars,innerMode:function(i){return{state:i.base,mode:e}},blankLine:function(i){var o,a;return e.blankLine&&(o=e.blankLine(i.base)),r.blankLine&&(a=r.blankLine(i.overlay)),a==null?o:n&&o!=null?o+" "+a:a}}}})});var Nne=Z((qne,Fne)=>{(function(t){typeof qne=="object"&&typeof Fne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("coffeescript",function(e,r){var n="error";function i(O){return new RegExp("^(("+O.join(")|(")+"))\\b")}var o=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,s=/^[_A-Za-z$][_A-Za-z$0-9]*/,u=/^@[_A-Za-z$][_A-Za-z$0-9]*/,c=i(["and","or","not","is","isnt","in","instanceof","typeof"]),f=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],p=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],g=i(f.concat(p));f=i(f);var m=/^('{3}|\"{3}|['\"])/,x=/^(\/{3}|\/)/,w=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],T=i(w);function k(O,F){if(O.sol()){F.scope.align===null&&(F.scope.align=!1);var B=F.scope.offset;if(O.eatSpace()){var V=O.indentation();return V>B&&F.scope.type=="coffee"?"indent":V<B?"dedent":null}else B>0&&P(O,F)}if(O.eatSpace())return null;var S=O.peek();if(O.match("####"))return O.skipToEnd(),"comment";if(O.match("###"))return F.tokenize=D,F.tokenize(O,F);if(S==="#")return O.skipToEnd(),"comment";if(O.match(/^-?[0-9\.]/,!1)){var R=!1;if(O.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(R=!0),O.match(/^-?\d+\.\d*/)&&(R=!0),O.match(/^-?\.\d+/)&&(R=!0),R)return O.peek()=="."&&O.backUp(1),"number";var q=!1;if(O.match(/^-?0x[0-9a-f]+/i)&&(q=!0),O.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(q=!0),O.match(/^-?0(?![\dx])/i)&&(q=!0),q)return"number"}if(O.match(m))return F.tokenize=A(O.current(),!1,"string"),F.tokenize(O,F);if(O.match(x)){if(O.current()!="/"||O.match(/^.*\//,!1))return F.tokenize=A(O.current(),!0,"string-2"),F.tokenize(O,F);O.backUp(1)}return O.match(o)||O.match(c)?"operator":O.match(a)?"punctuation":O.match(T)?"atom":O.match(u)||F.prop&&O.match(s)?"property":O.match(g)?"keyword":O.match(s)?"variable":(O.next(),n)}function A(O,F,B){return function(V,S){for(;!V.eol();)if(V.eatWhile(/[^'"\/\\]/),V.eat("\\")){if(V.next(),F&&V.eol())return B}else{if(V.match(O))return S.tokenize=k,B;V.eat(/['"\/]/)}return F&&(r.singleLineStringErrors?B=n:S.tokenize=k),B}}function D(O,F){for(;!O.eol();){if(O.eatWhile(/[^#]/),O.match("###")){F.tokenize=k;break}O.eatWhile("#")}return"comment"}function M(O,F,B){B=B||"coffee";for(var V=0,S=!1,R=null,q=F.scope;q;q=q.prev)if(q.type==="coffee"||q.type=="}"){V=q.offset+e.indentUnit;break}B!=="coffee"?(S=null,R=O.column()+O.current().length):F.scope.align&&(F.scope.align=!1),F.scope={offset:V,type:B,prev:F.scope,align:S,alignOffset:R}}function P(O,F){if(!!F.scope.prev)if(F.scope.type==="coffee"){for(var B=O.indentation(),V=!1,S=F.scope;S;S=S.prev)if(B===S.offset){V=!0;break}if(!V)return!0;for(;F.scope.prev&&F.scope.offset!==B;)F.scope=F.scope.prev;return!1}else return F.scope=F.scope.prev,!1}function _(O,F){var B=F.tokenize(O,F),V=O.current();V==="return"&&(F.dedent=!0),((V==="->"||V==="=>")&&O.eol()||B==="indent")&&M(O,F);var S="[({".indexOf(V);if(S!==-1&&M(O,F,"])}".slice(S,S+1)),f.exec(V)&&M(O,F),V=="then"&&P(O,F),B==="dedent"&&P(O,F))return n;if(S="])}".indexOf(V),S!==-1){for(;F.scope.type=="coffee"&&F.scope.prev;)F.scope=F.scope.prev;F.scope.type==V&&(F.scope=F.scope.prev)}return F.dedent&&O.eol()&&(F.scope.type=="coffee"&&F.scope.prev&&(F.scope=F.scope.prev),F.dedent=!1),B}var C={startState:function(O){return{tokenize:k,scope:{offset:O||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(O,F){var B=F.scope.align===null&&F.scope;B&&O.sol()&&(B.align=!1);var V=_(O,F);return V&&V!="comment"&&(B&&(B.align=!0),F.prop=V=="punctuation"&&O.current()=="."),V},indent:function(O,F){if(O.tokenize!=k)return 0;var B=O.scope,V=F&&"])}".indexOf(F.charAt(0))>-1;if(V)for(;B.type=="coffee"&&B.prev;)B=B.prev;var S=V&&B.type===F.charAt(0);return B.align?B.alignOffset-(S?1:0):(S?B.prev:B).offset},lineComment:"#",fold:"indent"};return C}),t.defineMIME("application/vnd.coffeescript","coffeescript"),t.defineMIME("text/x-coffeescript","coffeescript"),t.defineMIME("text/coffeescript","coffeescript")})});var zne=Z((Bne,jne)=>{(function(t){typeof Bne=="object"&&typeof jne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("stylus",function(A){for(var D=A.indentUnit,M="",P=T(e),_=/^(a|b|i|s|col|em)$/i,C=T(o),O=T(a),F=T(c),B=T(u),V=T(r),S=w(r),R=T(i),q=T(n),W=T(s),N=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,z=w(f),X=T(p),oe=new RegExp(/^\-(moz|ms|o|webkit)-/i),G=T(g),K="",ve={},Se,_e,Ne,Le;M.length<D;)M+=" ";function it(ye,xe){if(K=ye.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),xe.context.line.firstWord=K?K[0].replace(/^\s*/,""):"",xe.context.line.indent=ye.indentation(),Se=ye.peek(),ye.match("//"))return ye.skipToEnd(),["comment","comment"];if(ye.match("/*"))return xe.tokenize=ze,ze(ye,xe);if(Se=='"'||Se=="'")return ye.next(),xe.tokenize=tt(Se),xe.tokenize(ye,xe);if(Se=="@")return ye.next(),ye.eatWhile(/[\w\\-]/),["def",ye.current()];if(Se=="#"){if(ye.next(),ye.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(ye.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return ye.match(oe)?["meta","vendor-prefixes"]:ye.match(/^-?[0-9]?\.?[0-9]/)?(ye.eatWhile(/[a-z%]/i),["number","unit"]):Se=="!"?(ye.next(),[ye.match(/^(important|optional)/i)?"keyword":"operator","important"]):Se=="."&&ye.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:ye.match(S)?(ye.peek()=="("&&(xe.tokenize=wt),["property","word"]):ye.match(/^[a-z][\w-]*\(/i)?(ye.backUp(1),["keyword","mixin"]):ye.match(/^(\+|-)[a-z][\w-]*\(/i)?(ye.backUp(1),["keyword","block-mixin"]):ye.string.match(/^\s*&/)&&ye.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:ye.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(ye.backUp(1),["variable-3","reference"]):ye.match(/^&{1}\s*$/)?["variable-3","reference"]:ye.match(z)?["operator","operator"]:ye.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?ye.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!J(ye.current())?(ye.match(/\./),["variable-2","variable-name"]):["variable-2","word"]:ye.match(N)?["operator",ye.current()]:/[:;,{}\[\]\(\)]/.test(Se)?(ye.next(),[null,Se]):(ye.next(),[null,null])}function ze(ye,xe){for(var We=!1,yt;(yt=ye.next())!=null;){if(We&&yt=="/"){xe.tokenize=null;break}We=yt=="*"}return["comment","comment"]}function tt(ye){return function(xe,We){for(var yt=!1,Gr;(Gr=xe.next())!=null;){if(Gr==ye&&!yt){ye==")"&&xe.backUp(1);break}yt=!yt&&Gr=="\\"}return(Gr==ye||!yt&&ye!=")")&&(We.tokenize=null),["string","string"]}}function wt(ye,xe){return ye.next(),ye.match(/\s*[\"\')]/,!1)?xe.tokenize=null:xe.tokenize=tt(")"),[null,"("]}function At(ye,xe,We,yt){this.type=ye,this.indent=xe,this.prev=We,this.line=yt||{firstWord:"",indent:0}}function Ve(ye,xe,We,yt){return yt=yt>=0?yt:D,ye.context=new At(We,xe.indentation()+yt,ye.context),We}function Oe(ye,xe){var We=ye.context.indent-D;return xe=xe||!1,ye.context=ye.context.prev,xe&&(ye.context.indent=We),ye.context.type}function Me(ye,xe,We){return ve[We.context.type](ye,xe,We)}function he(ye,xe,We,yt){for(var Gr=yt||1;Gr>0;Gr--)We.context=We.context.prev;return Me(ye,xe,We)}function J(ye){return ye.toLowerCase()in P}function re(ye){return ye=ye.toLowerCase(),ye in C||ye in W}function fe(ye){return ye.toLowerCase()in X}function ht(ye){return ye.toLowerCase().match(oe)}function ke(ye){var xe=ye.toLowerCase(),We="variable-2";return J(ye)?We="tag":fe(ye)?We="block-keyword":re(ye)?We="property":xe in F||xe in G?We="atom":xe=="return"||xe in B?We="keyword":ye.match(/^[A-Z]/)&&(We="string"),We}function $e(ye,xe){return pt(xe)&&(ye=="{"||ye=="]"||ye=="hash"||ye=="qualifier")||ye=="block-mixin"}function Fe(ye,xe){return ye=="{"&&xe.match(/^\s*\$?[\w-]+/i,!1)}function It(ye,xe){return ye==":"&&xe.match(/^[a-z-]+/,!1)}function ut(ye){return ye.sol()||ye.string.match(new RegExp("^\\s*"+k(ye.current())))}function pt(ye){return ye.eol()||ye.match(/^\s*$/,!1)}function st(ye){var xe=/^\s*[-_]*[a-z0-9]+[\w-]*/i,We=typeof ye=="string"?ye.match(xe):ye.string.match(xe);return We?We[0].replace(/^\s*/,""):""}return ve.block=function(ye,xe,We){if(ye=="comment"&&ut(xe)||ye==","&&pt(xe)||ye=="mixin")return Ve(We,xe,"block",0);if(Fe(ye,xe))return Ve(We,xe,"interpolation");if(pt(xe)&&ye=="]"&&!/^\s*(\.|#|:|\[|\*|&)/.test(xe.string)&&!J(st(xe)))return Ve(We,xe,"block",0);if($e(ye,xe))return Ve(We,xe,"block");if(ye=="}"&&pt(xe))return Ve(We,xe,"block",0);if(ye=="variable-name")return xe.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||fe(st(xe))?Ve(We,xe,"variableName"):Ve(We,xe,"variableName",0);if(ye=="=")return!pt(xe)&&!fe(st(xe))?Ve(We,xe,"block",0):Ve(We,xe,"block");if(ye=="*"&&(pt(xe)||xe.match(/\s*(,|\.|#|\[|:|{)/,!1)))return Le="tag",Ve(We,xe,"block");if(It(ye,xe))return Ve(We,xe,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(ye))return Ve(We,xe,pt(xe)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(ye))return Ve(We,xe,"keyframes");if(/@extends?/.test(ye))return Ve(We,xe,"extend",0);if(ye&&ye.charAt(0)=="@")return xe.indentation()>0&&re(xe.current().slice(1))?(Le="variable-2","block"):/(@import|@require|@charset)/.test(ye)?Ve(We,xe,"block",0):Ve(We,xe,"block");if(ye=="reference"&&pt(xe))return Ve(We,xe,"block");if(ye=="(")return Ve(We,xe,"parens");if(ye=="vendor-prefixes")return Ve(We,xe,"vendorPrefixes");if(ye=="word"){var yt=xe.current();if(Le=ke(yt),Le=="property")return ut(xe)?Ve(We,xe,"block",0):(Le="atom","block");if(Le=="tag"){if(/embed|menu|pre|progress|sub|table/.test(yt)&&re(st(xe))||xe.string.match(new RegExp("\\[\\s*"+yt+"|"+yt+"\\s*\\]")))return Le="atom","block";if(_.test(yt)&&(ut(xe)&&xe.string.match(/=/)||!ut(xe)&&!xe.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!J(st(xe))))return Le="variable-2",fe(st(xe))?"block":Ve(We,xe,"block",0);if(pt(xe))return Ve(We,xe,"block")}if(Le=="block-keyword")return Le="keyword",xe.current(/(if|unless)/)&&!ut(xe)?"block":Ve(We,xe,"block");if(yt=="return")return Ve(We,xe,"block",0);if(Le=="variable-2"&&xe.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return Ve(We,xe,"block")}return We.context.type},ve.parens=function(ye,xe,We){if(ye=="(")return Ve(We,xe,"parens");if(ye==")")return We.context.prev.type=="parens"?Oe(We):xe.string.match(/^[a-z][\w-]*\(/i)&&pt(xe)||fe(st(xe))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(st(xe))||!xe.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&J(st(xe))?Ve(We,xe,"block"):xe.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||xe.string.match(/^\s*(\(|\)|[0-9])/)||xe.string.match(/^\s+[a-z][\w-]*\(/i)||xe.string.match(/^\s+[\$-]?[a-z]/i)?Ve(We,xe,"block",0):pt(xe)?Ve(We,xe,"block"):Ve(We,xe,"block",0);if(ye&&ye.charAt(0)=="@"&&re(xe.current().slice(1))&&(Le="variable-2"),ye=="word"){var yt=xe.current();Le=ke(yt),Le=="tag"&&_.test(yt)&&(Le="variable-2"),(Le=="property"||yt=="to")&&(Le="atom")}return ye=="variable-name"?Ve(We,xe,"variableName"):It(ye,xe)?Ve(We,xe,"pseudo"):We.context.type},ve.vendorPrefixes=function(ye,xe,We){return ye=="word"?(Le="property",Ve(We,xe,"block",0)):Oe(We)},ve.pseudo=function(ye,xe,We){return re(st(xe.string))?he(ye,xe,We):(xe.match(/^[a-z-]+/),Le="variable-3",pt(xe)?Ve(We,xe,"block"):Oe(We))},ve.atBlock=function(ye,xe,We){if(ye=="(")return Ve(We,xe,"atBlock_parens");if($e(ye,xe))return Ve(We,xe,"block");if(Fe(ye,xe))return Ve(We,xe,"interpolation");if(ye=="word"){var yt=xe.current().toLowerCase();if(/^(only|not|and|or)$/.test(yt)?Le="keyword":V.hasOwnProperty(yt)?Le="tag":q.hasOwnProperty(yt)?Le="attribute":R.hasOwnProperty(yt)?Le="property":O.hasOwnProperty(yt)?Le="string-2":Le=ke(xe.current()),Le=="tag"&&pt(xe))return Ve(We,xe,"block")}return ye=="operator"&&/^(not|and|or)$/.test(xe.current())&&(Le="keyword"),We.context.type},ve.atBlock_parens=function(ye,xe,We){if(ye=="{"||ye=="}")return We.context.type;if(ye==")")return pt(xe)?Ve(We,xe,"block"):Ve(We,xe,"atBlock");if(ye=="word"){var yt=xe.current().toLowerCase();return Le=ke(yt),/^(max|min)/.test(yt)&&(Le="property"),Le=="tag"&&(_.test(yt)?Le="variable-2":Le="atom"),We.context.type}return ve.atBlock(ye,xe,We)},ve.keyframes=function(ye,xe,We){return xe.indentation()=="0"&&(ye=="}"&&ut(xe)||ye=="]"||ye=="hash"||ye=="qualifier"||J(xe.current()))?he(ye,xe,We):ye=="{"?Ve(We,xe,"keyframes"):ye=="}"?ut(xe)?Oe(We,!0):Ve(We,xe,"keyframes"):ye=="unit"&&/^[0-9]+\%$/.test(xe.current())?Ve(We,xe,"keyframes"):ye=="word"&&(Le=ke(xe.current()),Le=="block-keyword")?(Le="keyword",Ve(We,xe,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(ye)?Ve(We,xe,pt(xe)?"block":"atBlock"):ye=="mixin"?Ve(We,xe,"block",0):We.context.type},ve.interpolation=function(ye,xe,We){return ye=="{"&&Oe(We)&&Ve(We,xe,"block"),ye=="}"?xe.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||xe.string.match(/^\s*[a-z]/i)&&J(st(xe))?Ve(We,xe,"block"):!xe.string.match(/^(\{|\s*\&)/)||xe.match(/\s*[\w-]/,!1)?Ve(We,xe,"block",0):Ve(We,xe,"block"):ye=="variable-name"?Ve(We,xe,"variableName",0):(ye=="word"&&(Le=ke(xe.current()),Le=="tag"&&(Le="atom")),We.context.type)},ve.extend=function(ye,xe,We){return ye=="["||ye=="="?"extend":ye=="]"?Oe(We):ye=="word"?(Le=ke(xe.current()),"extend"):Oe(We)},ve.variableName=function(ye,xe,We){return ye=="string"||ye=="["||ye=="]"||xe.current().match(/^(\.|\$)/)?(xe.current().match(/^\.[\w-]+/i)&&(Le="variable-2"),"variableName"):he(ye,xe,We)},{startState:function(ye){return{tokenize:null,state:"block",context:new At("block",ye||0,null)}},token:function(ye,xe){return!xe.tokenize&&ye.eatSpace()?null:(_e=(xe.tokenize||it)(ye,xe),_e&&typeof _e=="object"&&(Ne=_e[1],_e=_e[0]),Le=_e,xe.state=ve[xe.state](Ne,ye,xe),Le)},indent:function(ye,xe,We){var yt=ye.context,Gr=xe&&xe.charAt(0),mt=yt.indent,er=st(xe),Ie=We.match(/^\s*/)[0].replace(/\t/g,M).length,Ze=ye.context.prev?ye.context.prev.line.firstWord:"",dt=ye.context.prev?ye.context.prev.line.indent:Ie;return yt.prev&&(Gr=="}"&&(yt.type=="block"||yt.type=="atBlock"||yt.type=="keyframes")||Gr==")"&&(yt.type=="parens"||yt.type=="atBlock_parens")||Gr=="{"&&yt.type=="at")?mt=yt.indent-D:/(\})/.test(Gr)||(/@|\$|\d/.test(Gr)||/^\{/.test(xe)||/^\s*\/(\/|\*)/.test(xe)||/^\s*\/\*/.test(Ze)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(xe)||/^(\+|-)?[a-z][\w-]*\(/i.test(xe)||/^return/.test(xe)||fe(er)?mt=Ie:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(Gr)||J(er)?/\,\s*$/.test(Ze)?mt=dt:/^\s+/.test(We)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(Ze)||J(Ze))?mt=Ie<=dt?dt:dt+D:mt=Ie:!/,\s*$/.test(We)&&(ht(er)||re(er))&&(fe(Ze)?mt=Ie<=dt?dt:dt+D:/^\{/.test(Ze)?mt=Ie<=dt?Ie:dt+D:ht(Ze)||re(Ze)?mt=Ie>=dt?dt:Ie:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(Ze)||/=\s*$/.test(Ze)||J(Ze)||/^\$[\w-\.\[\]\'\"]/.test(Ze)?mt=dt+D:mt=Ie)),mt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}});var e=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],r=["domain","regexp","url-prefix","url"],n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],o=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],u=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],c=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],f=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],p=["for","if","else","unless","from","to"],g=["null","true","false","href","title","type","not-allowed","readonly","disabled"],m=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"],x=e.concat(r,n,i,o,a,u,c,s,f,p,g,m);function w(A){return A=A.sort(function(D,M){return M>D}),new RegExp("^(("+A.join(")|(")+"))\\b")}function T(A){for(var D={},M=0;M<A.length;++M)D[A[M]]=!0;return D}function k(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}t.registerHelper("hintWords","stylus",x),t.defineMIME("text/x-styl","stylus")})});var Une=Z((Hne,Wne)=>{(function(t){typeof Hne=="object"&&typeof Wne=="object"?t(Br(),o0(),rm(),P1()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../javascript/javascript","../css/css","../htmlmixed/htmlmixed"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("pug",function(e){var r="keyword",n="meta",i="builtin",o="qualifier",a={"{":"}","(":")","[":"]"},s=t.getMode(e,"javascript");function u(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=t.startState(s),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}u.prototype.copy=function(){var J=new u;return J.javaScriptLine=this.javaScriptLine,J.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,J.javaScriptArguments=this.javaScriptArguments,J.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,J.isInterpolating=this.isInterpolating,J.interpolationNesting=this.interpolationNesting,J.jsState=t.copyState(s,this.jsState),J.innerMode=this.innerMode,this.innerMode&&this.innerState&&(J.innerState=t.copyState(this.innerMode,this.innerState)),J.restOfLine=this.restOfLine,J.isIncludeFiltered=this.isIncludeFiltered,J.isEach=this.isEach,J.lastTag=this.lastTag,J.scriptType=this.scriptType,J.isAttrs=this.isAttrs,J.attrsNest=this.attrsNest.slice(),J.inAttributeName=this.inAttributeName,J.attributeIsType=this.attributeIsType,J.attrValue=this.attrValue,J.indentOf=this.indentOf,J.indentToken=this.indentToken,J.innerModeForLine=this.innerModeForLine,J};function c(J,re){if(J.sol()&&(re.javaScriptLine=!1,re.javaScriptLineExcludesColon=!1),re.javaScriptLine){if(re.javaScriptLineExcludesColon&&J.peek()===":"){re.javaScriptLine=!1,re.javaScriptLineExcludesColon=!1;return}var fe=s.token(J,re.jsState);return J.eol()&&(re.javaScriptLine=!1),fe||!0}}function f(J,re){if(re.javaScriptArguments){if(re.javaScriptArgumentsDepth===0&&J.peek()!=="("){re.javaScriptArguments=!1;return}if(J.peek()==="("?re.javaScriptArgumentsDepth++:J.peek()===")"&&re.javaScriptArgumentsDepth--,re.javaScriptArgumentsDepth===0){re.javaScriptArguments=!1;return}var fe=s.token(J,re.jsState);return fe||!0}}function p(J){if(J.match(/^yield\b/))return"keyword"}function g(J){if(J.match(/^(?:doctype) *([^\n]+)?/))return n}function m(J,re){if(J.match("#{"))return re.isInterpolating=!0,re.interpolationNesting=0,"punctuation"}function x(J,re){if(re.isInterpolating){if(J.peek()==="}"){if(re.interpolationNesting--,re.interpolationNesting<0)return J.next(),re.isInterpolating=!1,"punctuation"}else J.peek()==="{"&&re.interpolationNesting++;return s.token(J,re.jsState)||!0}}function w(J,re){if(J.match(/^case\b/))return re.javaScriptLine=!0,r}function T(J,re){if(J.match(/^when\b/))return re.javaScriptLine=!0,re.javaScriptLineExcludesColon=!0,r}function k(J){if(J.match(/^default\b/))return r}function A(J,re){if(J.match(/^extends?\b/))return re.restOfLine="string",r}function D(J,re){if(J.match(/^append\b/))return re.restOfLine="variable",r}function M(J,re){if(J.match(/^prepend\b/))return re.restOfLine="variable",r}function P(J,re){if(J.match(/^block\b *(?:(prepend|append)\b)?/))return re.restOfLine="variable",r}function _(J,re){if(J.match(/^include\b/))return re.restOfLine="string",r}function C(J,re){if(J.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&J.match("include"))return re.isIncludeFiltered=!0,r}function O(J,re){if(re.isIncludeFiltered){var fe=z(J,re);return re.isIncludeFiltered=!1,re.restOfLine="string",fe}}function F(J,re){if(J.match(/^mixin\b/))return re.javaScriptLine=!0,r}function B(J,re){if(J.match(/^\+([-\w]+)/))return J.match(/^\( *[-\w]+ *=/,!1)||(re.javaScriptArguments=!0,re.javaScriptArgumentsDepth=0),"variable";if(J.match(/^\+#{/,!1))return J.next(),re.mixinCallAfter=!0,m(J,re)}function V(J,re){if(re.mixinCallAfter)return re.mixinCallAfter=!1,J.match(/^\( *[-\w]+ *=/,!1)||(re.javaScriptArguments=!0,re.javaScriptArgumentsDepth=0),!0}function S(J,re){if(J.match(/^(if|unless|else if|else)\b/))return re.javaScriptLine=!0,r}function R(J,re){if(J.match(/^(- *)?(each|for)\b/))return re.isEach=!0,r}function q(J,re){if(re.isEach){if(J.match(/^ in\b/))return re.javaScriptLine=!0,re.isEach=!1,r;if(J.sol()||J.eol())re.isEach=!1;else if(J.next()){for(;!J.match(/^ in\b/,!1)&&J.next(););return"variable"}}}function W(J,re){if(J.match(/^while\b/))return re.javaScriptLine=!0,r}function N(J,re){var fe;if(fe=J.match(/^(\w(?:[-:\w]*\w)?)\/?/))return re.lastTag=fe[1].toLowerCase(),re.lastTag==="script"&&(re.scriptType="application/javascript"),"tag"}function z(J,re){if(J.match(/^:([\w\-]+)/)){var fe;return e&&e.innerModes&&(fe=e.innerModes(J.current().substring(1))),fe||(fe=J.current().substring(1)),typeof fe=="string"&&(fe=t.getMode(e,fe)),wt(J,re,fe),"atom"}}function X(J,re){if(J.match(/^(!?=|-)/))return re.javaScriptLine=!0,"punctuation"}function oe(J){if(J.match(/^#([\w-]+)/))return i}function G(J){if(J.match(/^\.([\w-]+)/))return o}function K(J,re){if(J.peek()=="(")return J.next(),re.isAttrs=!0,re.attrsNest=[],re.inAttributeName=!0,re.attrValue="",re.attributeIsType=!1,"punctuation"}function ve(J,re){if(re.isAttrs){if(a[J.peek()]&&re.attrsNest.push(a[J.peek()]),re.attrsNest[re.attrsNest.length-1]===J.peek())re.attrsNest.pop();else if(J.eat(")"))return re.isAttrs=!1,"punctuation";if(re.inAttributeName&&J.match(/^[^=,\)!]+/))return(J.peek()==="="||J.peek()==="!")&&(re.inAttributeName=!1,re.jsState=t.startState(s),re.lastTag==="script"&&J.current().trim().toLowerCase()==="type"?re.attributeIsType=!0:re.attributeIsType=!1),"attribute";var fe=s.token(J,re.jsState);if(re.attributeIsType&&fe==="string"&&(re.scriptType=J.current().toString()),re.attrsNest.length===0&&(fe==="string"||fe==="variable"||fe==="keyword"))try{return Function("","var x "+re.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),re.inAttributeName=!0,re.attrValue="",J.backUp(J.current().length),ve(J,re)}catch{}return re.attrValue+=J.current(),fe||!0}}function Se(J,re){if(J.match(/^&attributes\b/))return re.javaScriptArguments=!0,re.javaScriptArgumentsDepth=0,"keyword"}function _e(J){if(J.sol()&&J.eatSpace())return"indent"}function Ne(J,re){if(J.match(/^ *\/\/(-)?([^\n]*)/))return re.indentOf=J.indentation(),re.indentToken="comment","comment"}function Le(J){if(J.match(/^: */))return"colon"}function it(J,re){if(J.match(/^(?:\| ?| )([^\n]+)/))return"string";if(J.match(/^(<[^\n]*)/,!1))return wt(J,re,"htmlmixed"),re.innerModeForLine=!0,At(J,re,!0)}function ze(J,re){if(J.eat(".")){var fe=null;return re.lastTag==="script"&&re.scriptType.toLowerCase().indexOf("javascript")!=-1?fe=re.scriptType.toLowerCase().replace(/"|'/g,""):re.lastTag==="style"&&(fe="css"),wt(J,re,fe),"dot"}}function tt(J){return J.next(),null}function wt(J,re,fe){fe=t.mimeModes[fe]||fe,fe=e.innerModes&&e.innerModes(fe)||fe,fe=t.mimeModes[fe]||fe,fe=t.getMode(e,fe),re.indentOf=J.indentation(),fe&&fe.name!=="null"?re.innerMode=fe:re.indentToken="string"}function At(J,re,fe){if(J.indentation()>re.indentOf||re.innerModeForLine&&!J.sol()||fe)return re.innerMode?(re.innerState||(re.innerState=re.innerMode.startState?t.startState(re.innerMode,J.indentation()):{}),J.hideFirstChars(re.indentOf+2,function(){return re.innerMode.token(J,re.innerState)||!0})):(J.skipToEnd(),re.indentToken);J.sol()&&(re.indentOf=1/0,re.indentToken=null,re.innerMode=null,re.innerState=null)}function Ve(J,re){if(J.sol()&&(re.restOfLine=""),re.restOfLine){J.skipToEnd();var fe=re.restOfLine;return re.restOfLine="",fe}}function Oe(){return new u}function Me(J){return J.copy()}function he(J,re){var fe=At(J,re)||Ve(J,re)||x(J,re)||O(J,re)||q(J,re)||ve(J,re)||c(J,re)||f(J,re)||V(J,re)||p(J)||g(J)||m(J,re)||w(J,re)||T(J,re)||k(J)||A(J,re)||D(J,re)||M(J,re)||P(J,re)||_(J,re)||C(J,re)||F(J,re)||B(J,re)||S(J,re)||R(J,re)||W(J,re)||N(J,re)||z(J,re)||X(J,re)||oe(J)||G(J)||K(J,re)||Se(J,re)||_e(J)||it(J,re)||Ne(J,re)||Le(J)||ze(J,re)||tt(J);return fe===!0?null:fe}return{startState:Oe,copyState:Me,token:he}},"javascript","css","htmlmixed"),t.defineMIME("text/x-pug","pug"),t.defineMIME("text/x-jade","pug")})});var Yne=Z((Vne,$ne)=>{(function(t){typeof Vne=="object"&&typeof $ne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.multiplexingMode=function(e){var r=Array.prototype.slice.call(arguments,1);function n(i,o,a,s){if(typeof o=="string"){var u=i.indexOf(o,a);return s&&u>-1?u+o.length:u}var c=o.exec(a?i.slice(a):i);return c?c.index+a+(s?c[0].length:0):-1}return{startState:function(){return{outer:t.startState(e),innerActive:null,inner:null}},copyState:function(i){return{outer:t.copyState(e,i.outer),innerActive:i.innerActive,inner:i.innerActive&&t.copyState(i.innerActive.mode,i.inner)}},token:function(i,o){if(o.innerActive){var x=o.innerActive,s=i.string;if(!x.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);var f=x.close?n(s,x.close,i.pos,x.parseDelimiters):-1;if(f==i.pos&&!x.parseDelimiters)return i.match(x.close),o.innerActive=o.inner=null,x.delimStyle&&x.delimStyle+" "+x.delimStyle+"-close";f>-1&&(i.string=s.slice(0,f));var w=x.mode.token(i,o.inner);return f>-1&&(i.string=s),f==i.pos&&x.parseDelimiters&&(o.innerActive=o.inner=null),x.innerStyle&&(w?w=w+" "+x.innerStyle:w=x.innerStyle),w}else{for(var a=1/0,s=i.string,u=0;u<r.length;++u){var c=r[u],f=n(s,c.open,i.pos);if(f==i.pos){c.parseDelimiters||i.match(c.open),o.innerActive=c;var p=0;if(e.indent){var g=e.indent(o.outer,"","");g!==t.Pass&&(p=g)}return o.inner=t.startState(c.mode,p),c.delimStyle&&c.delimStyle+" "+c.delimStyle+"-open"}else f!=-1&&f<a&&(a=f)}a!=1/0&&(i.string=s.slice(0,a));var m=e.token(i,o.outer);return a!=1/0&&(i.string=s),m}},indent:function(i,o,a){var s=i.innerActive?i.innerActive.mode:e;return s.indent?s.indent(i.innerActive?i.inner:i.outer,o,a):t.Pass},blankLine:function(i){var o=i.innerActive?i.innerActive.mode:e;if(o.blankLine&&o.blankLine(i.innerActive?i.inner:i.outer),i.innerActive)i.innerActive.close===`
65
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var pe;u&&(pe=window.scrollY),v.input.focus(),u&&window.scrollTo(null,pe),v.input.reset(),y.somethingSelected()||(E.value=d.prevInput=" "),d.contextMenuPending=Ce,v.selForContextMenu=y.doc.sel,clearTimeout(v.detectingSelectAll);function Te(){if(E.selectionStart!=null){var Ke=y.somethingSelected(),ot="\u200B"+(Ke?E.value:"");E.value="\u21DA",E.value=ot,d.prevInput=Ke?"":"\u200B",E.selectionStart=1,E.selectionEnd=ot.length,v.selForContextMenu=y.doc.sel}}function Ce(){if(d.contextMenuPending==Ce&&(d.contextMenuPending=!1,d.wrapper.style.cssText=ee,E.style.cssText=Q,a&&s<9&&v.scrollbars.setScrollTop(v.scroller.scrollTop=j),E.selectionStart!=null)){(!a||a&&s<9)&&Te();var Ke=0,ot=function(){v.selForContextMenu==y.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&d.prevInput=="\u200B"?vn(y,mx)(y):Ke++<10?v.detectingSelectAll=setTimeout(ot,500):(v.selForContextMenu=null,v.input.reset())};v.detectingSelectAll=setTimeout(ot,200)}}if(a&&s>=9&&Te(),C){de(l);var je=function(){Ie(window,"mouseup",je),setTimeout(Ce,20)};mt(window,"mouseup",je)}else setTimeout(Ce,50)},_n.prototype.readOnlyChanged=function(l){l||this.reset(),this.textarea.disabled=l=="nocursor",this.textarea.readOnly=!!l},_n.prototype.setUneditable=function(){},_n.prototype.needsContentAttribute=!1;function hv(l,d){if(d=d?K(d):{},d.value=l.value,!d.tabindex&&l.tabIndex&&(d.tabindex=l.tabIndex),!d.placeholder&&l.placeholder&&(d.placeholder=l.placeholder),d.autofocus==null){var y=N();d.autofocus=y==l||l.getAttribute("autofocus")!=null&&y==document.body}function v(){l.value=Y.getValue()}var E;if(l.form&&(mt(l.form,"submit",v),!d.leaveSubmitMethodAlone)){var L=l.form;E=L.submit;try{var j=L.submit=function(){v(),L.submit=E,L.submit(),L.submit=j}}catch{}}d.finishInit=function(Q){Q.save=v,Q.getTextArea=function(){return l},Q.toTextArea=function(){Q.toTextArea=isNaN,v(),l.parentNode.removeChild(Q.getWrapperElement()),l.style.display="",l.form&&(Ie(l.form,"submit",v),!d.leaveSubmitMethodAlone&&typeof l.form.submit=="function"&&(l.form.submit=E))}},l.style.display="none";var Y=Qr(function(Q){return l.parentNode.insertBefore(Q,l.nextSibling)},d);return Y}function Wx(l){l.off=Ie,l.on=mt,l.wheelEventPixels=VC,l.Doc=Ai,l.splitLines=Yt,l.countColumn=ve,l.findColumn=wt,l.isWordChar=ht,l.Pass=Le,l.signal=Ze,l.Line=fi,l.changeEnd=fl,l.scrollbarModel=Nh,l.Pos=be,l.cmpPos=$,l.modes=Hr,l.mimeModes=Zn,l.resolveMode=ln,l.getMode=Po,l.modeExtensions=Ei,l.extendMode=Ws,l.copyState=mo,l.startState=Ar,l.innerMode=Ro,l.commands=pu,l.keyMap=gs,l.keyName=nv,l.isModifierKey=Jh,l.lookupKey=ms,l.normalizeKeyMap=ZC,l.StringStream=Xr,l.SharedTextMarker=Ac,l.TextMarker=pl,l.LineWidget=id,l.e_preventDefault=sr,l.e_stopPropagation=zn,l.e_stop=de,l.addClass=z,l.contains=W,l.rmClass=F,l.keyNames=ml}op(Qr),vs(Qr);var Di="iter insert remove copy getEditor constructor".split(" ");for(var up in Ai.prototype)Ai.prototype.hasOwnProperty(up)&&_e(Di,up)<0&&(Qr.prototype[up]=function(l){return function(){return l.apply(this.doc,arguments)}}(Ai.prototype[up]));return tr(Ai),Qr.inputStyles={textarea:_n,contenteditable:Dr},Qr.defineMode=function(l){!Qr.defaults.mode&&l!="null"&&(Qr.defaults.mode=l),Wi.apply(this,arguments)},Qr.defineMIME=ki,Qr.defineMode("null",function(){return{token:function(l){return l.skipToEnd()}}}),Qr.defineMIME("text/plain","null"),Qr.defineExtension=function(l,d){Qr.prototype[l]=d},Qr.defineDocExtension=function(l,d){Ai.prototype[l]=d},Qr.fromTextArea=hv,Wx(Qr),Qr.version="5.59.1",Qr})});var rm=Z((Qre,Zre)=>{(function(t){typeof Qre=="object"&&typeof Zre=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("css",function(O,F){var B=F.inline;F.propertyKeywords||(F=t.resolveMode("text/css"));var V=O.indentUnit,S=F.tokenHooks,R=F.documentTypes||{},q=F.mediaTypes||{},W=F.mediaFeatures||{},N=F.mediaValueKeywords||{},z=F.propertyKeywords||{},X=F.nonStandardPropertyKeywords||{},oe=F.fontProperties||{},G=F.counterDescriptors||{},K=F.colorKeywords||{},ve=F.valueKeywords||{},Se=F.allowNested,_e=F.lineComment,Ne=F.supportsAtComponent===!0,Le=O.highlightNonStandardPropertyKeywords!==!1,it,ze;function tt(ke,$e){return it=$e,ke}function wt(ke,$e){var Fe=ke.next();if(S[Fe]){var It=S[Fe](ke,$e);if(It!==!1)return It}if(Fe=="@")return ke.eatWhile(/[\w\\\-]/),tt("def",ke.current());if(Fe=="="||(Fe=="~"||Fe=="|")&&ke.eat("="))return tt(null,"compare");if(Fe=='"'||Fe=="'")return $e.tokenize=At(Fe),$e.tokenize(ke,$e);if(Fe=="#")return ke.eatWhile(/[\w\\\-]/),tt("atom","hash");if(Fe=="!")return ke.match(/^\s*\w*/),tt("keyword","important");if(/\d/.test(Fe)||Fe=="."&&ke.eat(/\d/))return ke.eatWhile(/[\w.%]/),tt("number","unit");if(Fe==="-"){if(/[\d.]/.test(ke.peek()))return ke.eatWhile(/[\w.%]/),tt("number","unit");if(ke.match(/^-[\w\\\-]*/))return ke.eatWhile(/[\w\\\-]/),ke.match(/^\s*:/,!1)?tt("variable-2","variable-definition"):tt("variable-2","variable");if(ke.match(/^\w+-/))return tt("meta","meta")}else return/[,+>*\/]/.test(Fe)?tt(null,"select-op"):Fe=="."&&ke.match(/^-?[_a-z][_a-z0-9-]*/i)?tt("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(Fe)?tt(null,Fe):ke.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(ke.current().toLowerCase())&&($e.tokenize=Ve),tt("variable callee","variable")):/[\w\\\-]/.test(Fe)?(ke.eatWhile(/[\w\\\-]/),tt("property","word")):tt(null,null)}function At(ke){return function($e,Fe){for(var It=!1,ut;(ut=$e.next())!=null;){if(ut==ke&&!It){ke==")"&&$e.backUp(1);break}It=!It&&ut=="\\"}return(ut==ke||!It&&ke!=")")&&(Fe.tokenize=null),tt("string","string")}}function Ve(ke,$e){return ke.next(),ke.match(/\s*[\"\')]/,!1)?$e.tokenize=null:$e.tokenize=At(")"),tt(null,"(")}function Oe(ke,$e,Fe){this.type=ke,this.indent=$e,this.prev=Fe}function Me(ke,$e,Fe,It){return ke.context=new Oe(Fe,$e.indentation()+(It===!1?0:V),ke.context),Fe}function he(ke){return ke.context.prev&&(ke.context=ke.context.prev),ke.context.type}function J(ke,$e,Fe){return ht[Fe.context.type](ke,$e,Fe)}function re(ke,$e,Fe,It){for(var ut=It||1;ut>0;ut--)Fe.context=Fe.context.prev;return J(ke,$e,Fe)}function fe(ke){var $e=ke.current().toLowerCase();ve.hasOwnProperty($e)?ze="atom":K.hasOwnProperty($e)?ze="keyword":ze="variable"}var ht={};return ht.top=function(ke,$e,Fe){if(ke=="{")return Me(Fe,$e,"block");if(ke=="}"&&Fe.context.prev)return he(Fe);if(Ne&&/@component/i.test(ke))return Me(Fe,$e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(ke))return Me(Fe,$e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(ke))return Me(Fe,$e,"atBlock");if(/^@(font-face|counter-style)/i.test(ke))return Fe.stateArg=ke,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(ke))return"keyframes";if(ke&&ke.charAt(0)=="@")return Me(Fe,$e,"at");if(ke=="hash")ze="builtin";else if(ke=="word")ze="tag";else{if(ke=="variable-definition")return"maybeprop";if(ke=="interpolation")return Me(Fe,$e,"interpolation");if(ke==":")return"pseudo";if(Se&&ke=="(")return Me(Fe,$e,"parens")}return Fe.context.type},ht.block=function(ke,$e,Fe){if(ke=="word"){var It=$e.current().toLowerCase();return z.hasOwnProperty(It)?(ze="property","maybeprop"):X.hasOwnProperty(It)?(ze=Le?"string-2":"property","maybeprop"):Se?(ze=$e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ze+=" error","maybeprop")}else return ke=="meta"?"block":!Se&&(ke=="hash"||ke=="qualifier")?(ze="error","block"):ht.top(ke,$e,Fe)},ht.maybeprop=function(ke,$e,Fe){return ke==":"?Me(Fe,$e,"prop"):J(ke,$e,Fe)},ht.prop=function(ke,$e,Fe){if(ke==";")return he(Fe);if(ke=="{"&&Se)return Me(Fe,$e,"propBlock");if(ke=="}"||ke=="{")return re(ke,$e,Fe);if(ke=="(")return Me(Fe,$e,"parens");if(ke=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test($e.current()))ze+=" error";else if(ke=="word")fe($e);else if(ke=="interpolation")return Me(Fe,$e,"interpolation");return"prop"},ht.propBlock=function(ke,$e,Fe){return ke=="}"?he(Fe):ke=="word"?(ze="property","maybeprop"):Fe.context.type},ht.parens=function(ke,$e,Fe){return ke=="{"||ke=="}"?re(ke,$e,Fe):ke==")"?he(Fe):ke=="("?Me(Fe,$e,"parens"):ke=="interpolation"?Me(Fe,$e,"interpolation"):(ke=="word"&&fe($e),"parens")},ht.pseudo=function(ke,$e,Fe){return ke=="meta"?"pseudo":ke=="word"?(ze="variable-3",Fe.context.type):J(ke,$e,Fe)},ht.documentTypes=function(ke,$e,Fe){return ke=="word"&&R.hasOwnProperty($e.current())?(ze="tag",Fe.context.type):ht.atBlock(ke,$e,Fe)},ht.atBlock=function(ke,$e,Fe){if(ke=="(")return Me(Fe,$e,"atBlock_parens");if(ke=="}"||ke==";")return re(ke,$e,Fe);if(ke=="{")return he(Fe)&&Me(Fe,$e,Se?"block":"top");if(ke=="interpolation")return Me(Fe,$e,"interpolation");if(ke=="word"){var It=$e.current().toLowerCase();It=="only"||It=="not"||It=="and"||It=="or"?ze="keyword":q.hasOwnProperty(It)?ze="attribute":W.hasOwnProperty(It)?ze="property":N.hasOwnProperty(It)?ze="keyword":z.hasOwnProperty(It)?ze="property":X.hasOwnProperty(It)?ze=Le?"string-2":"property":ve.hasOwnProperty(It)?ze="atom":K.hasOwnProperty(It)?ze="keyword":ze="error"}return Fe.context.type},ht.atComponentBlock=function(ke,$e,Fe){return ke=="}"?re(ke,$e,Fe):ke=="{"?he(Fe)&&Me(Fe,$e,Se?"block":"top",!1):(ke=="word"&&(ze="error"),Fe.context.type)},ht.atBlock_parens=function(ke,$e,Fe){return ke==")"?he(Fe):ke=="{"||ke=="}"?re(ke,$e,Fe,2):ht.atBlock(ke,$e,Fe)},ht.restricted_atBlock_before=function(ke,$e,Fe){return ke=="{"?Me(Fe,$e,"restricted_atBlock"):ke=="word"&&Fe.stateArg=="@counter-style"?(ze="variable","restricted_atBlock_before"):J(ke,$e,Fe)},ht.restricted_atBlock=function(ke,$e,Fe){return ke=="}"?(Fe.stateArg=null,he(Fe)):ke=="word"?(Fe.stateArg=="@font-face"&&!oe.hasOwnProperty($e.current().toLowerCase())||Fe.stateArg=="@counter-style"&&!G.hasOwnProperty($e.current().toLowerCase())?ze="error":ze="property","maybeprop"):"restricted_atBlock"},ht.keyframes=function(ke,$e,Fe){return ke=="word"?(ze="variable","keyframes"):ke=="{"?Me(Fe,$e,"top"):J(ke,$e,Fe)},ht.at=function(ke,$e,Fe){return ke==";"?he(Fe):ke=="{"||ke=="}"?re(ke,$e,Fe):(ke=="word"?ze="tag":ke=="hash"&&(ze="builtin"),"at")},ht.interpolation=function(ke,$e,Fe){return ke=="}"?he(Fe):ke=="{"||ke==";"?re(ke,$e,Fe):(ke=="word"?ze="variable":ke!="variable"&&ke!="("&&ke!=")"&&(ze="error"),"interpolation")},{startState:function(ke){return{tokenize:null,state:B?"block":"top",stateArg:null,context:new Oe(B?"block":"top",ke||0,null)}},token:function(ke,$e){if(!$e.tokenize&&ke.eatSpace())return null;var Fe=($e.tokenize||wt)(ke,$e);return Fe&&typeof Fe=="object"&&(it=Fe[1],Fe=Fe[0]),ze=Fe,it!="comment"&&($e.state=ht[$e.state](it,ke,$e)),ze},indent:function(ke,$e){var Fe=ke.context,It=$e&&$e.charAt(0),ut=Fe.indent;return Fe.type=="prop"&&(It=="}"||It==")")&&(Fe=Fe.prev),Fe.prev&&(It=="}"&&(Fe.type=="block"||Fe.type=="top"||Fe.type=="interpolation"||Fe.type=="restricted_atBlock")?(Fe=Fe.prev,ut=Fe.indent):(It==")"&&(Fe.type=="parens"||Fe.type=="atBlock_parens")||It=="{"&&(Fe.type=="at"||Fe.type=="atBlock"))&&(ut=Math.max(0,Fe.indent-V))),ut},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function e(O){for(var F={},B=0;B<O.length;++B)F[O[B].toLowerCase()]=!0;return F}var r=["domain","regexp","url","url-prefix"],n=e(r),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=e(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],s=e(a),u=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],c=e(u),f=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=e(f),g=["border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],m=e(g),x=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],w=e(x),T=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],k=e(T),A=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],D=e(A),M=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],P=e(M),_=r.concat(i).concat(a).concat(u).concat(f).concat(g).concat(A).concat(M);t.registerHelper("hintWords","css",_);function C(O,F){for(var B=!1,V;(V=O.next())!=null;){if(B&&V=="/"){F.tokenize=null;break}B=V=="*"}return["comment","comment"]}t.defineMIME("text/css",{documentTypes:n,mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:m,fontProperties:w,counterDescriptors:k,colorKeywords:D,valueKeywords:P,tokenHooks:{"/":function(O,F){return O.eat("*")?(F.tokenize=C,C(O,F)):!1}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:m,colorKeywords:D,valueKeywords:P,fontProperties:w,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(O,F){return O.eat("/")?(O.skipToEnd(),["comment","comment"]):O.eat("*")?(F.tokenize=C,C(O,F)):["operator","operator"]},":":function(O){return O.match(/\s*\{/,!1)?[null,null]:!1},$:function(O){return O.match(/^[\w-]+/),O.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(O){return O.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:m,colorKeywords:D,valueKeywords:P,fontProperties:w,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(O,F){return O.eat("/")?(O.skipToEnd(),["comment","comment"]):O.eat("*")?(F.tokenize=C,C(O,F)):["operator","operator"]},"@":function(O){return O.eat("{")?[null,"interpolation"]:O.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(O.eatWhile(/[\w\\\-]/),O.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:n,mediaTypes:o,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:m,fontProperties:w,counterDescriptors:k,colorKeywords:D,valueKeywords:P,supportsAtComponent:!0,tokenHooks:{"/":function(O,F){return O.eat("*")?(F.tokenize=C,C(O,F)):!1}},name:"css",helperType:"gss"})})});var aq=Z((Jre,ene)=>{(function(t){typeof Jre=="object"&&typeof ene=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineSimpleMode=function(f,p){t.defineMode(f,function(g){return t.simpleMode(g,p)})},t.simpleMode=function(f,p){e(p,"start");var g={},m=p.meta||{},x=!1;for(var w in p)if(w!=m&&p.hasOwnProperty(w))for(var T=g[w]=[],k=p[w],A=0;A<k.length;A++){var D=k[A];T.push(new i(D,p)),(D.indent||D.dedent)&&(x=!0)}var M={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:x?[]:null}},copyState:function(_){var C={state:_.state,pending:_.pending,local:_.local,localState:null,indent:_.indent&&_.indent.slice(0)};_.localState&&(C.localState=t.copyState(_.local.mode,_.localState)),_.stack&&(C.stack=_.stack.slice(0));for(var O=_.persistentStates;O;O=O.next)C.persistentStates={mode:O.mode,spec:O.spec,state:O.state==_.localState?C.localState:t.copyState(O.mode,O.state),next:C.persistentStates};return C},token:o(g,f),innerMode:function(_){return _.local&&{mode:_.local.mode,state:_.localState}},indent:c(g,m)};if(m)for(var P in m)m.hasOwnProperty(P)&&(M[P]=m[P]);return M};function e(f,p){if(!f.hasOwnProperty(p))throw new Error("Undefined state "+p+" in simple mode")}function r(f,p){if(!f)return/(?:)/;var g="";return f instanceof RegExp?(f.ignoreCase&&(g="i"),f=f.source):f=String(f),new RegExp((p===!1?"":"^")+"(?:"+f+")",g)}function n(f){if(!f)return null;if(f.apply)return f;if(typeof f=="string")return f.replace(/\./g," ");for(var p=[],g=0;g<f.length;g++)p.push(f[g]&&f[g].replace(/\./g," "));return p}function i(f,p){(f.next||f.push)&&e(p,f.next||f.push),this.regex=r(f.regex),this.token=n(f.token),this.data=f}function o(f,p){return function(g,m){if(m.pending){var x=m.pending.shift();return m.pending.length==0&&(m.pending=null),g.pos+=x.text.length,x.token}if(m.local)if(m.local.end&&g.match(m.local.end)){var w=m.local.endToken||null;return m.local=m.localState=null,w}else{var w=m.local.mode.token(g,m.localState),T;return m.local.endScan&&(T=m.local.endScan.exec(g.current()))&&(g.pos=g.start+T.index),w}for(var k=f[m.state],A=0;A<k.length;A++){var D=k[A],M=(!D.data.sol||g.sol())&&g.match(D.regex);if(M){D.data.next?m.state=D.data.next:D.data.push?((m.stack||(m.stack=[])).push(m.state),m.state=D.data.push):D.data.pop&&m.stack&&m.stack.length&&(m.state=m.stack.pop()),D.data.mode&&s(p,m,D.data.mode,D.token),D.data.indent&&m.indent.push(g.indentation()+p.indentUnit),D.data.dedent&&m.indent.pop();var P=D.token;if(P&&P.apply&&(P=P(M)),M.length>2&&D.token&&typeof D.token!="string"){m.pending=[];for(var _=2;_<M.length;_++)M[_]&&m.pending.push({text:M[_],token:D.token[_-1]});return g.backUp(M[0].length-(M[1]?M[1].length:0)),P[0]}else return P&&P.join?P[0]:P}}return g.next(),null}}function a(f,p){if(f===p)return!0;if(!f||typeof f!="object"||!p||typeof p!="object")return!1;var g=0;for(var m in f)if(f.hasOwnProperty(m)){if(!p.hasOwnProperty(m)||!a(f[m],p[m]))return!1;g++}for(var m in p)p.hasOwnProperty(m)&&g--;return g==0}function s(f,p,g,m){var x;if(g.persistent)for(var w=p.persistentStates;w&&!x;w=w.next)(g.spec?a(g.spec,w.spec):g.mode==w.mode)&&(x=w);var T=x?x.mode:g.mode||t.getMode(f,g.spec),k=x?x.state:t.startState(T);g.persistent&&!x&&(p.persistentStates={mode:T,spec:g.spec,state:k,next:p.persistentStates}),p.localState=k,p.local={mode:T,end:g.end&&r(g.end),endScan:g.end&&g.forceEnd!==!1&&r(g.end,!1),endToken:m&&m.join?m[m.length-1]:m}}function u(f,p){for(var g=0;g<p.length;g++)if(p[g]===f)return!0}function c(f,p){return function(g,m,x){if(g.local&&g.local.mode.indent)return g.local.mode.indent(g.localState,m,x);if(g.indent==null||g.local||p.dontIndentStates&&u(g.state,p.dontIndentStates)>-1)return t.Pass;var w=g.indent.length-1,T=f[g.state];e:for(;;){for(var k=0;k<T.length;k++){var A=T[k];if(A.data.dedent&&A.data.dedentIfLineStart!==!1){var D=A.regex.exec(m);if(D&&D[0]){w--,(A.next||A.push)&&(T=f[A.next||A.push]),m=m.slice(D[0].length);continue e}}}break}return w<0?0:g.indent[w]}}})});var nne=Z((tne,rne)=>{(function(t){typeof tne=="object"&&typeof rne=="object"?t(Br(),aq()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],t):t(CodeMirror)})(function(t){"use strict";var e="from",r=new RegExp("^(\\s*)\\b("+e+")\\b","i"),n=["run","cmd","entrypoint","shell"],i=new RegExp("^(\\s*)("+n.join("|")+")(\\s+\\[)","i"),o="expose",a=new RegExp("^(\\s*)("+o+")(\\s+)","i"),s=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"],u=[e,o].concat(n).concat(s),c="("+u.join("|")+")",f=new RegExp("^(\\s*)"+c+"(\\s*)(#.*)?$","i"),p=new RegExp("^(\\s*)"+c+"(\\s+)","i");t.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:r,token:[null,"keyword"],sol:!0,next:"from"},{regex:f,token:[null,"keyword",null,"error"],sol:!0},{regex:i,token:[null,"keyword",null],sol:!0,next:"array"},{regex:a,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:p,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}}),t.defineMIME("text/x-dockerfile","dockerfile")})});var nm=Z((ine,one)=>{(function(t){typeof ine=="object"&&typeof one=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(n,i){var o=n.indentUnit,a={},s=i.htmlMode?e:r;for(var u in s)a[u]=s[u];for(var u in i)a[u]=i[u];var c,f;function p(S,R){function q(z){return R.tokenize=z,z(S,R)}var W=S.next();if(W=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?q(x("atom","]]>")):null:S.match("--")?q(x("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),q(w(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=x("meta","?>"),"meta"):(c=S.eat("/")?"closeTag":"openTag",R.tokenize=g,"tag bracket");if(W=="&"){var N;return S.eat("#")?S.eat("x")?N=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):N=S.eatWhile(/[\d]/)&&S.eat(";"):N=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),N?"atom":"error"}else return S.eatWhile(/[^&<]/),null}p.isInText=!0;function g(S,R){var q=S.next();if(q==">"||q=="/"&&S.eat(">"))return R.tokenize=p,c=q==">"?"endTag":"selfcloseTag","tag bracket";if(q=="=")return c="equals",null;if(q=="<"){R.tokenize=p,R.state=D,R.tagName=R.tagStart=null;var W=R.tokenize(S,R);return W?W+" tag error":"tag error"}else return/[\'\"]/.test(q)?(R.tokenize=m(q),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function m(S){var R=function(q,W){for(;!q.eol();)if(q.next()==S){W.tokenize=g;break}return"string"};return R.isInAttribute=!0,R}function x(S,R){return function(q,W){for(;!q.eol();){if(q.match(R)){W.tokenize=p;break}q.next()}return S}}function w(S){return function(R,q){for(var W;(W=R.next())!=null;){if(W=="<")return q.tokenize=w(S+1),q.tokenize(R,q);if(W==">")if(S==1){q.tokenize=p;break}else return q.tokenize=w(S-1),q.tokenize(R,q)}return"meta"}}function T(S,R,q){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=q,(a.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function k(S){S.context&&(S.context=S.context.prev)}function A(S,R){for(var q;;){if(!S.context||(q=S.context.tagName,!a.contextGrabbers.hasOwnProperty(q)||!a.contextGrabbers[q].hasOwnProperty(R)))return;k(S)}}function D(S,R,q){return S=="openTag"?(q.tagStart=R.column(),M):S=="closeTag"?P:D}function M(S,R,q){return S=="word"?(q.tagName=R.current(),f="tag",O):a.allowMissingTagName&&S=="endTag"?(f="tag bracket",O(S,R,q)):(f="error",M)}function P(S,R,q){if(S=="word"){var W=R.current();return q.context&&q.context.tagName!=W&&a.implicitlyClosed.hasOwnProperty(q.context.tagName)&&k(q),q.context&&q.context.tagName==W||a.matchClosing===!1?(f="tag",_):(f="tag error",C)}else return a.allowMissingTagName&&S=="endTag"?(f="tag bracket",_(S,R,q)):(f="error",C)}function _(S,R,q){return S!="endTag"?(f="error",_):(k(q),D)}function C(S,R,q){return f="error",_(S,R,q)}function O(S,R,q){if(S=="word")return f="attribute",F;if(S=="endTag"||S=="selfcloseTag"){var W=q.tagName,N=q.tagStart;return q.tagName=q.tagStart=null,S=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(W)?A(q,W):(A(q,W),q.context=new T(q,W,N==q.indented)),D}return f="error",O}function F(S,R,q){return S=="equals"?B:(a.allowMissing||(f="error"),O(S,R,q))}function B(S,R,q){return S=="string"?V:S=="word"&&a.allowUnquoted?(f="string",O):(f="error",O(S,R,q))}function V(S,R,q){return S=="string"?V:O(S,R,q)}return{startState:function(S){var R={tokenize:p,state:D,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;c=null;var q=R.tokenize(S,R);return(q||c)&&q!="comment"&&(f=null,R.state=R.state(c||q,S,R),f&&(q=f=="error"?q+" error":f)),q},indent:function(S,R,q){var W=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+o;if(W&&W.noIndent)return t.Pass;if(S.tokenize!=g&&S.tokenize!=p)return q?q.match(/^(\s*)/)[0].length:0;if(S.tagName)return a.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+o*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var N=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(N&&N[1])for(;W;)if(W.tagName==N[2]){W=W.prev;break}else if(a.implicitlyClosed.hasOwnProperty(W.tagName))W=W.prev;else break;else if(N)for(;W;){var z=a.contextGrabbers[W.tagName];if(z&&z.hasOwnProperty(N[2]))W=W.prev;else break}for(;W&&W.prev&&!W.startOfLine;)W=W.prev;return W?W.indent+o:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(S){S.state==B&&(S.state=O)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],q=S.context;q;q=q.prev)R.push(q.tagName);return R.reverse()}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var o0=Z((ane,sne)=>{(function(t){typeof ane=="object"&&typeof sne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("javascript",function(e,r){var n=e.indentUnit,i=r.statementIndent,o=r.jsonld,a=r.json||o,s=r.typescript,u=r.wordCharacters||/[\w$\xa1-\uffff]/,c=function(){function ne(Re){return{type:Re,style:"keyword"}}var me=ne("keyword a"),be=ne("keyword b"),$=ne("keyword c"),H=ne("keyword d"),ae=ne("operator"),ge={type:"atom",style:"atom"};return{if:ne("if"),while:me,with:me,else:be,do:be,try:be,finally:be,return:H,break:H,continue:H,new:ne("new"),delete:$,void:$,throw:$,debugger:ne("debugger"),var:ne("var"),const:ne("var"),let:ne("var"),function:ne("function"),catch:ne("catch"),for:ne("for"),switch:ne("switch"),case:ne("case"),default:ne("default"),in:ae,typeof:ae,instanceof:ae,true:ge,false:ge,null:ge,undefined:ge,NaN:ge,Infinity:ge,this:ne("this"),class:ne("class"),super:ne("atom"),yield:$,export:ne("export"),import:ne("import"),extends:$,await:$}}(),f=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(ne){for(var me=!1,be,$=!1;(be=ne.next())!=null;){if(!me){if(be=="/"&&!$)return;be=="["?$=!0:$&&be=="]"&&($=!1)}me=!me&&be=="\\"}}var m,x;function w(ne,me,be){return m=ne,x=be,me}function T(ne,me){var be=ne.next();if(be=='"'||be=="'")return me.tokenize=k(be),me.tokenize(ne,me);if(be=="."&&ne.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(be=="."&&ne.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(be))return w(be);if(be=="="&&ne.eat(">"))return w("=>","operator");if(be=="0"&&ne.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(be))return ne.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(be=="/")return ne.eat("*")?(me.tokenize=A,A(ne,me)):ne.eat("/")?(ne.skipToEnd(),w("comment","comment")):vo(ne,me,1)?(g(ne),ne.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(ne.eat("="),w("operator","operator",ne.current()));if(be=="`")return me.tokenize=D,D(ne,me);if(be=="#"&&ne.peek()=="!")return ne.skipToEnd(),w("meta","meta");if(be=="#"&&ne.eatWhile(u))return w("variable","property");if(be=="<"&&ne.match("!--")||be=="-"&&ne.match("->")&&!/\S/.test(ne.string.slice(0,ne.start)))return ne.skipToEnd(),w("comment","comment");if(f.test(be))return(be!=">"||!me.lexical||me.lexical.type!=">")&&(ne.eat("=")?(be=="!"||be=="=")&&ne.eat("="):/[<>*+\-|&?]/.test(be)&&(ne.eat(be),be==">"&&ne.eat(be))),be=="?"&&ne.eat(".")?w("."):w("operator","operator",ne.current());if(u.test(be)){ne.eatWhile(u);var $=ne.current();if(me.lastType!="."){if(c.propertyIsEnumerable($)){var H=c[$];return w(H.type,H.style,$)}if($=="async"&&ne.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",$)}return w("variable","variable",$)}}function k(ne){return function(me,be){var $=!1,H;if(o&&me.peek()=="@"&&me.match(p))return be.tokenize=T,w("jsonld-keyword","meta");for(;(H=me.next())!=null&&!(H==ne&&!$);)$=!$&&H=="\\";return $||(be.tokenize=T),w("string","string")}}function A(ne,me){for(var be=!1,$;$=ne.next();){if($=="/"&&be){me.tokenize=T;break}be=$=="*"}return w("comment","comment")}function D(ne,me){for(var be=!1,$;($=ne.next())!=null;){if(!be&&($=="`"||$=="$"&&ne.eat("{"))){me.tokenize=T;break}be=!be&&$=="\\"}return w("quasi","string-2",ne.current())}var M="([{}])";function P(ne,me){me.fatArrowAt&&(me.fatArrowAt=null);var be=ne.string.indexOf("=>",ne.start);if(!(be<0)){if(s){var $=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ne.string.slice(ne.start,be));$&&(be=$.index)}for(var H=0,ae=!1,ge=be-1;ge>=0;--ge){var Re=ne.string.charAt(ge),Ue=M.indexOf(Re);if(Ue>=0&&Ue<3){if(!H){++ge;break}if(--H==0){Re=="("&&(ae=!0);break}}else if(Ue>=3&&Ue<6)++H;else if(u.test(Re))ae=!0;else if(/["'\/`]/.test(Re))for(;;--ge){if(ge==0)return;var Xe=ne.string.charAt(ge-1);if(Xe==Re&&ne.string.charAt(ge-2)!="\\"){ge--;break}}else if(ae&&!H){++ge;break}}ae&&!H&&(me.fatArrowAt=ge)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function C(ne,me,be,$,H,ae){this.indented=ne,this.column=me,this.type=be,this.prev=H,this.info=ae,$!=null&&(this.align=$)}function O(ne,me){for(var be=ne.localVars;be;be=be.next)if(be.name==me)return!0;for(var $=ne.context;$;$=$.prev)for(var be=$.vars;be;be=be.next)if(be.name==me)return!0}function F(ne,me,be,$,H){var ae=ne.cc;for(B.state=ne,B.stream=H,B.marked=null,B.cc=ae,B.style=me,ne.lexical.hasOwnProperty("align")||(ne.lexical.align=!0);;){var ge=ae.length?ae.pop():a?ze:Le;if(ge(be,$)){for(;ae.length&&ae[ae.length-1].lex;)ae.pop()();return B.marked?B.marked:be=="variable"&&O(ne,$)?"variable-2":me}}}var B={state:null,column:null,marked:null,cc:null};function V(){for(var ne=arguments.length-1;ne>=0;ne--)B.cc.push(arguments[ne])}function S(){return V.apply(null,arguments),!0}function R(ne,me){for(var be=me;be;be=be.next)if(be.name==ne)return!0;return!1}function q(ne){var me=B.state;if(B.marked="def",me.context){if(me.lexical.info=="var"&&me.context&&me.context.block){var be=W(ne,me.context);if(be!=null){me.context=be;return}}else if(!R(ne,me.localVars)){me.localVars=new X(ne,me.localVars);return}}r.globalVars&&!R(ne,me.globalVars)&&(me.globalVars=new X(ne,me.globalVars))}function W(ne,me){if(me)if(me.block){var be=W(ne,me.prev);return be?be==me.prev?me:new z(be,me.vars,!0):null}else return R(ne,me.vars)?me:new z(me.prev,new X(ne,me.vars),!1);else return null}function N(ne){return ne=="public"||ne=="private"||ne=="protected"||ne=="abstract"||ne=="readonly"}function z(ne,me,be){this.prev=ne,this.vars=me,this.block=be}function X(ne,me){this.name=ne,this.next=me}var oe=new X("this",new X("arguments",null));function G(){B.state.context=new z(B.state.context,B.state.localVars,!1),B.state.localVars=oe}function K(){B.state.context=new z(B.state.context,B.state.localVars,!0),B.state.localVars=null}function ve(){B.state.localVars=B.state.context.vars,B.state.context=B.state.context.prev}ve.lex=!0;function Se(ne,me){var be=function(){var $=B.state,H=$.indented;if($.lexical.type=="stat")H=$.lexical.indented;else for(var ae=$.lexical;ae&&ae.type==")"&&ae.align;ae=ae.prev)H=ae.indented;$.lexical=new C(H,B.stream.column(),ne,null,$.lexical,me)};return be.lex=!0,be}function _e(){var ne=B.state;ne.lexical.prev&&(ne.lexical.type==")"&&(ne.indented=ne.lexical.indented),ne.lexical=ne.lexical.prev)}_e.lex=!0;function Ne(ne){function me(be){return be==ne?S():ne==";"||be=="}"||be==")"||be=="]"?V():S(me)}return me}function Le(ne,me){return ne=="var"?S(Se("vardef",me),de,Ne(";"),_e):ne=="keyword a"?S(Se("form"),wt,Le,_e):ne=="keyword b"?S(Se("form"),Le,_e):ne=="keyword d"?B.stream.match(/^\s*$/,!1)?S():S(Se("stat"),Ve,Ne(";"),_e):ne=="debugger"?S(Ne(";")):ne=="{"?S(Se("}"),K,We,_e,ve):ne==";"?S():ne=="if"?(B.state.lexical.info=="else"&&B.state.cc[B.state.cc.length-1]==_e&&B.state.cc.pop()(),S(Se("form"),wt,Le,_e,_t)):ne=="function"?S(sn):ne=="for"?S(Se("form"),Xt,Le,_e):ne=="class"||s&&me=="interface"?(B.marked="keyword",S(Se("form",ne=="class"?ne:me),Wi,_e)):ne=="variable"?s&&me=="declare"?(B.marked="keyword",S(Le)):s&&(me=="module"||me=="enum"||me=="type")&&B.stream.match(/^\s*\w/,!1)?(B.marked="keyword",me=="enum"?S(Us):me=="type"?S(go,Ne("operator"),Ie,Ne(";")):S(Se("form"),Ae,Ne("{"),Se("}"),We,_e,_e)):s&&me=="namespace"?(B.marked="keyword",S(Se("form"),ze,Le,_e)):s&&me=="abstract"?(B.marked="keyword",S(Le)):S(Se("stat"),Fe):ne=="switch"?S(Se("form"),wt,Ne("{"),Se("}","switch"),K,We,_e,_e,ve):ne=="case"?S(ze,Ne(":")):ne=="default"?S(Ne(":")):ne=="catch"?S(Se("form"),G,it,Le,_e,ve):ne=="export"?S(Se("stat"),Ei,_e):ne=="import"?S(Se("stat"),mo,_e):ne=="async"?S(Le):me=="@"?S(ze,Le):V(Se("stat"),ze,Ne(";"),_e)}function it(ne){if(ne=="(")return S(Hr,Ne(")"))}function ze(ne,me){return At(ne,me,!1)}function tt(ne,me){return At(ne,me,!0)}function wt(ne){return ne!="("?V():S(Se(")"),Ve,Ne(")"),_e)}function At(ne,me,be){if(B.state.fatArrowAt==B.stream.start){var $=be?fe:re;if(ne=="(")return S(G,Se(")"),ye(Hr,")"),_e,Ne("=>"),$,ve);if(ne=="variable")return V(G,Ae,Ne("=>"),$,ve)}var H=be?Me:Oe;return _.hasOwnProperty(ne)?S(H):ne=="function"?S(sn,H):ne=="class"||s&&me=="interface"?(B.marked="keyword",S(Se("form"),Zn,_e)):ne=="keyword c"||ne=="async"?S(be?tt:ze):ne=="("?S(Se(")"),Ve,Ne(")"),_e,H):ne=="operator"||ne=="spread"?S(be?tt:ze):ne=="["?S(Se("]"),to,_e,H):ne=="{"?xe(ut,"}",null,H):ne=="quasi"?V(he,H):ne=="new"?S(ht(be)):ne=="import"?S(ze):S()}function Ve(ne){return ne.match(/[;\}\)\],]/)?V():V(ze)}function Oe(ne,me){return ne==","?S(Ve):Me(ne,me,!1)}function Me(ne,me,be){var $=be==!1?Oe:Me,H=be==!1?ze:tt;if(ne=="=>")return S(G,be?fe:re,ve);if(ne=="operator")return/\+\+|--/.test(me)||s&&me=="!"?S($):s&&me=="<"&&B.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Se(">"),ye(Ie,">"),_e,$):me=="?"?S(ze,Ne(":"),H):S(H);if(ne=="quasi")return V(he,$);if(ne!=";"){if(ne=="(")return xe(tt,")","call",$);if(ne==".")return S(It,$);if(ne=="[")return S(Se("]"),Ve,Ne("]"),_e,$);if(s&&me=="as")return B.marked="keyword",S(Ie,$);if(ne=="regexp")return B.state.lastType=B.marked="operator",B.stream.backUp(B.stream.pos-B.stream.start-1),S(H)}}function he(ne,me){return ne!="quasi"?V():me.slice(me.length-2)!="${"?S(he):S(ze,J)}function J(ne){if(ne=="}")return B.marked="string-2",B.state.tokenize=D,S(he)}function re(ne){return P(B.stream,B.state),V(ne=="{"?Le:ze)}function fe(ne){return P(B.stream,B.state),V(ne=="{"?Le:tt)}function ht(ne){return function(me){return me=="."?S(ne?$e:ke):me=="variable"&&s?S(sr,ne?Me:Oe):V(ne?tt:ze)}}function ke(ne,me){if(me=="target")return B.marked="keyword",S(Oe)}function $e(ne,me){if(me=="target")return B.marked="keyword",S(Me)}function Fe(ne){return ne==":"?S(_e,Le):V(Oe,Ne(";"),_e)}function It(ne){if(ne=="variable")return B.marked="property",S()}function ut(ne,me){if(ne=="async")return B.marked="property",S(ut);if(ne=="variable"||B.style=="keyword"){if(B.marked="property",me=="get"||me=="set")return S(pt);var be;return s&&B.state.fatArrowAt==B.stream.start&&(be=B.stream.match(/^\s*:\s*/,!1))&&(B.state.fatArrowAt=B.stream.pos+be[0].length),S(st)}else{if(ne=="number"||ne=="string")return B.marked=o?"property":B.style+" property",S(st);if(ne=="jsonld-keyword")return S(st);if(s&&N(me))return B.marked="keyword",S(ut);if(ne=="[")return S(ze,yt,Ne("]"),st);if(ne=="spread")return S(tt,st);if(me=="*")return B.marked="keyword",S(ut);if(ne==":")return V(st)}}function pt(ne){return ne!="variable"?V(st):(B.marked="property",S(sn))}function st(ne){if(ne==":")return S(tt);if(ne=="(")return V(sn)}function ye(ne,me,be){function $(H,ae){if(be?be.indexOf(H)>-1:H==","){var ge=B.state.lexical;return ge.info=="call"&&(ge.pos=(ge.pos||0)+1),S(function(Re,Ue){return Re==me||Ue==me?V():V(ne)},$)}return H==me||ae==me?S():be&&be.indexOf(";")>-1?V(ne):S(Ne(me))}return function(H,ae){return H==me||ae==me?S():V(ne,$)}}function xe(ne,me,be){for(var $=3;$<arguments.length;$++)B.cc.push(arguments[$]);return S(Se(me,be),ye(ne,me),_e)}function We(ne){return ne=="}"?S():V(Le,We)}function yt(ne,me){if(s){if(ne==":")return S(Ie);if(me=="?")return S(yt)}}function Gr(ne,me){if(s&&(ne==":"||me=="in"))return S(Ie)}function mt(ne){if(s&&ne==":")return B.stream.match(/^\s*\w+\s+is\b/,!1)?S(ze,er,Ie):S(Ie)}function er(ne,me){if(me=="is")return B.marked="keyword",S()}function Ie(ne,me){if(me=="keyof"||me=="typeof"||me=="infer")return B.marked="keyword",S(me=="typeof"?tt:Ie);if(ne=="variable"||me=="void")return B.marked="type",S(tr);if(me=="|"||me=="&")return S(Ie);if(ne=="string"||ne=="number"||ne=="atom")return S(tr);if(ne=="[")return S(Se("]"),ye(Ie,"]",","),_e,tr);if(ne=="{")return S(Se("}"),dt,_e,tr);if(ne=="(")return S(ye(jt,")"),Ze,tr);if(ne=="<")return S(ye(Ie,">"),Ie)}function Ze(ne){if(ne=="=>")return S(Ie)}function dt(ne){return ne=="}"?S():ne==","||ne==";"?S(dt):V(Zt,dt)}function Zt(ne,me){if(ne=="variable"||B.style=="keyword")return B.marked="property",S(Zt);if(me=="?"||ne=="number"||ne=="string")return S(Zt);if(ne==":")return S(Ie);if(ne=="[")return S(Ne("variable"),Gr,Ne("]"),Zt);if(ne=="(")return V(zr,Zt);if(!ne.match(/[;\}\)\],]/))return S()}function jt(ne,me){return ne=="variable"&&B.stream.match(/^\s*[?:]/,!1)||me=="?"?S(jt):ne==":"?S(Ie):ne=="spread"?S(jt):V(Ie)}function tr(ne,me){if(me=="<")return S(Se(">"),ye(Ie,">"),_e,tr);if(me=="|"||ne=="."||me=="&")return S(Ie);if(ne=="[")return S(Ie,Ne("]"),tr);if(me=="extends"||me=="implements")return B.marked="keyword",S(Ie);if(me=="?")return S(Ie,Ne(":"),Ie)}function sr(ne,me){if(me=="<")return S(Se(">"),ye(Ie,">"),_e,tr)}function zn(){return V(Ie,le)}function le(ne,me){if(me=="=")return S(Ie)}function de(ne,me){return me=="enum"?(B.marked="keyword",S(Us)):V(Ae,yt,Qe,Dt)}function Ae(ne,me){if(s&&N(me))return B.marked="keyword",S(Ae);if(ne=="variable")return q(me),S();if(ne=="spread")return S(Ae);if(ne=="[")return xe(lt,"]");if(ne=="{")return xe(He,"}")}function He(ne,me){return ne=="variable"&&!B.stream.match(/^\s*:/,!1)?(q(me),S(Qe)):(ne=="variable"&&(B.marked="property"),ne=="spread"?S(Ae):ne=="}"?V():ne=="["?S(ze,Ne("]"),Ne(":"),He):S(Ne(":"),Ae,Qe))}function lt(){return V(Ae,Qe)}function Qe(ne,me){if(me=="=")return S(tt)}function Dt(ne){if(ne==",")return S(de)}function _t(ne,me){if(ne=="keyword b"&&me=="else")return S(Se("form","else"),Le,_e)}function Xt(ne,me){if(me=="await")return S(Xt);if(ne=="(")return S(Se(")"),Yt,_e)}function Yt(ne){return ne=="var"?S(de,dr):ne=="variable"?S(dr):V(dr)}function dr(ne,me){return ne==")"?S():ne==";"?S(dr):me=="in"||me=="of"?(B.marked="keyword",S(ze,dr)):V(ze,dr)}function sn(ne,me){if(me=="*")return B.marked="keyword",S(sn);if(ne=="variable")return q(me),S(sn);if(ne=="(")return S(G,Se(")"),ye(Hr,")"),_e,mt,Le,ve);if(s&&me=="<")return S(Se(">"),ye(zn,">"),_e,sn)}function zr(ne,me){if(me=="*")return B.marked="keyword",S(zr);if(ne=="variable")return q(me),S(zr);if(ne=="(")return S(G,Se(")"),ye(Hr,")"),_e,mt,ve);if(s&&me=="<")return S(Se(">"),ye(zn,">"),_e,zr)}function go(ne,me){if(ne=="keyword"||ne=="variable")return B.marked="type",S(go);if(me=="<")return S(Se(">"),ye(zn,">"),_e)}function Hr(ne,me){return me=="@"&&S(ze,Hr),ne=="spread"?S(Hr):s&&N(me)?(B.marked="keyword",S(Hr)):s&&ne=="this"?S(yt,Qe):V(Ae,yt,Qe)}function Zn(ne,me){return ne=="variable"?Wi(ne,me):ki(ne,me)}function Wi(ne,me){if(ne=="variable")return q(me),S(ki)}function ki(ne,me){if(me=="<")return S(Se(">"),ye(zn,">"),_e,ki);if(me=="extends"||me=="implements"||s&&ne==",")return me=="implements"&&(B.marked="keyword"),S(s?Ie:ze,ki);if(ne=="{")return S(Se("}"),ln,_e)}function ln(ne,me){if(ne=="async"||ne=="variable"&&(me=="static"||me=="get"||me=="set"||s&&N(me))&&B.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return B.marked="keyword",S(ln);if(ne=="variable"||B.style=="keyword")return B.marked="property",S(Po,ln);if(ne=="number"||ne=="string")return S(Po,ln);if(ne=="[")return S(ze,yt,Ne("]"),Po,ln);if(me=="*")return B.marked="keyword",S(ln);if(s&&ne=="(")return V(zr,ln);if(ne==";"||ne==",")return S(ln);if(ne=="}")return S();if(me=="@")return S(ze,ln)}function Po(ne,me){if(me=="?")return S(Po);if(ne==":")return S(Ie,Qe);if(me=="=")return S(tt);var be=B.state.lexical.prev,$=be&&be.info=="interface";return V($?zr:sn)}function Ei(ne,me){return me=="*"?(B.marked="keyword",S(Ot,Ne(";"))):me=="default"?(B.marked="keyword",S(ze,Ne(";"))):ne=="{"?S(ye(Ws,"}"),Ot,Ne(";")):V(Le)}function Ws(ne,me){if(me=="as")return B.marked="keyword",S(Ne("variable"));if(ne=="variable")return V(tt,Ws)}function mo(ne){return ne=="string"?S():ne=="("?V(ze):V(Ro,Ar,Ot)}function Ro(ne,me){return ne=="{"?xe(Ro,"}"):(ne=="variable"&&q(me),me=="*"&&(B.marked="keyword"),S(Xr))}function Ar(ne){if(ne==",")return S(Ro,Ar)}function Xr(ne,me){if(me=="as")return B.marked="keyword",S(Ro)}function Ot(ne,me){if(me=="from")return B.marked="keyword",S(ze)}function to(ne){return ne=="]"?S():V(ye(tt,"]"))}function Us(){return V(Se("form"),Ae,Ne("{"),Se("}"),ye(ro,"}"),_e,_e)}function ro(){return V(Ae,Qe)}function wr(ne,me){return ne.lastType=="operator"||ne.lastType==","||f.test(me.charAt(0))||/[,.]/.test(me.charAt(0))}function vo(ne,me,be){return me.tokenize==T&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(me.lastType)||me.lastType=="quasi"&&/\{\s*$/.test(ne.string.slice(0,ne.pos-(be||0)))}return{startState:function(ne){var me={tokenize:T,lastType:"sof",cc:[],lexical:new C((ne||0)-n,0,"block",!1),localVars:r.localVars,context:r.localVars&&new z(null,null,!1),indented:ne||0};return r.globalVars&&typeof r.globalVars=="object"&&(me.globalVars=r.globalVars),me},token:function(ne,me){if(ne.sol()&&(me.lexical.hasOwnProperty("align")||(me.lexical.align=!1),me.indented=ne.indentation(),P(ne,me)),me.tokenize!=A&&ne.eatSpace())return null;var be=me.tokenize(ne,me);return m=="comment"?be:(me.lastType=m=="operator"&&(x=="++"||x=="--")?"incdec":m,F(me,be,m,x,ne))},indent:function(ne,me){if(ne.tokenize==A||ne.tokenize==D)return t.Pass;if(ne.tokenize!=T)return 0;var be=me&&me.charAt(0),$=ne.lexical,H;if(!/^\s*else\b/.test(me))for(var ae=ne.cc.length-1;ae>=0;--ae){var ge=ne.cc[ae];if(ge==_e)$=$.prev;else if(ge!=_t)break}for(;($.type=="stat"||$.type=="form")&&(be=="}"||(H=ne.cc[ne.cc.length-1])&&(H==Oe||H==Me)&&!/^[,\.=+\-*:?[\(]/.test(me));)$=$.prev;i&&$.type==")"&&$.prev.type=="stat"&&($=$.prev);var Re=$.type,Ue=be==Re;return Re=="vardef"?$.indented+(ne.lastType=="operator"||ne.lastType==","?$.info.length+1:0):Re=="form"&&be=="{"?$.indented:Re=="form"?$.indented+n:Re=="stat"?$.indented+(wr(ne,me)?i||n:0):$.info=="switch"&&!Ue&&r.doubleIndentSwitch!=!1?$.indented+(/^(?:case|default)\b/.test(me)?n:2*n):$.align?$.column+(Ue?0:1):$.indented+(Ue?0:n)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:a?null:"/*",blockCommentEnd:a?null:"*/",blockCommentContinue:a?null:" * ",lineComment:a?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:a?"json":"javascript",jsonldMode:o,jsonMode:a,expressionAllowed:vo,skipExpression:function(ne){var me=ne.cc[ne.cc.length-1];(me==ze||me==tt)&&ne.cc.pop()}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var R1=Z((lne,une)=>{(function(t){typeof lne=="object"&&typeof une=="object"?t(Br(),nm(),o0(),rm()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],t):t(CodeMirror)})(function(t){"use strict";var e={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function r(c,f,p){var g=c.current(),m=g.search(f);return m>-1?c.backUp(g.length-m):g.match(/<\/?$/)&&(c.backUp(g.length),c.match(f,!1)||c.match(g)),p}var n={};function i(c){var f=n[c];return f||(n[c]=new RegExp("\\s+"+c+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function o(c,f){var p=c.match(i(f));return p?/^\s*(.*?)\s*$/.exec(p[2])[1]:""}function a(c,f){return new RegExp((f?"^":"")+"</s*"+c+"s*>","i")}function s(c,f){for(var p in c)for(var g=f[p]||(f[p]=[]),m=c[p],x=m.length-1;x>=0;x--)g.unshift(m[x])}function u(c,f){for(var p=0;p<c.length;p++){var g=c[p];if(!g[0]||g[1].test(o(f,g[0])))return g[2]}}t.defineMode("htmlmixed",function(c,f){var p=t.getMode(c,{name:"xml",htmlMode:!0,multilineTagIndentFactor:f.multilineTagIndentFactor,multilineTagIndentPastTag:f.multilineTagIndentPastTag,allowMissingTagName:f.allowMissingTagName}),g={},m=f&&f.tags,x=f&&f.scriptTypes;if(s(e,g),m&&s(m,g),x)for(var w=x.length-1;w>=0;w--)g.script.unshift(["type",x[w].matches,x[w].mode]);function T(k,A){var D=p.token(k,A.htmlState),M=/\btag\b/.test(D),P;if(M&&!/[<>\s\/]/.test(k.current())&&(P=A.htmlState.tagName&&A.htmlState.tagName.toLowerCase())&&g.hasOwnProperty(P))A.inTag=P+" ";else if(A.inTag&&M&&/>$/.test(k.current())){var _=/^([\S]+) (.*)/.exec(A.inTag);A.inTag=null;var C=k.current()==">"&&u(g[_[1]],_[2]),O=t.getMode(c,C),F=a(_[1],!0),B=a(_[1],!1);A.token=function(V,S){return V.match(F,!1)?(S.token=T,S.localState=S.localMode=null,null):r(V,B,S.localMode.token(V,S.localState))},A.localMode=O,A.localState=t.startState(O,p.indent(A.htmlState,"",""))}else A.inTag&&(A.inTag+=k.current(),k.eol()&&(A.inTag+=" "));return D}return{startState:function(){var k=t.startState(p);return{token:T,inTag:null,localMode:null,localState:null,htmlState:k}},copyState:function(k){var A;return k.localState&&(A=t.copyState(k.localMode,k.localState)),{token:k.token,inTag:k.inTag,localMode:k.localMode,localState:A,htmlState:t.copyState(p,k.htmlState)}},token:function(k,A){return A.token(k,A)},indent:function(k,A,D){return!k.localMode||/^\s*<\//.test(A)?p.indent(k.htmlState,A,D):k.localMode.indent?k.localMode.indent(k.localState,A,D):t.Pass},innerMode:function(k){return{state:k.localState||k.htmlState,mode:k.localMode||p}}}},"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")})});var dne=Z((cne,fne)=>{(function(t){typeof cne=="object"&&typeof fne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e<t.modeInfo.length;e++){var r=t.modeInfo[e];r.mimes&&(r.mime=r.mimes[0])}t.findModeByMIME=function(n){n=n.toLowerCase();for(var i=0;i<t.modeInfo.length;i++){var o=t.modeInfo[i];if(o.mime==n)return o;if(o.mimes){for(var a=0;a<o.mimes.length;a++)if(o.mimes[a]==n)return o}}if(/\+xml$/.test(n))return t.findModeByMIME("application/xml");if(/\+json$/.test(n))return t.findModeByMIME("application/json")},t.findModeByExtension=function(n){n=n.toLowerCase();for(var i=0;i<t.modeInfo.length;i++){var o=t.modeInfo[i];if(o.ext){for(var a=0;a<o.ext.length;a++)if(o.ext[a]==n)return o}}},t.findModeByFileName=function(n){for(var i=0;i<t.modeInfo.length;i++){var o=t.modeInfo[i];if(o.file&&o.file.test(n))return o}var a=n.lastIndexOf("."),s=a>-1&&n.substring(a+1,n.length);if(s)return t.findModeByExtension(s)},t.findModeByName=function(n){n=n.toLowerCase();for(var i=0;i<t.modeInfo.length;i++){var o=t.modeInfo[i];if(o.name.toLowerCase()==n)return o;if(o.alias){for(var a=0;a<o.alias.length;a++)if(o.alias[a].toLowerCase()==n)return o}}}})});var q1=Z((hne,pne)=>{(function(t){typeof hne=="object"&&typeof pne=="object"?t(Br(),nm(),dne()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("markdown",function(e,r){var n=t.getMode(e,"text/html"),i=n.name=="null";function o(G){if(t.findModeByName){var K=t.findModeByName(G);K&&(G=K.mime||K.mimes[0])}var ve=t.getMode(e,G);return ve.name=="null"?null:ve}r.highlightFormatting===void 0&&(r.highlightFormatting=!1),r.maxBlockquoteDepth===void 0&&(r.maxBlockquoteDepth=0),r.taskLists===void 0&&(r.taskLists=!1),r.strikethrough===void 0&&(r.strikethrough=!1),r.emoji===void 0&&(r.emoji=!1),r.fencedCodeBlockHighlighting===void 0&&(r.fencedCodeBlockHighlighting=!0),r.fencedCodeBlockDefaultMode===void 0&&(r.fencedCodeBlockDefaultMode="text/plain"),r.xml===void 0&&(r.xml=!0),r.tokenTypeOverrides===void 0&&(r.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&r.tokenTypeOverrides[s]&&(a[s]=r.tokenTypeOverrides[s]);var u=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,f=/^\[(x| )\](?=\s)/i,p=r.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,g=/^ {0,3}(?:\={1,}|-{2,})\s*$/,m=/^[^#!\[\]*_\\<>` "'(~:]+/,x=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,w=/^\s*\[[^\]]+?\]:.*$/,T=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,k=" ";function A(G,K,ve){return K.f=K.inline=ve,ve(G,K)}function D(G,K,ve){return K.f=K.block=ve,ve(G,K)}function M(G){return!G||!/\S/.test(G.string)}function P(G){if(G.linkTitle=!1,G.linkHref=!1,G.linkText=!1,G.em=!1,G.strong=!1,G.strikethrough=!1,G.quote=0,G.indentedCode=!1,G.f==C){var K=i;if(!K){var ve=t.innerMode(n,G.htmlState);K=ve.mode.name=="xml"&&ve.state.tagStart===null&&!ve.state.context&&ve.state.tokenize.isInText}K&&(G.f=V,G.block=_,G.htmlState=null)}return G.trailingSpace=0,G.trailingSpaceNewLine=!1,G.prevLine=G.thisLine,G.thisLine={stream:null},null}function _(G,K){var ve=G.column()===K.indentation,Se=M(K.prevLine.stream),_e=K.indentedCode,Ne=K.prevLine.hr,Le=K.list!==!1,it=(K.listStack[K.listStack.length-1]||0)+3;K.indentedCode=!1;var ze=K.indentation;if(K.indentationDiff===null&&(K.indentationDiff=K.indentation,Le)){for(K.list=null;ze<K.listStack[K.listStack.length-1];)K.listStack.pop(),K.listStack.length?K.indentation=K.listStack[K.listStack.length-1]:K.list=!1;K.list!==!1&&(K.indentationDiff=ze-K.listStack[K.listStack.length-1])}var tt=!Se&&!Ne&&!K.prevLine.header&&(!Le||!_e)&&!K.prevLine.fencedCodeEnd,wt=(K.list===!1||Ne||Se)&&K.indentation<=it&&G.match(u),At=null;if(K.indentationDiff>=4&&(_e||K.prevLine.fencedCodeEnd||K.prevLine.header||Se))return G.skipToEnd(),K.indentedCode=!0,a.code;if(G.eatSpace())return null;if(ve&&K.indentation<=it&&(At=G.match(p))&&At[1].length<=6)return K.quote=0,K.header=At[1].length,K.thisLine.header=!0,r.highlightFormatting&&(K.formatting="header"),K.f=K.inline,F(K);if(K.indentation<=it&&G.eat(">"))return K.quote=ve?1:K.quote+1,r.highlightFormatting&&(K.formatting="quote"),G.eatSpace(),F(K);if(!wt&&!K.setext&&ve&&K.indentation<=it&&(At=G.match(c))){var Ve=At[1]?"ol":"ul";return K.indentation=ze+G.current().length,K.list=!0,K.quote=0,K.listStack.push(K.indentation),K.em=!1,K.strong=!1,K.code=!1,K.strikethrough=!1,r.taskLists&&G.match(f,!1)&&(K.taskList=!0),K.f=K.inline,r.highlightFormatting&&(K.formatting=["list","list-"+Ve]),F(K)}else{if(ve&&K.indentation<=it&&(At=G.match(x,!0)))return K.quote=0,K.fencedEndRE=new RegExp(At[1]+"+ *$"),K.localMode=r.fencedCodeBlockHighlighting&&o(At[2]||r.fencedCodeBlockDefaultMode),K.localMode&&(K.localState=t.startState(K.localMode)),K.f=K.block=O,r.highlightFormatting&&(K.formatting="code-block"),K.code=-1,F(K);if(K.setext||(!tt||!Le)&&!K.quote&&K.list===!1&&!K.code&&!wt&&!w.test(G.string)&&(At=G.lookAhead(1))&&(At=At.match(g)))return K.setext?(K.header=K.setext,K.setext=0,G.skipToEnd(),r.highlightFormatting&&(K.formatting="header")):(K.header=At[0].charAt(0)=="="?1:2,K.setext=K.header),K.thisLine.header=!0,K.f=K.inline,F(K);if(wt)return G.skipToEnd(),K.hr=!0,K.thisLine.hr=!0,a.hr;if(G.peek()==="[")return A(G,K,N)}return A(G,K,K.inline)}function C(G,K){var ve=n.token(G,K.htmlState);if(!i){var Se=t.innerMode(n,K.htmlState);(Se.mode.name=="xml"&&Se.state.tagStart===null&&!Se.state.context&&Se.state.tokenize.isInText||K.md_inside&&G.current().indexOf(">")>-1)&&(K.f=V,K.block=_,K.htmlState=null)}return ve}function O(G,K){var ve=K.listStack[K.listStack.length-1]||0,Se=K.indentation<ve,_e=ve+3;if(K.fencedEndRE&&K.indentation<=_e&&(Se||G.match(K.fencedEndRE))){r.highlightFormatting&&(K.formatting="code-block");var Ne;return Se||(Ne=F(K)),K.localMode=K.localState=null,K.block=_,K.f=V,K.fencedEndRE=null,K.code=0,K.thisLine.fencedCodeEnd=!0,Se?D(G,K,K.block):Ne}else return K.localMode?K.localMode.token(G,K.localState):(G.skipToEnd(),a.code)}function F(G){var K=[];if(G.formatting){K.push(a.formatting),typeof G.formatting=="string"&&(G.formatting=[G.formatting]);for(var ve=0;ve<G.formatting.length;ve++)K.push(a.formatting+"-"+G.formatting[ve]),G.formatting[ve]==="header"&&K.push(a.formatting+"-"+G.formatting[ve]+"-"+G.header),G.formatting[ve]==="quote"&&(!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=G.quote?K.push(a.formatting+"-"+G.formatting[ve]+"-"+G.quote):K.push("error"))}if(G.taskOpen)return K.push("meta"),K.length?K.join(" "):null;if(G.taskClosed)return K.push("property"),K.length?K.join(" "):null;if(G.linkHref?K.push(a.linkHref,"url"):(G.strong&&K.push(a.strong),G.em&&K.push(a.em),G.strikethrough&&K.push(a.strikethrough),G.emoji&&K.push(a.emoji),G.linkText&&K.push(a.linkText),G.code&&K.push(a.code),G.image&&K.push(a.image),G.imageAltText&&K.push(a.imageAltText,"link"),G.imageMarker&&K.push(a.imageMarker)),G.header&&K.push(a.header,a.header+"-"+G.header),G.quote&&(K.push(a.quote),!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=G.quote?K.push(a.quote+"-"+G.quote):K.push(a.quote+"-"+r.maxBlockquoteDepth)),G.list!==!1){var Se=(G.listStack.length-1)%3;Se?Se===1?K.push(a.list2):K.push(a.list3):K.push(a.list1)}return G.trailingSpaceNewLine?K.push("trailing-space-new-line"):G.trailingSpace&&K.push("trailing-space-"+(G.trailingSpace%2?"a":"b")),K.length?K.join(" "):null}function B(G,K){if(G.match(m,!0))return F(K)}function V(G,K){var ve=K.text(G,K);if(typeof ve<"u")return ve;if(K.list)return K.list=null,F(K);if(K.taskList){var Se=G.match(f,!0)[1]===" ";return Se?K.taskOpen=!0:K.taskClosed=!0,r.highlightFormatting&&(K.formatting="task"),K.taskList=!1,F(K)}if(K.taskOpen=!1,K.taskClosed=!1,K.header&&G.match(/^#+$/,!0))return r.highlightFormatting&&(K.formatting="header"),F(K);var _e=G.next();if(K.linkTitle){K.linkTitle=!1;var Ne=_e;_e==="("&&(Ne=")"),Ne=(Ne+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Le="^\\s*(?:[^"+Ne+"\\\\]+|\\\\\\\\|\\\\.)"+Ne;if(G.match(new RegExp(Le),!0))return a.linkHref}if(_e==="`"){var it=K.formatting;r.highlightFormatting&&(K.formatting="code"),G.eatWhile("`");var ze=G.current().length;if(K.code==0&&(!K.quote||ze==1))return K.code=ze,F(K);if(ze==K.code){var tt=F(K);return K.code=0,tt}else return K.formatting=it,F(K)}else if(K.code)return F(K);if(_e==="\\"&&(G.next(),r.highlightFormatting)){var wt=F(K),At=a.formatting+"-escape";return wt?wt+" "+At:At}if(_e==="!"&&G.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return K.imageMarker=!0,K.image=!0,r.highlightFormatting&&(K.formatting="image"),F(K);if(_e==="["&&K.imageMarker&&G.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return K.imageMarker=!1,K.imageAltText=!0,r.highlightFormatting&&(K.formatting="image"),F(K);if(_e==="]"&&K.imageAltText){r.highlightFormatting&&(K.formatting="image");var wt=F(K);return K.imageAltText=!1,K.image=!1,K.inline=K.f=R,wt}if(_e==="["&&!K.image)return K.linkText&&G.match(/^.*?\]/)||(K.linkText=!0,r.highlightFormatting&&(K.formatting="link")),F(K);if(_e==="]"&&K.linkText){r.highlightFormatting&&(K.formatting="link");var wt=F(K);return K.linkText=!1,K.inline=K.f=G.match(/\(.*?\)| ?\[.*?\]/,!1)?R:V,wt}if(_e==="<"&&G.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=S,r.highlightFormatting&&(K.formatting="link");var wt=F(K);return wt?wt+=" ":wt="",wt+a.linkInline}if(_e==="<"&&G.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){K.f=K.inline=S,r.highlightFormatting&&(K.formatting="link");var wt=F(K);return wt?wt+=" ":wt="",wt+a.linkEmail}if(r.xml&&_e==="<"&&G.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ve=G.string.indexOf(">",G.pos);if(Ve!=-1){var Oe=G.string.substring(G.start,Ve);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Oe)&&(K.md_inside=!0)}return G.backUp(1),K.htmlState=t.startState(n),D(G,K,C)}if(r.xml&&_e==="<"&&G.match(/^\/\w*?>/))return K.md_inside=!1,"tag";if(_e==="*"||_e==="_"){for(var Me=1,he=G.pos==1?" ":G.string.charAt(G.pos-2);Me<3&&G.eat(_e);)Me++;var J=G.peek()||" ",re=!/\s/.test(J)&&(!T.test(J)||/\s/.test(he)||T.test(he)),fe=!/\s/.test(he)&&(!T.test(he)||/\s/.test(J)||T.test(J)),ht=null,ke=null;if(Me%2&&(!K.em&&re&&(_e==="*"||!fe||T.test(he))?ht=!0:K.em==_e&&fe&&(_e==="*"||!re||T.test(J))&&(ht=!1)),Me>1&&(!K.strong&&re&&(_e==="*"||!fe||T.test(he))?ke=!0:K.strong==_e&&fe&&(_e==="*"||!re||T.test(J))&&(ke=!1)),ke!=null||ht!=null){r.highlightFormatting&&(K.formatting=ht==null?"strong":ke==null?"em":"strong em"),ht===!0&&(K.em=_e),ke===!0&&(K.strong=_e);var tt=F(K);return ht===!1&&(K.em=!1),ke===!1&&(K.strong=!1),tt}}else if(_e===" "&&(G.eat("*")||G.eat("_"))){if(G.peek()===" ")return F(K);G.backUp(1)}if(r.strikethrough){if(_e==="~"&&G.eatWhile(_e)){if(K.strikethrough){r.highlightFormatting&&(K.formatting="strikethrough");var tt=F(K);return K.strikethrough=!1,tt}else if(G.match(/^[^\s]/,!1))return K.strikethrough=!0,r.highlightFormatting&&(K.formatting="strikethrough"),F(K)}else if(_e===" "&&G.match(/^~~/,!0)){if(G.peek()===" ")return F(K);G.backUp(2)}}if(r.emoji&&_e===":"&&G.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){K.emoji=!0,r.highlightFormatting&&(K.formatting="emoji");var $e=F(K);return K.emoji=!1,$e}return _e===" "&&(G.match(/^ +$/,!1)?K.trailingSpace++:K.trailingSpace&&(K.trailingSpaceNewLine=!0)),F(K)}function S(G,K){var ve=G.next();if(ve===">"){K.f=K.inline=V,r.highlightFormatting&&(K.formatting="link");var Se=F(K);return Se?Se+=" ":Se="",Se+a.linkInline}return G.match(/^[^>]+/,!0),a.linkInline}function R(G,K){if(G.eatSpace())return null;var ve=G.next();return ve==="("||ve==="["?(K.f=K.inline=W(ve==="("?")":"]"),r.highlightFormatting&&(K.formatting="link-string"),K.linkHref=!0,F(K)):"error"}var q={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function W(G){return function(K,ve){var Se=K.next();if(Se===G){ve.f=ve.inline=V,r.highlightFormatting&&(ve.formatting="link-string");var _e=F(ve);return ve.linkHref=!1,_e}return K.match(q[G]),ve.linkHref=!0,F(ve)}}function N(G,K){return G.match(/^([^\]\\]|\\.)*\]:/,!1)?(K.f=z,G.next(),r.highlightFormatting&&(K.formatting="link"),K.linkText=!0,F(K)):A(G,K,V)}function z(G,K){if(G.match(/^\]:/,!0)){K.f=K.inline=X,r.highlightFormatting&&(K.formatting="link");var ve=F(K);return K.linkText=!1,ve}return G.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function X(G,K){return G.eatSpace()?null:(G.match(/^[^\s]+/,!0),G.peek()===void 0?K.linkTitle=!0:G.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),K.f=K.inline=V,a.linkHref+" url")}var oe={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:V,text:B,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(G){return{f:G.f,prevLine:G.prevLine,thisLine:G.thisLine,block:G.block,htmlState:G.htmlState&&t.copyState(n,G.htmlState),indentation:G.indentation,localMode:G.localMode,localState:G.localMode?t.copyState(G.localMode,G.localState):null,inline:G.inline,text:G.text,formatting:!1,linkText:G.linkText,linkTitle:G.linkTitle,linkHref:G.linkHref,code:G.code,em:G.em,strong:G.strong,strikethrough:G.strikethrough,emoji:G.emoji,header:G.header,setext:G.setext,hr:G.hr,taskList:G.taskList,list:G.list,listStack:G.listStack.slice(0),quote:G.quote,indentedCode:G.indentedCode,trailingSpace:G.trailingSpace,trailingSpaceNewLine:G.trailingSpaceNewLine,md_inside:G.md_inside,fencedEndRE:G.fencedEndRE}},token:function(G,K){if(K.formatting=!1,G!=K.thisLine.stream){if(K.header=0,K.hr=!1,G.match(/^\s*$/,!0))return P(K),null;if(K.prevLine=K.thisLine,K.thisLine={stream:G},K.taskList=!1,K.trailingSpace=0,K.trailingSpaceNewLine=!1,!K.localState&&(K.f=K.block,K.f!=C)){var ve=G.match(/^\s*/,!0)[0].replace(/\t/g,k).length;if(K.indentation=ve,K.indentationDiff=null,ve>0)return null}}return K.f(G,K)},innerMode:function(G){return G.block==C?{state:G.htmlState,mode:n}:G.localState?{state:G.localState,mode:G.localMode}:{state:G,mode:oe}},indent:function(G,K,ve){return G.block==C&&n.indent?n.indent(G.htmlState,K,ve):G.localState&&G.localMode.indent?G.localMode.indent(G.localState,K,ve):t.Pass},blankLine:P,getType:F,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return oe},"xml"),t.defineMIME("text/markdown","markdown"),t.defineMIME("text/x-markdown","markdown")})});var vne=Z((gne,mne)=>{(function(t){typeof gne=="object"&&typeof mne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("nginx",function(e){function r(m){for(var x={},w=m.split(" "),T=0;T<w.length;++T)x[w[T]]=!0;return x}var n=r("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),i=r("http mail events server types location upstream charset_map limit_except if geo map"),o=r("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),a=e.indentUnit,s;function u(m,x){return s=x,m}function c(m,x){m.eatWhile(/[\w\$_]/);var w=m.current();if(n.propertyIsEnumerable(w))return"keyword";if(i.propertyIsEnumerable(w))return"variable-2";if(o.propertyIsEnumerable(w))return"string-2";var T=m.next();if(T=="@")return m.eatWhile(/[\w\\\-]/),u("meta",m.current());if(T=="/"&&m.eat("*"))return x.tokenize=f,f(m,x);if(T=="<"&&m.eat("!"))return x.tokenize=p,p(m,x);if(T=="=")u(null,"compare");else return(T=="~"||T=="|")&&m.eat("=")?u(null,"compare"):T=='"'||T=="'"?(x.tokenize=g(T),x.tokenize(m,x)):T=="#"?(m.skipToEnd(),u("comment","comment")):T=="!"?(m.match(/^\s*\w*/),u("keyword","important")):/\d/.test(T)?(m.eatWhile(/[\w.%]/),u("number","unit")):/[,.+>*\/]/.test(T)?u(null,"select-op"):/[;{}:\[\]]/.test(T)?u(null,T):(m.eatWhile(/[\w\\\-]/),u("variable","variable"))}function f(m,x){for(var w=!1,T;(T=m.next())!=null;){if(w&&T=="/"){x.tokenize=c;break}w=T=="*"}return u("comment","comment")}function p(m,x){for(var w=0,T;(T=m.next())!=null;){if(w>=2&&T==">"){x.tokenize=c;break}w=T=="-"?w+1:0}return u("comment","comment")}function g(m){return function(x,w){for(var T=!1,k;(k=x.next())!=null&&!(k==m&&!T);)T=!T&&k=="\\";return T||(w.tokenize=c),u("string","string")}}return{startState:function(m){return{tokenize:c,baseIndent:m||0,stack:[]}},token:function(m,x){if(m.eatSpace())return null;s=null;var w=x.tokenize(m,x),T=x.stack[x.stack.length-1];return s=="hash"&&T=="rule"?w="atom":w=="variable"&&(T=="rule"?w="number":(!T||T=="@media{")&&(w="tag")),T=="rule"&&/^[\{\};]$/.test(s)&&x.stack.pop(),s=="{"?T=="@media"?x.stack[x.stack.length-1]="@media{":x.stack.push("{"):s=="}"?x.stack.pop():s=="@media"?x.stack.push("@media"):T=="{"&&s!="comment"&&x.stack.push("rule"),w},indent:function(m,x){var w=m.stack.length;return/^\}/.test(x)&&(w-=m.stack[m.stack.length-1]=="rule"?2:1),m.baseIndent+w*a},electricChars:"}"}}),t.defineMIME("text/x-nginx-conf","nginx")})});var xne=Z((yne,bne)=>{(function(t){typeof yne=="object"&&typeof bne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";function e(N,z,X,oe,G,K){this.indented=N,this.column=z,this.type=X,this.info=oe,this.align=G,this.prev=K}function r(N,z,X,oe){var G=N.indented;return N.context&&N.context.type=="statement"&&X!="statement"&&(G=N.context.indented),N.context=new e(G,z,X,oe,null,N.context)}function n(N){var z=N.context.type;return(z==")"||z=="]"||z=="}")&&(N.indented=N.context.indented),N.context=N.context.prev}function i(N,z,X){if(z.prevToken=="variable"||z.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(N.string.slice(0,X))||z.typeAtEndOfLine&&N.column()==N.indentation())return!0}function o(N){for(;;){if(!N||N.type=="top")return!0;if(N.type=="}"&&N.prev.info!="namespace")return!1;N=N.prev}}t.defineMode("clike",function(N,z){var X=N.indentUnit,oe=z.statementIndentUnit||X,G=z.dontAlignCalls,K=z.keywords||{},ve=z.types||{},Se=z.builtin||{},_e=z.blockKeywords||{},Ne=z.defKeywords||{},Le=z.atoms||{},it=z.hooks||{},ze=z.multiLineStrings,tt=z.indentStatements!==!1,wt=z.indentSwitch!==!1,At=z.namespaceSeparator,Ve=z.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,Oe=z.numberStart||/[\d\.]/,Me=z.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,he=z.isOperatorChar||/[+\-*&%=<>!?|\/]/,J=z.isIdentifierChar||/[\w\$_\xa1-\uffff]/,re=z.isReservedIdentifier||!1,fe,ht;function ke(ut,pt){var st=ut.next();if(it[st]){var ye=it[st](ut,pt);if(ye!==!1)return ye}if(st=='"'||st=="'")return pt.tokenize=$e(st),pt.tokenize(ut,pt);if(Oe.test(st)){if(ut.backUp(1),ut.match(Me))return"number";ut.next()}if(Ve.test(st))return fe=st,null;if(st=="/"){if(ut.eat("*"))return pt.tokenize=Fe,Fe(ut,pt);if(ut.eat("/"))return ut.skipToEnd(),"comment"}if(he.test(st)){for(;!ut.match(/^\/[\/*]/,!1)&&ut.eat(he););return"operator"}if(ut.eatWhile(J),At)for(;ut.match(At);)ut.eatWhile(J);var xe=ut.current();return s(K,xe)?(s(_e,xe)&&(fe="newstatement"),s(Ne,xe)&&(ht=!0),"keyword"):s(ve,xe)?"type":s(Se,xe)||re&&re(xe)?(s(_e,xe)&&(fe="newstatement"),"builtin"):s(Le,xe)?"atom":"variable"}function $e(ut){return function(pt,st){for(var ye=!1,xe,We=!1;(xe=pt.next())!=null;){if(xe==ut&&!ye){We=!0;break}ye=!ye&&xe=="\\"}return(We||!(ye||ze))&&(st.tokenize=null),"string"}}function Fe(ut,pt){for(var st=!1,ye;ye=ut.next();){if(ye=="/"&&st){pt.tokenize=null;break}st=ye=="*"}return"comment"}function It(ut,pt){z.typeFirstDefinitions&&ut.eol()&&o(pt.context)&&(pt.typeAtEndOfLine=i(ut,pt,ut.pos))}return{startState:function(ut){return{tokenize:null,context:new e((ut||0)-X,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(ut,pt){var st=pt.context;if(ut.sol()&&(st.align==null&&(st.align=!1),pt.indented=ut.indentation(),pt.startOfLine=!0),ut.eatSpace())return It(ut,pt),null;fe=ht=null;var ye=(pt.tokenize||ke)(ut,pt);if(ye=="comment"||ye=="meta")return ye;if(st.align==null&&(st.align=!0),fe==";"||fe==":"||fe==","&&ut.match(/^\s*(?:\/\/.*)?$/,!1))for(;pt.context.type=="statement";)n(pt);else if(fe=="{")r(pt,ut.column(),"}");else if(fe=="[")r(pt,ut.column(),"]");else if(fe=="(")r(pt,ut.column(),")");else if(fe=="}"){for(;st.type=="statement";)st=n(pt);for(st.type=="}"&&(st=n(pt));st.type=="statement";)st=n(pt)}else fe==st.type?n(pt):tt&&((st.type=="}"||st.type=="top")&&fe!=";"||st.type=="statement"&&fe=="newstatement")&&r(pt,ut.column(),"statement",ut.current());if(ye=="variable"&&(pt.prevToken=="def"||z.typeFirstDefinitions&&i(ut,pt,ut.start)&&o(pt.context)&&ut.match(/^\s*\(/,!1))&&(ye="def"),it.token){var xe=it.token(ut,pt,ye);xe!==void 0&&(ye=xe)}return ye=="def"&&z.styleDefs===!1&&(ye="variable"),pt.startOfLine=!1,pt.prevToken=ht?"def":ye||fe,It(ut,pt),ye},indent:function(ut,pt){if(ut.tokenize!=ke&&ut.tokenize!=null||ut.typeAtEndOfLine)return t.Pass;var st=ut.context,ye=pt&&pt.charAt(0),xe=ye==st.type;if(st.type=="statement"&&ye=="}"&&(st=st.prev),z.dontIndentStatements)for(;st.type=="statement"&&z.dontIndentStatements.test(st.info);)st=st.prev;if(it.indent){var We=it.indent(ut,st,pt,X);if(typeof We=="number")return We}var yt=st.prev&&st.prev.info=="switch";if(z.allmanIndentation&&/[{(]/.test(ye)){for(;st.type!="top"&&st.type!="}";)st=st.prev;return st.indented}return st.type=="statement"?st.indented+(ye=="{"?0:oe):st.align&&(!G||st.type!=")")?st.column+(xe?0:1):st.type==")"&&!xe?st.indented+oe:st.indented+(xe?0:X)+(!xe&&yt&&!/^(?:case|default)\b/.test(pt)?X:0)},electricInput:wt?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function a(N){for(var z={},X=N.split(" "),oe=0;oe<X.length;++oe)z[X[oe]]=!0;return z}function s(N,z){return typeof N=="function"?N(z):N.propertyIsEnumerable(z)}var u="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",c="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",f="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",p="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",g=a("int long char short double float unsigned signed void bool"),m=a("SEL instancetype id Class Protocol BOOL");function x(N){return s(g,N)||/.+_t$/.test(N)}function w(N){return x(N)||s(m,N)}var T="case do else for if switch while struct enum union",k="struct enum union";function A(N,z){if(!z.startOfLine)return!1;for(var X,oe=null;X=N.peek();){if(X=="\\"&&N.match(/^.$/)){oe=A;break}else if(X=="/"&&N.match(/^\/[\/\*]/,!1))break;N.next()}return z.tokenize=oe,"meta"}function D(N,z){return z.prevToken=="type"?"type":!1}function M(N){return!N||N.length<2||N[0]!="_"?!1:N[1]=="_"||N[1]!==N[1].toLowerCase()}function P(N){return N.eatWhile(/[\w\.']/),"number"}function _(N,z){if(N.backUp(1),N.match(/(R|u8R|uR|UR|LR)/)){var X=N.match(/"([^\s\\()]{0,16})\(/);return X?(z.cpp11RawStringDelim=X[1],z.tokenize=F,F(N,z)):!1}return N.match(/(u8|u|U|L)/)?N.match(/["']/,!1)?"string":!1:(N.next(),!1)}function C(N){var z=/(\w+)::~?(\w+)$/.exec(N);return z&&z[1]==z[2]}function O(N,z){for(var X;(X=N.next())!=null;)if(X=='"'&&!N.eat('"')){z.tokenize=null;break}return"string"}function F(N,z){var X=z.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),oe=N.match(new RegExp(".*?\\)"+X+'"'));return oe?z.tokenize=null:N.skipToEnd(),"string"}function B(N,z){typeof N=="string"&&(N=[N]);var X=[];function oe(K){if(K)for(var ve in K)K.hasOwnProperty(ve)&&X.push(ve)}oe(z.keywords),oe(z.types),oe(z.builtin),oe(z.atoms),X.length&&(z.helperType=N[0],t.registerHelper("hintWords",N[0],X));for(var G=0;G<N.length;++G)t.defineMIME(N[G],z)}B(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(u),types:x,blockKeywords:a(T),defKeywords:a(k),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:M,hooks:{"#":A,"*":D},modeProps:{fold:["brace","include"]}}),B(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(u+" "+c),types:x,blockKeywords:a(T+" class try catch"),defKeywords:a(k+" class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:M,hooks:{"#":A,"*":D,u:_,U:_,L:_,R:_,"0":P,"1":P,"2":P,"3":P,"4":P,"5":P,"6":P,"7":P,"8":P,"9":P,token:function(N,z,X){if(X=="variable"&&N.peek()=="("&&(z.prevToken==";"||z.prevToken==null||z.prevToken=="}")&&C(N.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),B("text/x-java",{name:"clike",keywords:a("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:a("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(N){return N.match("interface",!1)?!1:(N.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),B("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(N,z){return N.eat('"')?(z.tokenize=O,O(N,z)):(N.eatWhile(/[\w\$_]/),"meta")}}});function V(N,z){for(var X=!1;!N.eol();){if(!X&&N.match('"""')){z.tokenize=null;break}X=N.next()=="\\"&&!X}return"string"}function S(N){return function(z,X){for(var oe;oe=z.next();)if(oe=="*"&&z.eat("/"))if(N==1){X.tokenize=null;break}else return X.tokenize=S(N-1),X.tokenize(z,X);else if(oe=="/"&&z.eat("*"))return X.tokenize=S(N+1),X.tokenize(z,X);return"comment"}}B("text/x-scala",{name:"clike",keywords:a("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:a("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(N){return N.eatWhile(/[\w\$_]/),"meta"},'"':function(N,z){return N.match('""')?(z.tokenize=V,z.tokenize(N,z)):!1},"'":function(N){return N.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(N,z){var X=z.context;return X.type=="}"&&X.align&&N.eat(">")?(z.context=new e(X.indented,X.column,X.type,X.info,null,X.prev),"operator"):!1},"/":function(N,z){return N.eat("*")?(z.tokenize=S(1),z.tokenize(N,z)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function R(N){return function(z,X){for(var oe=!1,G,K=!1;!z.eol();){if(!N&&!oe&&z.match('"')){K=!0;break}if(N&&z.match('"""')){K=!0;break}G=z.next(),!oe&&G=="$"&&z.match("{")&&z.skipTo("}"),oe=!oe&&G=="\\"&&!N}return(K||!N)&&(X.tokenize=null),"string"}}B("text/x-kotlin",{name:"clike",keywords:a("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(N){return N.eatWhile(/[\w\$_]/),"meta"},"*":function(N,z){return z.prevToken=="."?"variable":"operator"},'"':function(N,z){return z.tokenize=R(N.match('""')),z.tokenize(N,z)},"/":function(N,z){return N.eat("*")?(z.tokenize=S(1),z.tokenize(N,z)):!1},indent:function(N,z,X,oe){var G=X&&X.charAt(0);if((N.prevToken=="}"||N.prevToken==")")&&X=="")return N.indented;if(N.prevToken=="operator"&&X!="}"&&N.context.type!="}"||N.prevToken=="variable"&&G=="."||(N.prevToken=="}"||N.prevToken==")")&&G==".")return oe*2+z.indented;if(z.align&&z.type=="}")return z.indented+(N.context.type==(X||"").charAt(0)?0:oe)}},modeProps:{closeBrackets:{triples:'"'}}}),B(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:a("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":A},modeProps:{fold:["brace","include"]}}),B("text/x-nesc",{name:"clike",keywords:a(u+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:x,blockKeywords:a(T),atoms:a("null true false"),hooks:{"#":A},modeProps:{fold:["brace","include"]}}),B("text/x-objectivec",{name:"clike",keywords:a(u+" "+f),types:w,builtin:a(p),blockKeywords:a(T+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(k+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:M,hooks:{"#":A,"*":D},modeProps:{fold:["brace","include"]}}),B("text/x-objectivec++",{name:"clike",keywords:a(u+" "+f+" "+c),types:w,builtin:a(p),blockKeywords:a(T+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(k+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:M,hooks:{"#":A,"*":D,u:_,U:_,L:_,R:_,"0":P,"1":P,"2":P,"3":P,"4":P,"5":P,"6":P,"7":P,"8":P,"9":P,token:function(N,z,X){if(X=="variable"&&N.peek()=="("&&(z.prevToken==";"||z.prevToken==null||z.prevToken=="}")&&C(N.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),B("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:x,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":A},modeProps:{fold:["brace","include"]}});var q=null;function W(N){return function(z,X){for(var oe=!1,G,K=!1;!z.eol();){if(!oe&&z.match('"')&&(N=="single"||z.match('""'))){K=!0;break}if(!oe&&z.match("``")){q=W(N),K=!0;break}G=z.next(),oe=N=="single"&&!oe&&G=="\\"}return K&&(X.tokenize=null),"string"}}B("text/x-ceylon",{name:"clike",keywords:a("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(N){var z=N.charAt(0);return z===z.toUpperCase()&&z!==z.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(N){return N.eatWhile(/[\w\$_]/),"meta"},'"':function(N,z){return z.tokenize=W(N.match('""')?"triple":"single"),z.tokenize(N,z)},"`":function(N,z){return!q||!N.match("`")?!1:(z.tokenize=q,q=null,z.tokenize(N,z))},"'":function(N){return N.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(N,z,X){if((X=="variable"||X=="type")&&z.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var Sne=Z((wne,_ne)=>{(function(t){typeof wne=="object"&&typeof _ne=="object"?t(Br(),R1(),xne()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],t):t(CodeMirror)})(function(t){"use strict";function e(c){for(var f={},p=c.split(" "),g=0;g<p.length;++g)f[p[g]]=!0;return f}function r(c,f,p){return c.length==0?n(f):function(g,m){for(var x=c[0],w=0;w<x.length;w++)if(g.match(x[w][0]))return m.tokenize=r(c.slice(1),f),x[w][1];return m.tokenize=n(f,p),"string"}}function n(c,f){return function(p,g){return i(p,g,c,f)}}function i(c,f,p,g){if(g!==!1&&c.match("${",!1)||c.match("{$",!1))return f.tokenize=null,"string";if(g!==!1&&c.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return c.match("[",!1)&&(f.tokenize=r([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],p,g)),c.match(/\-\>\w/,!1)&&(f.tokenize=r([[["->",null]],[[/[\w]+/,"variable"]]],p,g)),"variable-2";for(var m=!1;!c.eol()&&(m||g===!1||!c.match("{$",!1)&&!c.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!m&&c.match(p)){f.tokenize=null,f.tokStack.pop(),f.tokStack.pop();break}m=c.next()=="\\"&&!m}return"string"}var o="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",s="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";t.registerHelper("hintWords","php",[o,a,s].join(" ").split(" ")),t.registerHelper("wordChars","php",/[\w$]/);var u={name:"clike",helperType:"php",keywords:e(o),blockKeywords:e("catch do else elseif for foreach if switch try while finally"),defKeywords:e("class function interface namespace trait"),atoms:e(a),builtin:e(s),multiLineStrings:!0,hooks:{$:function(c){return c.eatWhile(/[\w\$_]/),"variable-2"},"<":function(c,f){var p;if(p=c.match(/<<\s*/)){var g=c.eat(/['"]/);c.eatWhile(/[\w\.]/);var m=c.current().slice(p[0].length+(g?2:1));if(g&&c.eat(g),m)return(f.tokStack||(f.tokStack=[])).push(m,0),f.tokenize=n(m,g!="'"),"string"}return!1},"#":function(c){for(;!c.eol()&&!c.match("?>",!1);)c.next();return"comment"},"/":function(c){if(c.eat("/")){for(;!c.eol()&&!c.match("?>",!1);)c.next();return"comment"}return!1},'"':function(c,f){return(f.tokStack||(f.tokStack=[])).push('"',0),f.tokenize=n('"'),"string"},"{":function(c,f){return f.tokStack&&f.tokStack.length&&f.tokStack[f.tokStack.length-1]++,!1},"}":function(c,f){return f.tokStack&&f.tokStack.length>0&&!--f.tokStack[f.tokStack.length-1]&&(f.tokenize=n(f.tokStack[f.tokStack.length-2])),!1}}};t.defineMode("php",function(c,f){var p=t.getMode(c,f&&f.htmlMode||"text/html"),g=t.getMode(c,u);function m(x,w){var T=w.curMode==g;if(x.sol()&&w.pending&&w.pending!='"'&&w.pending!="'"&&(w.pending=null),T)return T&&w.php.tokenize==null&&x.match("?>")?(w.curMode=p,w.curState=w.html,w.php.context.prev||(w.php=null),"meta"):g.token(x,w.curState);if(x.match(/^<\?\w*/))return w.curMode=g,w.php||(w.php=t.startState(g,p.indent(w.html,"",""))),w.curState=w.php,"meta";if(w.pending=='"'||w.pending=="'"){for(;!x.eol()&&x.next()!=w.pending;);var k="string"}else if(w.pending&&x.pos<w.pending.end){x.pos=w.pending.end;var k=w.pending.style}else var k=p.token(x,w.curState);w.pending&&(w.pending=null);var A=x.current(),D=A.search(/<\?/),M;return D!=-1&&(k=="string"&&(M=A.match(/[\'\"]$/))&&!/\?>/.test(A)?w.pending=M[0]:w.pending={end:x.pos,style:k},x.backUp(A.length-D)),k}return{startState:function(){var x=t.startState(p),w=f.startOpen?t.startState(g):null;return{html:x,php:w,curMode:f.startOpen?g:p,curState:f.startOpen?w:x,pending:null}},copyState:function(x){var w=x.html,T=t.copyState(p,w),k=x.php,A=k&&t.copyState(g,k),D;return x.curMode==p?D=T:D=A,{html:T,php:A,curMode:x.curMode,curState:D,pending:x.pending}},token:m,indent:function(x,w,T){return x.curMode!=g&&/^\s*<\//.test(w)||x.curMode==g&&/^\?>/.test(w)?p.indent(x.html,w,T):x.curMode.indent(x.curState,w,T)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(x){return{state:x.curState,mode:x.curMode}}}},"htmlmixed","clike"),t.defineMIME("application/x-httpd-php","php"),t.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),t.defineMIME("text/x-php",u)})});var Cne=Z((kne,Ene)=>{(function(t){typeof kne=="object"&&typeof Ene=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";function e(u){for(var c={},f=0,p=u.length;f<p;++f)c[u[f]]=!0;return c}var r=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],n=e(r),i=e(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),o=e(["end","until"]),a={"[":"]","{":"}","(":")"},s={"]":"[","}":"{",")":"("};t.defineMode("ruby",function(u){var c;function f(A,D,M){return M.tokenize.push(A),A(D,M)}function p(A,D){if(A.sol()&&A.match("=begin")&&A.eol())return D.tokenize.push(k),"comment";if(A.eatSpace())return null;var M=A.next(),P;if(M=="`"||M=="'"||M=='"')return f(w(M,"string",M=='"'||M=="`"),A,D);if(M=="/")return g(A)?f(w(M,"string-2",!0),A,D):"operator";if(M=="%"){var _="string",C=!0;A.eat("s")?_="atom":A.eat(/[WQ]/)?_="string":A.eat(/[r]/)?_="string-2":A.eat(/[wxq]/)&&(_="string",C=!1);var O=A.eat(/[^\w\s=]/);return O?(a.propertyIsEnumerable(O)&&(O=a[O]),f(w(O,_,C,!0),A,D)):"operator"}else{if(M=="#")return A.skipToEnd(),"comment";if(M=="<"&&(P=A.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return f(T(P[2],P[1]),A,D);if(M=="0")return A.eat("x")?A.eatWhile(/[\da-fA-F]/):A.eat("b")?A.eatWhile(/[01]/):A.eatWhile(/[0-7]/),"number";if(/\d/.test(M))return A.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(M=="?"){for(;A.match(/^\\[CM]-/););return A.eat("\\")?A.eatWhile(/\w/):A.next(),"string"}else{if(M==":")return A.eat("'")?f(w("'","atom",!1),A,D):A.eat('"')?f(w('"',"atom",!0),A,D):A.eat(/[\<\>]/)?(A.eat(/[\<\>]/),"atom"):A.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":A.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(A.eatWhile(/[\w$\xa1-\uffff]/),A.eat(/[\?\!\=]/),"atom"):"operator";if(M=="@"&&A.match(/^@?[a-zA-Z_\xa1-\uffff]/))return A.eat("@"),A.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(M=="$")return A.eat(/[a-zA-Z_]/)?A.eatWhile(/[\w]/):A.eat(/\d/)?A.eat(/\d/):A.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(M))return A.eatWhile(/[\w\xa1-\uffff]/),A.eat(/[\?\!]/),A.eat(":")?"atom":"ident";if(M=="|"&&(D.varList||D.lastTok=="{"||D.lastTok=="do"))return c="|",null;if(/[\(\)\[\]{}\\;]/.test(M))return c=M,null;if(M=="-"&&A.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(M)){var F=A.eatWhile(/[=+\-\/*:\.^%<>~|]/);return M=="."&&!F&&(c="."),"operator"}else return null}}}function g(A){for(var D=A.pos,M=0,P,_=!1,C=!1;(P=A.next())!=null;)if(C)C=!1;else{if("[{(".indexOf(P)>-1)M++;else if("]})".indexOf(P)>-1){if(M--,M<0)break}else if(P=="/"&&M==0){_=!0;break}C=P=="\\"}return A.backUp(A.pos-D),_}function m(A){return A||(A=1),function(D,M){if(D.peek()=="}"){if(A==1)return M.tokenize.pop(),M.tokenize[M.tokenize.length-1](D,M);M.tokenize[M.tokenize.length-1]=m(A-1)}else D.peek()=="{"&&(M.tokenize[M.tokenize.length-1]=m(A+1));return p(D,M)}}function x(){var A=!1;return function(D,M){return A?(M.tokenize.pop(),M.tokenize[M.tokenize.length-1](D,M)):(A=!0,p(D,M))}}function w(A,D,M,P){return function(_,C){var O=!1,F;for(C.context.type==="read-quoted-paused"&&(C.context=C.context.prev,_.eat("}"));(F=_.next())!=null;){if(F==A&&(P||!O)){C.tokenize.pop();break}if(M&&F=="#"&&!O){if(_.eat("{")){A=="}"&&(C.context={prev:C.context,type:"read-quoted-paused"}),C.tokenize.push(m());break}else if(/[@\$]/.test(_.peek())){C.tokenize.push(x());break}}O=!O&&F=="\\"}return D}}function T(A,D){return function(M,P){return D&&M.eatSpace(),M.match(A)?P.tokenize.pop():M.skipToEnd(),"string"}}function k(A,D){return A.sol()&&A.match("=end")&&A.eol()&&D.tokenize.pop(),A.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[p],indented:0,context:{type:"top",indented:-u.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(A,D){c=null,A.sol()&&(D.indented=A.indentation());var M=D.tokenize[D.tokenize.length-1](A,D),P,_=c;if(M=="ident"){var C=A.current();M=D.lastTok=="."?"property":n.propertyIsEnumerable(A.current())?"keyword":/^[A-Z]/.test(C)?"tag":D.lastTok=="def"||D.lastTok=="class"||D.varList?"def":"variable",M=="keyword"&&(_=C,i.propertyIsEnumerable(C)?P="indent":o.propertyIsEnumerable(C)?P="dedent":((C=="if"||C=="unless")&&A.column()==A.indentation()||C=="do"&&D.context.indented<D.indented)&&(P="indent"))}return(c||M&&M!="comment")&&(D.lastTok=_),c=="|"&&(D.varList=!D.varList),P=="indent"||/[\(\[\{]/.test(c)?D.context={prev:D.context,type:c||M,indented:D.indented}:(P=="dedent"||/[\)\]\}]/.test(c))&&D.context.prev&&(D.context=D.context.prev),A.eol()&&(D.continuedLine=c=="\\"||M=="operator"),M},indent:function(A,D){if(A.tokenize[A.tokenize.length-1]!=p)return t.Pass;var M=D&&D.charAt(0),P=A.context,_=P.type==s[M]||P.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(D);return P.indented+(_?0:u.indentUnit)+(A.continuedLine?u.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),t.defineMIME("text/x-ruby","ruby"),t.registerHelper("hintWords","ruby",r)})});var sq=Z((Ane,Tne)=>{(function(t){typeof Ane=="object"&&typeof Tne=="object"?t(Br(),rm()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../css/css"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("sass",function(e){var r=t.mimeModes["text/css"],n=r.propertyKeywords||{},i=r.colorKeywords||{},o=r.valueKeywords||{},a=r.fontProperties||{};function s(C){return new RegExp("^"+C.join("|"))}var u=["true","false","null","auto"],c=new RegExp("^"+u.join("|")),f=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],p=s(f),g=/^::?[a-zA-Z_][\w\-]*/,m;function x(C){return!C.peek()||C.match(/\s+$/,!1)}function w(C,O){var F=C.peek();return F===")"?(C.next(),O.tokenizer=P,"operator"):F==="("?(C.next(),C.eatSpace(),"operator"):F==="'"||F==='"'?(O.tokenizer=k(C.next()),"string"):(O.tokenizer=k(")",!1),"string")}function T(C,O){return function(F,B){return F.sol()&&F.indentation()<=C?(B.tokenizer=P,P(F,B)):(O&&F.skipTo("*/")?(F.next(),F.next(),B.tokenizer=P):F.skipToEnd(),"comment")}}function k(C,O){O==null&&(O=!0);function F(B,V){var S=B.next(),R=B.peek(),q=B.string.charAt(B.pos-2),W=S!=="\\"&&R===C||S===C&&q!=="\\";return W?(S!==C&&O&&B.next(),x(B)&&(V.cursorHalf=0),V.tokenizer=P,"string"):S==="#"&&R==="{"?(V.tokenizer=A(F),B.next(),"operator"):"string"}return F}function A(C){return function(O,F){return O.peek()==="}"?(O.next(),F.tokenizer=C,"operator"):P(O,F)}}function D(C){if(C.indentCount==0){C.indentCount++;var O=C.scopes[0].offset,F=O+e.indentUnit;C.scopes.unshift({offset:F})}}function M(C){C.scopes.length!=1&&C.scopes.shift()}function P(C,O){var F=C.peek();if(C.match("/*"))return O.tokenizer=T(C.indentation(),!0),O.tokenizer(C,O);if(C.match("//"))return O.tokenizer=T(C.indentation(),!1),O.tokenizer(C,O);if(C.match("#{"))return O.tokenizer=A(P),"operator";if(F==='"'||F==="'")return C.next(),O.tokenizer=k(F),"string";if(O.cursorHalf){if(F==="#"&&(C.next(),C.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||C.match(/^-?[0-9\.]+/))return x(C)&&(O.cursorHalf=0),"number";if(C.match(/^(px|em|in)\b/))return x(C)&&(O.cursorHalf=0),"unit";if(C.match(c))return x(C)&&(O.cursorHalf=0),"keyword";if(C.match(/^url/)&&C.peek()==="(")return O.tokenizer=w,x(C)&&(O.cursorHalf=0),"atom";if(F==="$")return C.next(),C.eatWhile(/[\w-]/),x(C)&&(O.cursorHalf=0),"variable-2";if(F==="!")return C.next(),O.cursorHalf=0,C.match(/^[\w]+/)?"keyword":"operator";if(C.match(p))return x(C)&&(O.cursorHalf=0),"operator";if(C.eatWhile(/[\w-]/))return x(C)&&(O.cursorHalf=0),m=C.current().toLowerCase(),o.hasOwnProperty(m)?"atom":i.hasOwnProperty(m)?"keyword":n.hasOwnProperty(m)?(O.prevProp=C.current().toLowerCase(),"property"):"tag";if(x(C))return O.cursorHalf=0,null}else{if(F==="-"&&C.match(/^-\w+-/))return"meta";if(F==="."){if(C.next(),C.match(/^[\w-]+/))return D(O),"qualifier";if(C.peek()==="#")return D(O),"tag"}if(F==="#"){if(C.next(),C.match(/^[\w-]+/))return D(O),"builtin";if(C.peek()==="#")return D(O),"tag"}if(F==="$")return C.next(),C.eatWhile(/[\w-]/),"variable-2";if(C.match(/^-?[0-9\.]+/))return"number";if(C.match(/^(px|em|in)\b/))return"unit";if(C.match(c))return"keyword";if(C.match(/^url/)&&C.peek()==="(")return O.tokenizer=w,"atom";if(F==="="&&C.match(/^=[\w-]+/))return D(O),"meta";if(F==="+"&&C.match(/^\+[\w-]+/))return"variable-3";if(F==="@"&&C.match(/@extend/)&&(C.match(/\s*[\w]/)||M(O)),C.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return D(O),"def";if(F==="@")return C.next(),C.eatWhile(/[\w-]/),"def";if(C.eatWhile(/[\w-]/))if(C.match(/ *: *[\w-\+\$#!\("']/,!1)){m=C.current().toLowerCase();var B=O.prevProp+"-"+m;return n.hasOwnProperty(B)?"property":n.hasOwnProperty(m)?(O.prevProp=m,"property"):a.hasOwnProperty(m)?"property":"tag"}else return C.match(/ *:/,!1)?(D(O),O.cursorHalf=1,O.prevProp=C.current().toLowerCase(),"property"):(C.match(/ *,/,!1)||D(O),"tag");if(F===":")return C.match(g)?"variable-3":(C.next(),O.cursorHalf=1,"operator")}return C.match(p)?"operator":(C.next(),null)}function _(C,O){C.sol()&&(O.indentCount=0);var F=O.tokenizer(C,O),B=C.current();if((B==="@return"||B==="}")&&M(O),F!==null){for(var V=C.pos-B.length,S=V+e.indentUnit*O.indentCount,R=[],q=0;q<O.scopes.length;q++){var W=O.scopes[q];W.offset<=S&&R.push(W)}O.scopes=R}return F}return{startState:function(){return{tokenizer:P,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(C,O){var F=_(C,O);return O.lastToken={style:F,content:C.current()},F},indent:function(C){return C.scopes[0].offset}}},"css"),t.defineMIME("text/x-sass","sass")})});var Mne=Z((Dne,One)=>{(function(t){typeof Dne=="object"&&typeof One=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("shell",function(){var e={};function r(g,m){for(var x=0;x<m.length;x++)e[m[x]]=g}var n=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],o=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];t.registerHelper("hintWords","shell",n.concat(i,o)),r("atom",n),r("keyword",i),r("builtin",o);function a(g,m){if(g.eatSpace())return null;var x=g.sol(),w=g.next();if(w==="\\")return g.next(),null;if(w==="'"||w==='"'||w==="`")return m.tokens.unshift(s(w,w==="`"?"quote":"string")),p(g,m);if(w==="#")return x&&g.eat("!")?(g.skipToEnd(),"meta"):(g.skipToEnd(),"comment");if(w==="$")return m.tokens.unshift(c),p(g,m);if(w==="+"||w==="=")return"operator";if(w==="-")return g.eat("-"),g.eatWhile(/\w/),"attribute";if(w=="<"){if(g.match("<<"))return"operator";var T=g.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(T)return m.tokens.unshift(f(T[1])),"string-2"}if(/\d/.test(w)&&(g.eatWhile(/\d/),g.eol()||!/\w/.test(g.peek())))return"number";g.eatWhile(/[\w-]/);var k=g.current();return g.peek()==="="&&/\w+/.test(k)?"def":e.hasOwnProperty(k)?e[k]:null}function s(g,m){var x=g=="("?")":g=="{"?"}":g;return function(w,T){for(var k,A=!1;(k=w.next())!=null;){if(k===x&&!A){T.tokens.shift();break}else if(k==="$"&&!A&&g!=="'"&&w.peek()!=x){A=!0,w.backUp(1),T.tokens.unshift(c);break}else{if(!A&&g!==x&&k===g)return T.tokens.unshift(s(g,m)),p(w,T);if(!A&&/['"]/.test(k)&&!/['"]/.test(g)){T.tokens.unshift(u(k,"string")),w.backUp(1);break}}A=!A&&k==="\\"}return m}}function u(g,m){return function(x,w){return w.tokens[0]=s(g,m),x.next(),p(x,w)}}var c=function(g,m){m.tokens.length>1&&g.eat("$");var x=g.next();return/['"({]/.test(x)?(m.tokens[0]=s(x,x=="("?"quote":x=="{"?"def":"string"),p(g,m)):(/\d/.test(x)||g.eatWhile(/\w/),m.tokens.shift(),"def")};function f(g){return function(m,x){return m.sol()&&m.string==g&&x.tokens.shift(),m.skipToEnd(),"string-2"}}function p(g,m){return(m.tokens[0]||a)(g,m)}return{startState:function(){return{tokens:[]}},token:function(g,m){return p(g,m)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),t.defineMIME("text/x-sh","shell"),t.defineMIME("application/x-sh","shell")})});var Pne=Z((Ine,Lne)=>{(function(t){typeof Ine=="object"&&typeof Lne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("sql",function(u,c){var f=c.client||{},p=c.atoms||{false:!0,true:!0,null:!0},g=c.builtin||a(s),m=c.keywords||a(o),x=c.operatorChars||/^[*+\-%<>!=&|~^\/]/,w=c.support||{},T=c.hooks||{},k=c.dateSQL||{date:!0,time:!0,timestamp:!0},A=c.backslashStringEscapes!==!1,D=c.brackets||/^[\{}\(\)\[\]]/,M=c.punctuation||/^[;.,:]/;function P(B,V){var S=B.next();if(T[S]){var R=T[S](B,V);if(R!==!1)return R}if(w.hexNumber&&(S=="0"&&B.match(/^[xX][0-9a-fA-F]+/)||(S=="x"||S=="X")&&B.match(/^'[0-9a-fA-F]+'/)))return"number";if(w.binaryNumber&&((S=="b"||S=="B")&&B.match(/^'[01]+'/)||S=="0"&&B.match(/^b[01]+/)))return"number";if(S.charCodeAt(0)>47&&S.charCodeAt(0)<58)return B.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),w.decimallessFloat&&B.match(/^\.(?!\.)/),"number";if(S=="?"&&(B.eatSpace()||B.eol()||B.eat(";")))return"variable-3";if(S=="'"||S=='"'&&w.doubleQuote)return V.tokenize=_(S),V.tokenize(B,V);if((w.nCharCast&&(S=="n"||S=="N")||w.charsetCast&&S=="_"&&B.match(/[a-z][a-z0-9]*/i))&&(B.peek()=="'"||B.peek()=='"'))return"keyword";if(w.escapeConstant&&(S=="e"||S=="E")&&(B.peek()=="'"||B.peek()=='"'&&w.doubleQuote))return V.tokenize=function(W,N){return(N.tokenize=_(W.next(),!0))(W,N)},"keyword";if(w.commentSlashSlash&&S=="/"&&B.eat("/"))return B.skipToEnd(),"comment";if(w.commentHash&&S=="#"||S=="-"&&B.eat("-")&&(!w.commentSpaceRequired||B.eat(" ")))return B.skipToEnd(),"comment";if(S=="/"&&B.eat("*"))return V.tokenize=C(1),V.tokenize(B,V);if(S=="."){if(w.zerolessFloat&&B.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(B.match(/^\.+/))return null;if(w.ODBCdotTable&&B.match(/^[\w\d_$#]+/))return"variable-2"}else{if(x.test(S))return B.eatWhile(x),"operator";if(D.test(S))return"bracket";if(M.test(S))return B.eatWhile(M),"punctuation";if(S=="{"&&(B.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||B.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";B.eatWhile(/^[_\w\d]/);var q=B.current().toLowerCase();return k.hasOwnProperty(q)&&(B.match(/^( )+'[^']*'/)||B.match(/^( )+"[^"]*"/))?"number":p.hasOwnProperty(q)?"atom":g.hasOwnProperty(q)?"builtin":m.hasOwnProperty(q)?"keyword":f.hasOwnProperty(q)?"string-2":null}}function _(B,V){return function(S,R){for(var q=!1,W;(W=S.next())!=null;){if(W==B&&!q){R.tokenize=P;break}q=(A||V)&&!q&&W=="\\"}return"string"}}function C(B){return function(V,S){var R=V.match(/^.*?(\/\*|\*\/)/);return R?R[1]=="/*"?S.tokenize=C(B+1):B>1?S.tokenize=C(B-1):S.tokenize=P:V.skipToEnd(),"comment"}}function O(B,V,S){V.context={prev:V.context,indent:B.indentation(),col:B.column(),type:S}}function F(B){B.indent=B.context.indent,B.context=B.context.prev}return{startState:function(){return{tokenize:P,context:null}},token:function(B,V){if(B.sol()&&V.context&&V.context.align==null&&(V.context.align=!1),V.tokenize==P&&B.eatSpace())return null;var S=V.tokenize(B,V);if(S=="comment")return S;V.context&&V.context.align==null&&(V.context.align=!0);var R=B.current();return R=="("?O(B,V,")"):R=="["?O(B,V,"]"):V.context&&V.context.type==R&&F(V),S},indent:function(B,V){var S=B.context;if(!S)return t.Pass;var R=V.charAt(0)==S.type;return S.align?S.col+(R?0:1):S.indent+(R?0:u.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:w.commentSlashSlash?"//":w.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function e(u){for(var c;(c=u.next())!=null;)if(c=="`"&&!u.eat("`"))return"variable-2";return u.backUp(u.current().length-1),u.eatWhile(/\w/)?"variable-2":null}function r(u){for(var c;(c=u.next())!=null;)if(c=='"'&&!u.eat('"'))return"variable-2";return u.backUp(u.current().length-1),u.eatWhile(/\w/)?"variable-2":null}function n(u){return u.eat("@")&&(u.match(/^session\./),u.match(/^local\./),u.match(/^global\./)),u.eat("'")?(u.match(/^.*'/),"variable-2"):u.eat('"')?(u.match(/^.*"/),"variable-2"):u.eat("`")?(u.match(/^.*`/),"variable-2"):u.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function i(u){return u.eat("N")?"atom":u.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var o="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function a(u){for(var c={},f=u.split(" "),p=0;p<f.length;++p)c[f[p]]=!0;return c}var s="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";t.defineMIME("text/x-sql",{name:"sql",keywords:a(o+"begin"),builtin:a(s),atoms:a("false true null unknown"),dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),t.defineMIME("text/x-mssql",{name:"sql",client:a("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:a(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:a("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:a("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:a("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),t.defineMIME("text/x-mysql",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":e,"\\":i}}),t.defineMIME("text/x-mariadb",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":e,"\\":i}}),t.defineMIME("text/x-sqlite",{name:"sql",client:a("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:a(o+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:a("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:a("date time timestamp datetime"),support:a("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':r,"`":e}}),t.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:a("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:a("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:a("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:a("commentSlashSlash decimallessFloat"),hooks:{}}),t.defineMIME("text/x-plsql",{name:"sql",client:a("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:a("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:a("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:a("date time timestamp"),support:a("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),t.defineMIME("text/x-hive",{name:"sql",keywords:a("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:a("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),t.defineMIME("text/x-pgsql",{name:"sql",client:a("source"),keywords:a(o+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),t.defineMIME("text/x-gql",{name:"sql",keywords:a("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:a("false true"),builtin:a("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),t.defineMIME("text/x-gpsql",{name:"sql",client:a("source"),keywords:a("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),t.defineMIME("text/x-sparksql",{name:"sql",keywords:a("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:a("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:a("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote zerolessFloat")}),t.defineMIME("text/x-esper",{name:"sql",client:a("source"),keywords:a("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:a("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("time"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber")})})});var F1=Z((Rne,qne)=>{(function(t){typeof Rne=="object"&&typeof qne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.overlayMode=function(e,r,n){return{startState:function(){return{base:t.startState(e),overlay:t.startState(r),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(r,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(i,o){return(i!=o.streamSeen||Math.min(o.basePos,o.overlayPos)<i.start)&&(o.streamSeen=i,o.basePos=o.overlayPos=i.start),i.start==o.basePos&&(o.baseCur=e.token(i,o.base),o.basePos=i.pos),i.start==o.overlayPos&&(i.pos=i.start,o.overlayCur=r.token(i,o.overlay),o.overlayPos=i.pos),i.pos=Math.min(o.basePos,o.overlayPos),o.overlayCur==null?o.baseCur:o.baseCur!=null&&o.overlay.combineTokens||n&&o.overlay.combineTokens==null?o.baseCur+" "+o.overlayCur:o.overlayCur},indent:e.indent&&function(i,o,a){return e.indent(i.base,o,a)},electricChars:e.electricChars,innerMode:function(i){return{state:i.base,mode:e}},blankLine:function(i){var o,a;return e.blankLine&&(o=e.blankLine(i.base)),r.blankLine&&(a=r.blankLine(i.overlay)),a==null?o:n&&o!=null?o+" "+a:a}}}})});var Bne=Z((Fne,Nne)=>{(function(t){typeof Fne=="object"&&typeof Nne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("coffeescript",function(e,r){var n="error";function i(O){return new RegExp("^(("+O.join(")|(")+"))\\b")}var o=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,s=/^[_A-Za-z$][_A-Za-z$0-9]*/,u=/^@[_A-Za-z$][_A-Za-z$0-9]*/,c=i(["and","or","not","is","isnt","in","instanceof","typeof"]),f=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],p=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],g=i(f.concat(p));f=i(f);var m=/^('{3}|\"{3}|['\"])/,x=/^(\/{3}|\/)/,w=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],T=i(w);function k(O,F){if(O.sol()){F.scope.align===null&&(F.scope.align=!1);var B=F.scope.offset;if(O.eatSpace()){var V=O.indentation();return V>B&&F.scope.type=="coffee"?"indent":V<B?"dedent":null}else B>0&&P(O,F)}if(O.eatSpace())return null;var S=O.peek();if(O.match("####"))return O.skipToEnd(),"comment";if(O.match("###"))return F.tokenize=D,F.tokenize(O,F);if(S==="#")return O.skipToEnd(),"comment";if(O.match(/^-?[0-9\.]/,!1)){var R=!1;if(O.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(R=!0),O.match(/^-?\d+\.\d*/)&&(R=!0),O.match(/^-?\.\d+/)&&(R=!0),R)return O.peek()=="."&&O.backUp(1),"number";var q=!1;if(O.match(/^-?0x[0-9a-f]+/i)&&(q=!0),O.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(q=!0),O.match(/^-?0(?![\dx])/i)&&(q=!0),q)return"number"}if(O.match(m))return F.tokenize=A(O.current(),!1,"string"),F.tokenize(O,F);if(O.match(x)){if(O.current()!="/"||O.match(/^.*\//,!1))return F.tokenize=A(O.current(),!0,"string-2"),F.tokenize(O,F);O.backUp(1)}return O.match(o)||O.match(c)?"operator":O.match(a)?"punctuation":O.match(T)?"atom":O.match(u)||F.prop&&O.match(s)?"property":O.match(g)?"keyword":O.match(s)?"variable":(O.next(),n)}function A(O,F,B){return function(V,S){for(;!V.eol();)if(V.eatWhile(/[^'"\/\\]/),V.eat("\\")){if(V.next(),F&&V.eol())return B}else{if(V.match(O))return S.tokenize=k,B;V.eat(/['"\/]/)}return F&&(r.singleLineStringErrors?B=n:S.tokenize=k),B}}function D(O,F){for(;!O.eol();){if(O.eatWhile(/[^#]/),O.match("###")){F.tokenize=k;break}O.eatWhile("#")}return"comment"}function M(O,F,B){B=B||"coffee";for(var V=0,S=!1,R=null,q=F.scope;q;q=q.prev)if(q.type==="coffee"||q.type=="}"){V=q.offset+e.indentUnit;break}B!=="coffee"?(S=null,R=O.column()+O.current().length):F.scope.align&&(F.scope.align=!1),F.scope={offset:V,type:B,prev:F.scope,align:S,alignOffset:R}}function P(O,F){if(!!F.scope.prev)if(F.scope.type==="coffee"){for(var B=O.indentation(),V=!1,S=F.scope;S;S=S.prev)if(B===S.offset){V=!0;break}if(!V)return!0;for(;F.scope.prev&&F.scope.offset!==B;)F.scope=F.scope.prev;return!1}else return F.scope=F.scope.prev,!1}function _(O,F){var B=F.tokenize(O,F),V=O.current();V==="return"&&(F.dedent=!0),((V==="->"||V==="=>")&&O.eol()||B==="indent")&&M(O,F);var S="[({".indexOf(V);if(S!==-1&&M(O,F,"])}".slice(S,S+1)),f.exec(V)&&M(O,F),V=="then"&&P(O,F),B==="dedent"&&P(O,F))return n;if(S="])}".indexOf(V),S!==-1){for(;F.scope.type=="coffee"&&F.scope.prev;)F.scope=F.scope.prev;F.scope.type==V&&(F.scope=F.scope.prev)}return F.dedent&&O.eol()&&(F.scope.type=="coffee"&&F.scope.prev&&(F.scope=F.scope.prev),F.dedent=!1),B}var C={startState:function(O){return{tokenize:k,scope:{offset:O||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(O,F){var B=F.scope.align===null&&F.scope;B&&O.sol()&&(B.align=!1);var V=_(O,F);return V&&V!="comment"&&(B&&(B.align=!0),F.prop=V=="punctuation"&&O.current()=="."),V},indent:function(O,F){if(O.tokenize!=k)return 0;var B=O.scope,V=F&&"])}".indexOf(F.charAt(0))>-1;if(V)for(;B.type=="coffee"&&B.prev;)B=B.prev;var S=V&&B.type===F.charAt(0);return B.align?B.alignOffset-(S?1:0):(S?B.prev:B).offset},lineComment:"#",fold:"indent"};return C}),t.defineMIME("application/vnd.coffeescript","coffeescript"),t.defineMIME("text/x-coffeescript","coffeescript"),t.defineMIME("text/coffeescript","coffeescript")})});var Hne=Z((jne,zne)=>{(function(t){typeof jne=="object"&&typeof zne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("stylus",function(A){for(var D=A.indentUnit,M="",P=T(e),_=/^(a|b|i|s|col|em)$/i,C=T(o),O=T(a),F=T(c),B=T(u),V=T(r),S=w(r),R=T(i),q=T(n),W=T(s),N=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,z=w(f),X=T(p),oe=new RegExp(/^\-(moz|ms|o|webkit)-/i),G=T(g),K="",ve={},Se,_e,Ne,Le;M.length<D;)M+=" ";function it(ye,xe){if(K=ye.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),xe.context.line.firstWord=K?K[0].replace(/^\s*/,""):"",xe.context.line.indent=ye.indentation(),Se=ye.peek(),ye.match("//"))return ye.skipToEnd(),["comment","comment"];if(ye.match("/*"))return xe.tokenize=ze,ze(ye,xe);if(Se=='"'||Se=="'")return ye.next(),xe.tokenize=tt(Se),xe.tokenize(ye,xe);if(Se=="@")return ye.next(),ye.eatWhile(/[\w\\-]/),["def",ye.current()];if(Se=="#"){if(ye.next(),ye.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(ye.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return ye.match(oe)?["meta","vendor-prefixes"]:ye.match(/^-?[0-9]?\.?[0-9]/)?(ye.eatWhile(/[a-z%]/i),["number","unit"]):Se=="!"?(ye.next(),[ye.match(/^(important|optional)/i)?"keyword":"operator","important"]):Se=="."&&ye.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:ye.match(S)?(ye.peek()=="("&&(xe.tokenize=wt),["property","word"]):ye.match(/^[a-z][\w-]*\(/i)?(ye.backUp(1),["keyword","mixin"]):ye.match(/^(\+|-)[a-z][\w-]*\(/i)?(ye.backUp(1),["keyword","block-mixin"]):ye.string.match(/^\s*&/)&&ye.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:ye.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(ye.backUp(1),["variable-3","reference"]):ye.match(/^&{1}\s*$/)?["variable-3","reference"]:ye.match(z)?["operator","operator"]:ye.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?ye.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!J(ye.current())?(ye.match(/\./),["variable-2","variable-name"]):["variable-2","word"]:ye.match(N)?["operator",ye.current()]:/[:;,{}\[\]\(\)]/.test(Se)?(ye.next(),[null,Se]):(ye.next(),[null,null])}function ze(ye,xe){for(var We=!1,yt;(yt=ye.next())!=null;){if(We&&yt=="/"){xe.tokenize=null;break}We=yt=="*"}return["comment","comment"]}function tt(ye){return function(xe,We){for(var yt=!1,Gr;(Gr=xe.next())!=null;){if(Gr==ye&&!yt){ye==")"&&xe.backUp(1);break}yt=!yt&&Gr=="\\"}return(Gr==ye||!yt&&ye!=")")&&(We.tokenize=null),["string","string"]}}function wt(ye,xe){return ye.next(),ye.match(/\s*[\"\')]/,!1)?xe.tokenize=null:xe.tokenize=tt(")"),[null,"("]}function At(ye,xe,We,yt){this.type=ye,this.indent=xe,this.prev=We,this.line=yt||{firstWord:"",indent:0}}function Ve(ye,xe,We,yt){return yt=yt>=0?yt:D,ye.context=new At(We,xe.indentation()+yt,ye.context),We}function Oe(ye,xe){var We=ye.context.indent-D;return xe=xe||!1,ye.context=ye.context.prev,xe&&(ye.context.indent=We),ye.context.type}function Me(ye,xe,We){return ve[We.context.type](ye,xe,We)}function he(ye,xe,We,yt){for(var Gr=yt||1;Gr>0;Gr--)We.context=We.context.prev;return Me(ye,xe,We)}function J(ye){return ye.toLowerCase()in P}function re(ye){return ye=ye.toLowerCase(),ye in C||ye in W}function fe(ye){return ye.toLowerCase()in X}function ht(ye){return ye.toLowerCase().match(oe)}function ke(ye){var xe=ye.toLowerCase(),We="variable-2";return J(ye)?We="tag":fe(ye)?We="block-keyword":re(ye)?We="property":xe in F||xe in G?We="atom":xe=="return"||xe in B?We="keyword":ye.match(/^[A-Z]/)&&(We="string"),We}function $e(ye,xe){return pt(xe)&&(ye=="{"||ye=="]"||ye=="hash"||ye=="qualifier")||ye=="block-mixin"}function Fe(ye,xe){return ye=="{"&&xe.match(/^\s*\$?[\w-]+/i,!1)}function It(ye,xe){return ye==":"&&xe.match(/^[a-z-]+/,!1)}function ut(ye){return ye.sol()||ye.string.match(new RegExp("^\\s*"+k(ye.current())))}function pt(ye){return ye.eol()||ye.match(/^\s*$/,!1)}function st(ye){var xe=/^\s*[-_]*[a-z0-9]+[\w-]*/i,We=typeof ye=="string"?ye.match(xe):ye.string.match(xe);return We?We[0].replace(/^\s*/,""):""}return ve.block=function(ye,xe,We){if(ye=="comment"&&ut(xe)||ye==","&&pt(xe)||ye=="mixin")return Ve(We,xe,"block",0);if(Fe(ye,xe))return Ve(We,xe,"interpolation");if(pt(xe)&&ye=="]"&&!/^\s*(\.|#|:|\[|\*|&)/.test(xe.string)&&!J(st(xe)))return Ve(We,xe,"block",0);if($e(ye,xe))return Ve(We,xe,"block");if(ye=="}"&&pt(xe))return Ve(We,xe,"block",0);if(ye=="variable-name")return xe.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||fe(st(xe))?Ve(We,xe,"variableName"):Ve(We,xe,"variableName",0);if(ye=="=")return!pt(xe)&&!fe(st(xe))?Ve(We,xe,"block",0):Ve(We,xe,"block");if(ye=="*"&&(pt(xe)||xe.match(/\s*(,|\.|#|\[|:|{)/,!1)))return Le="tag",Ve(We,xe,"block");if(It(ye,xe))return Ve(We,xe,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(ye))return Ve(We,xe,pt(xe)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(ye))return Ve(We,xe,"keyframes");if(/@extends?/.test(ye))return Ve(We,xe,"extend",0);if(ye&&ye.charAt(0)=="@")return xe.indentation()>0&&re(xe.current().slice(1))?(Le="variable-2","block"):/(@import|@require|@charset)/.test(ye)?Ve(We,xe,"block",0):Ve(We,xe,"block");if(ye=="reference"&&pt(xe))return Ve(We,xe,"block");if(ye=="(")return Ve(We,xe,"parens");if(ye=="vendor-prefixes")return Ve(We,xe,"vendorPrefixes");if(ye=="word"){var yt=xe.current();if(Le=ke(yt),Le=="property")return ut(xe)?Ve(We,xe,"block",0):(Le="atom","block");if(Le=="tag"){if(/embed|menu|pre|progress|sub|table/.test(yt)&&re(st(xe))||xe.string.match(new RegExp("\\[\\s*"+yt+"|"+yt+"\\s*\\]")))return Le="atom","block";if(_.test(yt)&&(ut(xe)&&xe.string.match(/=/)||!ut(xe)&&!xe.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!J(st(xe))))return Le="variable-2",fe(st(xe))?"block":Ve(We,xe,"block",0);if(pt(xe))return Ve(We,xe,"block")}if(Le=="block-keyword")return Le="keyword",xe.current(/(if|unless)/)&&!ut(xe)?"block":Ve(We,xe,"block");if(yt=="return")return Ve(We,xe,"block",0);if(Le=="variable-2"&&xe.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return Ve(We,xe,"block")}return We.context.type},ve.parens=function(ye,xe,We){if(ye=="(")return Ve(We,xe,"parens");if(ye==")")return We.context.prev.type=="parens"?Oe(We):xe.string.match(/^[a-z][\w-]*\(/i)&&pt(xe)||fe(st(xe))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(st(xe))||!xe.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&J(st(xe))?Ve(We,xe,"block"):xe.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||xe.string.match(/^\s*(\(|\)|[0-9])/)||xe.string.match(/^\s+[a-z][\w-]*\(/i)||xe.string.match(/^\s+[\$-]?[a-z]/i)?Ve(We,xe,"block",0):pt(xe)?Ve(We,xe,"block"):Ve(We,xe,"block",0);if(ye&&ye.charAt(0)=="@"&&re(xe.current().slice(1))&&(Le="variable-2"),ye=="word"){var yt=xe.current();Le=ke(yt),Le=="tag"&&_.test(yt)&&(Le="variable-2"),(Le=="property"||yt=="to")&&(Le="atom")}return ye=="variable-name"?Ve(We,xe,"variableName"):It(ye,xe)?Ve(We,xe,"pseudo"):We.context.type},ve.vendorPrefixes=function(ye,xe,We){return ye=="word"?(Le="property",Ve(We,xe,"block",0)):Oe(We)},ve.pseudo=function(ye,xe,We){return re(st(xe.string))?he(ye,xe,We):(xe.match(/^[a-z-]+/),Le="variable-3",pt(xe)?Ve(We,xe,"block"):Oe(We))},ve.atBlock=function(ye,xe,We){if(ye=="(")return Ve(We,xe,"atBlock_parens");if($e(ye,xe))return Ve(We,xe,"block");if(Fe(ye,xe))return Ve(We,xe,"interpolation");if(ye=="word"){var yt=xe.current().toLowerCase();if(/^(only|not|and|or)$/.test(yt)?Le="keyword":V.hasOwnProperty(yt)?Le="tag":q.hasOwnProperty(yt)?Le="attribute":R.hasOwnProperty(yt)?Le="property":O.hasOwnProperty(yt)?Le="string-2":Le=ke(xe.current()),Le=="tag"&&pt(xe))return Ve(We,xe,"block")}return ye=="operator"&&/^(not|and|or)$/.test(xe.current())&&(Le="keyword"),We.context.type},ve.atBlock_parens=function(ye,xe,We){if(ye=="{"||ye=="}")return We.context.type;if(ye==")")return pt(xe)?Ve(We,xe,"block"):Ve(We,xe,"atBlock");if(ye=="word"){var yt=xe.current().toLowerCase();return Le=ke(yt),/^(max|min)/.test(yt)&&(Le="property"),Le=="tag"&&(_.test(yt)?Le="variable-2":Le="atom"),We.context.type}return ve.atBlock(ye,xe,We)},ve.keyframes=function(ye,xe,We){return xe.indentation()=="0"&&(ye=="}"&&ut(xe)||ye=="]"||ye=="hash"||ye=="qualifier"||J(xe.current()))?he(ye,xe,We):ye=="{"?Ve(We,xe,"keyframes"):ye=="}"?ut(xe)?Oe(We,!0):Ve(We,xe,"keyframes"):ye=="unit"&&/^[0-9]+\%$/.test(xe.current())?Ve(We,xe,"keyframes"):ye=="word"&&(Le=ke(xe.current()),Le=="block-keyword")?(Le="keyword",Ve(We,xe,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(ye)?Ve(We,xe,pt(xe)?"block":"atBlock"):ye=="mixin"?Ve(We,xe,"block",0):We.context.type},ve.interpolation=function(ye,xe,We){return ye=="{"&&Oe(We)&&Ve(We,xe,"block"),ye=="}"?xe.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||xe.string.match(/^\s*[a-z]/i)&&J(st(xe))?Ve(We,xe,"block"):!xe.string.match(/^(\{|\s*\&)/)||xe.match(/\s*[\w-]/,!1)?Ve(We,xe,"block",0):Ve(We,xe,"block"):ye=="variable-name"?Ve(We,xe,"variableName",0):(ye=="word"&&(Le=ke(xe.current()),Le=="tag"&&(Le="atom")),We.context.type)},ve.extend=function(ye,xe,We){return ye=="["||ye=="="?"extend":ye=="]"?Oe(We):ye=="word"?(Le=ke(xe.current()),"extend"):Oe(We)},ve.variableName=function(ye,xe,We){return ye=="string"||ye=="["||ye=="]"||xe.current().match(/^(\.|\$)/)?(xe.current().match(/^\.[\w-]+/i)&&(Le="variable-2"),"variableName"):he(ye,xe,We)},{startState:function(ye){return{tokenize:null,state:"block",context:new At("block",ye||0,null)}},token:function(ye,xe){return!xe.tokenize&&ye.eatSpace()?null:(_e=(xe.tokenize||it)(ye,xe),_e&&typeof _e=="object"&&(Ne=_e[1],_e=_e[0]),Le=_e,xe.state=ve[xe.state](Ne,ye,xe),Le)},indent:function(ye,xe,We){var yt=ye.context,Gr=xe&&xe.charAt(0),mt=yt.indent,er=st(xe),Ie=We.match(/^\s*/)[0].replace(/\t/g,M).length,Ze=ye.context.prev?ye.context.prev.line.firstWord:"",dt=ye.context.prev?ye.context.prev.line.indent:Ie;return yt.prev&&(Gr=="}"&&(yt.type=="block"||yt.type=="atBlock"||yt.type=="keyframes")||Gr==")"&&(yt.type=="parens"||yt.type=="atBlock_parens")||Gr=="{"&&yt.type=="at")?mt=yt.indent-D:/(\})/.test(Gr)||(/@|\$|\d/.test(Gr)||/^\{/.test(xe)||/^\s*\/(\/|\*)/.test(xe)||/^\s*\/\*/.test(Ze)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(xe)||/^(\+|-)?[a-z][\w-]*\(/i.test(xe)||/^return/.test(xe)||fe(er)?mt=Ie:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(Gr)||J(er)?/\,\s*$/.test(Ze)?mt=dt:/^\s+/.test(We)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(Ze)||J(Ze))?mt=Ie<=dt?dt:dt+D:mt=Ie:!/,\s*$/.test(We)&&(ht(er)||re(er))&&(fe(Ze)?mt=Ie<=dt?dt:dt+D:/^\{/.test(Ze)?mt=Ie<=dt?Ie:dt+D:ht(Ze)||re(Ze)?mt=Ie>=dt?dt:Ie:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(Ze)||/=\s*$/.test(Ze)||J(Ze)||/^\$[\w-\.\[\]\'\"]/.test(Ze)?mt=dt+D:mt=Ie)),mt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"indent"}});var e=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],r=["domain","regexp","url-prefix","url"],n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],o=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],a=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],s=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],u=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],c=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],f=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],p=["for","if","else","unless","from","to"],g=["null","true","false","href","title","type","not-allowed","readonly","disabled"],m=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"],x=e.concat(r,n,i,o,a,u,c,s,f,p,g,m);function w(A){return A=A.sort(function(D,M){return M>D}),new RegExp("^(("+A.join(")|(")+"))\\b")}function T(A){for(var D={},M=0;M<A.length;++M)D[A[M]]=!0;return D}function k(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}t.registerHelper("hintWords","stylus",x),t.defineMIME("text/x-styl","stylus")})});var Vne=Z((Wne,Une)=>{(function(t){typeof Wne=="object"&&typeof Une=="object"?t(Br(),o0(),rm(),R1()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../javascript/javascript","../css/css","../htmlmixed/htmlmixed"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("pug",function(e){var r="keyword",n="meta",i="builtin",o="qualifier",a={"{":"}","(":")","[":"]"},s=t.getMode(e,"javascript");function u(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=t.startState(s),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}u.prototype.copy=function(){var J=new u;return J.javaScriptLine=this.javaScriptLine,J.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,J.javaScriptArguments=this.javaScriptArguments,J.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,J.isInterpolating=this.isInterpolating,J.interpolationNesting=this.interpolationNesting,J.jsState=t.copyState(s,this.jsState),J.innerMode=this.innerMode,this.innerMode&&this.innerState&&(J.innerState=t.copyState(this.innerMode,this.innerState)),J.restOfLine=this.restOfLine,J.isIncludeFiltered=this.isIncludeFiltered,J.isEach=this.isEach,J.lastTag=this.lastTag,J.scriptType=this.scriptType,J.isAttrs=this.isAttrs,J.attrsNest=this.attrsNest.slice(),J.inAttributeName=this.inAttributeName,J.attributeIsType=this.attributeIsType,J.attrValue=this.attrValue,J.indentOf=this.indentOf,J.indentToken=this.indentToken,J.innerModeForLine=this.innerModeForLine,J};function c(J,re){if(J.sol()&&(re.javaScriptLine=!1,re.javaScriptLineExcludesColon=!1),re.javaScriptLine){if(re.javaScriptLineExcludesColon&&J.peek()===":"){re.javaScriptLine=!1,re.javaScriptLineExcludesColon=!1;return}var fe=s.token(J,re.jsState);return J.eol()&&(re.javaScriptLine=!1),fe||!0}}function f(J,re){if(re.javaScriptArguments){if(re.javaScriptArgumentsDepth===0&&J.peek()!=="("){re.javaScriptArguments=!1;return}if(J.peek()==="("?re.javaScriptArgumentsDepth++:J.peek()===")"&&re.javaScriptArgumentsDepth--,re.javaScriptArgumentsDepth===0){re.javaScriptArguments=!1;return}var fe=s.token(J,re.jsState);return fe||!0}}function p(J){if(J.match(/^yield\b/))return"keyword"}function g(J){if(J.match(/^(?:doctype) *([^\n]+)?/))return n}function m(J,re){if(J.match("#{"))return re.isInterpolating=!0,re.interpolationNesting=0,"punctuation"}function x(J,re){if(re.isInterpolating){if(J.peek()==="}"){if(re.interpolationNesting--,re.interpolationNesting<0)return J.next(),re.isInterpolating=!1,"punctuation"}else J.peek()==="{"&&re.interpolationNesting++;return s.token(J,re.jsState)||!0}}function w(J,re){if(J.match(/^case\b/))return re.javaScriptLine=!0,r}function T(J,re){if(J.match(/^when\b/))return re.javaScriptLine=!0,re.javaScriptLineExcludesColon=!0,r}function k(J){if(J.match(/^default\b/))return r}function A(J,re){if(J.match(/^extends?\b/))return re.restOfLine="string",r}function D(J,re){if(J.match(/^append\b/))return re.restOfLine="variable",r}function M(J,re){if(J.match(/^prepend\b/))return re.restOfLine="variable",r}function P(J,re){if(J.match(/^block\b *(?:(prepend|append)\b)?/))return re.restOfLine="variable",r}function _(J,re){if(J.match(/^include\b/))return re.restOfLine="string",r}function C(J,re){if(J.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&J.match("include"))return re.isIncludeFiltered=!0,r}function O(J,re){if(re.isIncludeFiltered){var fe=z(J,re);return re.isIncludeFiltered=!1,re.restOfLine="string",fe}}function F(J,re){if(J.match(/^mixin\b/))return re.javaScriptLine=!0,r}function B(J,re){if(J.match(/^\+([-\w]+)/))return J.match(/^\( *[-\w]+ *=/,!1)||(re.javaScriptArguments=!0,re.javaScriptArgumentsDepth=0),"variable";if(J.match(/^\+#{/,!1))return J.next(),re.mixinCallAfter=!0,m(J,re)}function V(J,re){if(re.mixinCallAfter)return re.mixinCallAfter=!1,J.match(/^\( *[-\w]+ *=/,!1)||(re.javaScriptArguments=!0,re.javaScriptArgumentsDepth=0),!0}function S(J,re){if(J.match(/^(if|unless|else if|else)\b/))return re.javaScriptLine=!0,r}function R(J,re){if(J.match(/^(- *)?(each|for)\b/))return re.isEach=!0,r}function q(J,re){if(re.isEach){if(J.match(/^ in\b/))return re.javaScriptLine=!0,re.isEach=!1,r;if(J.sol()||J.eol())re.isEach=!1;else if(J.next()){for(;!J.match(/^ in\b/,!1)&&J.next(););return"variable"}}}function W(J,re){if(J.match(/^while\b/))return re.javaScriptLine=!0,r}function N(J,re){var fe;if(fe=J.match(/^(\w(?:[-:\w]*\w)?)\/?/))return re.lastTag=fe[1].toLowerCase(),re.lastTag==="script"&&(re.scriptType="application/javascript"),"tag"}function z(J,re){if(J.match(/^:([\w\-]+)/)){var fe;return e&&e.innerModes&&(fe=e.innerModes(J.current().substring(1))),fe||(fe=J.current().substring(1)),typeof fe=="string"&&(fe=t.getMode(e,fe)),wt(J,re,fe),"atom"}}function X(J,re){if(J.match(/^(!?=|-)/))return re.javaScriptLine=!0,"punctuation"}function oe(J){if(J.match(/^#([\w-]+)/))return i}function G(J){if(J.match(/^\.([\w-]+)/))return o}function K(J,re){if(J.peek()=="(")return J.next(),re.isAttrs=!0,re.attrsNest=[],re.inAttributeName=!0,re.attrValue="",re.attributeIsType=!1,"punctuation"}function ve(J,re){if(re.isAttrs){if(a[J.peek()]&&re.attrsNest.push(a[J.peek()]),re.attrsNest[re.attrsNest.length-1]===J.peek())re.attrsNest.pop();else if(J.eat(")"))return re.isAttrs=!1,"punctuation";if(re.inAttributeName&&J.match(/^[^=,\)!]+/))return(J.peek()==="="||J.peek()==="!")&&(re.inAttributeName=!1,re.jsState=t.startState(s),re.lastTag==="script"&&J.current().trim().toLowerCase()==="type"?re.attributeIsType=!0:re.attributeIsType=!1),"attribute";var fe=s.token(J,re.jsState);if(re.attributeIsType&&fe==="string"&&(re.scriptType=J.current().toString()),re.attrsNest.length===0&&(fe==="string"||fe==="variable"||fe==="keyword"))try{return Function("","var x "+re.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),re.inAttributeName=!0,re.attrValue="",J.backUp(J.current().length),ve(J,re)}catch{}return re.attrValue+=J.current(),fe||!0}}function Se(J,re){if(J.match(/^&attributes\b/))return re.javaScriptArguments=!0,re.javaScriptArgumentsDepth=0,"keyword"}function _e(J){if(J.sol()&&J.eatSpace())return"indent"}function Ne(J,re){if(J.match(/^ *\/\/(-)?([^\n]*)/))return re.indentOf=J.indentation(),re.indentToken="comment","comment"}function Le(J){if(J.match(/^: */))return"colon"}function it(J,re){if(J.match(/^(?:\| ?| )([^\n]+)/))return"string";if(J.match(/^(<[^\n]*)/,!1))return wt(J,re,"htmlmixed"),re.innerModeForLine=!0,At(J,re,!0)}function ze(J,re){if(J.eat(".")){var fe=null;return re.lastTag==="script"&&re.scriptType.toLowerCase().indexOf("javascript")!=-1?fe=re.scriptType.toLowerCase().replace(/"|'/g,""):re.lastTag==="style"&&(fe="css"),wt(J,re,fe),"dot"}}function tt(J){return J.next(),null}function wt(J,re,fe){fe=t.mimeModes[fe]||fe,fe=e.innerModes&&e.innerModes(fe)||fe,fe=t.mimeModes[fe]||fe,fe=t.getMode(e,fe),re.indentOf=J.indentation(),fe&&fe.name!=="null"?re.innerMode=fe:re.indentToken="string"}function At(J,re,fe){if(J.indentation()>re.indentOf||re.innerModeForLine&&!J.sol()||fe)return re.innerMode?(re.innerState||(re.innerState=re.innerMode.startState?t.startState(re.innerMode,J.indentation()):{}),J.hideFirstChars(re.indentOf+2,function(){return re.innerMode.token(J,re.innerState)||!0})):(J.skipToEnd(),re.indentToken);J.sol()&&(re.indentOf=1/0,re.indentToken=null,re.innerMode=null,re.innerState=null)}function Ve(J,re){if(J.sol()&&(re.restOfLine=""),re.restOfLine){J.skipToEnd();var fe=re.restOfLine;return re.restOfLine="",fe}}function Oe(){return new u}function Me(J){return J.copy()}function he(J,re){var fe=At(J,re)||Ve(J,re)||x(J,re)||O(J,re)||q(J,re)||ve(J,re)||c(J,re)||f(J,re)||V(J,re)||p(J)||g(J)||m(J,re)||w(J,re)||T(J,re)||k(J)||A(J,re)||D(J,re)||M(J,re)||P(J,re)||_(J,re)||C(J,re)||F(J,re)||B(J,re)||S(J,re)||R(J,re)||W(J,re)||N(J,re)||z(J,re)||X(J,re)||oe(J)||G(J)||K(J,re)||Se(J,re)||_e(J)||it(J,re)||Ne(J,re)||Le(J)||ze(J,re)||tt(J);return fe===!0?null:fe}return{startState:Oe,copyState:Me,token:he}},"javascript","css","htmlmixed"),t.defineMIME("text/x-pug","pug"),t.defineMIME("text/x-jade","pug")})});var Kne=Z(($ne,Yne)=>{(function(t){typeof $ne=="object"&&typeof Yne=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.multiplexingMode=function(e){var r=Array.prototype.slice.call(arguments,1);function n(i,o,a,s){if(typeof o=="string"){var u=i.indexOf(o,a);return s&&u>-1?u+o.length:u}var c=o.exec(a?i.slice(a):i);return c?c.index+a+(s?c[0].length:0):-1}return{startState:function(){return{outer:t.startState(e),innerActive:null,inner:null}},copyState:function(i){return{outer:t.copyState(e,i.outer),innerActive:i.innerActive,inner:i.innerActive&&t.copyState(i.innerActive.mode,i.inner)}},token:function(i,o){if(o.innerActive){var x=o.innerActive,s=i.string;if(!x.close&&i.sol())return o.innerActive=o.inner=null,this.token(i,o);var f=x.close?n(s,x.close,i.pos,x.parseDelimiters):-1;if(f==i.pos&&!x.parseDelimiters)return i.match(x.close),o.innerActive=o.inner=null,x.delimStyle&&x.delimStyle+" "+x.delimStyle+"-close";f>-1&&(i.string=s.slice(0,f));var w=x.mode.token(i,o.inner);return f>-1&&(i.string=s),f==i.pos&&x.parseDelimiters&&(o.innerActive=o.inner=null),x.innerStyle&&(w?w=w+" "+x.innerStyle:w=x.innerStyle),w}else{for(var a=1/0,s=i.string,u=0;u<r.length;++u){var c=r[u],f=n(s,c.open,i.pos);if(f==i.pos){c.parseDelimiters||i.match(c.open),o.innerActive=c;var p=0;if(e.indent){var g=e.indent(o.outer,"","");g!==t.Pass&&(p=g)}return o.inner=t.startState(c.mode,p),c.delimStyle&&c.delimStyle+" "+c.delimStyle+"-open"}else f!=-1&&f<a&&(a=f)}a!=1/0&&(i.string=s.slice(0,a));var m=e.token(i,o.outer);return a!=1/0&&(i.string=s),m}},indent:function(i,o,a){var s=i.innerActive?i.innerActive.mode:e;return s.indent?s.indent(i.innerActive?i.inner:i.outer,o,a):t.Pass},blankLine:function(i){var o=i.innerActive?i.innerActive.mode:e;if(o.blankLine&&o.blankLine(i.innerActive?i.inner:i.outer),i.innerActive)i.innerActive.close===`
66
66
  `&&(i.innerActive=i.inner=null);else for(var a=0;a<r.length;++a){var s=r[a];s.open===`
67
- `&&(i.innerActive=s,i.inner=t.startState(s.mode,o.indent?o.indent(i.outer,"",""):0))}},electricChars:e.electricChars,innerMode:function(i){return i.inner?{state:i.inner,mode:i.innerActive.mode}:{state:i.outer,mode:e}}}}})});var Xne=Z((Kne,Gne)=>{(function(t){typeof Kne=="object"&&typeof Gne=="object"?t(Br(),aq(),Yne()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple","../../addon/mode/multiplex"],t):t(CodeMirror)})(function(t){"use strict";t.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),t.defineMode("handlebars",function(e,r){var n=t.getMode(e,"handlebars-tags");return!r||!r.base?n:t.multiplexingMode(t.getMode(e,r.base),{open:"{{",close:/\}\}\}?/,mode:n,parseDelimiters:!0})}),t.defineMIME("text/x-handlebars-template","handlebars")})});var Jne=Z((Qne,Zne)=>{(function(t){"use strict";typeof Qne=="object"&&typeof Zne=="object"?t(Br(),q1(),nm(),o0(),Nne(),rm(),sq(),zne(),Une(),Xne()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/overlay","../xml/xml","../javascript/javascript","../coffeescript/coffeescript","../css/css","../sass/sass","../stylus/stylus","../pug/pug","../handlebars/handlebars"],t):t(CodeMirror)})(function(t){var e={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]};t.defineMode("vue-template",function(r,n){var i={token:function(o){if(o.match(/^\{\{.*?\}\}/))return"meta mustache";for(;o.next()&&!o.match("{{",!1););return null}};return t.overlayMode(t.getMode(r,n.backdrop||"text/html"),i)}),t.defineMode("vue",function(r){return t.getMode(r,{name:"htmlmixed",tags:e})},"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),t.defineMIME("script/x-vue","vue"),t.defineMIME("text/x-vue","vue")})});var rie=Z((eie,tie)=>{(function(t){typeof eie=="object"&&typeof tie=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("yaml",function(){var e=["true","false","on","off","yes","no"],r=new RegExp("\\b(("+e.join(")|(")+"))$","i");return{token:function(n,i){var o=n.peek(),a=i.escaped;if(i.escaped=!1,o=="#"&&(n.pos==0||/\s/.test(n.string.charAt(n.pos-1))))return n.skipToEnd(),"comment";if(n.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&n.indentation()>i.keyCol)return n.skipToEnd(),"string";if(i.literal&&(i.literal=!1),n.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,n.match(/---/)||n.match(/\.\.\./))return"def";if(n.match(/\s*-\s+/))return"meta"}if(n.match(/^(\{|\}|\[|\])/))return o=="{"?i.inlinePairs++:o=="}"?i.inlinePairs--:o=="["?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!a&&o==",")return n.next(),"meta";if(i.inlinePairs>0&&!a&&o==",")return i.keyCol=0,i.pair=!1,i.pairStart=!1,n.next(),"meta";if(i.pairStart){if(n.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(n.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(i.inlinePairs==0&&n.match(/^\s*-?[0-9\.\,]+\s?$/)||i.inlinePairs>0&&n.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(n.match(r))return"keyword"}return!i.pair&&n.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(i.pair=!0,i.keyCol=n.indentation(),"atom"):i.pair&&n.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped=o=="\\",n.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),t.defineMIME("text/x-yaml","yaml"),t.defineMIME("text/yaml","yaml")})});var cEt,fEt,dEt,hEt,pEt,gEt,mEt,vEt,yEt,bEt,xEt,wEt,_Et,SEt,nie,F1,iie=se(()=>{cEt=Vr(rm()),fEt=Vr(rne()),dEt=Vr(P1()),hEt=Vr(o0()),pEt=Vr(R1()),gEt=Vr(mne()),mEt=Vr(_ne()),vEt=Vr(Ene()),yEt=Vr(sq()),bEt=Vr(One()),xEt=Vr(Lne()),wEt=Vr(Jne()),_Et=Vr(nm()),SEt=Vr(rie());Pr();nie=Vr(Br());Qg();F1=class extends Ct{connect(){let t={readOnly:Mo(this.elementTarget.dataset.readOnly),mode:this.elementTarget.dataset.language,theme:this.elementTarget.dataset.theme,tabSize:this.elementTarget.dataset.tabSize,indentWithTabs:Mo(this.elementTarget.dataset.indentWithTabs),lineWrapping:Mo(this.elementTarget.dataset.lineWrapping),lineNumbers:!0},e=this;setTimeout(()=>{nie.default.fromTextArea(this.elementTarget,t).on("change",r=>{e.elementTarget.innerText=r.getValue(),e.elementTarget.dispatchEvent(new Event("input"))})},1)}};xt(F1,"targets",["element"])});var lq,oie=se(()=>{Pr();lq=class extends Ct{copy(){let t=this.context.element.dataset.text,e=document.createElement("textarea"),r=e.contentEditable,n=e.readOnly;e.value=t,e.contentEditable=!0,e.readOnly=!1,e.setAttribute("readonly",!1),e.setAttribute("contenteditable",!0),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e);let i=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;e.select(),e.setSelectionRange(0,999999),document.execCommand("copy"),document.body.removeChild(e),i&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(i)),e.contentEditable=r,e.readOnly=n}}});var N1,aie=se(()=>{Pr();N1=class extends Ct{constructor(){super(...arguments);xt(this,"interval")}get parentTurboFrame(){return this.context.scope.element.closest("turbo-frame")}get refreshInterval(){if(this.cardTarget.dataset.refreshEvery)return parseInt(this.cardTarget.dataset.refreshEvery,10)*1e3}connect(){this.refreshInterval&&(this.interval=setInterval(()=>{this.parentTurboFrame.reload()},this.refreshInterval))}cardTargetDisconnected(){this.interval&&clearInterval(this.interval)}};xt(N1,"targets",["card"])});var poe=Z(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});function sie(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function js(t,e,r){return e&&sie(t.prototype,e),r&&sie(t,r),t}function ns(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function mq(t){return mq=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},mq(t)}function V1(t,e){return V1=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},V1(t,e)}function xGe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function H1(t,e,r){return xGe()?H1=Reflect.construct:H1=function(i,o,a){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(i,s),c=new u;return a&&V1(c,a.prototype),c},H1.apply(null,arguments)}function wGe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function vq(t){var e=typeof Map=="function"?new Map:void 0;return vq=function(n){if(n===null||!wGe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return H1(n,arguments,mq(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),V1(i,n)},vq(t)}function _Ge(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function SGe(t,e){if(!!t){if(typeof t=="string")return lie(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lie(t,e)}}function lie(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tf(t){var e=0;if(typeof Symbol>"u"||t[Symbol.iterator]==null){if(Array.isArray(t)||(t=SGe(t)))return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}};throw new TypeError(`Invalid attempt to iterate non-iterable instance.
67
+ `&&(i.innerActive=s,i.inner=t.startState(s.mode,o.indent?o.indent(i.outer,"",""):0))}},electricChars:e.electricChars,innerMode:function(i){return i.inner?{state:i.inner,mode:i.innerActive.mode}:{state:i.outer,mode:e}}}}})});var Qne=Z((Gne,Xne)=>{(function(t){typeof Gne=="object"&&typeof Xne=="object"?t(Br(),aq(),Kne()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple","../../addon/mode/multiplex"],t):t(CodeMirror)})(function(t){"use strict";t.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}}),t.defineMode("handlebars",function(e,r){var n=t.getMode(e,"handlebars-tags");return!r||!r.base?n:t.multiplexingMode(t.getMode(e,r.base),{open:"{{",close:/\}\}\}?/,mode:n,parseDelimiters:!0})}),t.defineMIME("text/x-handlebars-template","handlebars")})});var eie=Z((Zne,Jne)=>{(function(t){"use strict";typeof Zne=="object"&&typeof Jne=="object"?t(Br(),F1(),nm(),o0(),Bne(),rm(),sq(),Hne(),Vne(),Qne()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/overlay","../xml/xml","../javascript/javascript","../coffeescript/coffeescript","../css/css","../sass/sass","../stylus/stylus","../pug/pug","../handlebars/handlebars"],t):t(CodeMirror)})(function(t){var e={script:[["lang",/coffee(script)?/,"coffeescript"],["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]};t.defineMode("vue-template",function(r,n){var i={token:function(o){if(o.match(/^\{\{.*?\}\}/))return"meta mustache";for(;o.next()&&!o.match("{{",!1););return null}};return t.overlayMode(t.getMode(r,n.backdrop||"text/html"),i)}),t.defineMode("vue",function(r){return t.getMode(r,{name:"htmlmixed",tags:e})},"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars"),t.defineMIME("script/x-vue","vue"),t.defineMIME("text/x-vue","vue")})});var nie=Z((tie,rie)=>{(function(t){typeof tie=="object"&&typeof rie=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineMode("yaml",function(){var e=["true","false","on","off","yes","no"],r=new RegExp("\\b(("+e.join(")|(")+"))$","i");return{token:function(n,i){var o=n.peek(),a=i.escaped;if(i.escaped=!1,o=="#"&&(n.pos==0||/\s/.test(n.string.charAt(n.pos-1))))return n.skipToEnd(),"comment";if(n.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(i.literal&&n.indentation()>i.keyCol)return n.skipToEnd(),"string";if(i.literal&&(i.literal=!1),n.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,n.match(/---/)||n.match(/\.\.\./))return"def";if(n.match(/\s*-\s+/))return"meta"}if(n.match(/^(\{|\}|\[|\])/))return o=="{"?i.inlinePairs++:o=="}"?i.inlinePairs--:o=="["?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!a&&o==",")return n.next(),"meta";if(i.inlinePairs>0&&!a&&o==",")return i.keyCol=0,i.pair=!1,i.pairStart=!1,n.next(),"meta";if(i.pairStart){if(n.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(n.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(i.inlinePairs==0&&n.match(/^\s*-?[0-9\.\,]+\s?$/)||i.inlinePairs>0&&n.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(n.match(r))return"keyword"}return!i.pair&&n.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(i.pair=!0,i.keyCol=n.indentation(),"atom"):i.pair&&n.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped=o=="\\",n.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),t.defineMIME("text/x-yaml","yaml"),t.defineMIME("text/yaml","yaml")})});var hEt,pEt,gEt,mEt,vEt,yEt,bEt,xEt,wEt,_Et,SEt,kEt,EEt,CEt,iie,N1,oie=se(()=>{hEt=Vr(rm()),pEt=Vr(nne()),gEt=Vr(R1()),mEt=Vr(o0()),vEt=Vr(q1()),yEt=Vr(vne()),bEt=Vr(Sne()),xEt=Vr(Cne()),wEt=Vr(sq()),_Et=Vr(Mne()),SEt=Vr(Pne()),kEt=Vr(eie()),EEt=Vr(nm()),CEt=Vr(nie());Pr();iie=Vr(Br());Qg();N1=class extends Ct{connect(){let t={readOnly:Mo(this.elementTarget.dataset.readOnly),mode:this.elementTarget.dataset.language,theme:this.elementTarget.dataset.theme,tabSize:this.elementTarget.dataset.tabSize,indentWithTabs:Mo(this.elementTarget.dataset.indentWithTabs),lineWrapping:Mo(this.elementTarget.dataset.lineWrapping),lineNumbers:!0},e=this;setTimeout(()=>{iie.default.fromTextArea(this.elementTarget,t).on("change",r=>{e.elementTarget.innerText=r.getValue(),e.elementTarget.dispatchEvent(new Event("input"))})},1)}};xt(N1,"targets",["element"])});var lq,aie=se(()=>{Pr();lq=class extends Ct{copy(){let t=this.context.element.dataset.text,e=document.createElement("textarea"),r=e.contentEditable,n=e.readOnly;e.value=t,e.contentEditable=!0,e.readOnly=!1,e.setAttribute("readonly",!1),e.setAttribute("contenteditable",!0),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e);let i=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;e.select(),e.setSelectionRange(0,999999),document.execCommand("copy"),document.body.removeChild(e),i&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(i)),e.contentEditable=r,e.readOnly=n}}});var poe=Z(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});function sie(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function js(t,e,r){return e&&sie(t.prototype,e),r&&sie(t,r),t}function ns(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function mq(t){return mq=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},mq(t)}function V1(t,e){return V1=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},V1(t,e)}function xGe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function H1(t,e,r){return xGe()?H1=Reflect.construct:H1=function(i,o,a){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(i,s),c=new u;return a&&V1(c,a.prototype),c},H1.apply(null,arguments)}function wGe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function vq(t){var e=typeof Map=="function"?new Map:void 0;return vq=function(n){if(n===null||!wGe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return H1(n,arguments,mq(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),V1(i,n)},vq(t)}function _Ge(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function SGe(t,e){if(!!t){if(typeof t=="string")return lie(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lie(t,e)}}function lie(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tf(t){var e=0;if(typeof Symbol>"u"||t[Symbol.iterator]==null){if(Array.isArray(t)||(t=SGe(t)))return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}};throw new TypeError(`Invalid attempt to iterate non-iterable instance.
68
68
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return e=t[Symbol.iterator](),e.next.bind(e)}var gh=function(t){ns(e,t);function e(){return t.apply(this,arguments)||this}return e}(vq(Error)),kGe=function(t){ns(e,t);function e(r){return t.call(this,"Invalid DateTime: "+r.toMessage())||this}return e}(gh),EGe=function(t){ns(e,t);function e(r){return t.call(this,"Invalid Interval: "+r.toMessage())||this}return e}(gh),CGe=function(t){ns(e,t);function e(r){return t.call(this,"Invalid Duration: "+r.toMessage())||this}return e}(gh),yq=function(t){ns(e,t);function e(){return t.apply(this,arguments)||this}return e}(gh),Mie=function(t){ns(e,t);function e(r){return t.call(this,"Invalid unit "+r)||this}return e}(gh),ts=function(t){ns(e,t);function e(){return t.apply(this,arguments)||this}return e}(gh),Af=function(t){ns(e,t);function e(){return t.call(this,"Zone is an abstract class")||this}return e}(gh),Et="numeric",zs="short",Ta="long",$1={year:Et,month:Et,day:Et},Cq={year:Et,month:zs,day:Et},Iie={year:Et,month:zs,day:Et,weekday:zs},Aq={year:Et,month:Ta,day:Et},Tq={year:Et,month:Ta,day:Et,weekday:Ta},Dq={hour:Et,minute:Et},Oq={hour:Et,minute:Et,second:Et},Mq={hour:Et,minute:Et,second:Et,timeZoneName:zs},Iq={hour:Et,minute:Et,second:Et,timeZoneName:Ta},Lq={hour:Et,minute:Et,hour12:!1},Pq={hour:Et,minute:Et,second:Et,hour12:!1},Rq={hour:Et,minute:Et,second:Et,hour12:!1,timeZoneName:zs},qq={hour:Et,minute:Et,second:Et,hour12:!1,timeZoneName:Ta},Fq={year:Et,month:Et,day:Et,hour:Et,minute:Et},Nq={year:Et,month:Et,day:Et,hour:Et,minute:Et,second:Et},Bq={year:Et,month:zs,day:Et,hour:Et,minute:Et},jq={year:Et,month:zs,day:Et,hour:Et,minute:Et,second:Et},Lie={year:Et,month:zs,day:Et,weekday:zs,hour:Et,minute:Et},zq={year:Et,month:Ta,day:Et,hour:Et,minute:Et,timeZoneName:zs},Hq={year:Et,month:Ta,day:Et,hour:Et,minute:Et,second:Et,timeZoneName:zs},Wq={year:Et,month:Ta,day:Et,weekday:Ta,hour:Et,minute:Et,timeZoneName:Ta},Uq={year:Et,month:Ta,day:Et,weekday:Ta,hour:Et,minute:Et,second:Et,timeZoneName:Ta};function on(t){return typeof t>"u"}function ph(t){return typeof t=="number"}function Q1(t){return typeof t=="number"&&t%1===0}function AGe(t){return typeof t=="string"}function TGe(t){return Object.prototype.toString.call(t)==="[object Date]"}function Xl(){try{return typeof Intl<"u"&&Intl.DateTimeFormat}catch{return!1}}function h0(){return!on(Intl.DateTimeFormat.prototype.formatToParts)}function Pie(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function DGe(t){return Array.isArray(t)?t:[t]}function uie(t,e,r){if(t.length!==0)return t.reduce(function(n,i){var o=[e(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function Rie(t,e){return e.reduce(function(r,n){return r[n]=t[n],r},{})}function um(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function rc(t,e,r){return Q1(t)&&t>=e&&t<=r}function OGe(t,e){return t-e*Math.floor(t/e)}function sm(t,e){e===void 0&&(e=2);var r=t<0?"-":"",n=r?t*-1:t,i;return n.toString().length<e?i=("0".repeat(e)+n).slice(-e):i=n.toString(),""+r+i}function Io(t){if(!(on(t)||t===null||t===""))return parseInt(t,10)}function Vq(t){if(!(on(t)||t===null||t==="")){var e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function $q(t,e,r){r===void 0&&(r=!1);var n=Math.pow(10,e),i=r?Math.trunc:Math.round;return i(t*n)/n}function p0(t){return t%4===0&&(t%100!==0||t%400===0)}function f0(t){return p0(t)?366:365}function Y1(t,e){var r=OGe(e-1,12)+1,n=t+(e-r)/12;return r===2?p0(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Yq(t){var e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function K1(t){var e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,r=t-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return e===4||n===3?53:52}function bq(t){return t>99?t:t>60?1900+t:2e3+t}function qie(t,e,r,n){n===void 0&&(n=null);var i=new Date(t),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);var a=Object.assign({timeZoneName:e},o),s=Xl();if(s&&h0()){var u=new Intl.DateTimeFormat(r,a).formatToParts(i).find(function(m){return m.type.toLowerCase()==="timezonename"});return u?u.value:null}else if(s){var c=new Intl.DateTimeFormat(r,o).format(i),f=new Intl.DateTimeFormat(r,a).format(i),p=f.substring(c.length),g=p.replace(/^[, \u200e]+/,"");return g}else return null}function Z1(t,e){var r=parseInt(t,10);Number.isNaN(r)&&(r=0);var n=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function Fie(t){var e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new ts("Invalid unit value "+t);return e}function G1(t,e,r){var n={};for(var i in t)if(um(t,i)){if(r.indexOf(i)>=0)continue;var o=t[i];if(o==null)continue;n[e(i)]=Fie(o)}return n}function X1(t,e){var r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return""+i+sm(r,2)+":"+sm(n,2);case"narrow":return""+i+r+(n>0?":"+n:"");case"techie":return""+i+sm(r,2)+sm(n,2);default:throw new RangeError("Value format "+e+" is out of range for property format")}}function J1(t){return Rie(t,["hour","minute","second","millisecond"])}var Nie=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function Pn(t){return JSON.stringify(t,Object.keys(t).sort())}var MGe=["January","February","March","April","May","June","July","August","September","October","November","December"],Bie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],IGe=["J","F","M","A","M","J","J","A","S","O","N","D"];function jie(t){switch(t){case"narrow":return IGe;case"short":return Bie;case"long":return MGe;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var zie=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Hie=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],LGe=["M","T","W","T","F","S","S"];function Wie(t){switch(t){case"narrow":return LGe;case"short":return Hie;case"long":return zie;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Uie=["AM","PM"],PGe=["Before Christ","Anno Domini"],RGe=["BC","AD"],qGe=["B","A"];function Vie(t){switch(t){case"narrow":return qGe;case"short":return RGe;case"long":return PGe;default:return null}}function FGe(t){return Uie[t.hour<12?0:1]}function NGe(t,e){return Wie(e)[t.weekday-1]}function BGe(t,e){return jie(e)[t.month-1]}function jGe(t,e){return Vie(e)[t.year<0?0:1]}function zGe(t,e,r,n){r===void 0&&(r="always"),n===void 0&&(n=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&o){var a=t==="days";switch(e){case 1:return a?"tomorrow":"next "+i[t][0];case-1:return a?"yesterday":"last "+i[t][0];case 0:return a?"today":"this "+i[t][0]}}var s=Object.is(e,-0)||e<0,u=Math.abs(e),c=u===1,f=i[t],p=n?c?f[1]:f[2]||f[1]:c?i[t][0]:t;return s?u+" "+p+" ago":"in "+u+" "+p}function HGe(t){var e=Rie(t,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]),r=Pn(e),n="EEEE, LLLL d, yyyy, h:mm a";switch(r){case Pn($1):return"M/d/yyyy";case Pn(Cq):return"LLL d, yyyy";case Pn(Iie):return"EEE, LLL d, yyyy";case Pn(Aq):return"LLLL d, yyyy";case Pn(Tq):return"EEEE, LLLL d, yyyy";case Pn(Dq):return"h:mm a";case Pn(Oq):return"h:mm:ss a";case Pn(Mq):return"h:mm a";case Pn(Iq):return"h:mm a";case Pn(Lq):return"HH:mm";case Pn(Pq):return"HH:mm:ss";case Pn(Rq):return"HH:mm";case Pn(qq):return"HH:mm";case Pn(Fq):return"M/d/yyyy, h:mm a";case Pn(Bq):return"LLL d, yyyy, h:mm a";case Pn(zq):return"LLLL d, yyyy, h:mm a";case Pn(Wq):return n;case Pn(Nq):return"M/d/yyyy, h:mm:ss a";case Pn(jq):return"LLL d, yyyy, h:mm:ss a";case Pn(Lie):return"EEE, d LLL yyyy, h:mm a";case Pn(Hq):return"LLLL d, yyyy, h:mm:ss a";case Pn(Uq):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return n}}function cie(t,e){for(var r="",n=Tf(t),i;!(i=n()).done;){var o=i.value;o.literal?r+=o.val:r+=e(o.val)}return r}var WGe={D:$1,DD:Cq,DDD:Aq,DDDD:Tq,t:Dq,tt:Oq,ttt:Mq,tttt:Iq,T:Lq,TT:Pq,TTT:Rq,TTTT:qq,f:Fq,ff:Bq,fff:zq,ffff:Wq,F:Nq,FF:jq,FFF:Hq,FFFF:Uq},Gl=function(){t.create=function(n,i){return i===void 0&&(i={}),new t(n,i)},t.parseFormat=function(n){for(var i=null,o="",a=!1,s=[],u=0;u<n.length;u++){var c=n.charAt(u);c==="'"?(o.length>0&&s.push({literal:a,val:o}),i=null,o="",a=!a):a||c===i?o+=c:(o.length>0&&s.push({literal:!1,val:o}),o=c,i=c)}return o.length>0&&s.push({literal:a,val:o}),s},t.macroTokenToFormatOpts=function(n){return WGe[n]};function t(r,n){this.opts=n,this.loc=r,this.systemLoc=null}var e=t.prototype;return e.formatWithSystemDefault=function(n,i){this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem());var o=this.systemLoc.dtFormatter(n,Object.assign({},this.opts,i));return o.format()},e.formatDateTime=function(n,i){i===void 0&&(i={});var o=this.loc.dtFormatter(n,Object.assign({},this.opts,i));return o.format()},e.formatDateTimeParts=function(n,i){i===void 0&&(i={});var o=this.loc.dtFormatter(n,Object.assign({},this.opts,i));return o.formatToParts()},e.resolvedOptions=function(n,i){i===void 0&&(i={});var o=this.loc.dtFormatter(n,Object.assign({},this.opts,i));return o.resolvedOptions()},e.num=function(n,i){if(i===void 0&&(i=0),this.opts.forceSimple)return sm(n,i);var o=Object.assign({},this.opts);return i>0&&(o.padTo=i),this.loc.numberFormatter(o).format(n)},e.formatDateTimeFromString=function(n,i){var o=this,a=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory"&&h0(),u=function(k,A){return o.loc.extract(n,k,A)},c=function(k){return n.isOffsetFixed&&n.offset===0&&k.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,k.format):""},f=function(){return a?FGe(n):u({hour:"numeric",hour12:!0},"dayperiod")},p=function(k,A){return a?BGe(n,k):u(A?{month:k}:{month:k,day:"numeric"},"month")},g=function(k,A){return a?NGe(n,k):u(A?{weekday:k}:{weekday:k,month:"long",day:"numeric"},"weekday")},m=function(k){var A=t.macroTokenToFormatOpts(k);return A?o.formatWithSystemDefault(n,A):k},x=function(k){return a?jGe(n,k):u({era:k},"era")},w=function(k){switch(k){case"S":return o.num(n.millisecond);case"u":case"SSS":return o.num(n.millisecond,3);case"s":return o.num(n.second);case"ss":return o.num(n.second,2);case"m":return o.num(n.minute);case"mm":return o.num(n.minute,2);case"h":return o.num(n.hour%12===0?12:n.hour%12);case"hh":return o.num(n.hour%12===0?12:n.hour%12,2);case"H":return o.num(n.hour);case"HH":return o.num(n.hour,2);case"Z":return c({format:"narrow",allowZ:o.opts.allowZ});case"ZZ":return c({format:"short",allowZ:o.opts.allowZ});case"ZZZ":return c({format:"techie",allowZ:o.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:o.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:o.loc.locale});case"z":return n.zoneName;case"a":return f();case"d":return s?u({day:"numeric"},"day"):o.num(n.day);case"dd":return s?u({day:"2-digit"},"day"):o.num(n.day,2);case"c":return o.num(n.weekday);case"ccc":return g("short",!0);case"cccc":return g("long",!0);case"ccccc":return g("narrow",!0);case"E":return o.num(n.weekday);case"EEE":return g("short",!1);case"EEEE":return g("long",!1);case"EEEEE":return g("narrow",!1);case"L":return s?u({month:"numeric",day:"numeric"},"month"):o.num(n.month);case"LL":return s?u({month:"2-digit",day:"numeric"},"month"):o.num(n.month,2);case"LLL":return p("short",!0);case"LLLL":return p("long",!0);case"LLLLL":return p("narrow",!0);case"M":return s?u({month:"numeric"},"month"):o.num(n.month);case"MM":return s?u({month:"2-digit"},"month"):o.num(n.month,2);case"MMM":return p("short",!1);case"MMMM":return p("long",!1);case"MMMMM":return p("narrow",!1);case"y":return s?u({year:"numeric"},"year"):o.num(n.year);case"yy":return s?u({year:"2-digit"},"year"):o.num(n.year.toString().slice(-2),2);case"yyyy":return s?u({year:"numeric"},"year"):o.num(n.year,4);case"yyyyyy":return s?u({year:"numeric"},"year"):o.num(n.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return o.num(n.weekYear.toString().slice(-2),2);case"kkkk":return o.num(n.weekYear,4);case"W":return o.num(n.weekNumber);case"WW":return o.num(n.weekNumber,2);case"o":return o.num(n.ordinal);case"ooo":return o.num(n.ordinal,3);case"q":return o.num(n.quarter);case"qq":return o.num(n.quarter,2);case"X":return o.num(Math.floor(n.ts/1e3));case"x":return o.num(n.ts);default:return m(k)}};return cie(t.parseFormat(i),w)},e.formatDurationFromString=function(n,i){var o=this,a=function(g){switch(g[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},s=function(g){return function(m){var x=a(m);return x?o.num(g.get(x),m.length):m}},u=t.parseFormat(i),c=u.reduce(function(p,g){var m=g.literal,x=g.val;return m?p:p.concat(x)},[]),f=n.shiftTo.apply(n,c.map(a).filter(function(p){return p}));return cie(u,s(f))},t}(),Bs=function(){function t(r,n){this.reason=r,this.explanation=n}var e=t.prototype;return e.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},t}(),cm=function(){function t(){}var e=t.prototype;return e.offsetName=function(n,i){throw new Af},e.formatOffset=function(n,i){throw new Af},e.offset=function(n){throw new Af},e.equals=function(n){throw new Af},js(t,[{key:"type",get:function(){throw new Af}},{key:"name",get:function(){throw new Af}},{key:"universal",get:function(){throw new Af}},{key:"isValid",get:function(){throw new Af}}]),t}(),uq=null,$ie=function(t){ns(e,t);function e(){return t.apply(this,arguments)||this}var r=e.prototype;return r.offsetName=function(i,o){var a=o.format,s=o.locale;return qie(i,a,s)},r.formatOffset=function(i,o){return X1(this.offset(i),o)},r.offset=function(i){return-new Date(i).getTimezoneOffset()},r.equals=function(i){return i.type==="local"},js(e,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return Xl()?new Intl.DateTimeFormat().resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return uq===null&&(uq=new e),uq}}]),e}(cm),UGe=RegExp("^"+Nie.source+"$"),W1={};function VGe(t){return W1[t]||(W1[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),W1[t]}var $Ge={year:0,month:1,day:2,hour:3,minute:4,second:5};function YGe(t,e){var r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r),i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6];return[a,i,o,s,u,c]}function KGe(t,e){for(var r=t.formatToParts(e),n=[],i=0;i<r.length;i++){var o=r[i],a=o.type,s=o.value,u=$Ge[a];on(u)||(n[u]=parseInt(s,10))}return n}var B1={},nc=function(t){ns(e,t),e.create=function(i){return B1[i]||(B1[i]=new e(i)),B1[i]},e.resetCache=function(){B1={},W1={}},e.isValidSpecifier=function(i){return!!(i&&i.match(UGe))},e.isValidZone=function(i){try{return new Intl.DateTimeFormat("en-US",{timeZone:i}).format(),!0}catch{return!1}},e.parseGMTOffset=function(i){if(i){var o=i.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(o)return-60*parseInt(o[1])}return null};function e(n){var i;return i=t.call(this)||this,i.zoneName=n,i.valid=e.isValidZone(n),i}var r=e.prototype;return r.offsetName=function(i,o){var a=o.format,s=o.locale;return qie(i,a,s,this.name)},r.formatOffset=function(i,o){return X1(this.offset(i),o)},r.offset=function(i){var o=new Date(i),a=VGe(this.name),s=a.formatToParts?KGe(a,o):YGe(a,o),u=s[0],c=s[1],f=s[2],p=s[3],g=s[4],m=s[5],x=p===24?0:p,w=Yq({year:u,month:c,day:f,hour:x,minute:g,second:m,millisecond:0}),T=+o,k=T%1e3;return T-=k>=0?k:1e3+k,(w-T)/(60*1e3)},r.equals=function(i){return i.type==="iana"&&i.name===this.name},js(e,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),e}(cm),cq=null,Aa=function(t){ns(e,t),e.instance=function(i){return i===0?e.utcInstance:new e(i)},e.parseSpecifier=function(i){if(i){var o=i.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(o)return new e(Z1(o[1],o[2]))}return null},js(e,null,[{key:"utcInstance",get:function(){return cq===null&&(cq=new e(0)),cq}}]);function e(n){var i;return i=t.call(this)||this,i.fixed=n,i}var r=e.prototype;return r.offsetName=function(){return this.name},r.formatOffset=function(i,o){return X1(this.fixed,o)},r.offset=function(){return this.fixed},r.equals=function(i){return i.type==="fixed"&&i.fixed===this.fixed},js(e,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return this.fixed===0?"UTC":"UTC"+X1(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),e}(cm),xq=function(t){ns(e,t);function e(n){var i;return i=t.call(this)||this,i.zoneName=n,i}var r=e.prototype;return r.offsetName=function(){return null},r.formatOffset=function(){return""},r.offset=function(){return NaN},r.equals=function(){return!1},js(e,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),e}(cm);function dh(t,e){var r;if(on(t)||t===null)return e;if(t instanceof cm)return t;if(AGe(t)){var n=t.toLowerCase();return n==="local"?e:n==="utc"||n==="gmt"?Aa.utcInstance:(r=nc.parseGMTOffset(t))!=null?Aa.instance(r):nc.isValidSpecifier(n)?nc.create(t):Aa.parseSpecifier(n)||new xq(t)}else return ph(t)?Aa.instance(t):typeof t=="object"&&t.offset&&typeof t.offset=="number"?t:new xq(t)}var fie=function(){return Date.now()},fq=null,die=null,hie=null,pie=null,gie=!1,Qn=function(){function t(){}return t.resetCaches=function(){ji.resetCache(),nc.resetCache()},js(t,null,[{key:"now",get:function(){return fie},set:function(r){fie=r}},{key:"defaultZoneName",get:function(){return t.defaultZone.name},set:function(r){r?fq=dh(r):fq=null}},{key:"defaultZone",get:function(){return fq||$ie.instance}},{key:"defaultLocale",get:function(){return die},set:function(r){die=r}},{key:"defaultNumberingSystem",get:function(){return hie},set:function(r){hie=r}},{key:"defaultOutputCalendar",get:function(){return pie},set:function(r){pie=r}},{key:"throwOnInvalid",get:function(){return gie},set:function(r){gie=r}}]),t}(),wq={};function _q(t,e){e===void 0&&(e={});var r=JSON.stringify([t,e]),n=wq[r];return n||(n=new Intl.DateTimeFormat(t,e),wq[r]=n),n}var Sq={};function GGe(t,e){e===void 0&&(e={});var r=JSON.stringify([t,e]),n=Sq[r];return n||(n=new Intl.NumberFormat(t,e),Sq[r]=n),n}var kq={};function XGe(t,e){e===void 0&&(e={});var r=e,n=r.base,i=_Ge(r,["base"]),o=JSON.stringify([t,i]),a=kq[o];return a||(a=new Intl.RelativeTimeFormat(t,e),kq[o]=a),a}var fh=null;function QGe(){if(fh)return fh;if(Xl()){var t=new Intl.DateTimeFormat().resolvedOptions().locale;return fh=!t||t==="und"?"en-US":t,fh}else return fh="en-US",fh}function ZGe(t){var e=t.indexOf("-u-");if(e===-1)return[t];var r,n=t.substring(0,e);try{r=_q(t).resolvedOptions()}catch{r=_q(n).resolvedOptions()}var i=r,o=i.numberingSystem,a=i.calendar;return[n,o,a]}function JGe(t,e,r){return Xl()?((r||e)&&(t+="-u",r&&(t+="-ca-"+r),e&&(t+="-nu-"+e)),t):[]}function eXe(t){for(var e=[],r=1;r<=12;r++){var n=si.utc(2016,r,1);e.push(t(n))}return e}function tXe(t){for(var e=[],r=1;r<=7;r++){var n=si.utc(2016,11,13+r);e.push(t(n))}return e}function j1(t,e,r,n,i){var o=t.listingMode(r);return o==="error"?null:o==="en"?n(e):i(e)}function rXe(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Xl()&&new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}var nXe=function(){function t(r,n,i){if(this.padTo=i.padTo||0,this.floor=i.floor||!1,!n&&Xl()){var o={useGrouping:!1};i.padTo>0&&(o.minimumIntegerDigits=i.padTo),this.inf=GGe(r,o)}}var e=t.prototype;return e.format=function(n){if(this.inf){var i=this.floor?Math.floor(n):n;return this.inf.format(i)}else{var o=this.floor?Math.floor(n):$q(n,3);return sm(o,this.padTo)}},t}(),iXe=function(){function t(r,n,i){this.opts=i,this.hasIntl=Xl();var o;if(r.zone.universal&&this.hasIntl){var a=-1*(r.offset/60);a>=-14&&a<=12&&a%1===0?(o=a>=0?"Etc/GMT+"+a:"Etc/GMT"+a,this.dt=r):(o="UTC",i.timeZoneName?this.dt=r:this.dt=r.offset===0?r:si.fromMillis(r.ts+r.offset*60*1e3))}else r.zone.type==="local"?this.dt=r:(this.dt=r,o=r.zone.name);if(this.hasIntl){var s=Object.assign({},this.opts);o&&(s.timeZone=o),this.dtf=_q(n,s)}}var e=t.prototype;return e.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var n=HGe(this.opts),i=ji.create("en-US");return Gl.create(i).formatDateTimeFromString(this.dt,n)},e.formatToParts=function(){return this.hasIntl&&h0()?this.dtf.formatToParts(this.dt.toJSDate()):[]},e.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},t}(),oXe=function(){function t(r,n,i){this.opts=Object.assign({style:"long"},i),!n&&Pie()&&(this.rtf=XGe(r,i))}var e=t.prototype;return e.format=function(n,i){return this.rtf?this.rtf.format(n,i):zGe(i,n,this.opts.numeric,this.opts.style!=="long")},e.formatToParts=function(n,i){return this.rtf?this.rtf.formatToParts(n,i):[]},t}(),ji=function(){t.fromOpts=function(n){return t.create(n.locale,n.numberingSystem,n.outputCalendar,n.defaultToEN)},t.create=function(n,i,o,a){a===void 0&&(a=!1);var s=n||Qn.defaultLocale,u=s||(a?"en-US":QGe()),c=i||Qn.defaultNumberingSystem,f=o||Qn.defaultOutputCalendar;return new t(u,c,f,s)},t.resetCache=function(){fh=null,wq={},Sq={},kq={}},t.fromObject=function(n){var i=n===void 0?{}:n,o=i.locale,a=i.numberingSystem,s=i.outputCalendar;return t.create(o,a,s)};function t(r,n,i,o){var a=ZGe(r),s=a[0],u=a[1],c=a[2];this.locale=s,this.numberingSystem=n||u||null,this.outputCalendar=i||c||null,this.intl=JGe(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}var e=t.prototype;return e.listingMode=function(n){n===void 0&&(n=!0);var i=Xl(),o=i&&h0(),a=this.isEnglish(),s=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return!o&&!(a&&s)&&!n?"error":!o||a&&s?"en":"intl"},e.clone=function(n){return!n||Object.getOwnPropertyNames(n).length===0?this:t.create(n.locale||this.specifiedLocale,n.numberingSystem||this.numberingSystem,n.outputCalendar||this.outputCalendar,n.defaultToEN||!1)},e.redefaultToEN=function(n){return n===void 0&&(n={}),this.clone(Object.assign({},n,{defaultToEN:!0}))},e.redefaultToSystem=function(n){return n===void 0&&(n={}),this.clone(Object.assign({},n,{defaultToEN:!1}))},e.months=function(n,i,o){var a=this;return i===void 0&&(i=!1),o===void 0&&(o=!0),j1(this,n,o,jie,function(){var s=i?{month:n,day:"numeric"}:{month:n},u=i?"format":"standalone";return a.monthsCache[u][n]||(a.monthsCache[u][n]=eXe(function(c){return a.extract(c,s,"month")})),a.monthsCache[u][n]})},e.weekdays=function(n,i,o){var a=this;return i===void 0&&(i=!1),o===void 0&&(o=!0),j1(this,n,o,Wie,function(){var s=i?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},u=i?"format":"standalone";return a.weekdaysCache[u][n]||(a.weekdaysCache[u][n]=tXe(function(c){return a.extract(c,s,"weekday")})),a.weekdaysCache[u][n]})},e.meridiems=function(n){var i=this;return n===void 0&&(n=!0),j1(this,void 0,n,function(){return Uie},function(){if(!i.meridiemCache){var o={hour:"numeric",hour12:!0};i.meridiemCache=[si.utc(2016,11,13,9),si.utc(2016,11,13,19)].map(function(a){return i.extract(a,o,"dayperiod")})}return i.meridiemCache})},e.eras=function(n,i){var o=this;return i===void 0&&(i=!0),j1(this,n,i,Vie,function(){var a={era:n};return o.eraCache[n]||(o.eraCache[n]=[si.utc(-40,1,1),si.utc(2017,1,1)].map(function(s){return o.extract(s,a,"era")})),o.eraCache[n]})},e.extract=function(n,i,o){var a=this.dtFormatter(n,i),s=a.formatToParts(),u=s.find(function(c){return c.type.toLowerCase()===o});return u?u.value:null},e.numberFormatter=function(n){return n===void 0&&(n={}),new nXe(this.intl,n.forceSimple||this.fastNumbers,n)},e.dtFormatter=function(n,i){return i===void 0&&(i={}),new iXe(n,this.intl,i)},e.relFormatter=function(n){return n===void 0&&(n={}),new oXe(this.intl,this.isEnglish(),n)},e.isEnglish=function(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Xl()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},e.equals=function(n){return this.locale===n.locale&&this.numberingSystem===n.numberingSystem&&this.outputCalendar===n.outputCalendar},js(t,[{key:"fastNumbers",get:function(){return this.fastNumbersCached==null&&(this.fastNumbersCached=rXe(this)),this.fastNumbersCached}}]),t}();function fm(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e.reduce(function(i,o){return i+o.source},"");return RegExp("^"+n+"$")}function mh(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return e.reduce(function(i,o){var a=i[0],s=i[1],u=i[2],c=o(n,u),f=c[0],p=c[1],g=c[2];return[Object.assign(a,f),s||p,g]},[{},null,1]).slice(0,2)}}function dm(t){if(t==null)return[null,null];for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i],s=a[0],u=a[1],c=s.exec(t);if(c)return u(c)}return[null,null]}function Yie(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n,i){var o={},a;for(a=0;a<e.length;a++)o[e[a]]=Io(n[i+a]);return[o,null,i+a]}}var Kie=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Kq=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Gie=RegExp(""+Kq.source+Kie.source+"?"),Gq=RegExp("(?:T"+Gie.source+")?"),aXe=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,sXe=/(\d{4})-?W(\d\d)(?:-?(\d))?/,lXe=/(\d{4})-?(\d{3})/,uXe=Yie("weekYear","weekNumber","weekDay"),cXe=Yie("year","ordinal"),fXe=/(\d{4})-(\d\d)-(\d\d)/,Xie=RegExp(Kq.source+" ?(?:"+Kie.source+"|("+Nie.source+"))?"),dXe=RegExp("(?: "+Xie.source+")?");function lm(t,e,r){var n=t[e];return on(n)?r:Io(n)}function Qie(t,e){var r={year:lm(t,e),month:lm(t,e+1,1),day:lm(t,e+2,1)};return[r,null,e+3]}function vh(t,e){var r={hours:lm(t,e,0),minutes:lm(t,e+1,0),seconds:lm(t,e+2,0),milliseconds:Vq(t[e+3])};return[r,null,e+4]}function g0(t,e){var r=!t[e]&&!t[e+1],n=Z1(t[e+1],t[e+2]),i=r?null:Aa.instance(n);return[{},i,e+3]}function Zie(t,e){var r=t[e]?nc.create(t[e]):null;return[{},r,e+1]}var hXe=RegExp("^T?"+Kq.source+"$"),pXe=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function gXe(t){var e=t[0],r=t[1],n=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],f=e[0]==="-",p=function(m){return m&&f?-m:m};return[{years:p(Io(r)),months:p(Io(n)),weeks:p(Io(i)),days:p(Io(o)),hours:p(Io(a)),minutes:p(Io(s)),seconds:p(Io(u)),milliseconds:p(Vq(c))}]}var mXe={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xq(t,e,r,n,i,o,a){var s={year:e.length===2?bq(Io(e)):Io(e),month:Bie.indexOf(r)+1,day:Io(n),hour:Io(i),minute:Io(o)};return a&&(s.second=Io(a)),t&&(s.weekday=t.length>3?zie.indexOf(t)+1:Hie.indexOf(t)+1),s}var vXe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function yXe(t){var e=t[1],r=t[2],n=t[3],i=t[4],o=t[5],a=t[6],s=t[7],u=t[8],c=t[9],f=t[10],p=t[11],g=Xq(e,i,n,r,o,a,s),m;return u?m=mXe[u]:c?m=0:m=Z1(f,p),[g,new Aa(m)]}function bXe(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var xXe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,wXe=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,_Xe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function mie(t){var e=t[1],r=t[2],n=t[3],i=t[4],o=t[5],a=t[6],s=t[7],u=Xq(e,i,n,r,o,a,s);return[u,Aa.utcInstance]}function SXe(t){var e=t[1],r=t[2],n=t[3],i=t[4],o=t[5],a=t[6],s=t[7],u=Xq(e,s,r,n,i,o,a);return[u,Aa.utcInstance]}var kXe=fm(aXe,Gq),EXe=fm(sXe,Gq),CXe=fm(lXe,Gq),AXe=fm(Gie),TXe=mh(Qie,vh,g0),DXe=mh(uXe,vh,g0),OXe=mh(cXe,vh),MXe=mh(vh,g0);function IXe(t){return dm(t,[kXe,TXe],[EXe,DXe],[CXe,OXe],[AXe,MXe])}function LXe(t){return dm(bXe(t),[vXe,yXe])}function PXe(t){return dm(t,[xXe,mie],[wXe,mie],[_Xe,SXe])}function RXe(t){return dm(t,[pXe,gXe])}var qXe=mh(vh);function FXe(t){return dm(t,[hXe,qXe])}var NXe=fm(fXe,dXe),BXe=fm(Xie),jXe=mh(Qie,vh,g0,Zie),zXe=mh(vh,g0,Zie);function HXe(t){return dm(t,[NXe,jXe],[BXe,zXe])}var WXe="Invalid Duration",Jie={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},UXe=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},Jie),es=146097/400,im=146097/4800,VXe=Object.assign({years:{quarters:4,months:12,weeks:es/7,days:es,hours:es*24,minutes:es*24*60,seconds:es*24*60*60,milliseconds:es*24*60*60*1e3},quarters:{months:3,weeks:es/28,days:es/4,hours:es*24/4,minutes:es*24*60/4,seconds:es*24*60*60/4,milliseconds:es*24*60*60*1e3/4},months:{weeks:im/7,days:im,hours:im*24,minutes:im*24*60,seconds:im*24*60*60,milliseconds:im*24*60*60*1e3}},Jie),om=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],$Xe=om.slice(0).reverse();function ch(t,e,r){r===void 0&&(r=!1);var n={values:r?e.values:Object.assign({},t.values,e.values||{}),loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new Lo(n)}function YXe(t){return t<0?Math.floor(t):Math.ceil(t)}function eoe(t,e,r,n,i){var o=t[i][r],a=e[r]/o,s=Math.sign(a)===Math.sign(n[i]),u=!s&&n[i]!==0&&Math.abs(a)<=1?YXe(a):Math.trunc(a);n[i]+=u,e[r]-=u*o}function KXe(t,e){$Xe.reduce(function(r,n){return on(e[n])?r:(r&&eoe(t,e,r,e,n),n)},null)}var Lo=function(){function t(r){var n=r.conversionAccuracy==="longterm"||!1;this.values=r.values,this.loc=r.loc||ji.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=r.invalid||null,this.matrix=n?VXe:UXe,this.isLuxonDuration=!0}t.fromMillis=function(n,i){return t.fromObject(Object.assign({milliseconds:n},i))},t.fromObject=function(n){if(n==null||typeof n!="object")throw new ts("Duration.fromObject: argument expected to be an object, got "+(n===null?"null":typeof n));return new t({values:G1(n,t.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:ji.fromObject(n),conversionAccuracy:n.conversionAccuracy})},t.fromISO=function(n,i){var o=RXe(n),a=o[0];if(a){var s=Object.assign(a,i);return t.fromObject(s)}else return t.invalid("unparsable",'the input "'+n+`" can't be parsed as ISO 8601`)},t.fromISOTime=function(n,i){var o=FXe(n),a=o[0];if(a){var s=Object.assign(a,i);return t.fromObject(s)}else return t.invalid("unparsable",'the input "'+n+`" can't be parsed as ISO 8601`)},t.invalid=function(n,i){if(i===void 0&&(i=null),!n)throw new ts("need to specify a reason the Duration is invalid");var o=n instanceof Bs?n:new Bs(n,i);if(Qn.throwOnInvalid)throw new CGe(o);return new t({invalid:o})},t.normalizeUnit=function(n){var i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[n&&n.toLowerCase()];if(!i)throw new Mie(n);return i},t.isDuration=function(n){return n&&n.isLuxonDuration||!1};var e=t.prototype;return e.toFormat=function(n,i){i===void 0&&(i={});var o=Object.assign({},i,{floor:i.round!==!1&&i.floor!==!1});return this.isValid?Gl.create(this.loc,o).formatDurationFromString(this,n):WXe},e.toObject=function(n){if(n===void 0&&(n={}),!this.isValid)return{};var i=Object.assign({},this.values);return n.includeConfig&&(i.conversionAccuracy=this.conversionAccuracy,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i},e.toISO=function(){if(!this.isValid)return null;var n="P";return this.years!==0&&(n+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(n+=this.months+this.quarters*3+"M"),this.weeks!==0&&(n+=this.weeks+"W"),this.days!==0&&(n+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(n+="T"),this.hours!==0&&(n+=this.hours+"H"),this.minutes!==0&&(n+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(n+=$q(this.seconds+this.milliseconds/1e3,3)+"S"),n==="P"&&(n+="T0S"),n},e.toISOTime=function(n){if(n===void 0&&(n={}),!this.isValid)return null;var i=this.toMillis();if(i<0||i>=864e5)return null;n=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},n);var o=this.shiftTo("hours","minutes","seconds","milliseconds"),a=n.format==="basic"?"hhmm":"hh:mm";(!n.suppressSeconds||o.seconds!==0||o.milliseconds!==0)&&(a+=n.format==="basic"?"ss":":ss",(!n.suppressMilliseconds||o.milliseconds!==0)&&(a+=".SSS"));var s=o.toFormat(a);return n.includePrefix&&(s="T"+s),s},e.toJSON=function(){return this.toISO()},e.toString=function(){return this.toISO()},e.toMillis=function(){return this.as("milliseconds")},e.valueOf=function(){return this.toMillis()},e.plus=function(n){if(!this.isValid)return this;for(var i=hh(n),o={},a=Tf(om),s;!(s=a()).done;){var u=s.value;(um(i.values,u)||um(this.values,u))&&(o[u]=i.get(u)+this.get(u))}return ch(this,{values:o},!0)},e.minus=function(n){if(!this.isValid)return this;var i=hh(n);return this.plus(i.negate())},e.mapUnits=function(n){if(!this.isValid)return this;for(var i={},o=0,a=Object.keys(this.values);o<a.length;o++){var s=a[o];i[s]=Fie(n(this.values[s],s))}return ch(this,{values:i},!0)},e.get=function(n){return this[t.normalizeUnit(n)]},e.set=function(n){if(!this.isValid)return this;var i=Object.assign(this.values,G1(n,t.normalizeUnit,[]));return ch(this,{values:i})},e.reconfigure=function(n){var i=n===void 0?{}:n,o=i.locale,a=i.numberingSystem,s=i.conversionAccuracy,u=this.loc.clone({locale:o,numberingSystem:a}),c={loc:u};return s&&(c.conversionAccuracy=s),ch(this,c)},e.as=function(n){return this.isValid?this.shiftTo(n).get(n):NaN},e.normalize=function(){if(!this.isValid)return this;var n=this.toObject();return KXe(this.matrix,n),ch(this,{values:n},!0)},e.shiftTo=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(!this.isValid)return this;if(i.length===0)return this;i=i.map(function(A){return t.normalizeUnit(A)});for(var a={},s={},u=this.toObject(),c,f=Tf(om),p;!(p=f()).done;){var g=p.value;if(i.indexOf(g)>=0){c=g;var m=0;for(var x in s)m+=this.matrix[x][g]*s[x],s[x]=0;ph(u[g])&&(m+=u[g]);var w=Math.trunc(m);a[g]=w,s[g]=m-w;for(var T in u)om.indexOf(T)>om.indexOf(g)&&eoe(this.matrix,u,T,a,g)}else ph(u[g])&&(s[g]=u[g])}for(var k in s)s[k]!==0&&(a[c]+=k===c?s[k]:s[k]/this.matrix[c][k]);return ch(this,{values:a},!0).normalize()},e.negate=function(){if(!this.isValid)return this;for(var n={},i=0,o=Object.keys(this.values);i<o.length;i++){var a=o[i];n[a]=-this.values[a]}return ch(this,{values:n},!0)},e.equals=function(n){if(!this.isValid||!n.isValid||!this.loc.equals(n.loc))return!1;function i(u,c){return u===void 0||u===0?c===void 0||c===0:u===c}for(var o=Tf(om),a;!(a=o()).done;){var s=a.value;if(!i(this.values[s],n.values[s]))return!1}return!0},js(t,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return this.invalid===null}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}();function hh(t){if(ph(t))return Lo.fromMillis(t);if(Lo.isDuration(t))return t;if(typeof t=="object")return Lo.fromObject(t);throw new ts("Unknown duration argument "+t+" of type "+typeof t)}var a0="Invalid Interval";function GXe(t,e){return!t||!t.isValid?d0.invalid("missing or invalid start"):!e||!e.isValid?d0.invalid("missing or invalid end"):e<t?d0.invalid("end before start","The end of an interval must be after its start, but you had start="+t.toISO()+" and end="+e.toISO()):null}var d0=function(){function t(r){this.s=r.start,this.e=r.end,this.invalid=r.invalid||null,this.isLuxonInterval=!0}t.invalid=function(n,i){if(i===void 0&&(i=null),!n)throw new ts("need to specify a reason the Interval is invalid");var o=n instanceof Bs?n:new Bs(n,i);if(Qn.throwOnInvalid)throw new EGe(o);return new t({invalid:o})},t.fromDateTimes=function(n,i){var o=u0(n),a=u0(i),s=GXe(o,a);return s??new t({start:o,end:a})},t.after=function(n,i){var o=hh(i),a=u0(n);return t.fromDateTimes(a,a.plus(o))},t.before=function(n,i){var o=hh(i),a=u0(n);return t.fromDateTimes(a.minus(o),a)},t.fromISO=function(n,i){var o=(n||"").split("/",2),a=o[0],s=o[1];if(a&&s){var u,c;try{u=si.fromISO(a,i),c=u.isValid}catch{c=!1}var f,p;try{f=si.fromISO(s,i),p=f.isValid}catch{p=!1}if(c&&p)return t.fromDateTimes(u,f);if(c){var g=Lo.fromISO(s,i);if(g.isValid)return t.after(u,g)}else if(p){var m=Lo.fromISO(a,i);if(m.isValid)return t.before(f,m)}}return t.invalid("unparsable",'the input "'+n+`" can't be parsed as ISO 8601`)},t.isInterval=function(n){return n&&n.isLuxonInterval||!1};var e=t.prototype;return e.length=function(n){return n===void 0&&(n="milliseconds"),this.isValid?this.toDuration.apply(this,[n]).get(n):NaN},e.count=function(n){if(n===void 0&&(n="milliseconds"),!this.isValid)return NaN;var i=this.start.startOf(n),o=this.end.startOf(n);return Math.floor(o.diff(i,n).get(n))+1},e.hasSame=function(n){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,n):!1},e.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},e.isAfter=function(n){return this.isValid?this.s>n:!1},e.isBefore=function(n){return this.isValid?this.e<=n:!1},e.contains=function(n){return this.isValid?this.s<=n&&this.e>n:!1},e.set=function(n){var i=n===void 0?{}:n,o=i.start,a=i.end;return this.isValid?t.fromDateTimes(o||this.s,a||this.e):this},e.splitAt=function(){var n=this;if(!this.isValid)return[];for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];for(var s=o.map(u0).filter(function(m){return n.contains(m)}).sort(),u=[],c=this.s,f=0;c<this.e;){var p=s[f]||this.e,g=+p>+this.e?this.e:p;u.push(t.fromDateTimes(c,g)),c=g,f+=1}return u},e.splitBy=function(n){var i=hh(n);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];for(var o=this.s,a,s,u=[];o<this.e;)a=o.plus(i),s=+a>+this.e?this.e:a,u.push(t.fromDateTimes(o,s)),o=s;return u},e.divideEqually=function(n){return this.isValid?this.splitBy(this.length()/n).slice(0,n):[]},e.overlaps=function(n){return this.e>n.s&&this.s<n.e},e.abutsStart=function(n){return this.isValid?+this.e==+n.s:!1},e.abutsEnd=function(n){return this.isValid?+n.e==+this.s:!1},e.engulfs=function(n){return this.isValid?this.s<=n.s&&this.e>=n.e:!1},e.equals=function(n){return!this.isValid||!n.isValid?!1:this.s.equals(n.s)&&this.e.equals(n.e)},e.intersection=function(n){if(!this.isValid)return this;var i=this.s>n.s?this.s:n.s,o=this.e<n.e?this.e:n.e;return i>o?null:t.fromDateTimes(i,o)},e.union=function(n){if(!this.isValid)return this;var i=this.s<n.s?this.s:n.s,o=this.e>n.e?this.e:n.e;return t.fromDateTimes(i,o)},t.merge=function(n){var i=n.sort(function(s,u){return s.s-u.s}).reduce(function(s,u){var c=s[0],f=s[1];return f?f.overlaps(u)||f.abutsStart(u)?[c,f.union(u)]:[c.concat([f]),u]:[c,u]},[[],null]),o=i[0],a=i[1];return a&&o.push(a),o},t.xor=function(n){for(var i,o=null,a=0,s=[],u=n.map(function(x){return[{time:x.s,type:"s"},{time:x.e,type:"e"}]}),c=(i=Array.prototype).concat.apply(i,u),f=c.sort(function(x,w){return x.time-w.time}),p=Tf(f),g;!(g=p()).done;){var m=g.value;a+=m.type==="s"?1:-1,a===1?o=m.time:(o&&+o!=+m.time&&s.push(t.fromDateTimes(o,m.time)),o=null)}return t.merge(s)},e.difference=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return t.xor([this].concat(o)).map(function(s){return n.intersection(s)}).filter(function(s){return s&&!s.isEmpty()})},e.toString=function(){return this.isValid?"["+this.s.toISO()+" \u2013 "+this.e.toISO()+")":a0},e.toISO=function(n){return this.isValid?this.s.toISO(n)+"/"+this.e.toISO(n):a0},e.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():a0},e.toISOTime=function(n){return this.isValid?this.s.toISOTime(n)+"/"+this.e.toISOTime(n):a0},e.toFormat=function(n,i){var o=i===void 0?{}:i,a=o.separator,s=a===void 0?" \u2013 ":a;return this.isValid?""+this.s.toFormat(n)+s+this.e.toFormat(n):a0},e.toDuration=function(n,i){return this.isValid?this.e.diff(this.s,n,i):Lo.invalid(this.invalidReason)},e.mapEndpoints=function(n){return t.fromDateTimes(n(this.s),n(this.e))},js(t,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return this.invalidReason===null}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(),c0=function(){function t(){}return t.hasDST=function(r){r===void 0&&(r=Qn.defaultZone);var n=si.now().setZone(r).set({month:12});return!r.universal&&n.offset!==n.set({month:6}).offset},t.isValidIANAZone=function(r){return nc.isValidSpecifier(r)&&nc.isValidZone(r)},t.normalizeZone=function(r){return dh(r,Qn.defaultZone)},t.months=function(r,n){r===void 0&&(r="long");var i=n===void 0?{}:n,o=i.locale,a=o===void 0?null:o,s=i.numberingSystem,u=s===void 0?null:s,c=i.outputCalendar,f=c===void 0?"gregory":c;return ji.create(a,u,f).months(r)},t.monthsFormat=function(r,n){r===void 0&&(r="long");var i=n===void 0?{}:n,o=i.locale,a=o===void 0?null:o,s=i.numberingSystem,u=s===void 0?null:s,c=i.outputCalendar,f=c===void 0?"gregory":c;return ji.create(a,u,f).months(r,!0)},t.weekdays=function(r,n){r===void 0&&(r="long");var i=n===void 0?{}:n,o=i.locale,a=o===void 0?null:o,s=i.numberingSystem,u=s===void 0?null:s;return ji.create(a,u,null).weekdays(r)},t.weekdaysFormat=function(r,n){r===void 0&&(r="long");var i=n===void 0?{}:n,o=i.locale,a=o===void 0?null:o,s=i.numberingSystem,u=s===void 0?null:s;return ji.create(a,u,null).weekdays(r,!0)},t.meridiems=function(r){var n=r===void 0?{}:r,i=n.locale,o=i===void 0?null:i;return ji.create(o).meridiems()},t.eras=function(r,n){r===void 0&&(r="short");var i=n===void 0?{}:n,o=i.locale,a=o===void 0?null:o;return ji.create(a,null,"gregory").eras(r)},t.features=function(){var r=!1,n=!1,i=!1,o=!1;if(Xl()){r=!0,n=h0(),o=Pie();try{i=new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone==="America/New_York"}catch{i=!1}}return{intl:r,intlTokens:n,zones:i,relative:o}},t}();function vie(t,e){var r=function(o){return o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=r(e)-r(t);return Math.floor(Lo.fromMillis(n).as("days"))}function XXe(t,e,r){for(var n=[["years",function(w,T){return T.year-w.year}],["quarters",function(w,T){return T.quarter-w.quarter}],["months",function(w,T){return T.month-w.month+(T.year-w.year)*12}],["weeks",function(w,T){var k=vie(w,T);return(k-k%7)/7}],["days",vie]],i={},o,a,s=0,u=n;s<u.length;s++){var c=u[s],f=c[0],p=c[1];if(r.indexOf(f)>=0){var g;o=f;var m=p(t,e);if(a=t.plus((g={},g[f]=m,g)),a>e){var x;t=t.plus((x={},x[f]=m-1,x)),m-=1}else t=a;i[f]=m}}return[t,i,a,o]}function QXe(t,e,r,n){var i=XXe(t,e,r),o=i[0],a=i[1],s=i[2],u=i[3],c=e-o,f=r.filter(function(x){return["hours","minutes","seconds","milliseconds"].indexOf(x)>=0});if(f.length===0){if(s<e){var p;s=o.plus((p={},p[u]=1,p))}s!==o&&(a[u]=(a[u]||0)+c/(s-o))}var g=Lo.fromObject(Object.assign(a,n));if(f.length>0){var m;return(m=Lo.fromMillis(c,n)).shiftTo.apply(m,f).plus(g)}else return g}var Qq={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},yie={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ZXe=Qq.hanidec.replace(/[\[|\]]/g,"").split("");function JXe(t){var e=parseInt(t,10);if(isNaN(e)){e="";for(var r=0;r<t.length;r++){var n=t.charCodeAt(r);if(t[r].search(Qq.hanidec)!==-1)e+=ZXe.indexOf(t[r]);else for(var i in yie){var o=yie[i],a=o[0],s=o[1];n>=a&&n<=s&&(e+=n-a)}}return parseInt(e,10)}else return e}function Fs(t,e){var r=t.numberingSystem;return e===void 0&&(e=""),new RegExp(""+Qq[r||"latn"]+e)}var eQe="missing Intl.DateTimeFormat.formatToParts support";function tn(t,e){return e===void 0&&(e=function(n){return n}),{regex:t,deser:function(n){var i=n[0];return e(JXe(i))}}}var tQe=String.fromCharCode(160),toe="( |"+tQe+")",roe=new RegExp(toe,"g");function rQe(t){return t.replace(/\./g,"\\.?").replace(roe,toe)}function bie(t){return t.replace(/\./g,"").replace(roe," ").toLowerCase()}function Ns(t,e){return t===null?null:{regex:RegExp(t.map(rQe).join("|")),deser:function(n){var i=n[0];return t.findIndex(function(o){return bie(i)===bie(o)})+e}}}function xie(t,e){return{regex:t,deser:function(n){var i=n[1],o=n[2];return Z1(i,o)},groups:e}}function wie(t){return{regex:t,deser:function(r){var n=r[0];return n}}}function nQe(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function iQe(t,e){var r=Fs(e),n=Fs(e,"{2}"),i=Fs(e,"{3}"),o=Fs(e,"{4}"),a=Fs(e,"{6}"),s=Fs(e,"{1,2}"),u=Fs(e,"{1,3}"),c=Fs(e,"{1,6}"),f=Fs(e,"{1,9}"),p=Fs(e,"{2,4}"),g=Fs(e,"{4,6}"),m=function(k){return{regex:RegExp(nQe(k.val)),deser:function(D){var M=D[0];return M},literal:!0}},x=function(k){if(t.literal)return m(k);switch(k.val){case"G":return Ns(e.eras("short",!1),0);case"GG":return Ns(e.eras("long",!1),0);case"y":return tn(c);case"yy":return tn(p,bq);case"yyyy":return tn(o);case"yyyyy":return tn(g);case"yyyyyy":return tn(a);case"M":return tn(s);case"MM":return tn(n);case"MMM":return Ns(e.months("short",!0,!1),1);case"MMMM":return Ns(e.months("long",!0,!1),1);case"L":return tn(s);case"LL":return tn(n);case"LLL":return Ns(e.months("short",!1,!1),1);case"LLLL":return Ns(e.months("long",!1,!1),1);case"d":return tn(s);case"dd":return tn(n);case"o":return tn(u);case"ooo":return tn(i);case"HH":return tn(n);case"H":return tn(s);case"hh":return tn(n);case"h":return tn(s);case"mm":return tn(n);case"m":return tn(s);case"q":return tn(s);case"qq":return tn(n);case"s":return tn(s);case"ss":return tn(n);case"S":return tn(u);case"SSS":return tn(i);case"u":return wie(f);case"a":return Ns(e.meridiems(),0);case"kkkk":return tn(o);case"kk":return tn(p,bq);case"W":return tn(s);case"WW":return tn(n);case"E":case"c":return tn(r);case"EEE":return Ns(e.weekdays("short",!1,!1),1);case"EEEE":return Ns(e.weekdays("long",!1,!1),1);case"ccc":return Ns(e.weekdays("short",!0,!1),1);case"cccc":return Ns(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return xie(new RegExp("([+-]"+s.source+")(?::("+n.source+"))?"),2);case"ZZZ":return xie(new RegExp("([+-]"+s.source+")("+n.source+")?"),2);case"z":return wie(/[a-z_+-/]{1,256}?/i);default:return m(k)}},w=x(t)||{invalidReason:eQe};return w.token=t,w}var oQe={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function aQe(t,e,r){var n=t.type,i=t.value;if(n==="literal")return{literal:!0,val:i};var o=r[n],a=oQe[n];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function sQe(t){var e=t.map(function(r){return r.regex}).reduce(function(r,n){return r+"("+n.source+")"},"");return["^"+e+"$",t]}function lQe(t,e,r){var n=t.match(e);if(n){var i={},o=1;for(var a in r)if(um(r,a)){var s=r[a],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(n.slice(o,o+u))),o+=u}return[n,i]}else return[n,{}]}function uQe(t){var e=function(o){switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r;on(t.Z)?on(t.z)?r=null:r=nc.create(t.z):r=new Aa(t.Z),on(t.q)||(t.M=(t.q-1)*3+1),on(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),on(t.u)||(t.S=Vq(t.u));var n=Object.keys(t).reduce(function(i,o){var a=e(o);return a&&(i[a]=t[o]),i},{});return[n,r]}var dq=null;function cQe(){return dq||(dq=si.fromMillis(1555555555555)),dq}function fQe(t,e){if(t.literal)return t;var r=Gl.macroTokenToFormatOpts(t.val);if(!r)return t;var n=Gl.create(e,r),i=n.formatDateTimeParts(cQe()),o=i.map(function(a){return aQe(a,e,r)});return o.includes(void 0)?t:o}function dQe(t,e){var r;return(r=Array.prototype).concat.apply(r,t.map(function(n){return fQe(n,e)}))}function noe(t,e,r){var n=dQe(Gl.parseFormat(r),t),i=n.map(function(T){return iQe(T,t)}),o=i.find(function(T){return T.invalidReason});if(o)return{input:e,tokens:n,invalidReason:o.invalidReason};var a=sQe(i),s=a[0],u=a[1],c=RegExp(s,"i"),f=lQe(e,c,u),p=f[0],g=f[1],m=g?uQe(g):[null,null],x=m[0],w=m[1];if(um(g,"a")&&um(g,"H"))throw new yq("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:c,rawMatches:p,matches:g,result:x,zone:w}}function hQe(t,e,r){var n=noe(t,e,r),i=n.result,o=n.zone,a=n.invalidReason;return[i,o,a]}var ioe=[0,31,59,90,120,151,181,212,243,273,304,334],ooe=[0,31,60,91,121,152,182,213,244,274,305,335];function rs(t,e){return new Bs("unit out of range","you specified "+e+" (of type "+typeof e+") as a "+t+", which is invalid")}function aoe(t,e,r){var n=new Date(Date.UTC(t,e-1,r)).getUTCDay();return n===0?7:n}function soe(t,e,r){return r+(p0(t)?ooe:ioe)[e-1]}function loe(t,e){var r=p0(t)?ooe:ioe,n=r.findIndex(function(o){return o<e}),i=e-r[n];return{month:n+1,day:i}}function Eq(t){var e=t.year,r=t.month,n=t.day,i=soe(e,r,n),o=aoe(e,r,n),a=Math.floor((i-o+10)/7),s;return a<1?(s=e-1,a=K1(s)):a>K1(e)?(s=e+1,a=1):s=e,Object.assign({weekYear:s,weekNumber:a,weekday:o},J1(t))}function _ie(t){var e=t.weekYear,r=t.weekNumber,n=t.weekday,i=aoe(e,1,4),o=f0(e),a=r*7+n-i-3,s;a<1?(s=e-1,a+=f0(s)):a>o?(s=e+1,a-=f0(e)):s=e;var u=loe(s,a),c=u.month,f=u.day;return Object.assign({year:s,month:c,day:f},J1(t))}function hq(t){var e=t.year,r=t.month,n=t.day,i=soe(e,r,n);return Object.assign({year:e,ordinal:i},J1(t))}function Sie(t){var e=t.year,r=t.ordinal,n=loe(e,r),i=n.month,o=n.day;return Object.assign({year:e,month:i,day:o},J1(t))}function pQe(t){var e=Q1(t.weekYear),r=rc(t.weekNumber,1,K1(t.weekYear)),n=rc(t.weekday,1,7);return e?r?n?!1:rs("weekday",t.weekday):rs("week",t.week):rs("weekYear",t.weekYear)}function gQe(t){var e=Q1(t.year),r=rc(t.ordinal,1,f0(t.year));return e?r?!1:rs("ordinal",t.ordinal):rs("year",t.year)}function uoe(t){var e=Q1(t.year),r=rc(t.month,1,12),n=rc(t.day,1,Y1(t.year,t.month));return e?r?n?!1:rs("day",t.day):rs("month",t.month):rs("year",t.year)}function coe(t){var e=t.hour,r=t.minute,n=t.second,i=t.millisecond,o=rc(e,0,23)||e===24&&r===0&&n===0&&i===0,a=rc(r,0,59),s=rc(n,0,59),u=rc(i,0,999);return o?a?s?u?!1:rs("millisecond",i):rs("second",n):rs("minute",r):rs("hour",e)}var pq="Invalid DateTime",kie=864e13;function z1(t){return new Bs("unsupported zone",'the zone "'+t.name+'" is not supported')}function gq(t){return t.weekData===null&&(t.weekData=Eq(t.c)),t.weekData}function s0(t,e){var r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new si(Object.assign({},r,e,{old:r}))}function foe(t,e,r){var n=t-e*60*1e3,i=r.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;var o=r.offset(n);return i===o?[n,i]:[t-Math.min(i,o)*60*1e3,Math.max(i,o)]}function Eie(t,e){t+=e*60*1e3;var r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function U1(t,e,r){return foe(Yq(t),e,r)}function Cie(t,e){var r=t.o,n=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o=Object.assign({},t.c,{year:n,month:i,day:Math.min(t.c.day,Y1(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7}),a=Lo.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=Yq(o),u=foe(s,r,t.zone),c=u[0],f=u[1];return a!==0&&(c+=a,f=t.zone.offset(c)),{ts:c,o:f}}function l0(t,e,r,n,i){var o=r.setZone,a=r.zone;if(t&&Object.keys(t).length!==0){var s=e||a,u=si.fromObject(Object.assign(t,r,{zone:s,setZone:void 0}));return o?u:u.setZone(a)}else return si.invalid(new Bs("unparsable",'the input "'+i+`" can't be parsed as `+n))}function am(t,e,r){return r===void 0&&(r=!0),t.isValid?Gl.create(ji.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Aie(t,e){var r=e.suppressSeconds,n=r===void 0?!1:r,i=e.suppressMilliseconds,o=i===void 0?!1:i,a=e.includeOffset,s=e.includePrefix,u=s===void 0?!1:s,c=e.includeZone,f=c===void 0?!1:c,p=e.spaceZone,g=p===void 0?!1:p,m=e.format,x=m===void 0?"extended":m,w=x==="basic"?"HHmm":"HH:mm";(!n||t.second!==0||t.millisecond!==0)&&(w+=x==="basic"?"ss":":ss",(!o||t.millisecond!==0)&&(w+=".SSS")),(f||a)&&g&&(w+=" "),f?w+="z":a&&(w+=x==="basic"?"ZZZ":"ZZ");var T=am(t,w);return u&&(T="T"+T),T}var doe={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},mQe={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},vQe={ordinal:1,hour:0,minute:0,second:0,millisecond:0},hoe=["year","month","day","hour","minute","second","millisecond"],yQe=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],bQe=["year","ordinal","hour","minute","second","millisecond"];function Tie(t){var e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Mie(t);return e}function Die(t,e){for(var r=Tf(hoe),n;!(n=r()).done;){var i=n.value;on(t[i])&&(t[i]=doe[i])}var o=uoe(t)||coe(t);if(o)return si.invalid(o);var a=Qn.now(),s=e.offset(a),u=U1(t,s,e),c=u[0],f=u[1];return new si({ts:c,zone:e,o:f})}function Oie(t,e,r){var n=on(r.round)?!0:r.round,i=function(p,g){p=$q(p,n||r.calendary?0:2,!0);var m=e.loc.clone(r).relFormatter(r);return m.format(p,g)},o=function(p){return r.calendary?e.hasSame(t,p)?0:e.startOf(p).diff(t.startOf(p),p).get(p):e.diff(t,p).get(p)};if(r.unit)return i(o(r.unit),r.unit);for(var a=Tf(r.units),s;!(s=a()).done;){var u=s.value,c=o(u);if(Math.abs(c)>=1)return i(c,u)}return i(0,r.units[r.units.length-1])}var si=function(){function t(r){var n=r.zone||Qn.defaultZone,i=r.invalid||(Number.isNaN(r.ts)?new Bs("invalid input"):null)||(n.isValid?null:z1(n));this.ts=on(r.ts)?Qn.now():r.ts;var o=null,a=null;if(!i){var s=r.old&&r.old.ts===this.ts&&r.old.zone.equals(n);if(s){var u=[r.old.c,r.old.o];o=u[0],a=u[1]}else{var c=n.offset(this.ts);o=Eie(this.ts,c),i=Number.isNaN(o.year)?new Bs("invalid input"):null,o=i?null:o,a=i?null:c}}this._zone=n,this.loc=r.loc||ji.create(),this.invalid=i,this.weekData=null,this.c=o,this.o=a,this.isLuxonDateTime=!0}t.now=function(){return new t({})},t.local=function(n,i,o,a,s,u,c){return on(n)?new t({}):Die({year:n,month:i,day:o,hour:a,minute:s,second:u,millisecond:c},Qn.defaultZone)},t.utc=function(n,i,o,a,s,u,c){return on(n)?new t({ts:Qn.now(),zone:Aa.utcInstance}):Die({year:n,month:i,day:o,hour:a,minute:s,second:u,millisecond:c},Aa.utcInstance)},t.fromJSDate=function(n,i){i===void 0&&(i={});var o=TGe(n)?n.valueOf():NaN;if(Number.isNaN(o))return t.invalid("invalid input");var a=dh(i.zone,Qn.defaultZone);return a.isValid?new t({ts:o,zone:a,loc:ji.fromObject(i)}):t.invalid(z1(a))},t.fromMillis=function(n,i){if(i===void 0&&(i={}),ph(n))return n<-kie||n>kie?t.invalid("Timestamp out of range"):new t({ts:n,zone:dh(i.zone,Qn.defaultZone),loc:ji.fromObject(i)});throw new ts("fromMillis requires a numerical input, but received a "+typeof n+" with value "+n)},t.fromSeconds=function(n,i){if(i===void 0&&(i={}),ph(n))return new t({ts:n*1e3,zone:dh(i.zone,Qn.defaultZone),loc:ji.fromObject(i)});throw new ts("fromSeconds requires a numerical input")},t.fromObject=function(n){var i=dh(n.zone,Qn.defaultZone);if(!i.isValid)return t.invalid(z1(i));var o=Qn.now(),a=i.offset(o),s=G1(n,Tie,["zone","locale","outputCalendar","numberingSystem"]),u=!on(s.ordinal),c=!on(s.year),f=!on(s.month)||!on(s.day),p=c||f,g=s.weekYear||s.weekNumber,m=ji.fromObject(n);if((p||u)&&g)throw new yq("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new yq("Can't mix ordinal dates with month/day");var x=g||s.weekday&&!p,w,T,k=Eie(o,a);x?(w=yQe,T=mQe,k=Eq(k)):u?(w=bQe,T=vQe,k=hq(k)):(w=hoe,T=doe);for(var A=!1,D=Tf(w),M;!(M=D()).done;){var P=M.value,_=s[P];on(_)?A?s[P]=T[P]:s[P]=k[P]:A=!0}var C=x?pQe(s):u?gQe(s):uoe(s),O=C||coe(s);if(O)return t.invalid(O);var F=x?_ie(s):u?Sie(s):s,B=U1(F,a,i),V=B[0],S=B[1],R=new t({ts:V,zone:i,o:S,loc:m});return s.weekday&&p&&n.weekday!==R.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+s.weekday+" and a date of "+R.toISO()):R},t.fromISO=function(n,i){i===void 0&&(i={});var o=IXe(n),a=o[0],s=o[1];return l0(a,s,i,"ISO 8601",n)},t.fromRFC2822=function(n,i){i===void 0&&(i={});var o=LXe(n),a=o[0],s=o[1];return l0(a,s,i,"RFC 2822",n)},t.fromHTTP=function(n,i){i===void 0&&(i={});var o=PXe(n),a=o[0],s=o[1];return l0(a,s,i,"HTTP",i)},t.fromFormat=function(n,i,o){if(o===void 0&&(o={}),on(n)||on(i))throw new ts("fromFormat requires an input string and a format");var a=o,s=a.locale,u=s===void 0?null:s,c=a.numberingSystem,f=c===void 0?null:c,p=ji.fromOpts({locale:u,numberingSystem:f,defaultToEN:!0}),g=hQe(p,n,i),m=g[0],x=g[1],w=g[2];return w?t.invalid(w):l0(m,x,o,"format "+i,n)},t.fromString=function(n,i,o){return o===void 0&&(o={}),t.fromFormat(n,i,o)},t.fromSQL=function(n,i){i===void 0&&(i={});var o=HXe(n),a=o[0],s=o[1];return l0(a,s,i,"SQL",n)},t.invalid=function(n,i){if(i===void 0&&(i=null),!n)throw new ts("need to specify a reason the DateTime is invalid");var o=n instanceof Bs?n:new Bs(n,i);if(Qn.throwOnInvalid)throw new kGe(o);return new t({invalid:o})},t.isDateTime=function(n){return n&&n.isLuxonDateTime||!1};var e=t.prototype;return e.get=function(n){return this[n]},e.resolvedLocaleOpts=function(n){n===void 0&&(n={});var i=Gl.create(this.loc.clone(n),n).resolvedOptions(this),o=i.locale,a=i.numberingSystem,s=i.calendar;return{locale:o,numberingSystem:a,outputCalendar:s}},e.toUTC=function(n,i){return n===void 0&&(n=0),i===void 0&&(i={}),this.setZone(Aa.instance(n),i)},e.toLocal=function(){return this.setZone(Qn.defaultZone)},e.setZone=function(n,i){var o=i===void 0?{}:i,a=o.keepLocalTime,s=a===void 0?!1:a,u=o.keepCalendarTime,c=u===void 0?!1:u;if(n=dh(n,Qn.defaultZone),n.equals(this.zone))return this;if(n.isValid){var f=this.ts;if(s||c){var p=n.offset(this.ts),g=this.toObject(),m=U1(g,p,n);f=m[0]}return s0(this,{ts:f,zone:n})}else return t.invalid(z1(n))},e.reconfigure=function(n){var i=n===void 0?{}:n,o=i.locale,a=i.numberingSystem,s=i.outputCalendar,u=this.loc.clone({locale:o,numberingSystem:a,outputCalendar:s});return s0(this,{loc:u})},e.setLocale=function(n){return this.reconfigure({locale:n})},e.set=function(n){if(!this.isValid)return this;var i=G1(n,Tie,[]),o=!on(i.weekYear)||!on(i.weekNumber)||!on(i.weekday),a;o?a=_ie(Object.assign(Eq(this.c),i)):on(i.ordinal)?(a=Object.assign(this.toObject(),i),on(i.day)&&(a.day=Math.min(Y1(a.year,a.month),a.day))):a=Sie(Object.assign(hq(this.c),i));var s=U1(a,this.o,this.zone),u=s[0],c=s[1];return s0(this,{ts:u,o:c})},e.plus=function(n){if(!this.isValid)return this;var i=hh(n);return s0(this,Cie(this,i))},e.minus=function(n){if(!this.isValid)return this;var i=hh(n).negate();return s0(this,Cie(this,i))},e.startOf=function(n){if(!this.isValid)return this;var i={},o=Lo.normalizeUnit(n);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks"&&(i.weekday=1),o==="quarters"){var a=Math.ceil(this.month/3);i.month=(a-1)*3+1}return this.set(i)},e.endOf=function(n){var i;return this.isValid?this.plus((i={},i[n]=1,i)).startOf(n).minus(1):this},e.toFormat=function(n,i){return i===void 0&&(i={}),this.isValid?Gl.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,n):pq},e.toLocaleString=function(n){return n===void 0&&(n=$1),this.isValid?Gl.create(this.loc.clone(n),n).formatDateTime(this):pq},e.toLocaleParts=function(n){return n===void 0&&(n={}),this.isValid?Gl.create(this.loc.clone(n),n).formatDateTimeParts(this):[]},e.toISO=function(n){return n===void 0&&(n={}),this.isValid?this.toISODate(n)+"T"+this.toISOTime(n):null},e.toISODate=function(n){var i=n===void 0?{}:n,o=i.format,a=o===void 0?"extended":o,s=a==="basic"?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(s="+"+s),am(this,s)},e.toISOWeekDate=function(){return am(this,"kkkk-'W'WW-c")},e.toISOTime=function(n){var i=n===void 0?{}:n,o=i.suppressMilliseconds,a=o===void 0?!1:o,s=i.suppressSeconds,u=s===void 0?!1:s,c=i.includeOffset,f=c===void 0?!0:c,p=i.includePrefix,g=p===void 0?!1:p,m=i.format,x=m===void 0?"extended":m;return Aie(this,{suppressSeconds:u,suppressMilliseconds:a,includeOffset:f,includePrefix:g,format:x})},e.toRFC2822=function(){return am(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},e.toHTTP=function(){return am(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},e.toSQLDate=function(){return am(this,"yyyy-MM-dd")},e.toSQLTime=function(n){var i=n===void 0?{}:n,o=i.includeOffset,a=o===void 0?!0:o,s=i.includeZone,u=s===void 0?!1:s;return Aie(this,{includeOffset:a,includeZone:u,spaceZone:!0})},e.toSQL=function(n){return n===void 0&&(n={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(n):null},e.toString=function(){return this.isValid?this.toISO():pq},e.valueOf=function(){return this.toMillis()},e.toMillis=function(){return this.isValid?this.ts:NaN},e.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},e.toJSON=function(){return this.toISO()},e.toBSON=function(){return this.toJSDate()},e.toObject=function(n){if(n===void 0&&(n={}),!this.isValid)return{};var i=Object.assign({},this.c);return n.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i},e.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},e.diff=function(n,i,o){if(i===void 0&&(i="milliseconds"),o===void 0&&(o={}),!this.isValid||!n.isValid)return Lo.invalid(this.invalid||n.invalid,"created by diffing an invalid DateTime");var a=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},o),s=DGe(i).map(Lo.normalizeUnit),u=n.valueOf()>this.valueOf(),c=u?this:n,f=u?n:this,p=QXe(c,f,s,a);return u?p.negate():p},e.diffNow=function(n,i){return n===void 0&&(n="milliseconds"),i===void 0&&(i={}),this.diff(t.now(),n,i)},e.until=function(n){return this.isValid?d0.fromDateTimes(this,n):this},e.hasSame=function(n,i){if(!this.isValid)return!1;var o=n.valueOf(),a=this.setZone(n.zone,{keepLocalTime:!0});return a.startOf(i)<=o&&o<=a.endOf(i)},e.equals=function(n){return this.isValid&&n.isValid&&this.valueOf()===n.valueOf()&&this.zone.equals(n.zone)&&this.loc.equals(n.loc)},e.toRelative=function(n){if(n===void 0&&(n={}),!this.isValid)return null;var i=n.base||t.fromObject({zone:this.zone}),o=n.padding?this<i?-n.padding:n.padding:0;return Oie(i,this.plus(o),Object.assign(n,{numeric:"always",units:["years","months","days","hours","minutes","seconds"]}))},e.toRelativeCalendar=function(n){return n===void 0&&(n={}),this.isValid?Oie(n.base||t.fromObject({zone:this.zone}),this,Object.assign(n,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},t.min=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(!i.every(t.isDateTime))throw new ts("min requires all arguments be DateTimes");return uie(i,function(a){return a.valueOf()},Math.min)},t.max=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(!i.every(t.isDateTime))throw new ts("max requires all arguments be DateTimes");return uie(i,function(a){return a.valueOf()},Math.max)},t.fromFormatExplain=function(n,i,o){o===void 0&&(o={});var a=o,s=a.locale,u=s===void 0?null:s,c=a.numberingSystem,f=c===void 0?null:c,p=ji.fromOpts({locale:u,numberingSystem:f,defaultToEN:!0});return noe(p,n,i)},t.fromStringExplain=function(n,i,o){return o===void 0&&(o={}),t.fromFormatExplain(n,i,o)},js(t,[{key:"isValid",get:function(){return this.invalid===null}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?gq(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?gq(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?gq(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?hq(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?c0.months("short",{locale:this.locale})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?c0.months("long",{locale:this.locale})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?c0.weekdays("short",{locale:this.locale})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?c0.weekdays("long",{locale:this.locale})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}},{key:"isInLeapYear",get:function(){return p0(this.year)}},{key:"daysInMonth",get:function(){return Y1(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?f0(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?K1(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return $1}},{key:"DATE_MED",get:function(){return Cq}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return Iie}},{key:"DATE_FULL",get:function(){return Aq}},{key:"DATE_HUGE",get:function(){return Tq}},{key:"TIME_SIMPLE",get:function(){return Dq}},{key:"TIME_WITH_SECONDS",get:function(){return Oq}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return Mq}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return Iq}},{key:"TIME_24_SIMPLE",get:function(){return Lq}},{key:"TIME_24_WITH_SECONDS",get:function(){return Pq}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return Rq}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return qq}},{key:"DATETIME_SHORT",get:function(){return Fq}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return Nq}},{key:"DATETIME_MED",get:function(){return Bq}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return jq}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return Lie}},{key:"DATETIME_FULL",get:function(){return zq}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return Hq}},{key:"DATETIME_HUGE",get:function(){return Wq}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return Uq}}]),t}();function u0(t){if(si.isDateTime(t))return t;if(t&&t.valueOf&&ph(t.valueOf()))return si.fromJSDate(t);if(t&&typeof t=="object")return si.fromObject(t);throw new ts("Unknown datetime argument: "+t+", of type "+typeof t)}var xQe="1.26.0";Da.DateTime=si;Da.Duration=Lo;Da.FixedOffsetZone=Aa;Da.IANAZone=nc;Da.Info=c0;Da.Interval=d0;Da.InvalidZone=xq;Da.LocalZone=$ie;Da.Settings=Qn;Da.VERSION=xQe;Da.Zone=cm});var eE,Df,Zq=se(()=>{eE=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Df={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:t=>typeof console<"u"&&console.warn(t),getWeek:t=>{let e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var r=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-r.getTime())/864e5-3+(r.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}});var tE,rE,Jq=se(()=>{tE={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:t=>{let e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},rE=tE});function eF(t,e){let r;return function(){clearTimeout(r),r=setTimeout(()=>t.apply(this,arguments),e)}}var fo,aa,nE,tF=se(()=>{fo=(t,e=2)=>`000${t}`.slice(e*-1),aa=t=>t===!0?1:0;nE=t=>t instanceof Array?t:[t]});function ho(t,e,r){if(r===!0)return t.classList.add(e);t.classList.remove(e)}function jr(t,e,r){let n=window.document.createElement(t);return e=e||"",r=r||"",n.className=e,r!==void 0&&(n.textContent=r),n}function m0(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function rF(t,e){if(e(t))return t;if(t.parentNode)return rF(t.parentNode,e)}function v0(t,e){let r=jr("div","numInputWrapper"),n=jr("input","numInput "+t),i=jr("span","arrowUp"),o=jr("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?n.type="number":(n.type="text",n.pattern="\\d*"),e!==void 0)for(let a in e)n.setAttribute(a,e[a]);return r.appendChild(n),r.appendChild(i),r.appendChild(o),r}function sa(t){try{return typeof t.composedPath=="function"?t.composedPath()[0]:t.target}catch{return t.target}}var goe=se(()=>{});var nF,y0,moe,b0,hm,iF=se(()=>{tF();nF=()=>{},y0=(t,e,r)=>r.months[e?"shorthand":"longhand"][t],moe={D:nF,F:function(t,e,r){t.setMonth(r.months.longhand.indexOf(e))},G:(t,e)=>{t.setHours(parseFloat(e))},H:(t,e)=>{t.setHours(parseFloat(e))},J:(t,e)=>{t.setDate(parseFloat(e))},K:(t,e,r)=>{t.setHours(t.getHours()%12+12*aa(new RegExp(r.amPM[1],"i").test(e)))},M:function(t,e,r){t.setMonth(r.months.shorthand.indexOf(e))},S:(t,e)=>{t.setSeconds(parseFloat(e))},U:(t,e)=>new Date(parseFloat(e)*1e3),W:function(t,e,r){let n=parseInt(e),i=new Date(t.getFullYear(),0,2+(n-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+r.firstDayOfWeek),i},Y:(t,e)=>{t.setFullYear(parseFloat(e))},Z:(t,e)=>new Date(e),d:(t,e)=>{t.setDate(parseFloat(e))},h:(t,e)=>{t.setHours(parseFloat(e))},i:(t,e)=>{t.setMinutes(parseFloat(e))},j:(t,e)=>{t.setDate(parseFloat(e))},l:nF,m:(t,e)=>{t.setMonth(parseFloat(e)-1)},n:(t,e)=>{t.setMonth(parseFloat(e)-1)},s:(t,e)=>{t.setSeconds(parseFloat(e))},u:(t,e)=>new Date(parseFloat(e)),w:nF,y:(t,e)=>{t.setFullYear(2e3+parseFloat(e))}},b0={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},hm={Z:t=>t.toISOString(),D:function(t,e,r){return e.weekdays.shorthand[hm.w(t,e,r)]},F:function(t,e,r){return y0(hm.n(t,e,r)-1,!1,e)},G:function(t,e,r){return fo(hm.h(t,e,r))},H:t=>fo(t.getHours()),J:function(t,e){return e.ordinal!==void 0?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:(t,e)=>e.amPM[aa(t.getHours()>11)],M:function(t,e){return y0(t.getMonth(),!0,e)},S:t=>fo(t.getSeconds()),U:t=>t.getTime()/1e3,W:function(t,e,r){return r.getWeek(t)},Y:t=>fo(t.getFullYear(),4),d:t=>fo(t.getDate()),h:t=>t.getHours()%12?t.getHours()%12:12,i:t=>fo(t.getMinutes()),j:t=>t.getDate(),l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:t=>fo(t.getMonth()+1),n:t=>t.getMonth()+1,s:t=>t.getSeconds(),u:t=>t.getTime(),w:t=>t.getDay(),y:t=>String(t.getFullYear()).substring(2)}});function la(t,e,r=!0){return r!==!1?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}function oE(t){let e=t.defaultHour,r=t.defaultMinute,n=t.defaultSeconds;if(t.minDate!==void 0){let i=t.minDate.getHours(),o=t.minDate.getMinutes(),a=t.minDate.getSeconds();e<i&&(e=i),e===i&&r<o&&(r=o),e===i&&r===o&&n<a&&(n=t.minDate.getSeconds())}if(t.maxDate!==void 0){let i=t.maxDate.getHours(),o=t.maxDate.getMinutes();e=Math.min(e,i),e===i&&(r=Math.min(o,r)),e===i&&r===o&&(n=t.maxDate.getSeconds())}return{hours:e,minutes:r,seconds:n}}var oF,iE,voe,yoe,boe=se(()=>{iF();Zq();Jq();oF=({config:t=Df,l10n:e=tE,isMobile:r=!1})=>(n,i,o)=>{let a=o||e;return t.formatDate!==void 0&&!r?t.formatDate(n,i,a):i.split("").map((s,u,c)=>hm[s]&&c[u-1]!=="\\"?hm[s](n,a,t):s!=="\\"?s:"").join("")},iE=({config:t=Df,l10n:e=tE})=>(r,n,i,o)=>{if(r!==0&&!r)return;let a=o||e,s,u=r;if(r instanceof Date)s=new Date(r.getTime());else if(typeof r!="string"&&r.toFixed!==void 0)s=new Date(r);else if(typeof r=="string"){let c=n||(t||Df).dateFormat,f=String(r).trim();if(f==="today")s=new Date,i=!0;else if(/Z$/.test(f)||/GMT$/.test(f))s=new Date(r);else if(t&&t.parseDate)s=t.parseDate(r,c);else{s=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0));let p,g=[];for(let m=0,x=0,w="";m<c.length;m++){let T=c[m],k=T==="\\",A=c[m-1]==="\\"||k;if(b0[T]&&!A){w+=b0[T];let D=new RegExp(w).exec(r);D&&(p=!0)&&g[T!=="Y"?"push":"unshift"]({fn:moe[T],val:D[++x]})}else k||(w+=".");g.forEach(({fn:D,val:M})=>s=D(s,M,a)||s)}s=p?s:void 0}}if(!(s instanceof Date&&!isNaN(s.getTime()))){t.errorHandler(new Error(`Invalid date provided: ${u}`));return}return i===!0&&s.setHours(0,0,0,0),s};voe=(t,e,r)=>t>Math.min(e,r)&&t<Math.max(e,r),yoe={DAY:864e5}});var xoe=se(()=>{"use strict";typeof Object.assign!="function"&&(Object.assign=function(t,...e){if(!t)throw TypeError("Cannot convert undefined or null to object");for(let r of e)r&&Object.keys(r).forEach(n=>t[n]=r[n]);return t})});function _Qe(t,e){let r={config:Object.assign(Object.assign({},Df),li.defaultConfig),l10n:rE};r.parseDate=iE({config:r.config,l10n:r.l10n}),r._handlers=[],r.pluginElements=[],r.loadedPlugins=[],r._bind=x,r._setHoursFromDate=p,r._positionCalendar=fe,r.changeMonth=G,r.changeYear=Le,r.clear=K,r.close=ve,r._createElement=jr,r.destroy=Se,r.isEnabled=it,r.jumpToDate=k,r.open=Oe,r.redraw=$e,r.set=pt,r.setDate=ye,r.toggle=mt;function n(){r.utils={getDaysInMonth(le=r.currentMonth,de=r.currentYear){return le===1&&(de%4===0&&de%100!==0||de%400===0)?29:r.l10n.daysInMonth[le]}}}function i(){r.element=r.input=t,r.isOpen=!1,he(),re(),yt(),We(),n(),r.isMobile||M(),T(),(r.selectedDates.length||r.config.noCalendar)&&(r.config.enableTime&&p(r.config.noCalendar?r.latestSelectedDateObj:void 0),tr(!1)),a();let le=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!r.isMobile&&le&&fe(),er("onReady")}function o(le){return le.bind(r)}function a(){let le=r.config;le.weekNumbers===!1&&le.showMonths===1||le.noCalendar!==!0&&window.requestAnimationFrame(function(){if(r.calendarContainer!==void 0&&(r.calendarContainer.style.visibility="hidden",r.calendarContainer.style.display="block"),r.daysContainer!==void 0){let de=(r.days.offsetWidth+1)*le.showMonths;r.daysContainer.style.width=de+"px",r.calendarContainer.style.width=de+(r.weekWrapper!==void 0?r.weekWrapper.offsetWidth:0)+"px",r.calendarContainer.style.removeProperty("visibility"),r.calendarContainer.style.removeProperty("display")}})}function s(le){if(r.selectedDates.length===0){let Ae=r.config.minDate===void 0||la(new Date,r.config.minDate)>=0?new Date:new Date(r.config.minDate.getTime()),He=oE(r.config);Ae.setHours(He.hours,He.minutes,He.seconds,Ae.getMilliseconds()),r.selectedDates=[Ae],r.latestSelectedDateObj=Ae}le!==void 0&&le.type!=="blur"&&zn(le);let de=r._input.value;f(),tr(),r._input.value!==de&&r._debouncedChange()}function u(le,de){return le%12+12*aa(de===r.l10n.amPM[1])}function c(le){switch(le%24){case 0:case 12:return 12;default:return le%12}}function f(){if(r.hourElement===void 0||r.minuteElement===void 0)return;let le=(parseInt(r.hourElement.value.slice(-2),10)||0)%24,de=(parseInt(r.minuteElement.value,10)||0)%60,Ae=r.secondElement!==void 0?(parseInt(r.secondElement.value,10)||0)%60:0;r.amPM!==void 0&&(le=u(le,r.amPM.textContent));let He=r.config.minTime!==void 0||r.config.minDate&&r.minDateHasTime&&r.latestSelectedDateObj&&la(r.latestSelectedDateObj,r.config.minDate,!0)===0;if(r.config.maxTime!==void 0||r.config.maxDate&&r.maxDateHasTime&&r.latestSelectedDateObj&&la(r.latestSelectedDateObj,r.config.maxDate,!0)===0){let Qe=r.config.maxTime!==void 0?r.config.maxTime:r.config.maxDate;le=Math.min(le,Qe.getHours()),le===Qe.getHours()&&(de=Math.min(de,Qe.getMinutes())),de===Qe.getMinutes()&&(Ae=Math.min(Ae,Qe.getSeconds()))}if(He){let Qe=r.config.minTime!==void 0?r.config.minTime:r.config.minDate;le=Math.max(le,Qe.getHours()),le===Qe.getHours()&&de<Qe.getMinutes()&&(de=Qe.getMinutes()),de===Qe.getMinutes()&&(Ae=Math.max(Ae,Qe.getSeconds()))}g(le,de,Ae)}function p(le){let de=le||r.latestSelectedDateObj;de&&g(de.getHours(),de.getMinutes(),de.getSeconds())}function g(le,de,Ae){r.latestSelectedDateObj!==void 0&&r.latestSelectedDateObj.setHours(le%24,de,Ae||0,0),!(!r.hourElement||!r.minuteElement||r.isMobile)&&(r.hourElement.value=fo(r.config.time_24hr?le:(12+le)%12+12*aa(le%12===0)),r.minuteElement.value=fo(de),r.amPM!==void 0&&(r.amPM.textContent=r.l10n.amPM[aa(le>=12)]),r.secondElement!==void 0&&(r.secondElement.value=fo(Ae)))}function m(le){let de=sa(le),Ae=parseInt(de.value)+(le.delta||0);(Ae/1e3>1||le.key==="Enter"&&!/[^\d]/.test(Ae.toString()))&&Le(Ae)}function x(le,de,Ae,He){if(de instanceof Array)return de.forEach(lt=>x(le,lt,Ae,He));if(le instanceof Array)return le.forEach(lt=>x(lt,de,Ae,He));le.addEventListener(de,Ae,He),r._handlers.push({remove:()=>le.removeEventListener(de,Ae)})}function w(){er("onChange")}function T(){if(r.config.wrap&&["open","close","toggle","clear"].forEach(de=>{Array.prototype.forEach.call(r.element.querySelectorAll(`[data-${de}]`),Ae=>x(Ae,"click",r[de]))}),r.isMobile){Gr();return}let le=eF(Ve,50);if(r._debouncedChange=eF(w,wQe),r.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&x(r.daysContainer,"mouseover",de=>{r.config.mode==="range"&&At(sa(de))}),x(window.document.body,"keydown",wt),!r.config.inline&&!r.config.static&&x(window,"resize",le),window.ontouchstart!==void 0?x(window.document,"touchstart",Ne):x(window.document,"mousedown",Ne),x(window.document,"focus",Ne,{capture:!0}),r.config.clickOpens===!0&&(x(r._input,"focus",r.open),x(r._input,"click",r.open)),r.daysContainer!==void 0&&(x(r.monthNav,"click",sr),x(r.monthNav,["keyup","increment"],m),x(r.daysContainer,"click",It)),r.timeContainer!==void 0&&r.minuteElement!==void 0&&r.hourElement!==void 0){let de=Ae=>sa(Ae).select();x(r.timeContainer,["increment"],s),x(r.timeContainer,"blur",s,{capture:!0}),x(r.timeContainer,"click",A),x([r.hourElement,r.minuteElement],["focus","click"],de),r.secondElement!==void 0&&x(r.secondElement,"focus",()=>r.secondElement&&r.secondElement.select()),r.amPM!==void 0&&x(r.amPM,"click",Ae=>{s(Ae),w()})}r.config.allowInput&&x(r._input,"blur",tt)}function k(le,de){let Ae=le!==void 0?r.parseDate(le):r.latestSelectedDateObj||(r.config.minDate&&r.config.minDate>r.now?r.config.minDate:r.config.maxDate&&r.config.maxDate<r.now?r.config.maxDate:r.now),He=r.currentYear,lt=r.currentMonth;try{Ae!==void 0&&(r.currentYear=Ae.getFullYear(),r.currentMonth=Ae.getMonth())}catch(Qe){Qe.message="Invalid date supplied: "+Ae,r.config.errorHandler(Qe)}de&&r.currentYear!==He&&(er("onYearChange"),S()),de&&(r.currentYear!==He||r.currentMonth!==lt)&&er("onMonthChange"),r.redraw()}function A(le){let de=sa(le);~de.className.indexOf("arrow")&&D(le,de.classList.contains("arrowUp")?1:-1)}function D(le,de,Ae){let He=le&&sa(le),lt=Ae||He&&He.parentNode&&He.parentNode.firstChild,Qe=Ie("increment");Qe.delta=de,lt&&lt.dispatchEvent(Qe)}function M(){let le=window.document.createDocumentFragment();if(r.calendarContainer=jr("div","flatpickr-calendar"),r.calendarContainer.tabIndex=-1,!r.config.noCalendar){if(le.appendChild(W()),r.innerContainer=jr("div","flatpickr-innerContainer"),r.config.weekNumbers){let{weekWrapper:Ae,weekNumbers:He}=oe();r.innerContainer.appendChild(Ae),r.weekNumbers=He,r.weekWrapper=Ae}r.rContainer=jr("div","flatpickr-rContainer"),r.rContainer.appendChild(z()),r.daysContainer||(r.daysContainer=jr("div","flatpickr-days"),r.daysContainer.tabIndex=-1),V(),r.rContainer.appendChild(r.daysContainer),r.innerContainer.appendChild(r.rContainer),le.appendChild(r.innerContainer)}r.config.enableTime&&le.appendChild(N()),ho(r.calendarContainer,"rangeMode",r.config.mode==="range"),ho(r.calendarContainer,"animate",r.config.animate===!0),ho(r.calendarContainer,"multiMonth",r.config.showMonths>1),r.calendarContainer.appendChild(le);let de=r.config.appendTo!==void 0&&r.config.appendTo.nodeType!==void 0;if((r.config.inline||r.config.static)&&(r.calendarContainer.classList.add(r.config.inline?"inline":"static"),r.config.inline&&(!de&&r.element.parentNode?r.element.parentNode.insertBefore(r.calendarContainer,r._input.nextSibling):r.config.appendTo!==void 0&&r.config.appendTo.appendChild(r.calendarContainer)),r.config.static)){let Ae=jr("div","flatpickr-wrapper");r.element.parentNode&&r.element.parentNode.insertBefore(Ae,r.element),Ae.appendChild(r.element),r.altInput&&Ae.appendChild(r.altInput),Ae.appendChild(r.calendarContainer)}!r.config.static&&!r.config.inline&&(r.config.appendTo!==void 0?r.config.appendTo:window.document.body).appendChild(r.calendarContainer)}function P(le,de,Ae,He){let lt=it(de,!0),Qe=jr("span","flatpickr-day "+le,de.getDate().toString());return Qe.dateObj=de,Qe.$i=He,Qe.setAttribute("aria-label",r.formatDate(de,r.config.ariaDateFormat)),le.indexOf("hidden")===-1&&la(de,r.now)===0&&(r.todayDateElem=Qe,Qe.classList.add("today"),Qe.setAttribute("aria-current","date")),lt?(Qe.tabIndex=-1,Ze(de)&&(Qe.classList.add("selected"),r.selectedDateElem=Qe,r.config.mode==="range"&&(ho(Qe,"startRange",r.selectedDates[0]&&la(de,r.selectedDates[0],!0)===0),ho(Qe,"endRange",r.selectedDates[1]&&la(de,r.selectedDates[1],!0)===0),le==="nextMonthDay"&&Qe.classList.add("inRange")))):Qe.classList.add("flatpickr-disabled"),r.config.mode==="range"&&dt(de)&&!Ze(de)&&Qe.classList.add("inRange"),r.weekNumbers&&r.config.showMonths===1&&le!=="prevMonthDay"&&Ae%7===1&&r.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+r.config.getWeek(de)+"</span>"),er("onDayCreate",Qe),Qe}function _(le){le.focus(),r.config.mode==="range"&&At(le)}function C(le){let de=le>0?0:r.config.showMonths-1,Ae=le>0?r.config.showMonths:-1;for(let He=de;He!=Ae;He+=le){let lt=r.daysContainer.children[He],Qe=le>0?0:lt.children.length-1,Dt=le>0?lt.children.length:-1;for(let _t=Qe;_t!=Dt;_t+=le){let Xt=lt.children[_t];if(Xt.className.indexOf("hidden")===-1&&it(Xt.dateObj))return Xt}}}function O(le,de){let Ae=le.className.indexOf("Month")===-1?le.dateObj.getMonth():r.currentMonth,He=de>0?r.config.showMonths:-1,lt=de>0?1:-1;for(let Qe=Ae-r.currentMonth;Qe!=He;Qe+=lt){let Dt=r.daysContainer.children[Qe],_t=Ae-r.currentMonth===Qe?le.$i+de:de<0?Dt.children.length-1:0,Xt=Dt.children.length;for(let Yt=_t;Yt>=0&&Yt<Xt&&Yt!=(de>0?Xt:-1);Yt+=lt){let dr=Dt.children[Yt];if(dr.className.indexOf("hidden")===-1&&it(dr.dateObj)&&Math.abs(le.$i-Yt)>=Math.abs(de))return _(dr)}}r.changeMonth(lt),F(C(lt),0)}function F(le,de){let Ae=ze(document.activeElement||document.body),He=le!==void 0?le:Ae?document.activeElement:r.selectedDateElem!==void 0&&ze(r.selectedDateElem)?r.selectedDateElem:r.todayDateElem!==void 0&&ze(r.todayDateElem)?r.todayDateElem:C(de>0?1:-1);He===void 0?r._input.focus():Ae?O(He,de):_(He)}function B(le,de){let Ae=(new Date(le,de,1).getDay()-r.l10n.firstDayOfWeek+7)%7,He=r.utils.getDaysInMonth((de-1+12)%12,le),lt=r.utils.getDaysInMonth(de,le),Qe=window.document.createDocumentFragment(),Dt=r.config.showMonths>1,_t=Dt?"prevMonthDay hidden":"prevMonthDay",Xt=Dt?"nextMonthDay hidden":"nextMonthDay",Yt=He+1-Ae,dr=0;for(;Yt<=He;Yt++,dr++)Qe.appendChild(P(_t,new Date(le,de-1,Yt),Yt,dr));for(Yt=1;Yt<=lt;Yt++,dr++)Qe.appendChild(P("",new Date(le,de,Yt),Yt,dr));for(let zr=lt+1;zr<=42-Ae&&(r.config.showMonths===1||dr%7!==0);zr++,dr++)Qe.appendChild(P(Xt,new Date(le,de+1,zr%lt),zr,dr));let sn=jr("div","dayContainer");return sn.appendChild(Qe),sn}function V(){if(r.daysContainer===void 0)return;m0(r.daysContainer),r.weekNumbers&&m0(r.weekNumbers);let le=document.createDocumentFragment();for(let de=0;de<r.config.showMonths;de++){let Ae=new Date(r.currentYear,r.currentMonth,1);Ae.setMonth(r.currentMonth+de),le.appendChild(B(Ae.getFullYear(),Ae.getMonth()))}r.daysContainer.appendChild(le),r.days=r.daysContainer.firstChild,r.config.mode==="range"&&r.selectedDates.length===1&&At()}function S(){if(r.config.showMonths>1||r.config.monthSelectorType!=="dropdown")return;let le=function(de){return r.config.minDate!==void 0&&r.currentYear===r.config.minDate.getFullYear()&&de<r.config.minDate.getMonth()?!1:!(r.config.maxDate!==void 0&&r.currentYear===r.config.maxDate.getFullYear()&&de>r.config.maxDate.getMonth())};r.monthsDropdownContainer.tabIndex=-1,r.monthsDropdownContainer.innerHTML="";for(let de=0;de<12;de++){if(!le(de))continue;let Ae=jr("option","flatpickr-monthDropdown-month");Ae.value=new Date(r.currentYear,de).getMonth().toString(),Ae.textContent=y0(de,r.config.shorthandCurrentMonth,r.l10n),Ae.tabIndex=-1,r.currentMonth===de&&(Ae.selected=!0),r.monthsDropdownContainer.appendChild(Ae)}}function R(){let le=jr("div","flatpickr-month"),de=window.document.createDocumentFragment(),Ae;r.config.showMonths>1||r.config.monthSelectorType==="static"?Ae=jr("span","cur-month"):(r.monthsDropdownContainer=jr("select","flatpickr-monthDropdown-months"),r.monthsDropdownContainer.setAttribute("aria-label",r.l10n.monthAriaLabel),x(r.monthsDropdownContainer,"change",Dt=>{let _t=sa(Dt),Xt=parseInt(_t.value,10);r.changeMonth(Xt-r.currentMonth),er("onMonthChange")}),S(),Ae=r.monthsDropdownContainer);let He=v0("cur-year",{tabindex:"-1"}),lt=He.getElementsByTagName("input")[0];lt.setAttribute("aria-label",r.l10n.yearAriaLabel),r.config.minDate&&lt.setAttribute("min",r.config.minDate.getFullYear().toString()),r.config.maxDate&&(lt.setAttribute("max",r.config.maxDate.getFullYear().toString()),lt.disabled=!!r.config.minDate&&r.config.minDate.getFullYear()===r.config.maxDate.getFullYear());let Qe=jr("div","flatpickr-current-month");return Qe.appendChild(Ae),Qe.appendChild(He),de.appendChild(Qe),le.appendChild(de),{container:le,yearElement:lt,monthElement:Ae}}function q(){m0(r.monthNav),r.monthNav.appendChild(r.prevMonthNav),r.config.showMonths&&(r.yearElements=[],r.monthElements=[]);for(let le=r.config.showMonths;le--;){let de=R();r.yearElements.push(de.yearElement),r.monthElements.push(de.monthElement),r.monthNav.appendChild(de.container)}r.monthNav.appendChild(r.nextMonthNav)}function W(){return r.monthNav=jr("div","flatpickr-months"),r.yearElements=[],r.monthElements=[],r.prevMonthNav=jr("span","flatpickr-prev-month"),r.prevMonthNav.innerHTML=r.config.prevArrow,r.nextMonthNav=jr("span","flatpickr-next-month"),r.nextMonthNav.innerHTML=r.config.nextArrow,q(),Object.defineProperty(r,"_hidePrevMonthArrow",{get:()=>r.__hidePrevMonthArrow,set(le){r.__hidePrevMonthArrow!==le&&(ho(r.prevMonthNav,"flatpickr-disabled",le),r.__hidePrevMonthArrow=le)}}),Object.defineProperty(r,"_hideNextMonthArrow",{get:()=>r.__hideNextMonthArrow,set(le){r.__hideNextMonthArrow!==le&&(ho(r.nextMonthNav,"flatpickr-disabled",le),r.__hideNextMonthArrow=le)}}),r.currentYearElement=r.yearElements[0],Zt(),r.monthNav}function N(){r.calendarContainer.classList.add("hasTime"),r.config.noCalendar&&r.calendarContainer.classList.add("noCalendar");let le=oE(r.config);r.timeContainer=jr("div","flatpickr-time"),r.timeContainer.tabIndex=-1;let de=jr("span","flatpickr-time-separator",":"),Ae=v0("flatpickr-hour",{"aria-label":r.l10n.hourAriaLabel});r.hourElement=Ae.getElementsByTagName("input")[0];let He=v0("flatpickr-minute",{"aria-label":r.l10n.minuteAriaLabel});if(r.minuteElement=He.getElementsByTagName("input")[0],r.hourElement.tabIndex=r.minuteElement.tabIndex=-1,r.hourElement.value=fo(r.latestSelectedDateObj?r.latestSelectedDateObj.getHours():r.config.time_24hr?le.hours:c(le.hours)),r.minuteElement.value=fo(r.latestSelectedDateObj?r.latestSelectedDateObj.getMinutes():le.minutes),r.hourElement.setAttribute("step",r.config.hourIncrement.toString()),r.minuteElement.setAttribute("step",r.config.minuteIncrement.toString()),r.hourElement.setAttribute("min",r.config.time_24hr?"0":"1"),r.hourElement.setAttribute("max",r.config.time_24hr?"23":"12"),r.hourElement.setAttribute("maxlength","2"),r.minuteElement.setAttribute("min","0"),r.minuteElement.setAttribute("max","59"),r.minuteElement.setAttribute("maxlength","2"),r.timeContainer.appendChild(Ae),r.timeContainer.appendChild(de),r.timeContainer.appendChild(He),r.config.time_24hr&&r.timeContainer.classList.add("time24hr"),r.config.enableSeconds){r.timeContainer.classList.add("hasSeconds");let lt=v0("flatpickr-second");r.secondElement=lt.getElementsByTagName("input")[0],r.secondElement.value=fo(r.latestSelectedDateObj?r.latestSelectedDateObj.getSeconds():le.seconds),r.secondElement.setAttribute("step",r.minuteElement.getAttribute("step")),r.secondElement.setAttribute("min","0"),r.secondElement.setAttribute("max","59"),r.secondElement.setAttribute("maxlength","2"),r.timeContainer.appendChild(jr("span","flatpickr-time-separator",":")),r.timeContainer.appendChild(lt)}return r.config.time_24hr||(r.amPM=jr("span","flatpickr-am-pm",r.l10n.amPM[aa((r.latestSelectedDateObj?r.hourElement.value:r.config.defaultHour)>11)]),r.amPM.title=r.l10n.toggleTitle,r.amPM.tabIndex=-1,r.timeContainer.appendChild(r.amPM)),r.timeContainer}function z(){r.weekdayContainer?m0(r.weekdayContainer):r.weekdayContainer=jr("div","flatpickr-weekdays");for(let le=r.config.showMonths;le--;){let de=jr("div","flatpickr-weekdaycontainer");r.weekdayContainer.appendChild(de)}return X(),r.weekdayContainer}function X(){if(!r.weekdayContainer)return;let le=r.l10n.firstDayOfWeek,de=[...r.l10n.weekdays.shorthand];le>0&&le<de.length&&(de=[...de.splice(le,de.length),...de.splice(0,le)]);for(let Ae=r.config.showMonths;Ae--;)r.weekdayContainer.children[Ae].innerHTML=`
69
69
  <span class='flatpickr-weekday'>
70
70
  ${de.join("</span><span class='flatpickr-weekday'>")}
@@ -125,7 +125,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
125
125
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ttt(t,e){if(!!t){if(typeof t=="string")return UF(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return UF(t,e)}}function Dtt(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function Ott(t){if(Array.isArray(t))return UF(t)}function UF(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jue(t){var e=t.createElement,r=t.Fragment;return function(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e.apply(void 0,[r,{}].concat(Ctt(wue({hit:o,attribute:a}).map(function(c,f){return c.isHighlighted?e(u,{key:f},c.value):c.value}))))}}var zue=se(()=>{_m()});function Mtt(t){return Rtt(t)||Ptt(t)||Ltt(t)||Itt()}function Itt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
126
126
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ltt(t,e){if(!!t){if(typeof t=="string")return VF(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VF(t,e)}}function Ptt(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function Rtt(t){if(Array.isArray(t))return VF(t)}function VF(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Hue(t){var e=t.createElement,r=t.Fragment;return function(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e.apply(void 0,[r,{}].concat(Mtt(PE({hit:o,attribute:a}).map(function(c,f){return c.isHighlighted?e(u,{key:f},c.value):c.value}))))}}var Wue=se(()=>{_m()});var Uue=se(()=>{Fue();Bue();zue();Wue()});function Vue(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function FE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vue(Object(r),!0).forEach(function(n){qtt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vue(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qtt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ftt(t,e){if(t==null)return{};var r=Ntt(t,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,n)||(r[n]=t[n]))}return r}function Ntt(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function $ue(t){var e,r=t.classNames,n=t.container,i=t.getEnvironmentProps,o=t.getFormProps,a=t.getInputProps,s=t.getItemProps,u=t.getLabelProps,c=t.getListProps,f=t.getPanelProps,p=t.getRootProps,g=t.panelContainer,m=t.panelPlacement,x=t.render,w=t.renderNoResults,T=t.renderer,k=t.detachedMediaQuery,A=t.components,D=Ftt(t,["classNames","container","getEnvironmentProps","getFormProps","getInputProps","getItemProps","getLabelProps","getListProps","getPanelProps","getRootProps","panelContainer","panelPlacement","render","renderNoResults","renderer","detachedMediaQuery","components"]),M=xF(n);M.tagName;var P=typeof window<"u"?window:{},_=T??ztt,C={Highlight:que(_),ReverseHighlight:Nue(_),ReverseSnippet:jue(_),Snippet:Hue(_)};return{renderer:{classNames:Tle(Btt,r??{}),container:M,getEnvironmentProps:i??function(O){var F=O.props;return F},getFormProps:o??function(O){var F=O.props;return F},getInputProps:a??function(O){var F=O.props;return F},getItemProps:s??function(O){var F=O.props;return F},getLabelProps:u??function(O){var F=O.props;return F},getListProps:c??function(O){var F=O.props;return F},getPanelProps:f??function(O){var F=O.props;return F},getRootProps:p??function(O){var F=O.props;return F},panelContainer:g?xF(g):document.body,panelPlacement:m??"input-wrapper-width",render:x??jtt,renderNoResults:w,renderer:_,detachedMediaQuery:k??getComputedStyle(P.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:FE(FE({},C),A)},core:FE(FE({},D),{},{id:(e=D.id)!==null&&e!==void 0?e:mE(),environment:P})}}var Btt,jtt,ztt,Yue=se(()=>{yh();hue();Uue();xm();Btt={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},jtt=function(e,r){var n=e.children;due(n,r)},ztt={createElement:DF,Fragment:wm}});function Kue(t){var e=t.panelPlacement,r=t.container,n=t.form,i=t.environment,o=r.getBoundingClientRect(),a=o.top+o.height;switch(e){case"start":return{top:a,left:o.left};case"end":return{top:a,right:i.document.documentElement.clientWidth-(o.left+o.width)};case"full-width":return{top:a,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":{var s=n.getBoundingClientRect();return{top:a,left:s.left,right:i.document.documentElement.clientWidth-(s.left+s.width),width:"unset",maxWidth:"unset"}}default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(e)," is not valid."))}}var Gue=se(()=>{});function NE(){return NE=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},NE.apply(this,arguments)}function Xue(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function BE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xue(Object(r),!0).forEach(function(n){Htt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xue(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Htt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Que(t){var e=t.autocomplete,r=t.autocompleteScopeApi,n=t.dom,i=t.propGetters,o=t.state;SF(n.root,i.getRootProps(BE({state:o,props:e.getRootProps({})},r))),SF(n.input,i.getInputProps(BE({state:o,props:e.getInputProps({inputElement:n.input}),inputElement:n.input},r))),is(n.label,{hidden:o.status==="stalled"}),is(n.loadingIndicator,{hidden:o.status!=="stalled"}),is(n.clearButton,{hidden:!o.query})}function Zue(t,e){var r=e.autocomplete,n=e.autocompleteScopeApi,i=e.classNames,o=e.createElement,a=e.dom,s=e.Fragment,u=e.panelContainer,c=e.propGetters,f=e.state,p=e.components;if(!f.isOpen){u.contains(a.panel)&&u.removeChild(a.panel);return}!u.contains(a.panel)&&f.status!=="loading"&&u.appendChild(a.panel),a.panel.classList.toggle("aa-Panel--stalled",f.status==="stalled");var g=f.collections.map(function(w,T){var k=w.source,A=w.items;return o("section",{key:T,className:i.source,"data-autocomplete-source-id":k.sourceId},k.templates.header&&o("div",{className:i.sourceHeader},k.templates.header({components:p,createElement:o,Fragment:s,items:A,source:k,state:f})),A.length===0&&k.templates.noResults&&f.query?o("div",{className:i.sourceNoResults},k.templates.noResults({components:p,createElement:o,Fragment:s,source:k,state:f})):o("ul",NE({className:i.list},c.getListProps(BE({state:f,props:r.getListProps({})},n))),A.map(function(D){var M=r.getItemProps({item:D,source:k});return o("li",NE({key:M.id,className:i.item},c.getItemProps(BE({state:f,props:M},n))),k.templates.item({components:p,createElement:o,Fragment:s,item:D,state:f}))})),k.templates.footer&&o("div",{className:i.sourceFooter},k.templates.footer({components:p,createElement:o,Fragment:s,items:A,source:k,state:f})))}),m=o(s,null,o("div",{className:"aa-PanelLayout aa-Panel--scrollable"},g),o("div",{className:"aa-GradientBottom"})),x=g.reduce(function(w,T){return w[T.props["data-autocomplete-source-id"]]=T,w},{});t({children:m,state:f,sections:g,elements:x,createElement:o,Fragment:s,components:p},a.panel)}var Jue=se(()=>{xm()});function ece(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ece(Object(r),!0).forEach(function(n){tce(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ece(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function tce(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rce(t){var e=Kle(),r=e.runEffect,n=e.cleanupEffects,i=e.runEffects,o=Xle(),a=o.reactive,s=o.runReactives,u=E0(!1),c=E0(t),f=E0(void 0),p=a(function(){return $ue(c.current)}),g=a(function(){return p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches}),m=a(function(){return cle(xh(xh({},p.value.core),{},{onStateChange:function(C){var O,F,B;u.current=C.state.collections.some(function(V){return V.source.templates.noResults}),(O=f.current)===null||O===void 0||O.call(f,C),(F=(B=p.value.core).onStateChange)===null||F===void 0||F.call(B,C)},shouldPanelOpen:c.current.shouldPanelOpen||function(_){var C=_.state,O=Of(C)>0;if(!p.value.core.openOnFocus&&!C.query)return O;var F=Boolean(u.current||p.value.renderer.renderNoResults);return!O&&F||O}}))}),x=E0(xh({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},p.value.core.initialState)),w={getEnvironmentProps:p.value.renderer.getEnvironmentProps,getFormProps:p.value.renderer.getFormProps,getInputProps:p.value.renderer.getInputProps,getItemProps:p.value.renderer.getItemProps,getLabelProps:p.value.renderer.getLabelProps,getListProps:p.value.renderer.getListProps,getPanelProps:p.value.renderer.getPanelProps,getRootProps:p.value.renderer.getRootProps},T={setActiveItemId:m.value.setActiveItemId,setQuery:m.value.setQuery,setCollections:m.value.setCollections,setIsOpen:m.value.setIsOpen,setStatus:m.value.setStatus,setContext:m.value.setContext,refresh:m.value.refresh},k=a(function(){return $le({autocomplete:m.value,autocompleteScopeApi:T,classNames:p.value.renderer.classNames,isDetached:g.value,placeholder:p.value.core.placeholder,propGetters:w,state:x.current})});function A(){is(k.value.panel,{style:g.value?{}:Kue({panelPlacement:p.value.renderer.panelPlacement,container:k.value.root,form:k.value.form,environment:p.value.core.environment})})}function D(_){x.current=_;var C={autocomplete:m.value,autocompleteScopeApi:T,classNames:p.value.renderer.classNames,components:p.value.renderer.components,container:p.value.renderer.container,createElement:p.value.renderer.renderer.createElement,dom:k.value,Fragment:p.value.renderer.renderer.Fragment,panelContainer:g.value?k.value.detachedContainer:p.value.renderer.panelContainer,propGetters:w,state:x.current},O=!Of(_)&&!u.current&&p.value.renderer.renderNoResults||p.value.renderer.render;Que(C),Zue(O,C)}r(function(){var _=m.value.getEnvironmentProps({formElement:k.value.form,panelElement:k.value.panel,inputElement:k.value.input});return is(p.value.core.environment,_),function(){is(p.value.core.environment,Object.keys(_).reduce(function(C,O){return xh(xh({},C),{},tce({},O,void 0))},{}))}}),r(function(){var _=g.value?p.value.core.environment.document.body:p.value.renderer.panelContainer,C=g.value?k.value.detachedOverlay:k.value.panel;return g.value&&x.current.isOpen&&k.value.openDetachedOverlay(),D(x.current),function(){_.contains(C)&&_.removeChild(C)}}),r(function(){var _=p.value.renderer.container;return _.appendChild(k.value.root),function(){_.removeChild(k.value.root)}}),r(function(){var _=dF(function(C){var O=C.state;D(O)},0);return f.current=function(C){var O=C.state,F=C.prevState;if(O.isOpen&&!F.isOpen&&A(),O.query!==F.query){var B=document.querySelectorAll(".aa-Panel--scrollable");B.forEach(function(V){V.scrollTop!==0&&(V.scrollTop=0)})}_({state:O})},function(){f.current=void 0}}),r(function(){var _=dF(function(){var C=g.value;g.value=p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches,C!==g.value?P({}):requestAnimationFrame(A)},20);return p.value.core.environment.addEventListener("resize",_),function(){p.value.core.environment.removeEventListener("resize",_)}}),r(function(){if(!g.value)return function(){};function _(F){k.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",F)}function C(F){_(F.matches)}var O=p.value.core.environment.matchMedia(getComputedStyle(p.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));return _(O.matches),O.addEventListener("change",C),function(){O.removeEventListener("change",C)}}),r(function(){return requestAnimationFrame(A),function(){}});function M(){n()}function P(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(),c.current=_F(p.value.renderer,p.value.core,{initialState:x.current},_),s(),i(),m.value.refresh().then(function(){D(x.current)})}return xh(xh({},T),{},{update:P,destroy:M})}var nce=se(()=>{Cle();yh();Yle();Gle();Qle();Yue();Gue();Jue();xm()});var ice,oce=se(()=>{ice="1.0.0-alpha.46"});function ace(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function sce(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ace(Object(r),!0).forEach(function(n){Wtt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ace(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Wtt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lce,uce=se(()=>{_m();oce();lce=RE(function(t){return qE(sce(sce({},t),{},{userAgents:[{segment:"autocomplete-js",version:ice}]}))})});var cce=se(()=>{});var QOt,fce=se(()=>{uce();QOt=lce({transformResponse:function(e){return e.hits}})});var dce=se(()=>{cce();fce()});var hce=se(()=>{});var pce=se(()=>{});var gce=se(()=>{});var mce=se(()=>{});var vce=se(()=>{});var yce=se(()=>{});var bce=se(()=>{});var xce=se(()=>{});var wce=se(()=>{});var _ce=se(()=>{});var Sce=se(()=>{});var kce=se(()=>{});var Ece=se(()=>{});var Cce=se(()=>{hce();pce();gce();mce();vce();yce();bce();xce();wce();_ce();Sce();kce();Ece()});var Ace=se(()=>{nce();dce();Cce()});var Tce,Dce=se(()=>{Tce=(t,e)=>{let r;return(...n)=>(r&&clearTimeout(r),new Promise(i=>{r=setTimeout(()=>i(t(...n)),e)}))}});var Oce,Mce,jE,Ice=se(()=>{Oce=Vr(fL());Pr();ML();Ace();Mce=Vr(I1());Dce();jE=class extends Ct{constructor(){super(...arguments);xt(this,"debouncedFetch",Tce(fetch,this.searchDebounce))}get dataset(){return this.autocompleteTarget.dataset}get searchDebounce(){return window.Avo.configuration.search_debounce}get translationKeys(){let t;try{t=JSON.parse(this.dataset.translationKeys)}catch(e){t={}}return t}get isBelongsToSearch(){return this.dataset.viaAssociation==="belongs_to"}get isGlobalSearch(){return this.dataset.searchResource==="global"}searchUrl(t){return(0,Mce.default)().segment(this.searchSegments()).search(this.searchParams(t)).toString()}searchSegments(){let t=[window.Avo.configuration.root_path,"avo_api",this.dataset.searchResource,"search"];return this.isGlobalSearch&&(t=[window.Avo.configuration.root_path,"avo_api","search"]),t}searchParams(t){let e={q:t,global:!1};return this.isGlobalSearch&&(e.global=!0),this.isBelongsToSearch&&(e=hp(Bc({},e),{via_association_id:this.dataset.viaAssociationId,via_reflection_class:this.dataset.viaReflectionClass,via_reflection_id:this.dataset.viaReflectionId,via_parent_resource_id:this.dataset.viaParentResourceId,via_parent_resource_class:this.dataset.viaParentResourceClass,via_relation:this.dataset.viaRelation})),e}handleOnSelect({item:t}){this.isBelongsToSearch?(this.updateFieldAttribute(this.hiddenIdTarget,"value",t._id),this.updateFieldAttribute(this.buttonTarget,"value",t._label),document.querySelector(".aa-DetachedOverlay").remove(),this.hasClearButtonTarget&&this.clearButtonTarget.classList.remove("hidden")):Vd.visit(t._url,{action:"advance"}),document.body.classList.remove("aa-Detached")}addSource(t,e){let r=this;return{sourceId:t,getItems:()=>e.results,onSelect:r.handleOnSelect.bind(r),templates:{header(){return`${e.header.toUpperCase()} ${e.help}`},item({item:n,createElement:i}){let o=[];if(n._avatar){let s;switch(n._avatar_type){default:case"circle":s="rounded-full";break;case"rounded":s="rounded";break;case"square":s="rounded-none";break}o.push(i("img",{src:n._avatar,alt:n._label,class:`flex-shrink-0 w-8 h-8 my-[2px] inline mr-2 ${s}`}))}let a=[n._label];return n._description&&a.push(i("div",{class:"aa-ItemDescription"},n._description)),o.push(i("div",null,a)),i("div",{class:"flex"},o)},noResults(){return r.translationKeys.no_item_found.replace("%{item}",t)}}}}showSearchPanel(){this.autocompleteTarget.querySelector("button").click()}clearValue(){this.clearValueTargets.map(t=>this.updateFieldAttribute(t,"value","")),this.clearButtonTarget.classList.add("hidden")}connect(){let t=this;this.buttonTarget.onclick=()=>this.showSearchPanel(),this.clearValueTargets.forEach(r=>{r.getAttribute("value")&&this.hasClearButtonTarget&&this.clearButtonTarget.classList.remove("hidden")}),this.isGlobalSearch&&Oce.bind(["command+k","ctrl+k"],()=>this.showSearchPanel());let{destroy:e}=rce({container:this.autocompleteTarget,placeholder:this.translationKeys.placeholder,translations:{detachedCancelButtonText:this.translationKeys.cancel_button},openOnFocus:!0,detachedMediaQuery:"",getSources:({query:r})=>{document.body.classList.add("search-loading");let n=t.searchUrl(r);return t.debouncedFetch(n).then(i=>(document.body.classList.remove("search-loading"),i.json())).then(i=>Object.keys(i).map(o=>t.addSource(o,i[o])))}});document.addEventListener("turbo:before-render",e),this.buttonTarget.dataset.shouldBeDisabled!=="true"&&this.buttonTarget.removeAttribute("disabled")}updateFieldAttribute(t,e,r){t.setAttribute(e,r),t.dispatchEvent(new Event("input"))}};xt(jE,"targets",["autocomplete","button","hiddenId","visibleLabel","clearValue","clearButton"])});var Lce,zE,Pce=se(()=>{Pr();Lce=Vr(I1()),zE=class extends Ct{get parentTurboFrame(){return this.context.scope.element.closest("turbo-frame")}onChange(t){if(!this.parentTurboFrame.src)return;let e=new Lce.default(this.parentTurboFrame.src);e.search(hp(Bc({},e.query(!0)),{range:t.currentTarget.value})),this.parentTurboFrame.src=e.toString(),this.parentTurboFrame.reload()}};xt(zE,"targets",["select"])});var HE,Rce=se(()=>{tm();HE=class extends Ca{getFilterValue(){return this.selectorTarget.value===""?null:this.selectorTarget.value}getFilterClass(){let{filterClass:t}=this.selectorTarget.dataset;return t}};xt(HE,"targets",["selector"])});async function KF(t,e=null){t.classList.remove("hidden"),await Fce("enter",t,e)}async function GF(t,e=null){await Fce("leave",t,e),t.classList.add("hidden")}async function qce(t,e=null){t.classList.contains("hidden")?await KF(t,e):await GF(t,e)}async function Fce(t,e,r){let n=e.dataset,i=r?`${r}-${t}`:t,o=`transition${t.charAt(0).toUpperCase()+t.slice(1)}`,a=n[o]?n[o].split(" "):[i],s=n[`${o}Start`]?n[`${o}Start`].split(" "):[`${i}-start`],u=n[`${o}End`]?n[`${o}End`].split(" "):[`${i}-end`];$F(e,a),$F(e,s),await Utt(),YF(e,s),$F(e,u),await Vtt(e),YF(e,u),YF(e,a)}function $F(t,e){t.classList.add(...e)}function YF(t,e){t.classList.remove(...e)}function Utt(){return new Promise(t=>{requestAnimationFrame(()=>{requestAnimationFrame(t)})})}function Vtt(t){return new Promise(e=>{let r=getComputedStyle(t).transitionDuration.split(",")[0],n=Number(r.replace("s",""))*1e3;setTimeout(()=>{e()},n)})}var Nce=se(()=>{});function WE(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function XF(t,e){function r(i,o,a){if(!(typeof document>"u")){a=WE({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var u in a)!a[u]||(s+="; "+u,a[u]!==!0&&(s+="="+a[u].split(";")[0]));return document.cookie=i+"="+t.write(o,i)+s}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var u=o[s].split("="),c=u.slice(1).join("=");try{var f=decodeURIComponent(u[0]);if(a[f]=t.read(c,f),i===f)break}catch{}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",WE({},o,{expires:-1}))},withAttributes:function(i){return XF(this.converter,WE({},this.attributes,i))},withConverter:function(i){return XF(WE({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var $tt,Ytt,M0,Bce=se(()=>{$tt={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};Ytt=XF($tt,{path:"/"}),M0=Ytt});var I0,jce=se(()=>{Pr();Nce();Bce();I0=class extends Ct{get cookieKey(){return`${window.Avo.configuration.cookies_key}.sidebar.open`}get sidebarOpen(){return M0.get(this.cookieKey)==="1"}set cookie(t){M0.set(this.cookieKey,t===!0?1:0)}markSidebarClosed(){M0.set(this.cookieKey,"0"),this.openValue=!1,GF(this.sidebarTarget),this.mainAreaTarget.classList.remove("sidebar-open")}markSidebarOpen(){M0.set(this.cookieKey,"1"),this.openValue=!0,KF(this.sidebarTarget),this.mainAreaTarget.classList.add("sidebar-open")}toggleSidebar(){this.openValue?this.markSidebarClosed():this.markSidebarOpen()}toggleSidebarOnMobile(){qce(this.mobileSidebarTarget)}};xt(I0,"targets",["sidebar","mobileSidebar","mainArea"]),xt(I0,"values",{open:Boolean})});var Wce=Z((zce,Hce)=>{(function(t){typeof zce=="object"&&typeof Hce=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";var e=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,r=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,n=/[*+-]\s/;t.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return t.Pass;for(var a=o.listSelections(),s=[],u=0;u<a.length;u++){var c=a[u].head,f=o.getStateAfter(c.line),p=t.innerMode(o.getMode(),f);if(p.mode.name!=="markdown"){o.execCommand("newlineAndIndent");return}else f=p.state;var g=f.list!==!1,m=f.quote!==0,x=o.getLine(c.line),w=e.exec(x),T=/^\s*$/.test(x.slice(0,c.ch));if(!a[u].empty()||!g&&!m||!w||T){o.execCommand("newlineAndIndent");return}if(r.test(x)){var k=m&&/>\s*$/.test(x),A=!/>\s*$/.test(x);(k||A)&&o.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[u]=`
127
127
  `}else{var D=w[1],M=w[5],P=!(n.test(w[2])||w[2].indexOf(">")>=0),_=P?parseInt(w[3],10)+1+w[4]:w[2].replace("x"," ");s[u]=`
128
- `+D+_+M,P&&i(o,c)}}o.replaceSelections(s)};function i(o,a){var s=a.line,u=0,c=0,f=e.exec(o.getLine(s)),p=f[1];do{u+=1;var g=s+u,m=o.getLine(g),x=e.exec(m);if(x){var w=x[1],T=parseInt(f[3],10)+u-c,k=parseInt(x[3],10),A=k;if(p===w&&!isNaN(k))T===k&&(A=k+1),T>k&&(A=T+1),o.replaceRange(m.replace(e,w+A+x[4]+x[5]),{line:g,ch:0},{line:g,ch:m.length});else{if(p.length>w.length||p.length<w.length&&u===1)return;c+=1}}}while(x)}})});var Vce=Z(()=>{var Uce=Br();Uce.commands.tabAndIndentMarkdownList=function(t){var e=t.listSelections(),r=e[0].head,n=t.getStateAfter(r.line),i=n.list!==!1;if(i){t.execCommand("indentMore");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var o=Array(t.options.tabSize+1).join(" ");t.replaceSelection(o)}};Uce.commands.shiftTabAndUnindentMarkdownList=function(t){var e=t.listSelections(),r=e[0].head,n=t.getStateAfter(r.line),i=n.list!==!1;if(i){t.execCommand("indentLess");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var o=Array(t.options.tabSize+1).join(" ");t.replaceSelection(o)}}});var Kce=Z(($ce,Yce)=>{(function(t){typeof $ce=="object"&&typeof Yce=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineOption("fullScreen",!1,function(n,i,o){o==t.Init&&(o=!1),!o!=!i&&(i?e(n):r(n))});function e(n){var i=n.getWrapperElement();n.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:i.style.width,height:i.style.height},i.style.width="",i.style.height="auto",i.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",n.refresh()}function r(n){var i=n.getWrapperElement();i.className=i.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var o=n.state.fullScreenRestore;i.style.width=o.width,i.style.height=o.height,window.scrollTo(o.scrollLeft,o.scrollTop),n.refresh()}})});var Qce=Z((Gce,Xce)=>{(function(t){typeof Gce=="object"&&typeof Xce=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){t.defineOption("placeholder","",function(s,u,c){var f=c&&c!=t.Init;if(u&&!f)s.on("blur",i),s.on("change",o),s.on("swapDoc",o),t.on(s.getInputField(),"compositionupdate",s.state.placeholderCompose=function(){n(s)}),o(s);else if(!u&&f){s.off("blur",i),s.off("change",o),s.off("swapDoc",o),t.off(s.getInputField(),"compositionupdate",s.state.placeholderCompose),e(s);var p=s.getWrapperElement();p.className=p.className.replace(" CodeMirror-empty","")}u&&!s.hasFocus()&&i(s)});function e(s){s.state.placeholder&&(s.state.placeholder.parentNode.removeChild(s.state.placeholder),s.state.placeholder=null)}function r(s){e(s);var u=s.state.placeholder=document.createElement("pre");u.style.cssText="height: 0; overflow: visible",u.style.direction=s.getOption("direction"),u.className="CodeMirror-placeholder CodeMirror-line-like";var c=s.getOption("placeholder");typeof c=="string"&&(c=document.createTextNode(c)),u.appendChild(c),s.display.lineSpace.insertBefore(u,s.display.lineSpace.firstChild)}function n(s){setTimeout(function(){var u=!1;if(s.lineCount()==1){var c=s.getInputField();u=c.nodeName=="TEXTAREA"?!s.getLine(0).length:!/[^\u200b]/.test(c.querySelector(".CodeMirror-line").textContent)}u?r(s):e(s)},20)}function i(s){a(s)&&r(s)}function o(s){var u=s.getWrapperElement(),c=a(s);u.className=u.className.replace(" CodeMirror-empty","")+(c?" CodeMirror-empty":""),c?r(s):e(s)}function a(s){return s.lineCount()===1&&s.getLine(0)===""}})});var efe=Z((Zce,Jce)=>{(function(t){typeof Zce=="object"&&typeof Jce=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineOption("styleSelectedText",!1,function(f,p,g){var m=g&&g!=t.Init;p&&!m?(f.state.markedSelection=[],f.state.markedSelectionStyle=typeof p=="string"?p:"CodeMirror-selectedtext",u(f),f.on("cursorActivity",e),f.on("change",r)):!p&&m&&(f.off("cursorActivity",e),f.off("change",r),s(f),f.state.markedSelection=f.state.markedSelectionStyle=null)});function e(f){f.state.markedSelection&&f.operation(function(){c(f)})}function r(f){f.state.markedSelection&&f.state.markedSelection.length&&f.operation(function(){s(f)})}var n=8,i=t.Pos,o=t.cmpPos;function a(f,p,g,m){if(o(p,g)!=0)for(var x=f.state.markedSelection,w=f.state.markedSelectionStyle,T=p.line;;){var k=T==p.line?p:i(T,0),A=T+n,D=A>=g.line,M=D?g:i(A,0),P=f.markText(k,M,{className:w});if(m==null?x.push(P):x.splice(m++,0,P),D)break;T=A}}function s(f){for(var p=f.state.markedSelection,g=0;g<p.length;++g)p[g].clear();p.length=0}function u(f){s(f);for(var p=f.listSelections(),g=0;g<p.length;g++)a(f,p[g].from(),p[g].to())}function c(f){if(!f.somethingSelected())return s(f);if(f.listSelections().length>1)return u(f);var p=f.getCursor("start"),g=f.getCursor("end"),m=f.state.markedSelection;if(!m.length)return a(f,p,g);var x=m[0].find(),w=m[m.length-1].find();if(!x||!w||g.line-p.line<=n||o(p,w.to)>=0||o(g,x.from)<=0)return u(f);for(;o(p,x.from)>0;)m.shift().clear(),x=m[0].find();for(o(p,x.from)<0&&(x.to.line-p.line<n?(m.shift().clear(),a(f,p,x.to,0)):a(f,p,x.from,0));o(g,w.to)<0;)m.pop().clear(),w=m[m.length-1].find();o(g,w.to)>0&&(g.line-w.from.line<n?(m.pop().clear(),a(f,w.from,g)):a(f,w.to,g))}})});var nfe=Z((tfe,rfe)=>{(function(t){typeof tfe=="object"&&typeof rfe=="object"?t(Br(),R1(),q1()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],t):t(CodeMirror)})(function(t){"use strict";var e=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;t.defineMode("gfm",function(r,n){var i=0;function o(c){return c.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(c){return{code:c.code,codeBlock:c.codeBlock,ateSpace:c.ateSpace}},token:function(c,f){if(f.combineTokens=null,f.codeBlock)return c.match(/^```+/)?(f.codeBlock=!1,null):(c.skipToEnd(),null);if(c.sol()&&(f.code=!1),c.sol()&&c.match(/^```+/))return c.skipToEnd(),f.codeBlock=!0,null;if(c.peek()==="`"){c.next();var p=c.pos;c.eatWhile("`");var g=1+c.pos-p;return f.code?g===i&&(f.code=!1):(i=g,f.code=!0),null}else if(f.code)return c.next(),null;if(c.eatSpace())return f.ateSpace=!0,null;if((c.sol()||f.ateSpace)&&(f.ateSpace=!1,n.gitHubSpice!==!1)){if(c.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return f.combineTokens=!0,"link";if(c.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return f.combineTokens=!0,"link"}return c.match(e)&&c.string.slice(c.start-2,c.start)!="]("&&(c.start==0||/\W/.test(c.string.charAt(c.start-1)))?(f.combineTokens=!0,"link"):(c.next(),null)},blankLine:o},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var u in n)s[u]=n[u];return s.name="markdown",t.overlayMode(t.getMode(r,s),a)},"markdown"),t.defineMIME("text/x-gfm","gfm")})});var ife=Z(()=>{});var ofe=Z((WMt,ZF)=>{var QF;(function(){"use strict";QF=function(t,e,r,n){n=n||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=n.flags||{},this.memoized={},this.loaded=!1;var i=this,o,a,s,u,c;t&&(i.dictionary=t,e&&r?m():typeof window<"u"&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(n.dictionaryPath?o=n.dictionaryPath:o="typo/dictionaries",e||f(chrome.extension.getURL(o+"/"+t+"/"+t+".aff"),p),r||f(chrome.extension.getURL(o+"/"+t+"/"+t+".dic"),g)):(n.dictionaryPath?o=n.dictionaryPath:typeof __dirname<"u"?o=__dirname+"/dictionaries":o="./dictionaries",e||f(o+"/"+t+"/"+t+".aff",p),r||f(o+"/"+t+"/"+t+".dic",g)));function f(x,w){var T=i._readFile(x,null,n.asyncLoad);n.asyncLoad?T.then(function(k){w(k)}):w(T)}function p(x){e=x,r&&m()}function g(x){r=x,e&&m()}function m(){for(i.rules=i._parseAFF(e),i.compoundRuleCodes={},a=0,u=i.compoundRules.length;a<u;a++){var x=i.compoundRules[a];for(s=0,c=x.length;s<c;s++)i.compoundRuleCodes[x[s]]=[]}"ONLYINCOMPOUND"in i.flags&&(i.compoundRuleCodes[i.flags.ONLYINCOMPOUND]=[]),i.dictionaryTable=i._parseDIC(r);for(a in i.compoundRuleCodes)i.compoundRuleCodes[a].length===0&&delete i.compoundRuleCodes[a];for(a=0,u=i.compoundRules.length;a<u;a++){var w=i.compoundRules[a],T="";for(s=0,c=w.length;s<c;s++){var k=w[s];k in i.compoundRuleCodes?T+="("+i.compoundRuleCodes[k].join("|")+")":T+=k}i.compoundRules[a]=new RegExp(T,"i")}i.loaded=!0,n.asyncLoad&&n.loadedCallback&&n.loadedCallback(i)}return this},QF.prototype={load:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);return this},_readFile:function(t,e,r){if(e=e||"utf8",typeof XMLHttpRequest<"u"){var n,i=new XMLHttpRequest;return i.open("GET",t,r),r&&(n=new Promise(function(a,s){i.onload=function(){i.status===200?a(i.responseText):s(i.statusText)},i.onerror=function(){s(i.statusText)}})),i.overrideMimeType&&i.overrideMimeType("text/plain; charset="+e),i.send(null),r?n:i.responseText}else if(typeof KN<"u"){var o=ife();try{if(o.existsSync(t))return o.readFileSync(t,e);console.log("Path "+t+" does not exist.")}catch(a){return console.log(a),""}}},_parseAFF:function(t){var e={},r,n,i,o,a,s,u,c;t=this._removeAffixComments(t);var f=t.split(/\r?\n/);for(a=0,u=f.length;a<u;a++){r=f[a];var p=r.split(/\s+/),g=p[0];if(g=="PFX"||g=="SFX"){var m=p[1],x=p[2];i=parseInt(p[3],10);var w=[];for(s=a+1,c=a+1+i;s<c;s++){n=f[s],o=n.split(/\s+/);var T=o[2],k=o[3].split("/"),A=k[0];A==="0"&&(A="");var D=this.parseRuleCodes(k[1]),M=o[4],P={};P.add=A,D.length>0&&(P.continuationClasses=D),M!=="."&&(g==="SFX"?P.match=new RegExp(M+"$"):P.match=new RegExp("^"+M)),T!="0"&&(g==="SFX"?P.remove=new RegExp(T+"$"):P.remove=T),w.push(P)}e[m]={type:g,combineable:x=="Y",entries:w},a+=i}else if(g==="COMPOUNDRULE"){for(i=parseInt(p[1],10),s=a+1,c=a+1+i;s<c;s++)r=f[s],o=r.split(/\s+/),this.compoundRules.push(o[1]);a+=i}else g==="REP"?(o=r.split(/\s+/),o.length===3&&this.replacementTable.push([o[1],o[2]])):this.flags[g]=p[1]}return e},_removeAffixComments:function(t){return t=t.replace(/^\s*#.*$/mg,""),t=t.replace(/^\s\s*/m,"").replace(/\s\s*$/m,""),t=t.replace(/\n{2,}/g,`
128
+ `+D+_+M,P&&i(o,c)}}o.replaceSelections(s)};function i(o,a){var s=a.line,u=0,c=0,f=e.exec(o.getLine(s)),p=f[1];do{u+=1;var g=s+u,m=o.getLine(g),x=e.exec(m);if(x){var w=x[1],T=parseInt(f[3],10)+u-c,k=parseInt(x[3],10),A=k;if(p===w&&!isNaN(k))T===k&&(A=k+1),T>k&&(A=T+1),o.replaceRange(m.replace(e,w+A+x[4]+x[5]),{line:g,ch:0},{line:g,ch:m.length});else{if(p.length>w.length||p.length<w.length&&u===1)return;c+=1}}}while(x)}})});var Vce=Z(()=>{var Uce=Br();Uce.commands.tabAndIndentMarkdownList=function(t){var e=t.listSelections(),r=e[0].head,n=t.getStateAfter(r.line),i=n.list!==!1;if(i){t.execCommand("indentMore");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var o=Array(t.options.tabSize+1).join(" ");t.replaceSelection(o)}};Uce.commands.shiftTabAndUnindentMarkdownList=function(t){var e=t.listSelections(),r=e[0].head,n=t.getStateAfter(r.line),i=n.list!==!1;if(i){t.execCommand("indentLess");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var o=Array(t.options.tabSize+1).join(" ");t.replaceSelection(o)}}});var Kce=Z(($ce,Yce)=>{(function(t){typeof $ce=="object"&&typeof Yce=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineOption("fullScreen",!1,function(n,i,o){o==t.Init&&(o=!1),!o!=!i&&(i?e(n):r(n))});function e(n){var i=n.getWrapperElement();n.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:i.style.width,height:i.style.height},i.style.width="",i.style.height="auto",i.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",n.refresh()}function r(n){var i=n.getWrapperElement();i.className=i.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var o=n.state.fullScreenRestore;i.style.width=o.width,i.style.height=o.height,window.scrollTo(o.scrollLeft,o.scrollTop),n.refresh()}})});var Qce=Z((Gce,Xce)=>{(function(t){typeof Gce=="object"&&typeof Xce=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){t.defineOption("placeholder","",function(s,u,c){var f=c&&c!=t.Init;if(u&&!f)s.on("blur",i),s.on("change",o),s.on("swapDoc",o),t.on(s.getInputField(),"compositionupdate",s.state.placeholderCompose=function(){n(s)}),o(s);else if(!u&&f){s.off("blur",i),s.off("change",o),s.off("swapDoc",o),t.off(s.getInputField(),"compositionupdate",s.state.placeholderCompose),e(s);var p=s.getWrapperElement();p.className=p.className.replace(" CodeMirror-empty","")}u&&!s.hasFocus()&&i(s)});function e(s){s.state.placeholder&&(s.state.placeholder.parentNode.removeChild(s.state.placeholder),s.state.placeholder=null)}function r(s){e(s);var u=s.state.placeholder=document.createElement("pre");u.style.cssText="height: 0; overflow: visible",u.style.direction=s.getOption("direction"),u.className="CodeMirror-placeholder CodeMirror-line-like";var c=s.getOption("placeholder");typeof c=="string"&&(c=document.createTextNode(c)),u.appendChild(c),s.display.lineSpace.insertBefore(u,s.display.lineSpace.firstChild)}function n(s){setTimeout(function(){var u=!1;if(s.lineCount()==1){var c=s.getInputField();u=c.nodeName=="TEXTAREA"?!s.getLine(0).length:!/[^\u200b]/.test(c.querySelector(".CodeMirror-line").textContent)}u?r(s):e(s)},20)}function i(s){a(s)&&r(s)}function o(s){var u=s.getWrapperElement(),c=a(s);u.className=u.className.replace(" CodeMirror-empty","")+(c?" CodeMirror-empty":""),c?r(s):e(s)}function a(s){return s.lineCount()===1&&s.getLine(0)===""}})});var efe=Z((Zce,Jce)=>{(function(t){typeof Zce=="object"&&typeof Jce=="object"?t(Br()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)})(function(t){"use strict";t.defineOption("styleSelectedText",!1,function(f,p,g){var m=g&&g!=t.Init;p&&!m?(f.state.markedSelection=[],f.state.markedSelectionStyle=typeof p=="string"?p:"CodeMirror-selectedtext",u(f),f.on("cursorActivity",e),f.on("change",r)):!p&&m&&(f.off("cursorActivity",e),f.off("change",r),s(f),f.state.markedSelection=f.state.markedSelectionStyle=null)});function e(f){f.state.markedSelection&&f.operation(function(){c(f)})}function r(f){f.state.markedSelection&&f.state.markedSelection.length&&f.operation(function(){s(f)})}var n=8,i=t.Pos,o=t.cmpPos;function a(f,p,g,m){if(o(p,g)!=0)for(var x=f.state.markedSelection,w=f.state.markedSelectionStyle,T=p.line;;){var k=T==p.line?p:i(T,0),A=T+n,D=A>=g.line,M=D?g:i(A,0),P=f.markText(k,M,{className:w});if(m==null?x.push(P):x.splice(m++,0,P),D)break;T=A}}function s(f){for(var p=f.state.markedSelection,g=0;g<p.length;++g)p[g].clear();p.length=0}function u(f){s(f);for(var p=f.listSelections(),g=0;g<p.length;g++)a(f,p[g].from(),p[g].to())}function c(f){if(!f.somethingSelected())return s(f);if(f.listSelections().length>1)return u(f);var p=f.getCursor("start"),g=f.getCursor("end"),m=f.state.markedSelection;if(!m.length)return a(f,p,g);var x=m[0].find(),w=m[m.length-1].find();if(!x||!w||g.line-p.line<=n||o(p,w.to)>=0||o(g,x.from)<=0)return u(f);for(;o(p,x.from)>0;)m.shift().clear(),x=m[0].find();for(o(p,x.from)<0&&(x.to.line-p.line<n?(m.shift().clear(),a(f,p,x.to,0)):a(f,p,x.from,0));o(g,w.to)<0;)m.pop().clear(),w=m[m.length-1].find();o(g,w.to)>0&&(g.line-w.from.line<n?(m.pop().clear(),a(f,w.from,g)):a(f,w.to,g))}})});var nfe=Z((tfe,rfe)=>{(function(t){typeof tfe=="object"&&typeof rfe=="object"?t(Br(),q1(),F1()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],t):t(CodeMirror)})(function(t){"use strict";var e=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;t.defineMode("gfm",function(r,n){var i=0;function o(c){return c.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(c){return{code:c.code,codeBlock:c.codeBlock,ateSpace:c.ateSpace}},token:function(c,f){if(f.combineTokens=null,f.codeBlock)return c.match(/^```+/)?(f.codeBlock=!1,null):(c.skipToEnd(),null);if(c.sol()&&(f.code=!1),c.sol()&&c.match(/^```+/))return c.skipToEnd(),f.codeBlock=!0,null;if(c.peek()==="`"){c.next();var p=c.pos;c.eatWhile("`");var g=1+c.pos-p;return f.code?g===i&&(f.code=!1):(i=g,f.code=!0),null}else if(f.code)return c.next(),null;if(c.eatSpace())return f.ateSpace=!0,null;if((c.sol()||f.ateSpace)&&(f.ateSpace=!1,n.gitHubSpice!==!1)){if(c.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return f.combineTokens=!0,"link";if(c.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return f.combineTokens=!0,"link"}return c.match(e)&&c.string.slice(c.start-2,c.start)!="]("&&(c.start==0||/\W/.test(c.string.charAt(c.start-1)))?(f.combineTokens=!0,"link"):(c.next(),null)},blankLine:o},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var u in n)s[u]=n[u];return s.name="markdown",t.overlayMode(t.getMode(r,s),a)},"markdown"),t.defineMIME("text/x-gfm","gfm")})});var ife=Z(()=>{});var ofe=Z((WMt,ZF)=>{var QF;(function(){"use strict";QF=function(t,e,r,n){n=n||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=n.flags||{},this.memoized={},this.loaded=!1;var i=this,o,a,s,u,c;t&&(i.dictionary=t,e&&r?m():typeof window<"u"&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(n.dictionaryPath?o=n.dictionaryPath:o="typo/dictionaries",e||f(chrome.extension.getURL(o+"/"+t+"/"+t+".aff"),p),r||f(chrome.extension.getURL(o+"/"+t+"/"+t+".dic"),g)):(n.dictionaryPath?o=n.dictionaryPath:typeof __dirname<"u"?o=__dirname+"/dictionaries":o="./dictionaries",e||f(o+"/"+t+"/"+t+".aff",p),r||f(o+"/"+t+"/"+t+".dic",g)));function f(x,w){var T=i._readFile(x,null,n.asyncLoad);n.asyncLoad?T.then(function(k){w(k)}):w(T)}function p(x){e=x,r&&m()}function g(x){r=x,e&&m()}function m(){for(i.rules=i._parseAFF(e),i.compoundRuleCodes={},a=0,u=i.compoundRules.length;a<u;a++){var x=i.compoundRules[a];for(s=0,c=x.length;s<c;s++)i.compoundRuleCodes[x[s]]=[]}"ONLYINCOMPOUND"in i.flags&&(i.compoundRuleCodes[i.flags.ONLYINCOMPOUND]=[]),i.dictionaryTable=i._parseDIC(r);for(a in i.compoundRuleCodes)i.compoundRuleCodes[a].length===0&&delete i.compoundRuleCodes[a];for(a=0,u=i.compoundRules.length;a<u;a++){var w=i.compoundRules[a],T="";for(s=0,c=w.length;s<c;s++){var k=w[s];k in i.compoundRuleCodes?T+="("+i.compoundRuleCodes[k].join("|")+")":T+=k}i.compoundRules[a]=new RegExp(T,"i")}i.loaded=!0,n.asyncLoad&&n.loadedCallback&&n.loadedCallback(i)}return this},QF.prototype={load:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);return this},_readFile:function(t,e,r){if(e=e||"utf8",typeof XMLHttpRequest<"u"){var n,i=new XMLHttpRequest;return i.open("GET",t,r),r&&(n=new Promise(function(a,s){i.onload=function(){i.status===200?a(i.responseText):s(i.statusText)},i.onerror=function(){s(i.statusText)}})),i.overrideMimeType&&i.overrideMimeType("text/plain; charset="+e),i.send(null),r?n:i.responseText}else if(typeof KN<"u"){var o=ife();try{if(o.existsSync(t))return o.readFileSync(t,e);console.log("Path "+t+" does not exist.")}catch(a){return console.log(a),""}}},_parseAFF:function(t){var e={},r,n,i,o,a,s,u,c;t=this._removeAffixComments(t);var f=t.split(/\r?\n/);for(a=0,u=f.length;a<u;a++){r=f[a];var p=r.split(/\s+/),g=p[0];if(g=="PFX"||g=="SFX"){var m=p[1],x=p[2];i=parseInt(p[3],10);var w=[];for(s=a+1,c=a+1+i;s<c;s++){n=f[s],o=n.split(/\s+/);var T=o[2],k=o[3].split("/"),A=k[0];A==="0"&&(A="");var D=this.parseRuleCodes(k[1]),M=o[4],P={};P.add=A,D.length>0&&(P.continuationClasses=D),M!=="."&&(g==="SFX"?P.match=new RegExp(M+"$"):P.match=new RegExp("^"+M)),T!="0"&&(g==="SFX"?P.remove=new RegExp(T+"$"):P.remove=T),w.push(P)}e[m]={type:g,combineable:x=="Y",entries:w},a+=i}else if(g==="COMPOUNDRULE"){for(i=parseInt(p[1],10),s=a+1,c=a+1+i;s<c;s++)r=f[s],o=r.split(/\s+/),this.compoundRules.push(o[1]);a+=i}else g==="REP"?(o=r.split(/\s+/),o.length===3&&this.replacementTable.push([o[1],o[2]])):this.flags[g]=p[1]}return e},_removeAffixComments:function(t){return t=t.replace(/^\s*#.*$/mg,""),t=t.replace(/^\s\s*/m,"").replace(/\s\s*$/m,""),t=t.replace(/\n{2,}/g,`
129
129
  `),t=t.replace(/^\s\s*/,"").replace(/\s\s*$/,""),t},_parseDIC:function(t){t=this._removeDicComments(t);var e=t.split(/\r?\n/),r={};function n(F,B){r.hasOwnProperty(F)||(r[F]=null),B.length>0&&(r[F]===null&&(r[F]=[]),r[F].push(B))}for(var i=1,o=e.length;i<o;i++){var a=e[i];if(!!a){var s=a.split("/",2),u=s[0];if(s.length>1){var c=this.parseRuleCodes(s[1]);(!("NEEDAFFIX"in this.flags)||c.indexOf(this.flags.NEEDAFFIX)==-1)&&n(u,c);for(var f=0,p=c.length;f<p;f++){var g=c[f],m=this.rules[g];if(m)for(var x=this._applyRule(u,m),w=0,T=x.length;w<T;w++){var k=x[w];if(n(k,[]),m.combineable)for(var A=f+1;A<p;A++){var D=c[A],M=this.rules[D];if(M&&M.combineable&&m.type!=M.type)for(var P=this._applyRule(k,M),_=0,C=P.length;_<C;_++){var O=P[_];n(O,[])}}}g in this.compoundRuleCodes&&this.compoundRuleCodes[g].push(u)}}else n(u.trim(),[])}}return r},_removeDicComments:function(t){return t=t.replace(/^\t.*$/mg,""),t},parseRuleCodes:function(t){if(t)if("FLAG"in this.flags){if(this.flags.FLAG==="long"){for(var e=[],r=0,n=t.length;r<n;r+=2)e.push(t.substr(r,2));return e}else if(this.flags.FLAG==="num")return t.split(",")}else return t.split("");else return[]},_applyRule:function(t,e){for(var r=e.entries,n=[],i=0,o=r.length;i<o;i++){var a=r[i];if(!a.match||t.match(a.match)){var s=t;if(a.remove&&(s=s.replace(a.remove,"")),e.type==="SFX"?s=s+a.add:s=a.add+s,n.push(s),"continuationClasses"in a)for(var u=0,c=a.continuationClasses.length;u<c;u++){var f=this.rules[a.continuationClasses[u]];f&&(n=n.concat(this._applyRule(s,f)))}}}return n},check:function(t){if(!this.loaded)throw"Dictionary not loaded.";var e=t.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(e))return!0;if(e.toUpperCase()===e){var r=e[0]+e.substring(1).toLowerCase();if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r)||this.checkExact(e.toLowerCase()))return!0}var n=e[0].toLowerCase()+e.substring(1);if(n!==e){if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n))return!0}return!1},checkExact:function(t){if(!this.loaded)throw"Dictionary not loaded.";var e=this.dictionaryTable[t],r,n;if(typeof e>"u"){if("COMPOUNDMIN"in this.flags&&t.length>=this.flags.COMPOUNDMIN){for(r=0,n=this.compoundRules.length;r<n;r++)if(t.match(this.compoundRules[r]))return!0}}else{if(e===null)return!0;if(typeof e=="object"){for(r=0,n=e.length;r<n;r++)if(!this.hasFlag(t,"ONLYINCOMPOUND",e[r]))return!0}}return!1},hasFlag:function(t,e,r){if(!this.loaded)throw"Dictionary not loaded.";return!!(e in this.flags&&(typeof r>"u"&&(r=Array.prototype.concat.apply([],this.dictionaryTable[t])),r&&r.indexOf(this.flags[e])!==-1))},alphabet:"",suggest:function(t,e){if(!this.loaded)throw"Dictionary not loaded.";if(e=e||5,this.memoized.hasOwnProperty(t)){var r=this.memoized[t].limit;if(e<=r||this.memoized[t].suggestions.length<r)return this.memoized[t].suggestions.slice(0,e)}if(this.check(t))return[];for(var n=0,i=this.replacementTable.length;n<i;n++){var o=this.replacementTable[n];if(t.indexOf(o[0])!==-1){var a=t.replace(o[0],o[1]);if(this.check(a))return[a]}}var s=this;s.alphabet="abcdefghijklmnopqrstuvwxyz";function u(f,p){var g={},m,x,w,T,k,A,D=s.alphabet.length;if(typeof f=="string"){var M=f;f={},f[M]=!0}for(var M in f)for(m=0,T=M.length+1;m<T;m++){var P=[M.substring(0,m),M.substring(m)];if(P[1]&&(A=P[0]+P[1].substring(1),(!p||s.check(A))&&(A in g?g[A]+=1:g[A]=1)),P[1].length>1&&P[1][1]!==P[1][0]&&(A=P[0]+P[1][1]+P[1][0]+P[1].substring(2),(!p||s.check(A))&&(A in g?g[A]+=1:g[A]=1)),P[1]){var _=P[1].substring(0,1).toUpperCase()===P[1].substring(0,1)?"uppercase":"lowercase";for(x=0;x<D;x++){var C=s.alphabet[x];_==="uppercase"&&(C=C.toUpperCase()),C!=P[1].substring(0,1)&&(A=P[0]+C+P[1].substring(1),(!p||s.check(A))&&(A in g?g[A]+=1:g[A]=1))}}if(P[1])for(x=0;x<D;x++){var _=P[0].substring(-1).toUpperCase()===P[0].substring(-1)&&P[1].substring(0,1).toUpperCase()===P[1].substring(0,1)?"uppercase":"lowercase",C=s.alphabet[x];_==="uppercase"&&(C=C.toUpperCase()),A=P[0]+C+P[1],(!p||s.check(A))&&(A in g?g[A]+=1:g[A]=1)}}return g}function c(f){var p=u(f),g=u(p,!0),m=g;for(var x in p)!s.check(x)||(x in m?m[x]+=p[x]:m[x]=p[x]);var w,T,k=[];for(w in m)m.hasOwnProperty(w)&&k.push([w,m[w]]);function A(_,C){var O=_[1],F=C[1];return O<F?-1:O>F?1:C[0].localeCompare(_[0])}k.sort(A).reverse();var D=[],M="lowercase";f.toUpperCase()===f?M="uppercase":f.substr(0,1).toUpperCase()+f.substr(1).toLowerCase()===f&&(M="capitalized");var P=e;for(w=0;w<Math.min(P,k.length);w++)M==="uppercase"?k[w][0]=k[w][0].toUpperCase():M==="capitalized"&&(k[w][0]=k[w][0].substr(0,1).toUpperCase()+k[w][0].substr(1)),!s.hasFlag(k[w][0],"NOSUGGEST")&&D.indexOf(k[w][0])==-1?D.push(k[w][0]):P++;return D}return this.memoized[t]={suggestions:c(t),limit:e},this.memoized[t].suggestions}}})();typeof ZF<"u"&&(ZF.exports=QF)});var lfe=Z((UMt,sfe)=>{"use strict";var afe=ofe();function xn(t){if(t=t||{},typeof t.codeMirrorInstance!="function"||typeof t.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){"use strict";return String.prototype.indexOf.apply(this,arguments)!==-1}),t.codeMirrorInstance.defineMode("spell-checker",function(e){if(!xn.aff_loading){xn.aff_loading=!0;var r=new XMLHttpRequest;r.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),r.onload=function(){r.readyState===4&&r.status===200&&(xn.aff_data=r.responseText,xn.num_loaded++,xn.num_loaded==2&&(xn.typo=new afe("en_US",xn.aff_data,xn.dic_data,{platform:"any"})))},r.send(null)}if(!xn.dic_loading){xn.dic_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),n.onload=function(){n.readyState===4&&n.status===200&&(xn.dic_data=n.responseText,xn.num_loaded++,xn.num_loaded==2&&(xn.typo=new afe("en_US",xn.aff_data,xn.dic_data,{platform:"any"})))},n.send(null)}var i='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',o={token:function(s){var u=s.peek(),c="";if(i.includes(u))return s.next(),null;for(;(u=s.peek())!=null&&!i.includes(u);)c+=u,s.next();return xn.typo&&!xn.typo.check(c)?"spell-error":null}},a=t.codeMirrorInstance.getMode(e,e.backdrop||"text/plain");return t.codeMirrorInstance.overlayMode(a,o,!0)})}xn.num_loaded=0;xn.aff_loading=!1;xn.dic_loading=!1;xn.aff_data="";xn.dic_data="";xn.typo;sfe.exports=xn});var bfe=Z(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});function ufe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ktt(t,e,r){return e&&ufe(t.prototype,e),r&&ufe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gtt(t,e){if(!!t){if(typeof t=="string")return cfe(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cfe(t,e)}}function cfe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function L0(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Gtt(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
130
130
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JF(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}wn.defaults=JF();function Xtt(t){wn.defaults=t}var Qtt=/[&<>"']/,Ztt=/[&<>"']/g,Jtt=/[<>"']|&(?!#?\w+;)/,ert=/[<>"']|&(?!#?\w+;)/g,trt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ffe=function(e){return trt[e]};function zi(t,e){if(e){if(Qtt.test(t))return t.replace(Ztt,ffe)}else if(Jtt.test(t))return t.replace(ert,ffe);return t}var rrt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function vfe(t){return t.replace(rrt,function(e,r){return r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""})}var nrt=/(^|[^\[])\^/g;function pn(t,e){t=t.source||t,e=e||"";var r={replace:function(i,o){return o=o.source||o,o=o.replace(nrt,"$1"),t=t.replace(i,o),r},getRegex:function(){return new RegExp(t,e)}};return r}var irt=/[^\w:]/g,ort=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function dfe(t,e,r){if(t){var n;try{n=decodeURIComponent(vfe(r)).replace(irt,"").toLowerCase()}catch{return null}if(n.indexOf("javascript:")===0||n.indexOf("vbscript:")===0||n.indexOf("data:")===0)return null}e&&!ort.test(r)&&(r=urt(e,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}var UE={},art=/^[^:]+:\/*[^/]*$/,srt=/^([^:]+:)[\s\S]*$/,lrt=/^([^:]+:\/*[^/]*)[\s\S]*$/;function urt(t,e){UE[" "+t]||(art.test(t)?UE[" "+t]=t+"/":UE[" "+t]=VE(t,"/",!0)),t=UE[" "+t];var r=t.indexOf(":")===-1;return e.substring(0,2)==="//"?r?e:t.replace(srt,"$1")+e:e.charAt(0)==="/"?r?e:t.replace(lrt,"$1")+e:t+e}var $E={exec:function(){}};function Hs(t){for(var e=1,r,n;e<arguments.length;e++){r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}function hfe(t,e){var r=t.replace(/\|/g,function(o,a,s){for(var u=!1,c=a;--c>=0&&s[c]==="\\";)u=!u;return u?"|":" |"}),n=r.split(/ \|/),i=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}function VE(t,e,r){var n=t.length;if(n===0)return"";for(var i=0;i<n;){var o=t.charAt(n-i-1);if(o===e&&!r)i++;else if(o!==e&&r)i++;else break}return t.substr(0,n-i)}function crt(t,e){if(t.indexOf(e[1])===-1)return-1;for(var r=t.length,n=0,i=0;i<r;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])n++;else if(t[i]===e[1]&&(n--,n<0))return i;return-1}function yfe(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function pfe(t,e){if(e<1)return"";for(var r="";e>1;)e&1&&(r+=t),e>>=1,t+=t;return r+t}function gfe(t,e,r,n){var i=e.href,o=e.title?zi(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){n.state.inLink=!0;var s={type:"link",raw:r,href:i,title:o,text:a,tokens:n.inlineTokens(a,[])};return n.state.inLink=!1,s}else return{type:"image",raw:r,href:i,title:o,text:zi(a)}}function frt(t,e){var r=t.match(/^(\s+)(?:```)/);if(r===null)return e;var n=r[1];return e.split(`
131
131
  `).map(function(i){var o=i.match(/^\s+/);if(o===null)return i;var a=o[0];return a.length>=n.length?i.slice(n.length):i}).join(`
@@ -174,7 +174,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
174
174
  `},e.strong=function(n){return"<strong>"+n+"</strong>"},e.em=function(n){return"<em>"+n+"</em>"},e.codespan=function(n){return"<code>"+n+"</code>"},e.br=function(){return this.options.xhtml?"<br/>":"<br>"},e.del=function(n){return"<del>"+n+"</del>"},e.link=function(n,i,o){if(n=dfe(this.options.sanitize,this.options.baseUrl,n),n===null)return o;var a='<a href="'+zi(n)+'"';return i&&(a+=' title="'+i+'"'),a+=">"+o+"</a>",a},e.image=function(n,i,o){if(n=dfe(this.options.sanitize,this.options.baseUrl,n),n===null)return o;var a='<img src="'+n+'" alt="'+o+'"';return i&&(a+=' title="'+i+'"'),a+=this.options.xhtml?"/>":">",a},e.text=function(n){return n},t}(),eN=function(){function t(){}var e=t.prototype;return e.strong=function(n){return n},e.em=function(n){return n},e.codespan=function(n){return n},e.del=function(n){return n},e.html=function(n){return n},e.text=function(n){return n},e.link=function(n,i,o){return""+o},e.image=function(n,i,o){return""+o},e.br=function(){return""},t}(),tN=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(n,i){var o=n,a=0;if(this.seen.hasOwnProperty(o)){a=this.seen[n];do a++,o=n+"-"+a;while(this.seen.hasOwnProperty(o))}return i||(this.seen[n]=a,this.seen[o]=0),o},e.slug=function(n,i){i===void 0&&(i={});var o=this.serialize(n);return this.getNextSafeSlug(o,i.dryrun)},t}(),_h=function(){function t(r){this.options=r||wn.defaults,this.options.renderer=this.options.renderer||new KE,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new eN,this.slugger=new tN}t.parse=function(n,i){var o=new t(i);return o.parse(n)},t.parseInline=function(n,i){var o=new t(i);return o.parseInline(n)};var e=t.prototype;return e.parse=function(n,i){i===void 0&&(i=!0);var o="",a,s,u,c,f,p,g,m,x,w,T,k,A,D,M,P,_,C,O,F=n.length;for(a=0;a<F;a++){if(w=n[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[w.type]&&(O=this.options.extensions.renderers[w.type].call({parser:this},w),O!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(w.type))){o+=O||"";continue}switch(w.type){case"space":continue;case"hr":{o+=this.renderer.hr();continue}case"heading":{o+=this.renderer.heading(this.parseInline(w.tokens),w.depth,vfe(this.parseInline(w.tokens,this.textRenderer)),this.slugger);continue}case"code":{o+=this.renderer.code(w.text,w.lang,w.escaped);continue}case"table":{for(m="",g="",c=w.header.length,s=0;s<c;s++)g+=this.renderer.tablecell(this.parseInline(w.header[s].tokens),{header:!0,align:w.align[s]});for(m+=this.renderer.tablerow(g),x="",c=w.rows.length,s=0;s<c;s++){for(p=w.rows[s],g="",f=p.length,u=0;u<f;u++)g+=this.renderer.tablecell(this.parseInline(p[u].tokens),{header:!1,align:w.align[u]});x+=this.renderer.tablerow(g)}o+=this.renderer.table(m,x);continue}case"blockquote":{x=this.parse(w.tokens),o+=this.renderer.blockquote(x);continue}case"list":{for(T=w.ordered,k=w.start,A=w.loose,c=w.items.length,x="",s=0;s<c;s++)M=w.items[s],P=M.checked,_=M.task,D="",M.task&&(C=this.renderer.checkbox(P),A?M.tokens.length>0&&M.tokens[0].type==="paragraph"?(M.tokens[0].text=C+" "+M.tokens[0].text,M.tokens[0].tokens&&M.tokens[0].tokens.length>0&&M.tokens[0].tokens[0].type==="text"&&(M.tokens[0].tokens[0].text=C+" "+M.tokens[0].tokens[0].text)):M.tokens.unshift({type:"text",text:C}):D+=C),D+=this.parse(M.tokens,A),x+=this.renderer.listitem(D,_,P);o+=this.renderer.list(x,T,k);continue}case"html":{o+=this.renderer.html(w.text);continue}case"paragraph":{o+=this.renderer.paragraph(this.parseInline(w.tokens));continue}case"text":{for(x=w.tokens?this.parseInline(w.tokens):w.text;a+1<F&&n[a+1].type==="text";)w=n[++a],x+=`
175
175
  `+(w.tokens?this.parseInline(w.tokens):w.text);o+=i?this.renderer.paragraph(x):x;continue}default:{var B='Token with "'+w.type+'" type was not found.';if(this.options.silent){console.error(B);return}else throw new Error(B)}}}return o},e.parseInline=function(n,i){i=i||this.renderer;var o="",a,s,u,c=n.length;for(a=0;a<c;a++){if(s=n[a],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(u=this.options.extensions.renderers[s.type].call({parser:this},s),u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type))){o+=u||"";continue}switch(s.type){case"escape":{o+=i.text(s.text);break}case"html":{o+=i.html(s.text);break}case"link":{o+=i.link(s.href,s.title,this.parseInline(s.tokens,i));break}case"image":{o+=i.image(s.href,s.title,s.text);break}case"strong":{o+=i.strong(this.parseInline(s.tokens,i));break}case"em":{o+=i.em(this.parseInline(s.tokens,i));break}case"codespan":{o+=i.codespan(s.text);break}case"br":{o+=i.br();break}case"del":{o+=i.del(this.parseInline(s.tokens,i));break}case"text":{o+=i.text(s.text);break}default:{var f='Token with "'+s.type+'" type was not found.';if(this.options.silent){console.error(f);return}else throw new Error(f)}}}return o},t}();function Qt(t,e,r){if(typeof t>"u"||t===null)throw new Error("marked(): input parameter is undefined or null");if(typeof t!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if(typeof e=="function"&&(r=e,e=null),e=Hs({},Qt.defaults,e||{}),yfe(e),r){var n=e.highlight,i;try{i=wh.lex(t,e)}catch(u){return r(u)}var o=function(c){var f;if(!c)try{e.walkTokens&&Qt.walkTokens(i,e.walkTokens),f=_h.parse(i,e)}catch(p){c=p}return e.highlight=n,c?r(c):r(null,f)};if(!n||n.length<3||(delete e.highlight,!i.length))return o();var a=0;Qt.walkTokens(i,function(u){u.type==="code"&&(a++,setTimeout(function(){n(u.text,u.lang,function(c,f){if(c)return o(c);f!=null&&f!==u.text&&(u.text=f,u.escaped=!0),a--,a===0&&o()})},0))}),a===0&&o();return}try{var s=wh.lex(t,e);return e.walkTokens&&Qt.walkTokens(s,e.walkTokens),_h.parse(s,e)}catch(u){if(u.message+=`
176
176
  Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+zi(u.message+"",!0)+"</pre>";throw u}}Qt.options=Qt.setOptions=function(t){return Hs(Qt.defaults,t),Xtt(Qt.defaults),Qt};Qt.getDefaults=JF;Qt.defaults=wn.defaults;Qt.use=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Hs.apply(void 0,[{}].concat(e)),i=Qt.defaults.extensions||{renderers:{},childTokens:{}},o;e.forEach(function(a){if(a.extensions&&(o=!0,a.extensions.forEach(function(u){if(!u.name)throw new Error("extension name required");if(u.renderer){var c=i.renderers?i.renderers[u.name]:null;c?i.renderers[u.name]=function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];var m=u.renderer.apply(this,p);return m===!1&&(m=c.apply(this,p)),m}:i.renderers[u.name]=u.renderer}if(u.tokenizer){if(!u.level||u.level!=="block"&&u.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");i[u.level]?i[u.level].unshift(u.tokenizer):i[u.level]=[u.tokenizer],u.start&&(u.level==="block"?i.startBlock?i.startBlock.push(u.start):i.startBlock=[u.start]:u.level==="inline"&&(i.startInline?i.startInline.push(u.start):i.startInline=[u.start]))}u.childTokens&&(i.childTokens[u.name]=u.childTokens)})),a.renderer&&function(){var u=Qt.defaults.renderer||new KE,c=function(g){var m=u[g];u[g]=function(){for(var x=arguments.length,w=new Array(x),T=0;T<x;T++)w[T]=arguments[T];var k=a.renderer[g].apply(u,w);return k===!1&&(k=m.apply(u,w)),k}};for(var f in a.renderer)c(f);n.renderer=u}(),a.tokenizer&&function(){var u=Qt.defaults.tokenizer||new YE,c=function(g){var m=u[g];u[g]=function(){for(var x=arguments.length,w=new Array(x),T=0;T<x;T++)w[T]=arguments[T];var k=a.tokenizer[g].apply(u,w);return k===!1&&(k=m.apply(u,w)),k}};for(var f in a.tokenizer)c(f);n.tokenizer=u}(),a.walkTokens){var s=Qt.defaults.walkTokens;n.walkTokens=function(u){a.walkTokens.call(this,u),s&&s.call(this,u)}}o&&(n.extensions=i),Qt.setOptions(n)})};Qt.walkTokens=function(t,e){for(var r=function(){var a=i.value;switch(e.call(Qt,a),a.type){case"table":{for(var s=L0(a.header),u;!(u=s()).done;){var c=u.value;Qt.walkTokens(c.tokens,e)}for(var f=L0(a.rows),p;!(p=f()).done;)for(var g=p.value,m=L0(g),x;!(x=m()).done;){var w=x.value;Qt.walkTokens(w.tokens,e)}break}case"list":{Qt.walkTokens(a.items,e);break}default:Qt.defaults.extensions&&Qt.defaults.extensions.childTokens&&Qt.defaults.extensions.childTokens[a.type]?Qt.defaults.extensions.childTokens[a.type].forEach(function(T){Qt.walkTokens(a[T],e)}):a.tokens&&Qt.walkTokens(a.tokens,e)}},n=L0(t),i;!(i=n()).done;)r()};Qt.parseInline=function(t,e){if(typeof t>"u"||t===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof t!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");e=Hs({},Qt.defaults,e||{}),yfe(e);try{var r=wh.lexInline(t,e);return e.walkTokens&&Qt.walkTokens(r,e.walkTokens),_h.parseInline(r,e)}catch(n){if(n.message+=`
177
- Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+zi(n.message+"",!0)+"</pre>";throw n}};Qt.Parser=_h;Qt.parser=_h.parse;Qt.Renderer=KE;Qt.TextRenderer=eN;Qt.Lexer=wh;Qt.lexer=wh.lex;Qt.Tokenizer=YE;Qt.Slugger=tN;Qt.parse=Qt;var hrt=Qt.options,prt=Qt.setOptions,grt=Qt.use,mrt=Qt.walkTokens,vrt=Qt.parseInline,yrt=Qt,brt=_h.parse,xrt=wh.lex;wn.Lexer=wh;wn.Parser=_h;wn.Renderer=KE;wn.Slugger=tN;wn.TextRenderer=eN;wn.Tokenizer=YE;wn.getDefaults=JF;wn.lexer=xrt;wn.marked=Qt;wn.options=hrt;wn.parse=yrt;wn.parseInline=vrt;wn.parser=brt;wn.setOptions=prt;wn.use=grt;wn.walkTokens=mrt});var Tfe=Z(($Mt,Afe)=>{"use strict";var xfe=Br();Wce();Vce();Kce();R1();q1();Qce();efe();nfe();nm();var wrt=lfe(),rN=bfe(),Sfe=/Mac/.test(navigator.platform),XE={toggleBold:QE,toggleItalic:ZE,drawLink:uC,toggleHeadingSmaller:R0,toggleHeadingBigger:rC,drawImage:cC,toggleBlockquote:tC,toggleOrderedList:sC,toggleUnorderedList:aC,toggleCodeBlock:eC,togglePreview:gC,toggleStrikethrough:JE,toggleHeading1:nC,toggleHeading2:iC,toggleHeading3:oC,cleanBlock:lC,drawTable:fC,drawHorizontalRule:dC,undo:hC,redo:pC,toggleSideBySide:km,toggleFullScreen:Sh},_rt={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},Srt=function(t){for(var e in XE)if(XE[e]===t)return e;return null},krt=function(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t};function kfe(t){return Sfe?t=t.replace("Ctrl","Cmd"):t=t.replace("Cmd","Ctrl"),t}function Ert(t,e,r){t=t||{};var n=document.createElement("a");return e=e??!0,t.title&&e&&(n.title=Art(t.title,t.action,r),Sfe&&(n.title=n.title.replace("Ctrl","\u2318"),n.title=n.title.replace("Alt","\u2325"))),n.tabIndex=-1,n.className=t.className,n}function Crt(){var t=document.createElement("i");return t.className="separator",t.innerHTML="|",t}function Art(t,e,r){var n,i=t;return e&&(n=Srt(e),r[n]&&(i+=" ("+kfe(r[n])+")")),i}function Pf(t,e){e=e||t.getCursor("start");var r=t.getTokenAt(e);if(!r.type)return{};for(var n=r.type.split(" "),i={},o,a,s=0;s<n.length;s++)o=n[s],o==="strong"?i.bold=!0:o==="variable-2"?(a=t.getLine(e.line),/^\s*\d+\.\s/.test(a)?i["ordered-list"]=!0:i["unordered-list"]=!0):o==="atom"?i.quote=!0:o==="em"?i.italic=!0:o==="quote"?i.quote=!0:o==="strikethrough"?i.strikethrough=!0:o==="comment"?i.code=!0:o==="link"?i.link=!0:o==="tag"?i.image=!0:o.match(/^header(\-[1-6])?$/)&&(i[o.replace("header","heading")]=!0);return i}var wfe="";function Sh(t){var e=t.codemirror;e.setOption("fullScreen",!e.getOption("fullScreen")),e.getOption("fullScreen")?(wfe=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=wfe;var r=e.getWrapperElement();/fullscreen/.test(r.previousSibling.className)?r.previousSibling.className=r.previousSibling.className.replace(/\s*fullscreen\b/,""):r.previousSibling.className+=" fullscreen";var n=t.toolbarElements.fullscreen;/active/.test(n.className)?n.className=n.className.replace(/\s*active\s*/g,""):n.className+=" active";var i=e.getWrapperElement().nextSibling;/editor-preview-active-side/.test(i.className)&&km(t)}function QE(t){iN(t,"bold",t.options.blockStyles.bold)}function ZE(t){iN(t,"italic",t.options.blockStyles.italic)}function JE(t){iN(t,"strikethrough","~~")}function eC(t){var e=t.options.blockStyles.code;function r(q){if(typeof q!="object")throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeof q+": "+q;return q.styles&&q.styles[2]&&q.styles[2].indexOf("formatting-code-block")!==-1}function n(q){return q.state.base.base||q.state.base}function i(q,W,N,z,X){N=N||q.getLineHandle(W),z=z||q.getTokenAt({line:W,ch:1}),X=X||!!N.text&&q.getTokenAt({line:W,ch:N.text.length-1});var oe=z.type?z.type.split(" "):[];return X&&n(X).indentedCode?"indented":oe.indexOf("comment")===-1?!1:n(z).fencedChars||n(X).fencedChars||r(N)?"fenced":"single"}function o(q,W,N,z){var X=W.line+1,oe=N.line+1,G=W.line!==N.line,K=z+`
177
+ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+zi(n.message+"",!0)+"</pre>";throw n}};Qt.Parser=_h;Qt.parser=_h.parse;Qt.Renderer=KE;Qt.TextRenderer=eN;Qt.Lexer=wh;Qt.lexer=wh.lex;Qt.Tokenizer=YE;Qt.Slugger=tN;Qt.parse=Qt;var hrt=Qt.options,prt=Qt.setOptions,grt=Qt.use,mrt=Qt.walkTokens,vrt=Qt.parseInline,yrt=Qt,brt=_h.parse,xrt=wh.lex;wn.Lexer=wh;wn.Parser=_h;wn.Renderer=KE;wn.Slugger=tN;wn.TextRenderer=eN;wn.Tokenizer=YE;wn.getDefaults=JF;wn.lexer=xrt;wn.marked=Qt;wn.options=hrt;wn.parse=yrt;wn.parseInline=vrt;wn.parser=brt;wn.setOptions=prt;wn.use=grt;wn.walkTokens=mrt});var Tfe=Z(($Mt,Afe)=>{"use strict";var xfe=Br();Wce();Vce();Kce();q1();F1();Qce();efe();nfe();nm();var wrt=lfe(),rN=bfe(),Sfe=/Mac/.test(navigator.platform),XE={toggleBold:QE,toggleItalic:ZE,drawLink:uC,toggleHeadingSmaller:R0,toggleHeadingBigger:rC,drawImage:cC,toggleBlockquote:tC,toggleOrderedList:sC,toggleUnorderedList:aC,toggleCodeBlock:eC,togglePreview:gC,toggleStrikethrough:JE,toggleHeading1:nC,toggleHeading2:iC,toggleHeading3:oC,cleanBlock:lC,drawTable:fC,drawHorizontalRule:dC,undo:hC,redo:pC,toggleSideBySide:km,toggleFullScreen:Sh},_rt={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},Srt=function(t){for(var e in XE)if(XE[e]===t)return e;return null},krt=function(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t};function kfe(t){return Sfe?t=t.replace("Ctrl","Cmd"):t=t.replace("Cmd","Ctrl"),t}function Ert(t,e,r){t=t||{};var n=document.createElement("a");return e=e??!0,t.title&&e&&(n.title=Art(t.title,t.action,r),Sfe&&(n.title=n.title.replace("Ctrl","\u2318"),n.title=n.title.replace("Alt","\u2325"))),n.tabIndex=-1,n.className=t.className,n}function Crt(){var t=document.createElement("i");return t.className="separator",t.innerHTML="|",t}function Art(t,e,r){var n,i=t;return e&&(n=Srt(e),r[n]&&(i+=" ("+kfe(r[n])+")")),i}function Pf(t,e){e=e||t.getCursor("start");var r=t.getTokenAt(e);if(!r.type)return{};for(var n=r.type.split(" "),i={},o,a,s=0;s<n.length;s++)o=n[s],o==="strong"?i.bold=!0:o==="variable-2"?(a=t.getLine(e.line),/^\s*\d+\.\s/.test(a)?i["ordered-list"]=!0:i["unordered-list"]=!0):o==="atom"?i.quote=!0:o==="em"?i.italic=!0:o==="quote"?i.quote=!0:o==="strikethrough"?i.strikethrough=!0:o==="comment"?i.code=!0:o==="link"?i.link=!0:o==="tag"?i.image=!0:o.match(/^header(\-[1-6])?$/)&&(i[o.replace("header","heading")]=!0);return i}var wfe="";function Sh(t){var e=t.codemirror;e.setOption("fullScreen",!e.getOption("fullScreen")),e.getOption("fullScreen")?(wfe=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=wfe;var r=e.getWrapperElement();/fullscreen/.test(r.previousSibling.className)?r.previousSibling.className=r.previousSibling.className.replace(/\s*fullscreen\b/,""):r.previousSibling.className+=" fullscreen";var n=t.toolbarElements.fullscreen;/active/.test(n.className)?n.className=n.className.replace(/\s*active\s*/g,""):n.className+=" active";var i=e.getWrapperElement().nextSibling;/editor-preview-active-side/.test(i.className)&&km(t)}function QE(t){iN(t,"bold",t.options.blockStyles.bold)}function ZE(t){iN(t,"italic",t.options.blockStyles.italic)}function JE(t){iN(t,"strikethrough","~~")}function eC(t){var e=t.options.blockStyles.code;function r(q){if(typeof q!="object")throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeof q+": "+q;return q.styles&&q.styles[2]&&q.styles[2].indexOf("formatting-code-block")!==-1}function n(q){return q.state.base.base||q.state.base}function i(q,W,N,z,X){N=N||q.getLineHandle(W),z=z||q.getTokenAt({line:W,ch:1}),X=X||!!N.text&&q.getTokenAt({line:W,ch:N.text.length-1});var oe=z.type?z.type.split(" "):[];return X&&n(X).indentedCode?"indented":oe.indexOf("comment")===-1?!1:n(z).fencedChars||n(X).fencedChars||r(N)?"fenced":"single"}function o(q,W,N,z){var X=W.line+1,oe=N.line+1,G=W.line!==N.line,K=z+`
178
178
  `,ve=`
179
179
  `+z;G&&oe++,G&&N.ch===0&&(ve=z+`
180
180
  `,oe--),Sm(q,!1,[K,ve]),q.setSelection({line:X,ch:0},{line:oe,ch:0})}var a=t.codemirror,s=a.getCursor("start"),u=a.getCursor("end"),c=a.getTokenAt({line:s.line,ch:s.ch||1}),f=a.getLineHandle(s.line),p=i(a,s.line,f,c),g,m,x;if(p==="single"){var w=f.text.slice(0,s.ch).replace("`",""),T=f.text.slice(s.ch).replace("`","");a.replaceRange(w+T,{line:s.line,ch:0},{line:s.line,ch:99999999999999}),s.ch--,s!==u&&u.ch--,a.setSelection(s,u),a.focus()}else if(p==="fenced")if(s.line!==u.line||s.ch!==u.ch){for(g=s.line;g>=0&&(f=a.getLineHandle(g),!r(f));g--);var k=a.getTokenAt({line:g,ch:1}),A=n(k).fencedChars,D,M,P,_;r(a.getLineHandle(s.line))?(D="",M=s.line):r(a.getLineHandle(s.line-1))?(D="",M=s.line-1):(D=A+`
@@ -413,7 +413,7 @@ function print() { __p += __j.call(arguments, '') }
413
413
  %t [data-trix-cursor-target=right] {
414
414
  vertical-align: bottom !important;
415
415
  margin-right: -1px !important;
416
- }`,trixId:{get:function(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++T),this.trixId)}},labels:{get:function(){var D,M,P;return M=[],this.id&&this.ownerDocument&&M.push.apply(M,this.ownerDocument.querySelectorAll("label[for='"+this.id+"']")),(D=i(this,{matchingSelector:"label"}))&&((P=D.control)===this||P===null)&&M.push(D),M}},toolbarElement:{get:function(){var D,M,P;return this.hasAttribute("toolbar")?(M=this.ownerDocument)!=null?M.getElementById(this.getAttribute("toolbar")):void 0:this.parentNode?(P="trix-toolbar-"+this.trixId,this.setAttribute("toolbar",P),D=s("trix-toolbar",{id:P}),this.parentNode.insertBefore(D,this),D):void 0}},inputElement:{get:function(){var D,M,P;return this.hasAttribute("input")?(P=this.ownerDocument)!=null?P.getElementById(this.getAttribute("input")):void 0:this.parentNode?(M="trix-input-"+this.trixId,this.setAttribute("input",M),D=s("input",{type:"hidden",id:M}),this.parentNode.insertBefore(D,this.nextElementSibling),D):void 0}},editor:{get:function(){var D;return(D=this.editorController)!=null?D.editor:void 0}},name:{get:function(){var D;return(D=this.inputElement)!=null?D.name:void 0}},value:{get:function(){var D;return(D=this.inputElement)!=null?D.value:void 0},set:function(D){var M;return this.defaultValue=D,(M=this.editor)!=null?M.loadHTML(this.defaultValue):void 0}},notify:function(D,M){return this.editorController?u("trix-"+D,{onElement:this,attributes:M}):void 0},setInputElementValue:function(D){var M;return(M=this.inputElement)!=null?M.value=D:void 0},initialize:function(){return this.hasAttribute("data-trix-internal")?void 0:(k(this),f(this),w(this))},connect:function(){return this.hasAttribute("data-trix-internal")?void 0:(this.editorController||(u("trix-before-initialize",{onElement:this}),this.editorController=new e.EditorController({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame(function(D){return function(){return u("trix-initialize",{onElement:D})}}(this))),this.editorController.registerSelectionManager(),this.registerResetListener(),this.registerClickListener(),p(this))},disconnect:function(){var D;return(D=this.editorController)!=null&&D.unregisterSelectionManager(),this.unregisterResetListener(),this.unregisterClickListener()},registerResetListener:function(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)},unregisterResetListener:function(){return window.removeEventListener("reset",this.resetListener,!1)},registerClickListener:function(){return this.clickListener=this.clickBubbled.bind(this),window.addEventListener("click",this.clickListener,!1)},unregisterClickListener:function(){return window.removeEventListener("click",this.clickListener,!1)},resetBubbled:function(D){var M;if(!D.defaultPrevented&&D.target===((M=this.inputElement)!=null?M.form:void 0))return this.reset()},clickBubbled:function(D){var M;if(!(D.defaultPrevented||this.contains(D.target)||!(M=i(D.target,{matchingSelector:"label"}))||c.call(this.labels,M)<0))return this.focus()},reset:function(){return this.value=this.defaultValue}}}())}.call(this),function(){}.call(this)}).call(this),typeof Ch=="object"&&Ch.exports?Ch.exports=e:typeof define=="function"&&define.amd&&define(e)}.call(Eh)});var kIt,SC,ode=se(()=>{kIt=Vr(ide());Pr();Qg();SC=class extends Ct{get resourceId(){return this.controllerTarget.dataset.resourceId}get resourceName(){return this.controllerTarget.dataset.resourceName}get attachmentKey(){return this.controllerTarget.dataset.attachmentKey}get attachmentsDisabled(){return Mo(this.controllerTarget.dataset.attachmentsDisabled)}get hideAttachmentFilename(){return Mo(this.controllerTarget.dataset.hideAttachmentFilename)}get hideAttachmentFilesize(){return Mo(this.controllerTarget.dataset.hideAttachmentFilesize)}get hideAttachmentUrl(){return Mo(this.controllerTarget.dataset.hideAttachmentUrl)}get uploadUrl(){return`${window.location.origin}${window.Avo.configuration.root_path}/avo_api/resources/${this.resourceName}/${this.resourceId}/attachments`}connect(){this.attachmentsDisabled&&this.controllerTarget.querySelector(".trix-button-group--file-tools").remove(),window.addEventListener("trix-file-accept",t=>{if(t.target===this.editorTarget){if(this.attachmentsDisabled){t.preventDefault(),window.toastr.warning("This field has attachments disabled.");return}if(this.resourceId===""){t.preventDefault(),window.toastr.warning("You can't upload files into the Trix editor until you save the resource.");return}this.attachmentKey===""&&(t.preventDefault(),window.toastr.warning("You haven't set an <a href='https://google.com' class='!text-blue-700 underline'>attachment_key</a> to this Trix field."))}}),window.addEventListener("trix-attachment-add",t=>{t.target===this.editorTarget&&t.attachment.file&&this.uploadFileAttachment(t.attachment)})}uploadFileAttachment(t){this.uploadFile(t.file,e=>t.setUploadProgress(e),e=>t.setAttributes(e))}uploadFile(t,e,r){let n=this.createFormData(t),i=new XMLHttpRequest;i.open("POST",this.uploadUrl,!0),i.setRequestHeader("X-CSRF-Token",document.querySelector('meta[name="csrf-token"]').content),i.upload.addEventListener("progress",o=>{let a=o.loaded/o.total*100;e(a)}),i.addEventListener("load",()=>{if(i.status===200){let o;try{o=JSON.parse(i.response)}catch(s){o={}}let a={url:o.url,href:o.href};this.hideAttachmentFilename&&(a.filename=null),this.hideAttachmentFilesize&&(a.filesize=null),this.hideAttachmentUrl&&(a.href=null),r(a)}}),i.send(n)}createFormData(t){let e=new FormData;return e.append("Content-Type",t.type),e.append("file",t),e.append("filename",t.name),e.append("attachment_key",this.attachmentKey),e}};xt(SC,"targets",["editor","controller"])});var ade=se(()=>{Mre();Ire();jre();zre();Hre();Gre();iie();oie();aie();Soe();tm();koe();Eoe();Coe();Aoe();Toe();Doe();Ooe();Moe();Ioe();gse();mse();vse();Ice();Pce();Rce();jce();Ofe();Mfe();Bfe();jfe();zfe();nde();ode();mr.register("action",_1);mr.register("actions-picker",i0);mr.register("attachments",A1);mr.register("boolean-filter",L1);mr.register("copy-to-clipboard",lq);mr.register("dashboard-card",N1);mr.register("filter",Ca);mr.register("hidden-input",aE);mr.register("item-select-all",sE);mr.register("item-selector",lE);mr.register("loading-button",cE);mr.register("menu",fE);mr.register("modal",dE);mr.register("multiple-select-filter",hE);mr.register("per-page",pE);mr.register("resource-edit",k0);mr.register("resource-index",cF);mr.register("resource-show",fF);mr.register("search",jE);mr.register("select",zE);mr.register("select-filter",HE);mr.register("sidebar",I0);mr.register("tabs",F0);mr.register("tags-field",vC);mr.register("text-filter",yC);mr.register("tippy",bC);mr.register("toggle-panel",_C);mr.register("belongs-to-field",T1);mr.register("code-field",F1);mr.register("date-field",w0);mr.register("key-value",uE);mr.register("simple-mde",mC);mr.register("trix-field",SC)});var Vrt=Z(cde=>{var uLt=Vr(uX()),cLt=Vr(cX()),sde=Vr(dX()),lde=Vr(fL());ML();var ude=Vr(uQ());lP();Qte();Zte();ade();ude.default.start();window.Turbolinks=Vd;var kC=null;lde.bind("r r r",()=>{kC=document.scrollingElement.scrollTop,Vd.visit(window.location.href,{action:"replace"})});function Urt(){window.navigator.userAgent.indexOf("Mac OS X")>=0?(document.body.classList.add("os-mac"),document.body.classList.remove("os-pc")):(document.body.classList.add("os-pc"),document.body.classList.remove("os-mac"))}function dN(){ZS('[data-tippy="tooltip"]',{theme:"light",content(t){let e=t.getAttribute("title");return t.removeAttribute("title"),t.removeAttribute("data-tippy"),e}})}window.initTippy=dN;sde.start();document.addEventListener("turbo:load",()=>{document.body.classList.remove("turbo-loading"),dN(),Urt(),kC&&setTimeout(()=>{document.scrollingElement.scrollTo(0,kC),kC=0},50)});document.addEventListener("turbo:frame-load",()=>{dN()});document.addEventListener("turbo:before-fetch-response",t=>XN(cde,null,function*(){var e,r,n;if(t.detail.fetchResponse.response.status===500){let{id:i,src:o}=t.target;(n=(r=(e=t.detail.fetchResponse)==null?void 0:e.response)==null?void 0:r.url)!=null&&n.includes("/failed_to_load")||(t.target.src=`${window.Avo.configuration.root_path}/failed_to_load?turbo_frame=${i}&src=${o}`)}}));document.addEventListener("turbo:visit",()=>document.body.classList.add("turbo-loading"));document.addEventListener("turbo:submit-start",()=>document.body.classList.add("turbo-loading"));document.addEventListener("turbo:submit-end",()=>document.body.classList.remove("turbo-loading"));document.addEventListener("turbo:before-cache",()=>{document.querySelectorAll("[data-turbo-remove-before-cache]").forEach(t=>t.remove())});window.Avo=window.Avo||{configuration:{}};window.Avo.menus={resetCollapsedState(){Array.from(document.querySelectorAll("[data-menu-key-param]")).map(t=>t.getAttribute("data-menu-key-param")).filter(Boolean).forEach(t=>{window.localStorage.removeItem(t)})}}});Vrt();})();
416
+ }`,trixId:{get:function(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++T),this.trixId)}},labels:{get:function(){var D,M,P;return M=[],this.id&&this.ownerDocument&&M.push.apply(M,this.ownerDocument.querySelectorAll("label[for='"+this.id+"']")),(D=i(this,{matchingSelector:"label"}))&&((P=D.control)===this||P===null)&&M.push(D),M}},toolbarElement:{get:function(){var D,M,P;return this.hasAttribute("toolbar")?(M=this.ownerDocument)!=null?M.getElementById(this.getAttribute("toolbar")):void 0:this.parentNode?(P="trix-toolbar-"+this.trixId,this.setAttribute("toolbar",P),D=s("trix-toolbar",{id:P}),this.parentNode.insertBefore(D,this),D):void 0}},inputElement:{get:function(){var D,M,P;return this.hasAttribute("input")?(P=this.ownerDocument)!=null?P.getElementById(this.getAttribute("input")):void 0:this.parentNode?(M="trix-input-"+this.trixId,this.setAttribute("input",M),D=s("input",{type:"hidden",id:M}),this.parentNode.insertBefore(D,this.nextElementSibling),D):void 0}},editor:{get:function(){var D;return(D=this.editorController)!=null?D.editor:void 0}},name:{get:function(){var D;return(D=this.inputElement)!=null?D.name:void 0}},value:{get:function(){var D;return(D=this.inputElement)!=null?D.value:void 0},set:function(D){var M;return this.defaultValue=D,(M=this.editor)!=null?M.loadHTML(this.defaultValue):void 0}},notify:function(D,M){return this.editorController?u("trix-"+D,{onElement:this,attributes:M}):void 0},setInputElementValue:function(D){var M;return(M=this.inputElement)!=null?M.value=D:void 0},initialize:function(){return this.hasAttribute("data-trix-internal")?void 0:(k(this),f(this),w(this))},connect:function(){return this.hasAttribute("data-trix-internal")?void 0:(this.editorController||(u("trix-before-initialize",{onElement:this}),this.editorController=new e.EditorController({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame(function(D){return function(){return u("trix-initialize",{onElement:D})}}(this))),this.editorController.registerSelectionManager(),this.registerResetListener(),this.registerClickListener(),p(this))},disconnect:function(){var D;return(D=this.editorController)!=null&&D.unregisterSelectionManager(),this.unregisterResetListener(),this.unregisterClickListener()},registerResetListener:function(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)},unregisterResetListener:function(){return window.removeEventListener("reset",this.resetListener,!1)},registerClickListener:function(){return this.clickListener=this.clickBubbled.bind(this),window.addEventListener("click",this.clickListener,!1)},unregisterClickListener:function(){return window.removeEventListener("click",this.clickListener,!1)},resetBubbled:function(D){var M;if(!D.defaultPrevented&&D.target===((M=this.inputElement)!=null?M.form:void 0))return this.reset()},clickBubbled:function(D){var M;if(!(D.defaultPrevented||this.contains(D.target)||!(M=i(D.target,{matchingSelector:"label"}))||c.call(this.labels,M)<0))return this.focus()},reset:function(){return this.value=this.defaultValue}}}())}.call(this),function(){}.call(this)}).call(this),typeof Ch=="object"&&Ch.exports?Ch.exports=e:typeof define=="function"&&define.amd&&define(e)}.call(Eh)});var kIt,SC,ode=se(()=>{kIt=Vr(ide());Pr();Qg();SC=class extends Ct{get resourceId(){return this.controllerTarget.dataset.resourceId}get resourceName(){return this.controllerTarget.dataset.resourceName}get attachmentKey(){return this.controllerTarget.dataset.attachmentKey}get attachmentsDisabled(){return Mo(this.controllerTarget.dataset.attachmentsDisabled)}get hideAttachmentFilename(){return Mo(this.controllerTarget.dataset.hideAttachmentFilename)}get hideAttachmentFilesize(){return Mo(this.controllerTarget.dataset.hideAttachmentFilesize)}get hideAttachmentUrl(){return Mo(this.controllerTarget.dataset.hideAttachmentUrl)}get uploadUrl(){return`${window.location.origin}${window.Avo.configuration.root_path}/avo_api/resources/${this.resourceName}/${this.resourceId}/attachments`}connect(){this.attachmentsDisabled&&this.controllerTarget.querySelector(".trix-button-group--file-tools").remove(),window.addEventListener("trix-file-accept",t=>{if(t.target===this.editorTarget){if(this.attachmentsDisabled){t.preventDefault(),window.toastr.warning("This field has attachments disabled.");return}if(this.resourceId===""){t.preventDefault(),window.toastr.warning("You can't upload files into the Trix editor until you save the resource.");return}this.attachmentKey===""&&(t.preventDefault(),window.toastr.warning("You haven't set an <a href='https://google.com' class='!text-blue-700 underline'>attachment_key</a> to this Trix field."))}}),window.addEventListener("trix-attachment-add",t=>{t.target===this.editorTarget&&t.attachment.file&&this.uploadFileAttachment(t.attachment)})}uploadFileAttachment(t){this.uploadFile(t.file,e=>t.setUploadProgress(e),e=>t.setAttributes(e))}uploadFile(t,e,r){let n=this.createFormData(t),i=new XMLHttpRequest;i.open("POST",this.uploadUrl,!0),i.setRequestHeader("X-CSRF-Token",document.querySelector('meta[name="csrf-token"]').content),i.upload.addEventListener("progress",o=>{let a=o.loaded/o.total*100;e(a)}),i.addEventListener("load",()=>{if(i.status===200){let o;try{o=JSON.parse(i.response)}catch(s){o={}}let a={url:o.url,href:o.href};this.hideAttachmentFilename&&(a.filename=null),this.hideAttachmentFilesize&&(a.filesize=null),this.hideAttachmentUrl&&(a.href=null),r(a)}}),i.send(n)}createFormData(t){let e=new FormData;return e.append("Content-Type",t.type),e.append("file",t),e.append("filename",t.name),e.append("attachment_key",this.attachmentKey),e}};xt(SC,"targets",["editor","controller"])});var ade=se(()=>{Mre();Ire();jre();zre();Hre();Gre();Xre();oie();aie();Soe();tm();koe();Eoe();Coe();Aoe();Toe();Doe();Ooe();Moe();Ioe();gse();mse();vse();Ice();Pce();Rce();jce();Ofe();Mfe();Bfe();jfe();zfe();nde();ode();mr.register("action",_1);mr.register("actions-picker",i0);mr.register("attachments",A1);mr.register("boolean-filter",L1);mr.register("card",P1);mr.register("copy-to-clipboard",lq);mr.register("filter",Ca);mr.register("hidden-input",aE);mr.register("item-select-all",sE);mr.register("item-selector",lE);mr.register("loading-button",cE);mr.register("menu",fE);mr.register("modal",dE);mr.register("multiple-select-filter",hE);mr.register("per-page",pE);mr.register("resource-edit",k0);mr.register("resource-index",cF);mr.register("resource-show",fF);mr.register("search",jE);mr.register("select",zE);mr.register("select-filter",HE);mr.register("sidebar",I0);mr.register("tabs",F0);mr.register("tags-field",vC);mr.register("text-filter",yC);mr.register("tippy",bC);mr.register("toggle-panel",_C);mr.register("belongs-to-field",T1);mr.register("code-field",N1);mr.register("date-field",w0);mr.register("key-value",uE);mr.register("simple-mde",mC);mr.register("trix-field",SC)});var Vrt=Z(cde=>{var uLt=Vr(uX()),cLt=Vr(cX()),sde=Vr(dX()),lde=Vr(fL());ML();var ude=Vr(uQ());lP();Qte();Zte();ade();ude.default.start();window.Turbolinks=Vd;var kC=null;lde.bind("r r r",()=>{kC=document.scrollingElement.scrollTop,Vd.visit(window.location.href,{action:"replace"})});function Urt(){window.navigator.userAgent.indexOf("Mac OS X")>=0?(document.body.classList.add("os-mac"),document.body.classList.remove("os-pc")):(document.body.classList.add("os-pc"),document.body.classList.remove("os-mac"))}function dN(){ZS('[data-tippy="tooltip"]',{theme:"light",content(t){let e=t.getAttribute("title");return t.removeAttribute("title"),t.removeAttribute("data-tippy"),e}})}window.initTippy=dN;sde.start();document.addEventListener("turbo:load",()=>{document.body.classList.remove("turbo-loading"),dN(),Urt(),kC&&setTimeout(()=>{document.scrollingElement.scrollTo(0,kC),kC=0},50)});document.addEventListener("turbo:frame-load",()=>{dN()});document.addEventListener("turbo:before-fetch-response",t=>XN(cde,null,function*(){var e,r,n;if(t.detail.fetchResponse.response.status===500){let{id:i,src:o}=t.target;(n=(r=(e=t.detail.fetchResponse)==null?void 0:e.response)==null?void 0:r.url)!=null&&n.includes("/failed_to_load")||(t.target.src=`${window.Avo.configuration.root_path}/failed_to_load?turbo_frame=${i}&src=${o}`)}}));document.addEventListener("turbo:visit",()=>document.body.classList.add("turbo-loading"));document.addEventListener("turbo:submit-start",()=>document.body.classList.add("turbo-loading"));document.addEventListener("turbo:submit-end",()=>document.body.classList.remove("turbo-loading"));document.addEventListener("turbo:before-cache",()=>{document.querySelectorAll("[data-turbo-remove-before-cache]").forEach(t=>t.remove())});window.Avo=window.Avo||{configuration:{}};window.Avo.menus={resetCollapsedState(){Array.from(document.querySelectorAll("[data-menu-key-param]")).map(t=>t.getAttribute("data-menu-key-param")).filter(Boolean).forEach(t=>{window.localStorage.removeItem(t)})}}});Vrt();})();
417
417
  /*!
418
418
  * @kurkle/color v0.1.9
419
419
  * https://github.com/kurkle/color#readme