mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-16 04:34:56 +02:00
2 lines
No EOL
128 KiB
JavaScript
2 lines
No EOL
128 KiB
JavaScript
/*! For license information please see scripts.js.LICENSE.txt */
|
|
(()=>{var e={303:function(e,t){var n,r,i;!function(o,a){"use strict";r=[],void 0===(i="function"==typeof(n=function(){return function(e){function t(e){e.icon=e.hasOwnProperty("icon")?e.icon:"",e.visible=e.hasOwnProperty("visible")?e.visible:"hover",e.placement=e.hasOwnProperty("placement")?e.placement:"right",e.ariaLabel=e.hasOwnProperty("ariaLabel")?e.ariaLabel:"Anchor",e.class=e.hasOwnProperty("class")?e.class:"",e.truncate=e.hasOwnProperty("truncate")?Math.floor(e.truncate):64}function n(e){var t;if("string"==typeof e||e instanceof String)t=[].slice.call(document.querySelectorAll(e));else{if(!(Array.isArray(e)||e instanceof NodeList))throw new Error("The selector provided to AnchorJS was invalid.");t=[].slice.call(e)}return t}this.options=e||{},this.elements=[],t(this.options),this.isTouchDevice=function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},this.add=function(e){var r,i,o,a,s,l,u,c,f,d,p,h=[];if(t(this.options),"touch"===(p=this.options.visible)&&(p=this.isTouchDevice()?"always":"hover"),e||(e="h2, h3, h4, h5, h6"),0===(r=n(e)).length)return this;for(function(){if(null===document.head.querySelector("style.anchorjs")){var e,t=document.createElement("style");t.className="anchorjs",t.appendChild(document.createTextNode("")),void 0===(e=document.head.querySelector('[rel="stylesheet"], style'))?document.head.appendChild(t):document.head.insertBefore(t,e),t.sheet.insertRule(" .anchorjs-link { opacity: 0; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }",t.sheet.cssRules.length),t.sheet.insertRule(" *:hover > .anchorjs-link, .anchorjs-link:focus { opacity: 1; }",t.sheet.cssRules.length),t.sheet.insertRule(" [data-anchorjs-icon]::after { content: attr(data-anchorjs-icon); }",t.sheet.cssRules.length),t.sheet.insertRule(' @font-face { font-family: "anchorjs-icons"; src: url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype"); }',t.sheet.cssRules.length)}}(),i=document.querySelectorAll("[id]"),o=[].map.call(i,(function(e){return e.id})),s=0;s<r.length;s++)if(this.hasAnchorJSLink(r[s]))h.push(s);else{if(r[s].hasAttribute("id"))a=r[s].getAttribute("id");else if(r[s].hasAttribute("data-anchor-id"))a=r[s].getAttribute("data-anchor-id");else{f=c=this.urlify(r[s].textContent),u=0;do{void 0!==l&&(f=c+"-"+u),l=o.indexOf(f),u+=1}while(-1!==l);l=void 0,o.push(f),r[s].setAttribute("id",f),a=f}a.replace(/-/g," "),(d=document.createElement("a")).className="anchorjs-link "+this.options.class,d.href="#"+a,d.setAttribute("aria-label",this.options.ariaLabel),d.setAttribute("data-anchorjs-icon",this.options.icon),"always"===p&&(d.style.opacity="1"),""===this.options.icon&&(d.style.font="1em/1 anchorjs-icons","left"===this.options.placement&&(d.style.lineHeight="inherit")),"left"===this.options.placement?(d.style.position="absolute",d.style.marginLeft="-1em",d.style.paddingRight="0.5em",r[s].insertBefore(d,r[s].firstChild)):(d.style.paddingLeft="0.375em",r[s].appendChild(d))}for(s=0;s<h.length;s++)r.splice(h[s]-s,1);return this.elements=this.elements.concat(r),this},this.remove=function(e){for(var t,r,i=n(e),o=0;o<i.length;o++)(r=i[o].querySelector(".anchorjs-link"))&&(-1!==(t=this.elements.indexOf(i[o]))&&this.elements.splice(t,1),i[o].removeChild(r));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(e){return this.options.truncate||t(this.options),e.trim().replace(/\'/gi,"").replace(/[& +$,:;=?@"#{}|^~[`%!'<>\]\.\/\(\)\*\\]/g,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(e){var t=e.firstChild&&(" "+e.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,n=e.lastChild&&(" "+e.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return t||n||!1}}})?n.apply(t,r):n)||(e.exports=i)}()},152:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(1)),a=l(n(3)),s=l(n(4));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===r(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,s.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return c("action",e)}},{key:"defaultTarget",value:function(e){var t=c("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return c("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(a.default);function c(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=u},function(e,t,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(2))&&r.__esModule?r:{default:r},s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=n},function(e,t,n){var r=n(5),i=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(7);function i(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}])},e.exports=t()},336:(e,t,n)=>{var r,i;!function(){var o,a,s,l,u,c,f,d,p,h,m,g,y,v,A,b,x,w,_,E,k,O,S,T,C,L,P=function(e){var t=new P.Builder;return t.pipeline.add(P.trimmer,P.stopWordFilter,P.stemmer),t.searchPipeline.add(P.stemmer),e.call(t,t),t.build()};P.version="2.3.9",P.utils={},P.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),P.utils.asString=function(e){return null==e?"":e.toString()},P.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),n=Object.keys(e),r=0;r<n.length;r++){var i=n[r],o=e[i];if(Array.isArray(o))t[i]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[i]=o}}return t},P.FieldRef=function(e,t,n){this.docRef=e,this.fieldName=t,this._stringValue=n},P.FieldRef.joiner="/",P.FieldRef.fromString=function(e){var t=e.indexOf(P.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var n=e.slice(0,t),r=e.slice(t+1);return new P.FieldRef(r,n,e)},P.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+P.FieldRef.joiner+this.docRef),this._stringValue},P.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},P.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},P.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},P.Set.prototype.contains=function(e){return!!this.elements[e]},P.Set.prototype.intersect=function(e){var t,n,r,i=[];if(e===P.Set.complete)return this;if(e===P.Set.empty)return e;this.length<e.length?(t=this,n=e):(t=e,n=this),r=Object.keys(t.elements);for(var o=0;o<r.length;o++){var a=r[o];a in n.elements&&i.push(a)}return new P.Set(i)},P.Set.prototype.union=function(e){return e===P.Set.complete?P.Set.complete:e===P.Set.empty?this:new P.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},P.idf=function(e,t){var n=0;for(var r in e)"_index"!=r&&(n+=Object.keys(e[r]).length);var i=(t-n+.5)/(n+.5);return Math.log(1+Math.abs(i))},P.Token=function(e,t){this.str=e||"",this.metadata=t||{}},P.Token.prototype.toString=function(){return this.str},P.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},P.Token.prototype.clone=function(e){return e=e||function(e){return e},new P.Token(e(this.str,this.metadata),this.metadata)},P.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new P.Token(P.utils.asString(e).toLowerCase(),P.utils.clone(t))}));for(var n=e.toString().toLowerCase(),r=n.length,i=[],o=0,a=0;o<=r;o++){var s=o-a;if(n.charAt(o).match(P.tokenizer.separator)||o==r){if(s>0){var l=P.utils.clone(t)||{};l.position=[a,s],l.index=i.length,i.push(new P.Token(n.slice(a,o),l))}a=o+1}}return i},P.tokenizer.separator=/[\s\-]+/,P.Pipeline=function(){this._stack=[]},P.Pipeline.registeredFunctions=Object.create(null),P.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&P.utils.warn("Overwriting existing registered function: "+t),e.label=t,P.Pipeline.registeredFunctions[e.label]=e},P.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||P.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},P.Pipeline.load=function(e){var t=new P.Pipeline;return e.forEach((function(e){var n=P.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},P.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach((function(e){P.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},P.Pipeline.prototype.after=function(e,t){P.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},P.Pipeline.prototype.before=function(e,t){P.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},P.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},P.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n<t;n++){for(var r=this._stack[n],i=[],o=0;o<e.length;o++){var a=r(e[o],o,e);if(null!=a&&""!==a)if(Array.isArray(a))for(var s=0;s<a.length;s++)i.push(a[s]);else i.push(a)}e=i}return e},P.Pipeline.prototype.runString=function(e,t){var n=new P.Token(e,t);return this.run([n]).map((function(e){return e.toString()}))},P.Pipeline.prototype.reset=function(){this._stack=[]},P.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return P.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},P.Vector=function(e){this._magnitude=0,this.elements=e||[]},P.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,n=this.elements.length/2,r=n-t,i=Math.floor(r/2),o=this.elements[2*i];r>1&&(o<e&&(t=i),o>e&&(n=i),o!=e);)r=n-t,i=t+Math.floor(r/2),o=this.elements[2*i];return o==e||o>e?2*i:o<e?2*(i+1):void 0},P.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},P.Vector.prototype.upsert=function(e,t,n){this._magnitude=0;var r=this.positionForIndex(e);this.elements[r]==e?this.elements[r+1]=n(this.elements[r+1],t):this.elements.splice(r,0,e,t)},P.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,n=1;n<t;n+=2){var r=this.elements[n];e+=r*r}return this._magnitude=Math.sqrt(e)},P.Vector.prototype.dot=function(e){for(var t=0,n=this.elements,r=e.elements,i=n.length,o=r.length,a=0,s=0,l=0,u=0;l<i&&u<o;)(a=n[l])<(s=r[u])?l+=2:a>s?u+=2:a==s&&(t+=n[l+1]*r[u+1],l+=2,u+=2);return t},P.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},P.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t<this.elements.length;t+=2,n++)e[n]=this.elements[t];return e},P.Vector.prototype.toJSON=function(){return this.elements},P.stemmer=(a={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},l="[aeiouy]",u="[^aeiou][^aeiouy]*",c=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),d=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),p=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),h=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,g=/^(.+?)eed$/,y=/^(.+?)(ed|ing)$/,v=/.$/,A=/(at|bl|iz)$/,b=new RegExp("([^aeiouylsz])\\1$"),x=new RegExp("^"+u+l+"[^aeiouwxy]$"),w=/^(.+?[^aeiou])y$/,_=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,k=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,O=/^(.+?)(s|t)(ion)$/,S=/^(.+?)e$/,T=/ll$/,C=new RegExp("^"+u+l+"[^aeiouwxy]$"),L=function(e){var t,n,r,i,o,l,u;if(e.length<3)return e;if("y"==(r=e.substr(0,1))&&(e=r.toUpperCase()+e.substr(1)),o=m,(i=h).test(e)?e=e.replace(i,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=y,(i=g).test(e)){var L=i.exec(e);(i=c).test(L[1])&&(i=v,e=e.replace(i,""))}else o.test(e)&&(t=(L=o.exec(e))[1],(o=p).test(t)&&(l=b,u=x,(o=A).test(e=t)?e+="e":l.test(e)?(i=v,e=e.replace(i,"")):u.test(e)&&(e+="e")));return(i=w).test(e)&&(e=(t=(L=i.exec(e))[1])+"i"),(i=_).test(e)&&(t=(L=i.exec(e))[1],n=L[2],(i=c).test(t)&&(e=t+a[n])),(i=E).test(e)&&(t=(L=i.exec(e))[1],n=L[2],(i=c).test(t)&&(e=t+s[n])),o=O,(i=k).test(e)?(t=(L=i.exec(e))[1],(i=f).test(t)&&(e=t)):o.test(e)&&(t=(L=o.exec(e))[1]+L[2],(o=f).test(t)&&(e=t)),(i=S).test(e)&&(t=(L=i.exec(e))[1],o=d,l=C,((i=f).test(t)||o.test(t)&&!l.test(t))&&(e=t)),o=f,(i=T).test(e)&&o.test(e)&&(i=v,e=e.replace(i,"")),"y"==r&&(e=r.toLowerCase()+e.substr(1)),e},function(e){return e.update(L)}),P.Pipeline.registerFunction(P.stemmer,"stemmer"),P.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},P.stopWordFilter=P.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),P.Pipeline.registerFunction(P.stopWordFilter,"stopWordFilter"),P.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},P.Pipeline.registerFunction(P.trimmer,"trimmer"),P.TokenSet=function(){this.final=!1,this.edges={},this.id=P.TokenSet._nextId,P.TokenSet._nextId+=1},P.TokenSet._nextId=1,P.TokenSet.fromArray=function(e){for(var t=new P.TokenSet.Builder,n=0,r=e.length;n<r;n++)t.insert(e[n]);return t.finish(),t.root},P.TokenSet.fromClause=function(e){return"editDistance"in e?P.TokenSet.fromFuzzyString(e.term,e.editDistance):P.TokenSet.fromString(e.term)},P.TokenSet.fromFuzzyString=function(e,t){for(var n=new P.TokenSet,r=[{node:n,editsRemaining:t,str:e}];r.length;){var i=r.pop();if(i.str.length>0){var o,a=i.str.charAt(0);a in i.node.edges?o=i.node.edges[a]:(o=new P.TokenSet,i.node.edges[a]=o),1==i.str.length&&(o.final=!0),r.push({node:o,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var s=i.node.edges["*"];else s=new P.TokenSet,i.node.edges["*"]=s;if(0==i.str.length&&(s.final=!0),r.push({node:s,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&r.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var l=i.node.edges["*"];else l=new P.TokenSet,i.node.edges["*"]=l;1==i.str.length&&(l.final=!0),r.push({node:l,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var u,c=i.str.charAt(0),f=i.str.charAt(1);f in i.node.edges?u=i.node.edges[f]:(u=new P.TokenSet,i.node.edges[f]=u),1==i.str.length&&(u.final=!0),r.push({node:u,editsRemaining:i.editsRemaining-1,str:c+i.str.slice(2)})}}}return n},P.TokenSet.fromString=function(e){for(var t=new P.TokenSet,n=t,r=0,i=e.length;r<i;r++){var o=e[r],a=r==i-1;if("*"==o)t.edges[o]=t,t.final=a;else{var s=new P.TokenSet;s.final=a,t.edges[o]=s,t=s}}return n},P.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var n=t.pop(),r=Object.keys(n.node.edges),i=r.length;n.node.final&&(n.prefix.charAt(0),e.push(n.prefix));for(var o=0;o<i;o++){var a=r[o];t.push({prefix:n.prefix.concat(a),node:n.node.edges[a]})}}return e},P.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),n=t.length,r=0;r<n;r++){var i=t[r];e=e+i+this.edges[i].id}return e},P.TokenSet.prototype.intersect=function(e){for(var t=new P.TokenSet,n=void 0,r=[{qNode:e,output:t,node:this}];r.length;){n=r.pop();for(var i=Object.keys(n.qNode.edges),o=i.length,a=Object.keys(n.node.edges),s=a.length,l=0;l<o;l++)for(var u=i[l],c=0;c<s;c++){var f=a[c];if(f==u||"*"==u){var d=n.node.edges[f],p=n.qNode.edges[u],h=d.final&&p.final,m=void 0;f in n.output.edges?(m=n.output.edges[f]).final=m.final||h:((m=new P.TokenSet).final=h,n.output.edges[f]=m),r.push({qNode:p,output:m,node:d})}}}return t},P.TokenSet.Builder=function(){this.previousWord="",this.root=new P.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},P.TokenSet.Builder.prototype.insert=function(e){var t,n=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var r=0;r<e.length&&r<this.previousWord.length&&e[r]==this.previousWord[r];r++)n++;for(this.minimize(n),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,r=n;r<e.length;r++){var i=new P.TokenSet,o=e[r];t.edges[o]=i,this.uncheckedNodes.push({parent:t,char:o,child:i}),t=i}t.final=!0,this.previousWord=e},P.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},P.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},P.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},P.Index.prototype.search=function(e){return this.query((function(t){new P.QueryParser(e,t).parse()}))},P.Index.prototype.query=function(e){for(var t=new P.Query(this.fields),n=Object.create(null),r=Object.create(null),i=Object.create(null),o=Object.create(null),a=Object.create(null),s=0;s<this.fields.length;s++)r[this.fields[s]]=new P.Vector;for(e.call(t,t),s=0;s<t.clauses.length;s++){var l,u=t.clauses[s],c=P.Set.empty;l=u.usePipeline?this.pipeline.runString(u.term,{fields:u.fields}):[u.term];for(var f=0;f<l.length;f++){var d=l[f];u.term=d;var p=P.TokenSet.fromClause(u),h=this.tokenSet.intersect(p).toArray();if(0===h.length&&u.presence===P.Query.presence.REQUIRED){for(var m=0;m<u.fields.length;m++)o[j=u.fields[m]]=P.Set.empty;break}for(var g=0;g<h.length;g++){var y=h[g],v=this.invertedIndex[y],A=v._index;for(m=0;m<u.fields.length;m++){var b=v[j=u.fields[m]],x=Object.keys(b),w=y+"/"+j,_=new P.Set(x);if(u.presence==P.Query.presence.REQUIRED&&(c=c.union(_),void 0===o[j]&&(o[j]=P.Set.complete)),u.presence!=P.Query.presence.PROHIBITED){if(r[j].upsert(A,u.boost,(function(e,t){return e+t})),!i[w]){for(var E=0;E<x.length;E++){var k,O=x[E],S=new P.FieldRef(O,j),T=b[O];void 0===(k=n[S])?n[S]=new P.MatchData(y,j,T):k.add(y,j,T)}i[w]=!0}}else void 0===a[j]&&(a[j]=P.Set.empty),a[j]=a[j].union(_)}}}if(u.presence===P.Query.presence.REQUIRED)for(m=0;m<u.fields.length;m++)o[j=u.fields[m]]=o[j].intersect(c)}var C=P.Set.complete,L=P.Set.empty;for(s=0;s<this.fields.length;s++){var j;o[j=this.fields[s]]&&(C=C.intersect(o[j])),a[j]&&(L=L.union(a[j]))}var R=Object.keys(n),N=[],M=Object.create(null);if(t.isNegated())for(R=Object.keys(this.fieldVectors),s=0;s<R.length;s++){S=R[s];var I=P.FieldRef.fromString(S);n[S]=new P.MatchData}for(s=0;s<R.length;s++){var Q=(I=P.FieldRef.fromString(R[s])).docRef;if(C.contains(Q)&&!L.contains(Q)){var D,F=this.fieldVectors[I],B=r[I.fieldName].similarity(F);if(void 0!==(D=M[Q]))D.score+=B,D.matchData.combine(n[I]);else{var $={ref:Q,score:B,matchData:n[I]};M[Q]=$,N.push($)}}}return N.sort((function(e,t){return t.score-e.score}))},P.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:P.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},P.Index.load=function(e){var t={},n={},r=e.fieldVectors,i=Object.create(null),o=e.invertedIndex,a=new P.TokenSet.Builder,s=P.Pipeline.load(e.pipeline);e.version!=P.version&&P.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+P.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<r.length;l++){var u=(f=r[l])[0],c=f[1];n[u]=new P.Vector(c)}for(l=0;l<o.length;l++){var f,d=(f=o[l])[0],p=f[1];a.insert(d),i[d]=p}return a.finish(),t.fields=e.fields,t.fieldVectors=n,t.invertedIndex=i,t.tokenSet=a.root,t.pipeline=s,new P.Index(t)},P.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=P.tokenizer,this.pipeline=new P.Pipeline,this.searchPipeline=new P.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},P.Builder.prototype.ref=function(e){this._ref=e},P.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},P.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},P.Builder.prototype.k1=function(e){this._k1=e},P.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var i=0;i<r.length;i++){var o=r[i],a=this._fields[o].extractor,s=a?a(e):e[o],l=this.tokenizer(s,{fields:[o]}),u=this.pipeline.run(l),c=new P.FieldRef(n,o),f=Object.create(null);this.fieldTermFrequencies[c]=f,this.fieldLengths[c]=0,this.fieldLengths[c]+=u.length;for(var d=0;d<u.length;d++){var p=u[d];if(null==f[p]&&(f[p]=0),f[p]+=1,null==this.invertedIndex[p]){var h=Object.create(null);h._index=this.termIndex,this.termIndex+=1;for(var m=0;m<r.length;m++)h[r[m]]=Object.create(null);this.invertedIndex[p]=h}null==this.invertedIndex[p][o][n]&&(this.invertedIndex[p][o][n]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var y=this.metadataWhitelist[g],v=p.metadata[y];null==this.invertedIndex[p][o][n][y]&&(this.invertedIndex[p][o][n][y]=[]),this.invertedIndex[p][o][n][y].push(v)}}}},P.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,n={},r={},i=0;i<t;i++){var o=P.FieldRef.fromString(e[i]),a=o.fieldName;r[a]||(r[a]=0),r[a]+=1,n[a]||(n[a]=0),n[a]+=this.fieldLengths[o]}var s=Object.keys(this._fields);for(i=0;i<s.length;i++){var l=s[i];n[l]=n[l]/r[l]}this.averageFieldLength=n},P.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),n=t.length,r=Object.create(null),i=0;i<n;i++){for(var o=P.FieldRef.fromString(t[i]),a=o.fieldName,s=this.fieldLengths[o],l=new P.Vector,u=this.fieldTermFrequencies[o],c=Object.keys(u),f=c.length,d=this._fields[a].boost||1,p=this._documents[o.docRef].boost||1,h=0;h<f;h++){var m,g,y,v=c[h],A=u[v],b=this.invertedIndex[v]._index;void 0===r[v]?(m=P.idf(this.invertedIndex[v],this.documentCount),r[v]=m):m=r[v],g=m*((this._k1+1)*A)/(this._k1*(1-this._b+this._b*(s/this.averageFieldLength[a]))+A),g*=d,g*=p,y=Math.round(1e3*g)/1e3,l.insert(b,y)}e[o]=l}this.fieldVectors=e},P.Builder.prototype.createTokenSet=function(){this.tokenSet=P.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},P.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new P.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},P.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},P.MatchData=function(e,t,n){for(var r=Object.create(null),i=Object.keys(n||{}),o=0;o<i.length;o++){var a=i[o];r[a]=n[a].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=r)},P.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),n=0;n<t.length;n++){var r=t[n],i=Object.keys(e.metadata[r]);null==this.metadata[r]&&(this.metadata[r]=Object.create(null));for(var o=0;o<i.length;o++){var a=i[o],s=Object.keys(e.metadata[r][a]);null==this.metadata[r][a]&&(this.metadata[r][a]=Object.create(null));for(var l=0;l<s.length;l++){var u=s[l];null==this.metadata[r][a][u]?this.metadata[r][a][u]=e.metadata[r][a][u]:this.metadata[r][a][u]=this.metadata[r][a][u].concat(e.metadata[r][a][u])}}}},P.MatchData.prototype.add=function(e,t,n){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=n);if(t in this.metadata[e])for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(n[o]):this.metadata[e][t][o]=n[o]}else this.metadata[e][t]=n},P.Query=function(e){this.clauses=[],this.allFields=e},P.Query.wildcard=new String("*"),P.Query.wildcard.NONE=0,P.Query.wildcard.LEADING=1,P.Query.wildcard.TRAILING=2,P.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},P.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=P.Query.wildcard.NONE),e.wildcard&P.Query.wildcard.LEADING&&e.term.charAt(0)!=P.Query.wildcard&&(e.term="*"+e.term),e.wildcard&P.Query.wildcard.TRAILING&&e.term.slice(-1)!=P.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=P.Query.presence.OPTIONAL),this.clauses.push(e),this},P.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=P.Query.presence.PROHIBITED)return!1;return!0},P.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,P.utils.clone(t))}),this),this;var n=t||{};return n.term=e.toString(),this.clause(n),this},P.QueryParseError=function(e,t,n){this.name="QueryParseError",this.message=e,this.start=t,this.end=n},P.QueryParseError.prototype=new Error,P.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},P.QueryLexer.prototype.run=function(){for(var e=P.QueryLexer.lexText;e;)e=e(this)},P.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,n=this.pos,r=0;r<this.escapeCharPositions.length;r++)n=this.escapeCharPositions[r],e.push(this.str.slice(t,n)),t=n+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},P.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},P.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},P.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return P.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},P.QueryLexer.prototype.width=function(){return this.pos-this.start},P.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},P.QueryLexer.prototype.backup=function(){this.pos-=1},P.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=P.QueryLexer.EOS&&this.backup()},P.QueryLexer.prototype.more=function(){return this.pos<this.length},P.QueryLexer.EOS="EOS",P.QueryLexer.FIELD="FIELD",P.QueryLexer.TERM="TERM",P.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",P.QueryLexer.BOOST="BOOST",P.QueryLexer.PRESENCE="PRESENCE",P.QueryLexer.lexField=function(e){return e.backup(),e.emit(P.QueryLexer.FIELD),e.ignore(),P.QueryLexer.lexText},P.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(P.QueryLexer.TERM)),e.ignore(),e.more())return P.QueryLexer.lexText},P.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(P.QueryLexer.EDIT_DISTANCE),P.QueryLexer.lexText},P.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(P.QueryLexer.BOOST),P.QueryLexer.lexText},P.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(P.QueryLexer.TERM)},P.QueryLexer.termSeparator=P.tokenizer.separator,P.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==P.QueryLexer.EOS)return P.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return P.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(P.QueryLexer.TERM),P.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(P.QueryLexer.TERM),P.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(P.QueryLexer.PRESENCE),P.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(P.QueryLexer.PRESENCE),P.QueryLexer.lexText;if(t.match(P.QueryLexer.termSeparator))return P.QueryLexer.lexTerm}else e.escapeCharacter()}},P.QueryParser=function(e,t){this.lexer=new P.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},P.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=P.QueryParser.parseClause;e;)e=e(this);return this.query},P.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},P.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},P.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},P.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case P.QueryLexer.PRESENCE:return P.QueryParser.parsePresence;case P.QueryLexer.FIELD:return P.QueryParser.parseField;case P.QueryLexer.TERM:return P.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new P.QueryParseError(n,t.start,t.end)}},P.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=P.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=P.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new P.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r)throw n="expecting term or field, found nothing",new P.QueryParseError(n,t.start,t.end);switch(r.type){case P.QueryLexer.FIELD:return P.QueryParser.parseField;case P.QueryLexer.TERM:return P.QueryParser.parseTerm;default:throw n="expecting term or field, found '"+r.type+"'",new P.QueryParseError(n,r.start,r.end)}}},P.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new P.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i)throw r="expecting term, found nothing",new P.QueryParseError(r,t.start,t.end);if(i.type===P.QueryLexer.TERM)return P.QueryParser.parseTerm;throw r="expecting term, found '"+i.type+"'",new P.QueryParseError(r,i.start,i.end)}},P.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case P.QueryLexer.TERM:return e.nextClause(),P.QueryParser.parseTerm;case P.QueryLexer.FIELD:return e.nextClause(),P.QueryParser.parseField;case P.QueryLexer.EDIT_DISTANCE:return P.QueryParser.parseEditDistance;case P.QueryLexer.BOOST:return P.QueryParser.parseBoost;case P.QueryLexer.PRESENCE:return e.nextClause(),P.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new P.QueryParseError(r,n.start,n.end)}else e.nextClause()}},P.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new P.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var i=e.peekLexeme();if(null!=i)switch(i.type){case P.QueryLexer.TERM:return e.nextClause(),P.QueryParser.parseTerm;case P.QueryLexer.FIELD:return e.nextClause(),P.QueryParser.parseField;case P.QueryLexer.EDIT_DISTANCE:return P.QueryParser.parseEditDistance;case P.QueryLexer.BOOST:return P.QueryParser.parseBoost;case P.QueryLexer.PRESENCE:return e.nextClause(),P.QueryParser.parsePresence;default:throw r="Unexpected lexeme type '"+i.type+"'",new P.QueryParseError(r,i.start,i.end)}else e.nextClause()}},P.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new P.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var i=e.peekLexeme();if(null!=i)switch(i.type){case P.QueryLexer.TERM:return e.nextClause(),P.QueryParser.parseTerm;case P.QueryLexer.FIELD:return e.nextClause(),P.QueryParser.parseField;case P.QueryLexer.EDIT_DISTANCE:return P.QueryParser.parseEditDistance;case P.QueryLexer.BOOST:return P.QueryParser.parseBoost;case P.QueryLexer.PRESENCE:return e.nextClause(),P.QueryParser.parsePresence;default:throw r="Unexpected lexeme type '"+i.type+"'",new P.QueryParseError(r,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(r=function(){return P})?r.call(t,n,t,e):r)||(e.exports=i)}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,r,i,o=n(303),a=n.n(o),s=Object.create,l=Object.defineProperty,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,f=Object.getOwnPropertyNames,d=Object.getOwnPropertyDescriptor,p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),h=p((e=>{function t(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}Object.defineProperty(e,"__esModule",{value:!0});var r={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},i=t("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),o="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=t(o),s=t(o+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),l=/[>/="'\u0009\u000a\u000c\u0020]/,u={},c=t("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),f=t("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),d=/;(?![^(]*\))/g,p=/:(.+)/;function h(e){const t={};return e.split(d).forEach((e=>{if(e){const n=e.split(p);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}var m=t("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),g=t("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),y=t("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),v=/["'&<>]/,A=/^-?>|<!--|-->|--!>|<!-$/g;function b(e,t){if(e===t)return!0;let n=P(e),r=P(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=T(e),r=T(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=b(e[r],t[r]);return n}(e,t);if(n=N(e),r=N(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!b(e[n],t[n]))return!1}}return String(e)===String(t)}var x,w=(e,t)=>C(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:L(t)?{[`Set(${t.size})`]:[...t.values()]}:!N(t)||T(t)||Q(t)?t:String(t),_=Object.freeze({}),E=Object.freeze([]),k=/^on[^a-z]/,O=Object.assign,S=Object.prototype.hasOwnProperty,T=Array.isArray,C=e=>"[object Map]"===I(e),L=e=>"[object Set]"===I(e),P=e=>e instanceof Date,j=e=>"function"==typeof e,R=e=>"string"==typeof e,N=e=>null!==e&&"object"==typeof e,M=Object.prototype.toString,I=e=>M.call(e),Q=e=>"[object Object]"===I(e),D=t(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),F=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},B=/-(\w)/g,$=F((e=>e.replace(B,((e,t)=>t?t.toUpperCase():"")))),z=/\B([A-Z])/g,V=F((e=>e.replace(z,"-$1").toLowerCase())),H=F((e=>e.charAt(0).toUpperCase()+e.slice(1))),W=F((e=>e?`on${H(e)}`:""));e.EMPTY_ARR=E,e.EMPTY_OBJ=_,e.NO=()=>!1,e.NOOP=()=>{},e.PatchFlagNames=r,e.babelParserDefaultPlugins=["bigInt","optionalChaining","nullishCoalescingOperator"],e.camelize=$,e.capitalize=H,e.def=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},e.escapeHtml=function(e){const t=""+e,n=v.exec(t);if(!n)return t;let r,i,o="",a=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=r}return a!==i?o+t.substring(a,i):o},e.escapeHtmlComment=function(e){return e.replace(A,"")},e.extend=O,e.generateCodeFrame=function(e,t=0,n=e.length){const r=e.split(/\r?\n/);let i=0;const o=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+1,i>=t){for(let a=e-2;a<=e+2||n>i;a++){if(a<0||a>=r.length)continue;const s=a+1;o.push(`${s}${" ".repeat(Math.max(3-String(s).length,0))}| ${r[a]}`);const l=r[a].length;if(a===e){const e=t-(i-l)+1,r=Math.max(1,n>i?l-e:n-t);o.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(a>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);o.push(" | "+"^".repeat(e))}i+=l+1}}break}return o.join("\n")},e.getGlobalThis=()=>x||(x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),e.hasChanged=(e,t)=>e!==t&&(e==e||t==t),e.hasOwn=(e,t)=>S.call(e,t),e.hyphenate=V,e.invokeArrayFns=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},e.isArray=T,e.isBooleanAttr=s,e.isDate=P,e.isFunction=j,e.isGloballyWhitelisted=i,e.isHTMLTag=m,e.isIntegerKey=e=>R(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,e.isKnownAttr=f,e.isMap=C,e.isModelListener=e=>e.startsWith("onUpdate:"),e.isNoUnitNumericStyleProp=c,e.isObject=N,e.isOn=e=>k.test(e),e.isPlainObject=Q,e.isPromise=e=>N(e)&&j(e.then)&&j(e.catch),e.isReservedProp=D,e.isSSRSafeAttrName=function(e){if(u.hasOwnProperty(e))return u[e];const t=l.test(e);return t&&console.error(`unsafe attribute name: ${e}`),u[e]=!t},e.isSVGTag=g,e.isSet=L,e.isSpecialBooleanAttr=a,e.isString=R,e.isSymbol=e=>"symbol"==typeof e,e.isVoidTag=y,e.looseEqual=b,e.looseIndexOf=function(e,t){return e.findIndex((e=>b(e,t)))},e.makeMap=t,e.normalizeClass=function e(t){let n="";if(R(t))n=t;else if(T(t))for(let r=0;r<t.length;r++){const i=e(t[r]);i&&(n+=i+" ")}else if(N(t))for(const e in t)t[e]&&(n+=e+" ");return n.trim()},e.normalizeStyle=function e(t){if(T(t)){const n={};for(let r=0;r<t.length;r++){const i=t[r],o=e(R(i)?h(i):i);if(o)for(const e in o)n[e]=o[e]}return n}if(N(t))return t},e.objectToString=M,e.parseStringStyle=h,e.propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},e.remove=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},e.slotFlagsText={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},e.stringifyStyle=function(e){let t="";if(!e)return t;for(const n in e){const r=e[n],i=n.startsWith("--")?n:V(n);(R(r)||"number"==typeof r&&c(i))&&(t+=`${i}:${r};`)}return t},e.toDisplayString=e=>null==e?"":N(e)?JSON.stringify(e,w,2):String(e),e.toHandlerKey=W,e.toNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},e.toRawType=e=>I(e).slice(8,-1),e.toTypeString=I})),m=p(((e,t)=>{t.exports=h()})),g=p((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t,n=m(),r=new WeakMap,i=[],o=Symbol("iterate"),a=Symbol("Map key iterate");function s(e,r=n.EMPTY_OBJ){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const o=function(e,n){const r=function(){if(!r.active)return e();if(!i.includes(r)){u(r);try{return p(),i.push(r),t=r,e()}finally{i.pop(),h(),t=i[i.length-1]}}};return r.id=l++,r.allowRecurse=!!n.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=n,r}(e,r);return r.lazy||o(),o}var l=0;function u(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var c=!0,f=[];function d(){f.push(c),c=!1}function p(){f.push(c),c=!0}function h(){const e=f.pop();c=void 0===e||e}function g(e,n,i){if(!c||void 0===t)return;let o=r.get(e);o||r.set(e,o=new Map);let a=o.get(i);a||o.set(i,a=new Set),a.has(t)||(a.add(t),t.deps.push(a),t.options.onTrack&&t.options.onTrack({effect:t,target:e,type:n,key:i}))}function y(e,i,s,l,u,c){const f=r.get(e);if(!f)return;const d=new Set,p=e=>{e&&e.forEach((e=>{(e!==t||e.allowRecurse)&&d.add(e)}))};if("clear"===i)f.forEach(p);else if("length"===s&&n.isArray(e))f.forEach(((e,t)=>{("length"===t||t>=l)&&p(e)}));else switch(void 0!==s&&p(f.get(s)),i){case"add":n.isArray(e)?n.isIntegerKey(s)&&p(f.get("length")):(p(f.get(o)),n.isMap(e)&&p(f.get(a)));break;case"delete":n.isArray(e)||(p(f.get(o)),n.isMap(e)&&p(f.get(a)));break;case"set":n.isMap(e)&&p(f.get(o))}d.forEach((t=>{t.options.onTrigger&&t.options.onTrigger({effect:t,target:e,key:s,type:i,newValue:l,oldValue:u,oldTarget:c}),t.options.scheduler?t.options.scheduler(t):t()}))}var v=n.makeMap("__proto__,__v_isRef,__isVue"),A=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(n.isSymbol)),b=k(),x=k(!1,!0),w=k(!0),_=k(!0,!0),E={};function k(e=!1,t=!1){return function(r,i,o){if("__v_isReactive"===i)return!e;if("__v_isReadonly"===i)return e;if("__v_raw"===i&&o===(e?t?ae:oe:t?ie:re).get(r))return r;const a=n.isArray(r);if(!e&&a&&n.hasOwn(E,i))return Reflect.get(E,i,o);const s=Reflect.get(r,i,o);return(n.isSymbol(i)?A.has(i):v(i))?s:(e||g(r,"get",i),t?s:me(s)?a&&n.isIntegerKey(i)?s:s.value:n.isObject(s)?e?le(s):se(s):s)}}["includes","indexOf","lastIndexOf"].forEach((e=>{const t=Array.prototype[e];E[e]=function(...e){const n=pe(this);for(let e=0,t=this.length;e<t;e++)g(n,"get",e+"");const r=t.apply(n,e);return-1===r||!1===r?t.apply(n,e.map(pe)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{const t=Array.prototype[e];E[e]=function(...e){d();const n=t.apply(this,e);return h(),n}}));var O=T(),S=T(!0);function T(e=!1){return function(t,r,i,o){let a=t[r];if(!e&&(i=pe(i),a=pe(a),!n.isArray(t)&&me(a)&&!me(i)))return a.value=i,!0;const s=n.isArray(t)&&n.isIntegerKey(r)?Number(r)<t.length:n.hasOwn(t,r),l=Reflect.set(t,r,i,o);return t===pe(o)&&(s?n.hasChanged(i,a)&&y(t,"set",r,i,a):y(t,"add",r,i)),l}}var C={get:b,set:O,deleteProperty:function(e,t){const r=n.hasOwn(e,t),i=e[t],o=Reflect.deleteProperty(e,t);return o&&r&&y(e,"delete",t,void 0,i),o},has:function(e,t){const r=Reflect.has(e,t);return n.isSymbol(t)&&A.has(t)||g(e,"has",t),r},ownKeys:function(e){return g(e,"iterate",n.isArray(e)?"length":o),Reflect.ownKeys(e)}},L={get:w,set:(e,t)=>(console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>(console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},P=n.extend({},C,{get:x,set:S}),j=n.extend({},L,{get:_}),R=e=>n.isObject(e)?se(e):e,N=e=>n.isObject(e)?le(e):e,M=e=>e,I=e=>Reflect.getPrototypeOf(e);function Q(e,t,n=!1,r=!1){const i=pe(e=e.__v_raw),o=pe(t);t!==o&&!n&&g(i,"get",t),!n&&g(i,"get",o);const{has:a}=I(i),s=r?M:n?N:R;return a.call(i,t)?s(e.get(t)):a.call(i,o)?s(e.get(o)):void(e!==i&&e.get(t))}function D(e,t=!1){const n=this.__v_raw,r=pe(n),i=pe(e);return e!==i&&!t&&g(r,"has",e),!t&&g(r,"has",i),e===i?n.has(e):n.has(e)||n.has(i)}function F(e,t=!1){return e=e.__v_raw,!t&&g(pe(e),"iterate",o),Reflect.get(e,"size",e)}function B(e){e=pe(e);const t=pe(this);return I(t).has.call(t,e)||(t.add(e),y(t,"add",e,e)),this}function $(e,t){t=pe(t);const r=pe(this),{has:i,get:o}=I(r);let a=i.call(r,e);a?ne(r,i,e):(e=pe(e),a=i.call(r,e));const s=o.call(r,e);return r.set(e,t),a?n.hasChanged(t,s)&&y(r,"set",e,t,s):y(r,"add",e,t),this}function z(e){const t=pe(this),{has:n,get:r}=I(t);let i=n.call(t,e);i?ne(t,n,e):(e=pe(e),i=n.call(t,e));const o=r?r.call(t,e):void 0,a=t.delete(e);return i&&y(t,"delete",e,void 0,o),a}function V(){const e=pe(this),t=0!==e.size,r=n.isMap(e)?new Map(e):new Set(e),i=e.clear();return t&&y(e,"clear",void 0,void 0,r),i}function H(e,t){return function(n,r){const i=this,a=i.__v_raw,s=pe(a),l=t?M:e?N:R;return!e&&g(s,"iterate",o),a.forEach(((e,t)=>n.call(r,l(e),l(t),i)))}}function W(e,t,r){return function(...i){const s=this.__v_raw,l=pe(s),u=n.isMap(l),c="entries"===e||e===Symbol.iterator&&u,f="keys"===e&&u,d=s[e](...i),p=r?M:t?N:R;return!t&&g(l,"iterate",f?a:o),{next(){const{value:e,done:t}=d.next();return t?{value:e,done:t}:{value:c?[p(e[0]),p(e[1])]:p(e),done:t}},[Symbol.iterator](){return this}}}}function q(e){return function(...t){{const r=t[0]?`on key "${t[0]}" `:"";console.warn(`${n.capitalize(e)} operation ${r}failed: target is readonly.`,pe(this))}return"delete"!==e&&this}}var U={get(e){return Q(this,e)},get size(){return F(this)},has:D,add:B,set:$,delete:z,clear:V,forEach:H(!1,!1)},Y={get(e){return Q(this,e,!1,!0)},get size(){return F(this)},has:D,add:B,set:$,delete:z,clear:V,forEach:H(!1,!0)},G={get(e){return Q(this,e,!0)},get size(){return F(this,!0)},has(e){return D.call(this,e,!0)},add:q("add"),set:q("set"),delete:q("delete"),clear:q("clear"),forEach:H(!0,!1)},K={get(e){return Q(this,e,!0,!0)},get size(){return F(this,!0)},has(e){return D.call(this,e,!0)},add:q("add"),set:q("set"),delete:q("delete"),clear:q("clear"),forEach:H(!0,!0)};function J(e,t){const r=t?e?K:Y:e?G:U;return(t,i,o)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(n.hasOwn(r,i)&&i in t?r:t,i,o)}["keys","values","entries",Symbol.iterator].forEach((e=>{U[e]=W(e,!1,!1),G[e]=W(e,!0,!1),Y[e]=W(e,!1,!0),K[e]=W(e,!0,!0)}));var X={get:J(!1,!1)},Z={get:J(!1,!0)},ee={get:J(!0,!1)},te={get:J(!0,!0)};function ne(e,t,r){const i=pe(r);if(i!==r&&t.call(e,i)){const t=n.toRawType(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var re=new WeakMap,ie=new WeakMap,oe=new WeakMap,ae=new WeakMap;function se(e){return e&&e.__v_isReadonly?e:ue(e,!1,C,X,re)}function le(e){return ue(e,!0,L,ee,oe)}function ue(e,t,r,i,o){if(!n.isObject(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(n.toRawType(l));var l;if(0===s)return e;const u=new Proxy(e,2===s?i:r);return o.set(e,u),u}function ce(e){return fe(e)?ce(e.__v_raw):!(!e||!e.__v_isReactive)}function fe(e){return!(!e||!e.__v_isReadonly)}function de(e){return ce(e)||fe(e)}function pe(e){return e&&pe(e.__v_raw)||e}var he=e=>n.isObject(e)?se(e):e;function me(e){return Boolean(e&&!0===e.__v_isRef)}function ge(e,t=!1){return me(e)?e:new class{constructor(e,t=!1){this._rawValue=e,this._shallow=t,this.__v_isRef=!0,this._value=t?e:he(e)}get value(){return g(pe(this),"get","value"),this._value}set value(e){n.hasChanged(pe(e),this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:he(e),y(pe(this),"set","value",e))}}(e,t)}function ye(e){return me(e)?e.value:e}var ve={get:(e,t,n)=>ye(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return me(i)&&!me(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ae(e,t){return me(e[t])?e[t]:new class{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}(e,t)}e.ITERATE_KEY=o,e.computed=function(e){let t,r;return n.isFunction(e)?(t=e,r=()=>{console.warn("Write operation failed: computed value is readonly")}):(t=e.get,r=e.set),new class{constructor(e,t,n){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=s(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,y(pe(this),"set","value"))}}),this.__v_isReadonly=n}get value(){const e=pe(this);return e._dirty&&(e._value=this.effect(),e._dirty=!1),g(e,"get","value"),e._value}set value(e){this._setter(e)}}(t,r,n.isFunction(e)||!e.set)},e.customRef=function(e){return new class{constructor(e){this.__v_isRef=!0;const{get:t,set:n}=e((()=>g(this,"get","value")),(()=>y(this,"set","value")));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}(e)},e.effect=s,e.enableTracking=p,e.isProxy=de,e.isReactive=ce,e.isReadonly=fe,e.isRef=me,e.markRaw=function(e){return n.def(e,"__v_skip",!0),e},e.pauseTracking=d,e.proxyRefs=function(e){return ce(e)?e:new Proxy(e,ve)},e.reactive=se,e.readonly=le,e.ref=function(e){return ge(e)},e.resetTracking=h,e.shallowReactive=function(e){return ue(e,!1,P,Z,ie)},e.shallowReadonly=function(e){return ue(e,!0,j,te,ae)},e.shallowRef=function(e){return ge(e,!0)},e.stop=function(e){e.active&&(u(e),e.options.onStop&&e.options.onStop(),e.active=!1)},e.toRaw=pe,e.toRef=Ae,e.toRefs=function(e){de(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=n.isArray(e)?new Array(e.length):{};for(const n in e)t[n]=Ae(e,n);return t},e.track=g,e.trigger=y,e.triggerRef=function(e){y(pe(e),"set","value",e.value)},e.unref=ye})),y=p(((e,t)=>{t.exports=g()})),v=!1,A=!1,b=[];function x(){v=!1,A=!0;for(let e=0;e<b.length;e++)b[e]();b.length=0,A=!1}var w=!0;function _(e){t=e}var E=[],k=[],O=[];function S(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach((([n,r])=>{(void 0===t||t.includes(n))&&(r.forEach((e=>e())),delete e._x_attributeCleanups[n])}))}var T=new MutationObserver(I),C=!1;function L(){T.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),C=!0}var P=[],j=!1;function R(e){if(!C)return e();(P=P.concat(T.takeRecords())).length&&!j&&(j=!0,queueMicrotask((()=>{I(P),P.length=0,j=!1}))),T.disconnect(),C=!1;let t=e();return L(),t}var N=!1,M=[];function I(e){if(N)return void(M=M.concat(e));let t=[],n=[],r=new Map,i=new Map;for(let o=0;o<e.length;o++)if(!e[o].target._x_ignoreMutationObserver&&("childList"===e[o].type&&(e[o].addedNodes.forEach((e=>1===e.nodeType&&t.push(e))),e[o].removedNodes.forEach((e=>1===e.nodeType&&n.push(e)))),"attributes"===e[o].type)){let t=e[o].target,n=e[o].attributeName,a=e[o].oldValue,s=()=>{r.has(t)||r.set(t,[]),r.get(t).push({name:n,value:t.getAttribute(n)})},l=()=>{i.has(t)||i.set(t,[]),i.get(t).push(n)};t.hasAttribute(n)&&null===a?s():t.hasAttribute(n)?(l(),s()):l()}i.forEach(((e,t)=>{S(t,e)})),r.forEach(((e,t)=>{E.forEach((n=>n(t,e)))}));for(let e of n)t.includes(e)||k.forEach((t=>t(e)));t.forEach((e=>{e._x_ignoreSelf=!0,e._x_ignore=!0}));for(let e of t)n.includes(e)||e.isConnected&&(delete e._x_ignoreSelf,delete e._x_ignore,O.forEach((t=>t(e))),e._x_ignore=!0,e._x_ignoreSelf=!0);t.forEach((e=>{delete e._x_ignoreSelf,delete e._x_ignore})),t=null,n=null,r=null,i=null}function Q(e){return z(B(e))}function D(e,t,n){return e._x_dataStack=[t,...B(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter((e=>e!==t))}}function F(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach((([e,t])=>{n[e]=t}))}function B(e){return e._x_dataStack?e._x_dataStack:"function"==typeof ShadowRoot&&e instanceof ShadowRoot?B(e.host):e.parentNode?B(e.parentNode):[]}function z(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap((e=>Object.keys(e))))),has:(t,n)=>e.some((e=>e.hasOwnProperty(n))),get:(n,r)=>(e.find((e=>{if(e.hasOwnProperty(r)){let n=Object.getOwnPropertyDescriptor(e,r);if(n.get&&n.get._x_alreadyBound||n.set&&n.set._x_alreadyBound)return!0;if((n.get||n.set)&&n.enumerable){let i=n.get,o=n.set,a=n;i=i&&i.bind(t),o=o&&o.bind(t),i&&(i._x_alreadyBound=!0),o&&(o._x_alreadyBound=!0),Object.defineProperty(e,r,{...a,get:i,set:o})}return!0}return!1}))||{})[r],set:(t,n,r)=>{let i=e.find((e=>e.hasOwnProperty(n)));return i?i[n]=r:e[e.length-1][n]=r,!0}});return t}function V(e){let t=(n,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach((([i,{value:o,enumerable:a}])=>{if(!1===a||void 0===o)return;let s=""===r?i:`${r}.${i}`;var l;"object"==typeof o&&null!==o&&o._x_interceptor?n[i]=o.initialize(e,s,i):"object"!=typeof(l=o)||Array.isArray(l)||null===l||o===n||o instanceof Element||t(o,s)}))};return t(e)}function H(e,t=(()=>{})){let n={initialValue:void 0,_x_interceptor:!0,initialize(t,n,r){return e(this.initialValue,(()=>function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)}(t,n)),(e=>W(t,n,e)),n,r)}};return t(n),e=>{if("object"==typeof e&&null!==e&&e._x_interceptor){let t=n.initialize.bind(n);n.initialize=(r,i,o)=>{let a=e.initialize(r,i,o);return n.initialValue=a,t(r,i,o)}}else n.initialValue=e;return n}}function W(e,t,n){if("string"==typeof t&&(t=t.split(".")),1!==t.length){if(0===t.length)throw error;return e[t[0]]||(e[t[0]]={}),W(e[t[0]],t.slice(1),n)}e[t[0]]=n}var q={};function U(e,t){q[e]=t}function Y(e,t){return Object.entries(q).forEach((([n,r])=>{Object.defineProperty(e,`$${n}`,{get:()=>r(t,{Alpine:rt,interceptor:H}),enumerable:!1})})),e}function G(e,t,n,...r){try{return n(...r)}catch(n){K(n,e,t)}}function K(e,t,n){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message}\n\n${n?'Expression: "'+n+'"\n\n':""}`,t),setTimeout((()=>{throw e}),0)}function J(e,t,n={}){let r;return X(e,t)((e=>r=e),n),r}function X(...e){return Z(...e)}var Z=ee;function ee(e,t){let n={};Y(n,e);let r=[n,...B(e)];if("function"==typeof t)return function(e,t){return(n=(()=>{}),{scope:r={},params:i=[]}={})=>{ne(n,t.apply(z([r,...e]),i))}}(r,t);let i=function(e,t,n){let r=function(e,t){if(te[e])return te[e];let n=Object.getPrototypeOf((async function(){})).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e,i=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(n){return K(n,t,e),Promise.resolve()}})();return te[e]=i,i}(t,n);return(i=(()=>{}),{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let s=z([o,...e]);if("function"==typeof r){let e=r(r,s).catch((e=>K(e,n,t)));r.finished?(ne(i,r.result,s,a,n),r.result=void 0):e.then((e=>{ne(i,e,s,a,n)})).catch((e=>K(e,n,t))).finally((()=>r.result=void 0))}}}(r,t,e);return G.bind(null,e,t,i)}var te={};function ne(e,t,n,r,i){if("function"==typeof t){let o=t.apply(n,r);o instanceof Promise?o.then((t=>ne(e,t,n,r))).catch((e=>K(e,i,t))):e(o)}else e(t)}var re="x-";function ie(e=""){return re+e}var oe={};function ae(e,t){oe[e]=t}function se(e,n,i){let o={},a=Array.from(n).map(de(((e,t)=>o[e]=t))).filter(me).map(function(e,t){return({name:n,value:r})=>{let i=n.match(ge()),o=n.match(/:([a-zA-Z0-9\-:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],s=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map((e=>e.replace(".",""))),expression:r,original:s}}}(o,i)).sort(Ae);return a.map((n=>function(e,n){let i=oe[n.type]||(()=>{}),o=[],[a,s]=function(e){let n=()=>{};return[i=>{let o=t(i);e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach((e=>e()))}),e._x_effects.add(o),n=()=>{void 0!==o&&(e._x_effects.delete(o),r(o))}},()=>{n()}]}(e);o.push(s);let l={Alpine:rt,effect:a,cleanup:e=>o.push(e),evaluateLater:X.bind(X,e),evaluate:J.bind(J,e)},u=()=>o.forEach((e=>e()));!function(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}(e,n.original,u);let c=()=>{e._x_ignore||e._x_ignoreSelf||(i.inline&&i.inline(e,n,l),i=i.bind(i,e,n,l),le?ue.get(ce).push(i):i())};return c.runCleanups=u,c}(e,n)))}var le=!1,ue=new Map,ce=Symbol(),fe=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r});function de(e=(()=>{})){return({name:t,value:n})=>{let{name:r,value:i}=pe.reduce(((e,t)=>t(e)),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var pe=[];function he(e){pe.push(e)}function me({name:e}){return ge().test(e)}var ge=()=>new RegExp(`^${re}([^:^.]+)\\b`),ye="DEFAULT",ve=["ignore","ref","data","id","bind","init","for","model","transition","show","if",ye,"teleport","element"];function Ae(e,t){let n=-1===ve.indexOf(e.type)?ye:e.type,r=-1===ve.indexOf(t.type)?ye:t.type;return ve.indexOf(n)-ve.indexOf(r)}function be(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var xe=[],we=!1;function _e(e){xe.push(e),queueMicrotask((()=>{we||setTimeout((()=>{Ee()}))}))}function Ee(){for(we=!1;xe.length;)xe.shift()()}function ke(e,t){if("function"==typeof ShadowRoot&&e instanceof ShadowRoot)return void Array.from(e.children).forEach((e=>ke(e,t)));let n=!1;if(t(e,(()=>n=!0)),n)return;let r=e.firstElementChild;for(;r;)ke(r,t),r=r.nextElementSibling}function Oe(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var Se=[],Te=[];function Ce(){return Se.map((e=>e()))}function Le(){return Se.concat(Te).map((e=>e()))}function Pe(e){Se.push(e)}function je(e){Te.push(e)}function Re(e,t=!1){return Ne(e,(e=>{if((t?Le():Ce()).some((t=>e.matches(t))))return!0}))}function Ne(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),e.parentElement)return Ne(e.parentElement,t)}}function Me(e,t=ke){!function(n){le=!0;let r=Symbol();ce=r,ue.set(r,[]);let i=()=>{for(;ue.get(r).length;)ue.get(r).shift()();ue.delete(r)};t(e,((e,t)=>{se(e,e.attributes).forEach((e=>e())),e._x_ignore&&t()})),le=!1,i()}()}function Ie(e,t){return Array.isArray(t)?Qe(e,t.join(" ")):"object"==typeof t&&null!==t?function(e,t){let n=e=>e.split(" ").filter(Boolean),r=Object.entries(t).flatMap((([e,t])=>!!t&&n(e))).filter(Boolean),i=Object.entries(t).flatMap((([e,t])=>!t&&n(e))).filter(Boolean),o=[],a=[];return i.forEach((t=>{e.classList.contains(t)&&(e.classList.remove(t),a.push(t))})),r.forEach((t=>{e.classList.contains(t)||(e.classList.add(t),o.push(t))})),()=>{a.forEach((t=>e.classList.add(t))),o.forEach((t=>e.classList.remove(t)))}}(e,t):"function"==typeof t?Ie(e,t()):Qe(e,t)}function Qe(e,t){return t=!0===t?t="":t||"",n=t.split(" ").filter((t=>!e.classList.contains(t))).filter(Boolean),e.classList.add(...n),()=>{e.classList.remove(...n)};var n}function De(e,t){return"object"==typeof t&&null!==t?function(e,t){let n={};return Object.entries(t).forEach((([t,r])=>{n[t]=e.style[t],e.style.setProperty(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r)})),setTimeout((()=>{0===e.style.length&&e.removeAttribute("style")})),()=>{De(e,n)}}(e,t):function(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}(e,t)}function Fe(e,t=(()=>{})){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}function Be(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(n=(()=>{}),r=(()=>{})){ze(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=(()=>{}),r=(()=>{})){ze(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}function $e(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:$e(t)}function ze(e,t,{during:n,start:r,end:i}={},o=(()=>{}),a=(()=>{})){if(e._x_transitioning&&e._x_transitioning.cancel(),0===Object.keys(n).length&&0===Object.keys(r).length&&0===Object.keys(i).length)return o(),void a();let s,l,u;!function(e,t){let n,r,i,o=Fe((()=>{R((()=>{n=!0,r||t.before(),i||(t.end(),Ee()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning}))}));e._x_transitioning={beforeCancels:[],beforeCancel(e){this.beforeCancels.push(e)},cancel:Fe((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},R((()=>{t.start(),t.during()})),we=!0,requestAnimationFrame((()=>{if(n)return;let o=1e3*Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s","")),a=1e3*Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(e).animationDuration.replace("s",""))),R((()=>{t.before()})),r=!0,requestAnimationFrame((()=>{n||(R((()=>{t.end()})),Ee(),setTimeout(e._x_transitioning.finish,o+a),i=!0)}))}))}(e,{start(){s=t(e,r)},during(){l=t(e,n)},before:o,end(){s(),u=t(e,i)},after:a,cleanup(){l(),u()}})}function Ve(e,t,n){if(-1===e.indexOf(t))return n;const r=e[e.indexOf(t)+1];if(!r)return n;if("scale"===t&&isNaN(r))return n;if("duration"===t){let e=r.match(/([0-9]+)ms/);if(e)return e[1]}return"origin"===t&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}ae("transition",((e,{value:t,modifiers:n,expression:r},{evaluate:i})=>{"function"==typeof r&&(r=i(r)),r?function(e,t,n){Be(e,Ie,""),{enter:t=>{e._x_transition.enter.during=t},"enter-start":t=>{e._x_transition.enter.start=t},"enter-end":t=>{e._x_transition.enter.end=t},leave:t=>{e._x_transition.leave.during=t},"leave-start":t=>{e._x_transition.leave.start=t},"leave-end":t=>{e._x_transition.leave.end=t}}[n](t)}(e,r,t):function(e,t,n){Be(e,De);let r=!t.includes("in")&&!t.includes("out")&&!n,i=r||t.includes("in")||["enter"].includes(n),o=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter(((e,n)=>n<t.indexOf("out")))),t.includes("out")&&!r&&(t=t.filter(((e,n)=>n>t.indexOf("out"))));let a=!t.includes("opacity")&&!t.includes("scale"),s=a||t.includes("opacity")?0:1,l=a||t.includes("scale")?Ve(t,"scale",95)/100:1,u=Ve(t,"delay",0),c=Ve(t,"origin","center"),f="opacity, transform",d=Ve(t,"duration",150)/1e3,p=Ve(t,"duration",75)/1e3,h="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(e._x_transition.enter.during={transformOrigin:c,transitionDelay:u,transitionProperty:f,transitionDuration:`${d}s`,transitionTimingFunction:h},e._x_transition.enter.start={opacity:s,transform:`scale(${l})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(e._x_transition.leave.during={transformOrigin:c,transitionDelay:u,transitionProperty:f,transitionDuration:`${p}s`,transitionTimingFunction:h},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:s,transform:`scale(${l})`})}(e,n,t)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){let i=()=>{"visible"===document.visibilityState?requestAnimationFrame(n):setTimeout(n)};t?e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):i():e._x_transition?e._x_transition.in(n):i():(e._x_hidePromise=e._x_transition?new Promise(((t,n)=>{e._x_transition.out((()=>{}),(()=>t(r))),e._x_transitioning.beforeCancel((()=>n({isFromCancelledTransition:!0})))})):Promise.resolve(r),queueMicrotask((()=>{let t=$e(e);t?(t._x_hideChildren||(t._x_hideChildren=[]),t._x_hideChildren.push(e)):queueMicrotask((()=>{let t=e=>{let n=Promise.all([e._x_hidePromise,...(e._x_hideChildren||[]).map(t)]).then((([e])=>e()));return delete e._x_hidePromise,delete e._x_hideChildren,n};t(e).catch((e=>{if(!e.isFromCancelledTransition)throw e}))}))})))};var He=!1;function We(e,t=(()=>{})){return(...n)=>He?t(...n):e(...n)}function qe(t,n,r,i=[]){switch(t._x_bindings||(t._x_bindings=e({})),t._x_bindings[n]=r,n=i.includes("camel")?n.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase())):n){case"value":!function(e,t){if("radio"===e.type)void 0===e.attributes.value&&(e.value=t),window.fromModel&&(e.checked=Ue(e.value,t));else if("checkbox"===e.type)Number.isInteger(t)?e.value=t:Number.isInteger(t)||Array.isArray(t)||"boolean"==typeof t||[null,void 0].includes(t)?Array.isArray(t)?e.checked=t.some((t=>Ue(t,e.value))):e.checked=!!t:e.value=String(t);else if("SELECT"===e.tagName)!function(e,t){const n=[].concat(t).map((e=>e+""));Array.from(e.options).forEach((e=>{e.selected=n.includes(e.value)}))}(e,t);else{if(e.value===t)return;e.value=t}}(t,r);break;case"style":!function(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=De(e,t)}(t,r);break;case"class":!function(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Ie(e,t)}(t,r);break;default:!function(e,t,n){[null,void 0,!1].includes(n)&&function(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}(t)?e.removeAttribute(t):(Ye(t)&&(n=t),function(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}(e,t,n))}(t,n,r)}}function Ue(e,t){return e==t}function Ye(e){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(e)}function Ge(e,t){var n;return function(){var r=this,i=arguments,o=function(){n=null,e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}function Ke(e,t){let n;return function(){let r=this,i=arguments;n||(e.apply(r,i),n=!0,setTimeout((()=>n=!1),t))}}var Je,Xe,Ze={},et=!1,tt={},nt={},rt={get reactive(){return e},get release(){return r},get effect(){return t},get raw(){return i},version:"3.8.1",flushAndStopDeferringMutations:function(){N=!1,I(M),M=[]},disableEffectScheduling:function(e){w=!1,e(),w=!0},setReactivityEngine:function(n){e=n.reactive,r=n.release,t=e=>n.effect(e,{scheduler:e=>{w?function(e){var t;t=e,b.includes(t)||b.push(t),A||v||(v=!0,queueMicrotask(x))}(e):e()}}),i=n.raw},closestDataStack:B,skipDuringClone:We,addRootSelector:Pe,addInitSelector:je,addScopeToNode:D,deferMutations:function(){N=!0},mapAttributes:he,evaluateLater:X,setEvaluator:function(e){Z=e},mergeProxies:z,findClosest:Ne,closestRoot:Re,interceptor:H,transition:ze,setStyles:De,mutateDom:R,directive:ae,throttle:Ke,debounce:Ge,evaluate:J,initTree:Me,nextTick:_e,prefixed:ie,prefix:function(e){re=e},plugin:function(e){e(rt)},magic:U,store:function(t,n){if(et||(Ze=e(Ze),et=!0),void 0===n)return Ze[t];Ze[t]=n,"object"==typeof n&&null!==n&&n.hasOwnProperty("init")&&"function"==typeof n.init&&Ze[t].init(),V(Ze[t])},start:function(){var e;document.body||Oe("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),be(document,"alpine:init"),be(document,"alpine:initializing"),L(),e=e=>Me(e,ke),O.push(e),k.push((e=>{ke(e,(e=>S(e)))})),E.push(((e,t)=>{se(e,t).forEach((e=>e()))})),Array.from(document.querySelectorAll(Le())).filter((e=>!Re(e.parentElement,!0))).forEach((e=>{Me(e)})),be(document,"alpine:initialized")},clone:function(e,n){n._x_dataStack||(n._x_dataStack=e._x_dataStack),He=!0,function(e){let i=t;_(((e,t)=>{let n=i(e);return r(n),()=>{}})),function(e){let t=!1;Me(e,((e,n)=>{ke(e,((e,r)=>{if(t&&function(e){return Ce().some((t=>e.matches(t)))}(e))return r();t=!0,n(e,r)}))}))}(n),_(i)}(),He=!1},bound:function(e,t,n){if(e._x_bindings&&void 0!==e._x_bindings[t])return e._x_bindings[t];let r=e.getAttribute(t);return null===r?"function"==typeof n?n():n:Ye(t)?!![t,"true"].includes(r):""===r||r},$data:Q,data:function(e,t){nt[e]=t},bind:function(e,t){tt[e]="function"!=typeof t?()=>t:t}},it=(Je=y(),((e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of f(t))c.call(e,r)||"default"===r||l(e,r,{get:()=>t[r],enumerable:!(n=d(t,r))||n.enumerable});return e})((Xe=l(null!=Je?s(u(Je)):{},"default",Je&&Je.__esModule&&"default"in Je?{get:()=>Je.default,enumerable:!0}:{value:Je,enumerable:!0}),l(Xe,"__esModule",{value:!0})),Je));U("nextTick",(()=>_e)),U("dispatch",(e=>be.bind(be,e))),U("watch",(e=>(n,r)=>{let i,o=X(e,n),a=!0;t((()=>o((e=>{JSON.stringify(e),a?i=e:queueMicrotask((()=>{r(e,i),i=e})),a=!1}))))})),U("store",(function(){return Ze})),U("data",(e=>Q(e))),U("root",(e=>Re(e))),U("refs",(e=>(e._x_refs_proxy||(e._x_refs_proxy=z(function(e){let t=[],n=e;for(;n;)n._x_refs&&t.push(n._x_refs),n=n.parentNode;return t}(e))),e._x_refs_proxy)));var ot={};function at(e){return ot[e]||(ot[e]=0),++ot[e]}U("id",(e=>(t,n=null)=>{let r=function(e,t){return Ne(e,(e=>{if(e._x_ids&&e._x_ids[t])return!0}))}(e,t),i=r?r._x_ids[t]:at(t);return n?`${t}-${i}-${n}`:`${t}-${i}`})),U("el",(e=>e)),ae("teleport",((e,{expression:t},{cleanup:n})=>{"template"!==e.tagName.toLowerCase()&&Oe("x-teleport can only be used on a <template> tag",e);let r=document.querySelector(t);r||Oe(`Cannot find x-teleport element for selector: "${t}"`);let i=e.content.cloneNode(!0).firstElementChild;e._x_teleport=i,i._x_teleportBack=e,e._x_forwardEvents&&e._x_forwardEvents.forEach((t=>{i.addEventListener(t,(t=>{t.stopPropagation(),e.dispatchEvent(new t.constructor(t.type,t))}))})),D(i,{},e),R((()=>{r.appendChild(i),Me(i),i._x_ignore=!0})),n((()=>i.remove()))}));var st=()=>{};function lt(e,t,n,r){let i=e,o=e=>r(e),a={},s=(e,t)=>n=>t(e,n);if(n.includes("dot")&&(t=t.replace(/-/g,".")),n.includes("camel")&&(t=t.toLowerCase().replace(/-(\w)/g,((e,t)=>t.toUpperCase()))),n.includes("passive")&&(a.passive=!0),n.includes("capture")&&(a.capture=!0),n.includes("window")&&(i=window),n.includes("document")&&(i=document),n.includes("prevent")&&(o=s(o,((e,t)=>{t.preventDefault(),e(t)}))),n.includes("stop")&&(o=s(o,((e,t)=>{t.stopPropagation(),e(t)}))),n.includes("self")&&(o=s(o,((t,n)=>{n.target===e&&t(n)}))),(n.includes("away")||n.includes("outside"))&&(i=document,o=s(o,((t,n)=>{e.contains(n.target)||e.offsetWidth<1&&e.offsetHeight<1||!1!==e._x_isShown&&t(n)}))),o=s(o,((e,r)=>{(function(e){return["keydown","keyup"].includes(e)})(t)&&function(e,t){let n=t.filter((e=>!["window","document","prevent","stop","once"].includes(e)));if(n.includes("debounce")){let e=n.indexOf("debounce");n.splice(e,ut((n[e+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===n.length)return!1;if(1===n.length&&ct(e.key).includes(n[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter((e=>n.includes(e)));return n=n.filter((e=>!r.includes(e))),!(r.length>0&&r.filter((t=>("cmd"!==t&&"super"!==t||(t="meta"),e[`${t}Key`]))).length===r.length&&ct(e.key).includes(n[0]))}(r,n)||e(r)})),n.includes("debounce")){let e=n[n.indexOf("debounce")+1]||"invalid-wait",t=ut(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=Ge(o,t)}if(n.includes("throttle")){let e=n[n.indexOf("throttle")+1]||"invalid-wait",t=ut(e.split("ms")[0])?Number(e.split("ms")[0]):250;o=Ke(o,t)}return n.includes("once")&&(o=s(o,((e,n)=>{e(n),i.removeEventListener(t,o,a)}))),i.addEventListener(t,o,a),()=>{i.removeEventListener(t,o,a)}}function ut(e){return!Array.isArray(e)&&!isNaN(e)}function ct(e){if(!e)return[];e=e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let t={ctrl:"control",slash:"/",space:"-",spacebar:"-",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"="};return t[e]=e,Object.keys(t).map((n=>{if(t[n]===e)return n})).filter((e=>e))}function ft(e){let t=e?parseFloat(e):null;return n=t,Array.isArray(n)||isNaN(n)?e:t;var n}function dt(e,t,n,r){let i={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map((e=>e.trim())).forEach(((e,n)=>{i[e]=t[n]})):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&"object"==typeof t?e.item.replace("{","").replace("}","").split(",").map((e=>e.trim())).forEach((e=>{i[e]=t[e]})):i[e.item]=t,e.index&&(i[e.index]=n),e.collection&&(i[e.collection]=r),i}function pt(){}st.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n((()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore}))},ae("ignore",st),ae("effect",((e,{expression:t},{effect:n})=>n(X(e,t)))),ae("model",((e,{modifiers:t,expression:n},{effect:r,cleanup:i})=>{let o=X(e,n),a=X(e,`${n} = rightSideOfExpression($event, ${n})`);var s="select"===e.tagName.toLowerCase()||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input";let l=function(e,t,n){return"radio"===e.type&&R((()=>{e.hasAttribute("name")||e.setAttribute("name",n)})),(n,r)=>R((()=>{if(n instanceof CustomEvent&&void 0!==n.detail)return n.detail||n.target.value;if("checkbox"===e.type){if(Array.isArray(r)){let e=t.includes("number")?ft(n.target.value):n.target.value;return n.target.checked?r.concat([e]):r.filter((t=>!(t==e)))}return n.target.checked}if("select"===e.tagName.toLowerCase()&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map((e=>ft(e.value||e.text))):Array.from(n.target.selectedOptions).map((e=>e.value||e.text));{let e=n.target.value;return t.includes("number")?ft(e):t.includes("trim")?e.trim():e}}))}(e,t,n),u=lt(e,s,t,(e=>{a((()=>{}),{scope:{$event:e,rightSideOfExpression:l}})}));i((()=>u()));let c=X(e,`${n} = __placeholder`);e._x_model={get(){let e;return o((t=>e=t)),e},set(e){c((()=>{}),{scope:{__placeholder:e}})}},e._x_forceModelUpdate=()=>{o((t=>{void 0===t&&n.match(/\./)&&(t=""),window.fromModel=!0,R((()=>qe(e,"value",t))),delete window.fromModel}))},r((()=>{t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate()}))})),ae("cloak",(e=>queueMicrotask((()=>R((()=>e.removeAttribute(ie("cloak")))))))),je((()=>`[${ie("init")}]`)),ae("init",We(((e,{expression:t})=>"string"==typeof t?!!t.trim()&&J(e,t,{}):J(e,t,{})))),ae("text",((e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n((()=>{i((t=>{R((()=>{e.textContent=t}))}))}))})),ae("html",((e,{expression:t},{effect:n,evaluateLater:r})=>{let i=r(t);n((()=>{i((t=>{e.innerHTML=t}))}))})),he(fe(":",ie("bind:"))),ae("bind",((e,{value:t,modifiers:n,expression:r,original:i},{effect:o})=>{if(!t)return function(e,t,n,r){let i={};var o;o=i,Object.entries(tt).forEach((([e,t])=>{Object.defineProperty(o,e,{get:()=>(...e)=>t(...e)})}));let a=X(e,t),s=[];for(;s.length;)s.pop()();a((t=>{let r=Object.entries(t).map((([e,t])=>({name:e,value:t}))),i=function(e){return Array.from(e).map(de()).filter((e=>!me(e)))}(r);r=r.map((e=>i.find((t=>t.name===e.name))?{name:`x-bind:${e.name}`,value:`"${e.value}"`}:e)),se(e,r,n).map((e=>{s.push(e.runCleanups),e()}))}),{scope:i})}(e,r,i);if("key"===t)return function(e,t){e._x_keyExpression=t}(e,r);let a=X(e,r);o((()=>a((i=>{void 0===i&&r.match(/\./)&&(i=""),R((()=>qe(e,t,i,n)))}))))})),Pe((()=>`[${ie("data")}]`)),ae("data",We(((t,{expression:n},{cleanup:r})=>{n=""===n?"{}":n;let i={};Y(i,t);let o={};var a,s;a=o,s=i,Object.entries(nt).forEach((([e,t])=>{Object.defineProperty(a,e,{get:()=>(...e)=>t.bind(s)(...e),enumerable:!1})}));let l=J(t,n,{scope:o});void 0===l&&(l={}),Y(l,t);let u=e(l);V(u);let c=D(t,u);u.init&&J(t,u.init),r((()=>{c(),u.destroy&&J(t,u.destroy)}))}))),ae("show",((e,{modifiers:t,expression:n},{effect:r})=>{let i,o=X(e,n),a=()=>R((()=>{e.style.display="none",e._x_isShown=!1})),s=()=>R((()=>{1===e.style.length&&"none"===e.style.display?e.removeAttribute("style"):e.style.removeProperty("display"),e._x_isShown=!0})),l=()=>setTimeout(s),u=Fe((e=>e?s():a()),(t=>{"function"==typeof e._x_toggleAndCascadeWithTransitions?e._x_toggleAndCascadeWithTransitions(e,t,s,a):t?l():a()})),c=!0;r((()=>o((e=>{(c||e!==i)&&(t.includes("immediate")&&(e?l():a()),u(e),i=e,c=!1)}))))})),ae("for",((t,{expression:n},{effect:r,cleanup:i})=>{let o=function(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=e.match(/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/);if(!n)return;let r={};r.items=n[2].trim();let i=n[1].replace(/^\s*\(|\)\s*$/g,"").trim(),o=i.match(t);return o?(r.item=i.replace(t,"").trim(),r.index=o[1].trim(),o[2]&&(r.collection=o[2].trim())):r.item=i,r}(n),a=X(t,o.items),s=X(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},r((()=>function(t,n,r,i){let o=t;r((r=>{var a;a=r,!Array.isArray(a)&&!isNaN(a)&&r>=0&&(r=Array.from(Array(r).keys(),(e=>e+1))),void 0===r&&(r=[]);let s=t._x_lookup,l=t._x_prevKeys,u=[],c=[];if("object"!=typeof(f=r)||Array.isArray(f))for(let e=0;e<r.length;e++){let t=dt(n,r[e],e,r);i((e=>c.push(e)),{scope:{index:e,...t}}),u.push(t)}else r=Object.entries(r).map((([e,t])=>{let o=dt(n,t,e,r);i((e=>c.push(e)),{scope:{index:e,...o}}),u.push(o)}));var f;let d=[],p=[],h=[],m=[];for(let e=0;e<l.length;e++){let t=l[e];-1===c.indexOf(t)&&h.push(t)}l=l.filter((e=>!h.includes(e)));let g="template";for(let e=0;e<c.length;e++){let t=c[e],n=l.indexOf(t);if(-1===n)l.splice(e,0,t),d.push([g,e]);else if(n!==e){let t=l.splice(e,1)[0],r=l.splice(n-1,1)[0];l.splice(e,0,r),l.splice(n,0,t),p.push([t,r])}else m.push(t);g=t}for(let e=0;e<h.length;e++){let t=h[e];s[t].remove(),s[t]=null,delete s[t]}for(let e=0;e<p.length;e++){let[t,n]=p[e],r=s[t],i=s[n],o=document.createElement("div");R((()=>{i.after(o),r.after(i),i._x_currentIfEl&&i.after(i._x_currentIfEl),o.before(r),r._x_currentIfEl&&r.after(r._x_currentIfEl),o.remove()})),F(i,u[c.indexOf(n)])}for(let t=0;t<d.length;t++){let[n,r]=d[t],i="template"===n?o:s[n];i._x_currentIfEl&&(i=i._x_currentIfEl);let a=u[r],l=c[r],f=document.importNode(o.content,!0).firstElementChild;D(f,e(a),o),R((()=>{i.after(f),Me(f)})),"object"==typeof l&&Oe("x-for key cannot be an object, it must be a string or an integer",o),s[l]=f}for(let e=0;e<m.length;e++)F(s[m[e]],u[c.indexOf(m[e])]);o._x_prevKeys=c}))}(t,o,a,s))),i((()=>{Object.values(t._x_lookup).forEach((e=>e.remove())),delete t._x_prevKeys,delete t._x_lookup}))})),pt.inline=(e,{expression:t},{cleanup:n})=>{let r=Re(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n((()=>delete r._x_refs[t]))},ae("ref",pt),ae("if",((e,{expression:t},{effect:n,cleanup:r})=>{let i=X(e,t);n((()=>i((t=>{t?(()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let t=e.content.cloneNode(!0).firstElementChild;D(t,{},e),R((()=>{e.after(t),Me(t)})),e._x_currentIfEl=t,e._x_undoIf=()=>{t.remove(),delete e._x_currentIfEl}})():e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)})))),r((()=>e._x_undoIf&&e._x_undoIf()))})),ae("id",((e,{expression:t},{evaluate:n})=>{n(t).forEach((t=>function(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=at(t))}(e,t)))})),he(fe("@",ie("on:"))),ae("on",We(((e,{value:t,modifiers:n,expression:r},{cleanup:i})=>{let o=r?X(e,r):()=>{};"template"===e.tagName.toLowerCase()&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let a=lt(e,t,n,(e=>{o((()=>{}),{scope:{$event:e},params:[e]})}));i((()=>a()))}))),rt.setEvaluator(ee),rt.setReactivityEngine({reactive:it.reactive,effect:it.effect,release:it.stop,raw:it.toRaw});var ht=rt,mt=n(336);const gt=n.n(mt)()((function(){this.field("name"),this.field("version"),this.field("repo"),this.field("component"),package_data.forEach((function(e){this.add(e)}),this)}));var yt=n(152),vt=n.n(yt),At="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,bt=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(At&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),xt=At&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),bt))}};function wt(e){return e&&"[object Function]"==={}.toString.call(e)}function _t(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Et(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function kt(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=_t(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:kt(Et(e))}function Ot(e){return e&&e.referenceNode?e.referenceNode:e}var St=At&&!(!window.MSInputMethodContext||!document.documentMode),Tt=At&&/MSIE 10/.test(navigator.userAgent);function Ct(e){return 11===e?St:10===e?Tt:St||Tt}function Lt(e){if(!e)return document.documentElement;for(var t=Ct(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===_t(n,"position")?Lt(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Pt(e){return null!==e.parentNode?Pt(e.parentNode):e}function jt(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&Lt(a.firstElementChild)!==a?Lt(l):l;var u=Pt(e);return u.host?jt(u.host,t):jt(e,Pt(t).host)}function Rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function Nt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Rt(t,"top"),i=Rt(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function Mt(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function It(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Ct(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function Qt(e){var t=e.body,n=e.documentElement,r=Ct(10)&&getComputedStyle(n);return{height:It("Height",t,n,r),width:It("Width",t,n,r)}}var Dt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ft=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Bt=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},$t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function zt(e){return $t({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Vt(e){var t={};try{if(Ct(10)){t=e.getBoundingClientRect();var n=Rt(e,"top"),r=Rt(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?Qt(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,u=e.offsetHeight-s;if(l||u){var c=_t(e);l-=Mt(c,"x"),u-=Mt(c,"y"),i.width-=l,i.height-=u}return zt(i)}function Ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Ct(10),i="HTML"===t.nodeName,o=Vt(e),a=Vt(t),s=kt(e),l=_t(t),u=parseFloat(l.borderTopWidth),c=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=zt({top:o.top-a.top-u,left:o.left-a.left-c,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!r&&i){var d=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);f.top-=u-d,f.bottom-=u-d,f.left-=c-p,f.right-=c-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=Nt(f,t)),f}function Wt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Ht(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Rt(n),s=t?0:Rt(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return zt(l)}function qt(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===_t(e,"position"))return!0;var n=Et(e);return!!n&&qt(n)}function Ut(e){if(!e||!e.parentElement||Ct())return document.documentElement;for(var t=e.parentElement;t&&"none"===_t(t,"transform");)t=t.parentElement;return t||document.documentElement}function Yt(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?Ut(e):jt(e,Ot(t));if("viewport"===r)o=Wt(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=kt(Et(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Ht(s,a,i);if("HTML"!==s.nodeName||qt(a))o=l;else{var u=Qt(e.ownerDocument),c=u.height,f=u.width;o.top+=l.top-l.marginTop,o.bottom=c+l.top,o.left+=l.left-l.marginLeft,o.right=f+l.left}}var d="number"==typeof(n=n||0);return o.left+=d?n:n.left||0,o.top+=d?n:n.top||0,o.right-=d?n:n.right||0,o.bottom-=d?n:n.bottom||0,o}function Gt(e){return e.width*e.height}function Kt(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Yt(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return $t({key:e},s[e],{area:Gt(s[e])})})).sort((function(e,t){return t.area-e.area})),u=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),c=u.length>0?u[0].key:l[0].key,f=e.split("-")[1];return c+(f?"-"+f:"")}function Jt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?Ut(t):jt(t,Ot(n));return Ht(n,i,r)}function Xt(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Zt(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function en(e,t,n){n=n.split("-")[0];var r=Xt(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[u]:t[Zt(s)],i}function tn(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function nn(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e.name===n}));var r=tn(e,(function(e){return e.name===n}));return e.indexOf(r)}(e,0,n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&wt(n)&&(t.offsets.popper=zt(t.offsets.popper),t.offsets.reference=zt(t.offsets.reference),t=n(t,e))})),t}function rn(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Jt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Kt(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=en(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=nn(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function on(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function an(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function sn(){return this.state.isDestroyed=!0,on(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[an("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function ln(e){var t=e.ownerDocument;return t?t.defaultView:window}function un(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||un(kt(o.parentNode),t,n,r),r.push(o)}function cn(e,t,n,r){n.updateBound=r,ln(e).addEventListener("resize",n.updateBound,{passive:!0});var i=kt(e);return un(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function fn(){this.state.eventsEnabled||(this.state=cn(this.reference,this.options,this.state,this.scheduleUpdate))}function dn(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,ln(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function pn(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function hn(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&pn(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var mn=At&&/Firefox/i.test(navigator.userAgent);function gn(e,t,n){var r=tn(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var yn=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],vn=yn.slice(3);function An(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=vn.indexOf(e),r=vn.slice(n+1).concat(vn.slice(0,n));return t?r.reverse():r}var bn={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:Bt({},l,o[l]),end:Bt({},l,o[l]+o[u]-a[u])};e.offsets.popper=$t({},a,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,i=e.placement,o=e.offsets,a=o.popper,s=o.reference,l=i.split("-")[0];return n=pn(+r)?[+r,0]:function(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(tn(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];return o?0===a.indexOf("%")?zt("%p"===a?n:r)[t]/100*o:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:e}(e,i,t,n)}))})),u.forEach((function(e,t){e.forEach((function(n,r){pn(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}(r,a,s,l),"left"===l?(a.top+=n[0],a.left-=n[1]):"right"===l?(a.top+=n[0],a.left+=n[1]):"top"===l?(a.left+=n[0],a.top-=n[1]):"bottom"===l&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Lt(e.instance.popper);e.instance.reference===n&&(n=Lt(n));var r=an("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=Yt(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,f={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),Bt({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),Bt({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=$t({},c,f[t](e))})),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[u]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!gn(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),d=l?"left":"top",p=l?"bottom":"right",h=Xt(r)[u];s[p]-h<a[f]&&(e.offsets.popper[f]-=a[f]-(s[p]-h)),s[f]+h>a[p]&&(e.offsets.popper[f]+=s[f]+h-a[p]),e.offsets.popper=zt(e.offsets.popper);var m=s[f]+s[u]/2-h/2,g=_t(e.instance.popper),y=parseFloat(g["margin"+c]),v=parseFloat(g["border"+c+"Width"]),A=m-e.offsets.popper[f]-y-v;return A=Math.max(Math.min(a[u]-h,A),0),e.arrowElement=r,e.offsets.arrow=(Bt(n={},f,Math.round(A)),Bt(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(on(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Yt(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Zt(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[r,i];break;case"clockwise":a=An(r);break;case"counterclockwise":a=An(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=Zt(r);var u=e.offsets.popper,c=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(c.left)||"right"===r&&f(u.left)<f(c.right)||"top"===r&&f(u.bottom)>f(c.top)||"bottom"===r&&f(u.top)<f(c.bottom),p=f(u.left)<f(n.left),h=f(u.right)>f(n.right),m=f(u.top)<f(n.top),g=f(u.bottom)>f(n.bottom),y="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),A=!!t.flipVariations&&(v&&"start"===o&&p||v&&"end"===o&&h||!v&&"start"===o&&m||!v&&"end"===o&&g),b=!!t.flipVariationsByContent&&(v&&"start"===o&&h||v&&"end"===o&&p||!v&&"start"===o&&g||!v&&"end"===o&&m),x=A||b;(d||y||x)&&(e.flipped=!0,(d||y)&&(r=a[l+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=$t({},e.offsets.popper,en(e.instance.popper,e.offsets.reference,e.placement)),e=nn(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=Zt(t),e.offsets.popper=zt(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!gn(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=tn(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=tn(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0!==o?o:t.gpuAcceleration,u=Lt(e.instance.popper),c=Vt(u),f={position:i.position},d=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(i.width),u=o(r.width),c=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?c||f||l%2==u%2?o:a:s,p=t?o:s;return{left:d(l%2==1&&u%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!mn),p="bottom"===n?"top":"bottom",h="right"===r?"left":"right",m=an("transform");if(s="bottom"===p?"HTML"===u.nodeName?-u.clientHeight+d.bottom:-c.height+d.bottom:d.top,a="right"===h?"HTML"===u.nodeName?-u.clientWidth+d.right:-c.width+d.right:d.left,l&&m)f[m]="translate3d("+a+"px, "+s+"px, 0)",f[p]=0,f[h]=0,f.willChange="transform";else{var g="bottom"===p?-1:1,y="right"===h?-1:1;f[p]=s*g,f[h]=a*y,f.willChange=p+", "+h}var v={"x-placement":e.placement};return e.attributes=$t({},v,e.attributes),e.styles=$t({},f,e.styles),e.arrowStyles=$t({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return hn(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&hn(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=Jt(i,t,e,n.positionFixed),a=Kt(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),hn(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},xn=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Dt(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=xt(this.update.bind(this)),this.options=$t({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys($t({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=$t({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return $t({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&wt(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Ft(e,[{key:"update",value:function(){return rn.call(this)}},{key:"destroy",value:function(){return sn.call(this)}},{key:"enableEventListeners",value:function(){return fn.call(this)}},{key:"disableEventListeners",value:function(){return dn.call(this)}}]),e}();xn.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,xn.placements=yn,xn.Defaults=bn;const wn=xn;function _n(){return _n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_n.apply(this,arguments)}function En(e,t){e.innerHTML=t}function kn(e,t){return{}.hasOwnProperty.call(e,t)}function On(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Sn(e,t){return e&&e.modifiers&&e.modifiers[t]}function Tn(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Cn(e){return Tn(e,"Element")}function Ln(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Pn(e,t,n,r){e.filter((function(e){return e.name===t}))[0][n]=r}function jn(){return document.createElement("div")}function Rn(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Nn(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Mn(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function In(e,t,n){e&&e!==t&&e.apply(void 0,n)}function Qn(e){return[].slice.call(e)}function Dn(e,t){return e.indexOf(t)>-1}function Fn(e){return e.split(/\s+/).filter(Boolean)}function Bn(e){return[].concat(e)}function $n(e,t){-1===e.indexOf(t)&&e.push(t)}function zn(e){return"number"==typeof e?e:parseFloat(e)}function Vn(e,t,n){void 0===t&&(t=5);var r={top:0,right:0,bottom:0,left:0};return Object.keys(r).reduce((function(r,i){return r[i]="number"==typeof t?t:t[i],e===i&&(r[i]="number"==typeof t?t+n:t[e]+n),r}),r)}var Hn=_n({allowHTML:!0,animation:"fade",appendTo:function(){return document.body},aria:"describedby",arrow:!0,boundary:"scrollParent",content:"",delay:0,distance:10,duration:[300,250],flip:!0,flipBehavior:"flip",flipOnUpdate:!1,hideOnClick:!0,ignoreAttributes:!1,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,maxWidth:350,multiple:!1,offset:0,onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",plugins:[],popperOptions:{},role:"tooltip",showOnCreate:!1,theme:"",touch:!0,trigger:"mouseenter focus",triggerTarget:null,updateDuration:0,zIndex:9999},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1}),Wn=Object.keys(Hn),qn=["arrow","boundary","distance","flip","flipBehavior","flipOnUpdate","offset","placement","popperOptions"];function Un(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:i),t}),{});return _n({},e,{},t)}function Yn(e,t){var n=_n({},t,{content:Ln(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Un(_n({},Hn,{plugins:t}))):Wn).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.interactive&&(n.aria=null),n}var Gn={passive:!0},Kn={isTouch:!1},Jn=0;function Xn(){Kn.isTouch||(Kn.isTouch=!0,window.performance&&document.addEventListener("mousemove",Zn))}function Zn(){var e=performance.now();e-Jn<20&&(Kn.isTouch=!1,document.removeEventListener("mousemove",Zn)),Jn=e}function er(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var tr="undefined"!=typeof window&&"undefined"!=typeof document,nr=tr?navigator.userAgent:"",rr=/MSIE |Trident\//.test(nr),ir=tr&&/iPhone|iPad|iPod/.test(navigator.platform);function or(e){var t=e&&ir&&Kn.isTouch;document.body.classList[t?"add":"remove"]("tippy-iOS")}function ar(e){return e.split("-")[0]}function sr(e){e.setAttribute("data-inertia","")}function lr(e){e.setAttribute("data-interactive","")}function ur(e,t){Cn(t.content)?(En(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(e[t.allowHTML?"innerHTML":"textContent"]=t.content)}function cr(e){return{tooltip:e.querySelector(".tippy-tooltip"),content:e.querySelector(".tippy-content"),arrow:e.querySelector(".tippy-arrow")||e.querySelector(".tippy-svg-arrow")}}function fr(e){var t=jn();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",Cn(e)?t.appendChild(e):En(t,e)),t}function dr(e,t,n){var r,i=cr(e),o=i.tooltip,a=i.content,s=i.arrow;e.style.zIndex=""+n.zIndex,o.setAttribute("data-animation",n.animation),o.style.maxWidth="number"==typeof(r=n.maxWidth)?r+"px":r,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),t.content!==n.content&&ur(a,n),!t.arrow&&n.arrow?(o.appendChild(fr(n.arrow)),o.setAttribute("data-arrow","")):t.arrow&&!n.arrow?(o.removeChild(s),o.removeAttribute("data-arrow")):t.arrow!==n.arrow&&(o.removeChild(s),o.appendChild(fr(n.arrow))),!t.interactive&&n.interactive?lr(o):t.interactive&&!n.interactive&&function(e){e.removeAttribute("data-interactive")}(o),!t.inertia&&n.inertia?sr(o):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(o),t.theme!==n.theme&&(hr(o,"remove",t.theme),hr(o,"add",n.theme))}function pr(e,t,n){["transitionend","webkitTransitionEnd"].forEach((function(r){e[t+"EventListener"](r,n)}))}function hr(e,t,n){Fn(n).forEach((function(n){e.classList[t](n+"-theme")}))}var mr=1,gr=[],yr=[];function vr(e,t){var n,r,i,o=Yn(e,_n({},Hn,{},Un(t)));if(!o.multiple&&e._tippy)return null;var a,s,l,u,c,f,d=!1,p=!1,h=!1,m=0,g=[],y=Mn(W,o.interactiveDebounce),v=(c=Bn(o.triggerTarget||e)[0])&&c.ownerDocument||document,A=mr++,b=function(e,t){var n=jn();n.className="tippy-popper",n.style.position="absolute",n.style.top="0",n.style.left="0";var r=jn();r.className="tippy-tooltip",r.id="tippy-"+e,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1"),hr(r,"add",t.theme);var i=jn();return i.className="tippy-content",i.setAttribute("data-state","hidden"),t.interactive&&lr(r),t.arrow&&(r.setAttribute("data-arrow",""),r.appendChild(fr(t.arrow))),t.inertia&&sr(r),ur(i,t),r.appendChild(i),n.appendChild(r),dr(n,t,t),n}(A,o),x=cr(b),w=(f=o.plugins).filter((function(e,t){return f.indexOf(e)===t})),_=x.tooltip,E=x.content,k=[_,E],O={id:A,reference:e,popper:b,popperChildren:x,popperInstance:null,props:o,state:{currentPlacement:null,isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:w,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(!O.state.isDestroyed){R("onBeforeUpdate",[O,t]),V();var n,r,i=O.props,o=Yn(e,_n({},O.props,{},t,{ignoreAttributes:!0}));if(o.ignoreAttributes=(n=t.ignoreAttributes,r=i.ignoreAttributes,void 0!==n?n:r),O.props=o,z(),i.interactiveDebounce!==o.interactiveDebounce&&(I(),y=Mn(W,o.interactiveDebounce)),dr(b,i,o),O.popperChildren=cr(b),i.triggerTarget&&!o.triggerTarget?Bn(i.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded"),M(),O.popperInstance)if(qn.some((function(e){return kn(t,e)&&t[e]!==i[e]}))){var a=O.popperInstance.reference;O.popperInstance.destroy(),G(),O.popperInstance.reference=a,O.state.isVisible&&O.popperInstance.enableEventListeners()}else O.popperInstance.update();R("onAfterUpdate",[O,t])}},setContent:function(e){O.setProps({content:e})},show:function(e){void 0===e&&(e=On(O.props.duration,0,Hn.duration));var t=O.state.isVisible,n=O.state.isDestroyed,r=!O.state.isEnabled,i=Kn.isTouch&&!O.props.touch;t||n||r||i||P().hasAttribute("disabled")||(O.popperInstance||G(),R("onShow",[O],!1),!1!==O.props.onShow(O)&&(D(),b.style.visibility="visible",O.state.isVisible=!0,O.state.isMounted||Rn(k.concat(b),0),s=function(){O.state.isVisible&&(Rn([b],O.props.updateDuration),Rn(k,e),Nn(k,"visible"),N(),M(),$n(yr,O),or(!0),O.state.isMounted=!0,R("onMount",[O]),function(e,t){B(e,(function(){O.state.isShown=!0,R("onShown",[O])}))}(e))},function(){m=0;var e,t=O.props.appendTo,n=P();(e=O.props.interactive&&t===Hn.appendTo||"parent"===t?n.parentNode:Ln(t,[n])).contains(b)||e.appendChild(b),Pn(O.popperInstance.modifiers,"flip","enabled",O.props.flip),O.popperInstance.enableEventListeners(),O.popperInstance.update()}()))},hide:function(e){void 0===e&&(e=On(O.props.duration,1,Hn.duration));var t=!O.state.isVisible&&!d,n=O.state.isDestroyed,r=!O.state.isEnabled&&!d;t||n||r||(R("onHide",[O],!1),(!1!==O.props.onHide(O)||d)&&(F(),b.style.visibility="hidden",O.state.isVisible=!1,O.state.isShown=!1,Rn(k,e),Nn(k,"hidden"),N(),M(),function(e,t){B(e,(function(){!O.state.isVisible&&b.parentNode&&b.parentNode.contains(b)&&(O.popperInstance.disableEventListeners(),O.popperInstance.options.placement=O.props.placement,b.parentNode.removeChild(b),0===(yr=yr.filter((function(e){return e!==O}))).length&&or(!1),O.state.isMounted=!1,R("onHidden",[O]))}))}(e)))},enable:function(){O.state.isEnabled=!0},disable:function(){O.hide(),O.state.isEnabled=!1},destroy:function(){O.state.isDestroyed||(d=!0,O.clearDelayTimeouts(),O.hide(0),V(),delete e._tippy,O.popperInstance&&O.popperInstance.destroy(),d=!1,O.state.isDestroyed=!0,R("onDestroy",[O]))}};e._tippy=O,b._tippy=O;var S=w.map((function(e){return e.fn(O)})),T=e.hasAttribute("aria-expanded");return z(),M(),o.lazy||G(),R("onCreate",[O]),o.showOnCreate&&J(),b.addEventListener("mouseenter",(function(){O.props.interactive&&O.state.isVisible&&O.clearDelayTimeouts()})),b.addEventListener("mouseleave",(function(e){O.props.interactive&&Dn(O.props.trigger,"mouseenter")&&(y(e),v.addEventListener("mousemove",y))})),O;function C(){var e=O.props.touch;return Array.isArray(e)?e:[e,0]}function L(){return"hold"===C()[0]}function P(){return u||e}function j(e){return O.state.isMounted&&!O.state.isVisible||Kn.isTouch||a&&"focus"===a.type?0:On(O.props.delay,e?0:1,Hn.delay)}function R(e,t,n){var r;void 0===n&&(n=!0),S.forEach((function(n){kn(n,e)&&n[e].apply(n,t)})),n&&(r=O.props)[e].apply(r,t)}function N(){var t=O.props.aria;if(t){var n="aria-"+t,r=_.id;Bn(O.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(O.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function M(){T||Bn(O.props.triggerTarget||e).forEach((function(e){O.props.interactive?e.setAttribute("aria-expanded",O.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")}))}function I(){v.body.removeEventListener("mouseleave",X),v.removeEventListener("mousemove",y),gr=gr.filter((function(e){return e!==y}))}function Q(e){if(!O.props.interactive||!b.contains(e.target)){if(P().contains(e.target)){if(Kn.isTouch)return;if(O.state.isVisible&&Dn(O.props.trigger,"click"))return}!0===O.props.hideOnClick&&(p=!1,O.clearDelayTimeouts(),O.hide(),h=!0,setTimeout((function(){h=!1})),O.state.isMounted||F())}}function D(){v.addEventListener("mousedown",Q,!0)}function F(){v.removeEventListener("mousedown",Q,!0)}function B(e,t){function n(e){e.target===_&&(pr(_,"remove",n),t())}if(0===e)return t();pr(_,"remove",l),pr(_,"add",n),l=n}function $(t,n,r){void 0===r&&(r=!1),Bn(O.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),g.push({node:e,eventType:t,handler:n,options:r})}))}function z(){L()&&($("touchstart",H,Gn),$("touchend",q,Gn)),Fn(O.props.trigger).forEach((function(e){if("manual"!==e)switch($(e,H),e){case"mouseenter":$("mouseleave",q);break;case"focus":$(rr?"focusout":"blur",U);break;case"focusin":$("focusout",U)}}))}function V(){g.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),g=[]}function H(e){var t=!1;if(O.state.isEnabled&&!Y(e)&&!h){if(a=e,u=e.currentTarget,M(),!O.state.isVisible&&function(e){return Tn(e,"MouseEvent")}(e)&&gr.forEach((function(t){return t(e)})),"click"!==e.type||Dn(O.props.trigger,"mouseenter")&&!p||!1===O.props.hideOnClick||!O.state.isVisible){var r=C(),i=r[0],o=r[1];Kn.isTouch&&"hold"===i&&o?n=setTimeout((function(){J(e)}),o):J(e)}else t=!0;"click"===e.type&&(p=!t),t&&X(e)}}function W(t){var n=function(t,n){for(;t;){if((r=t)===e||r===b)return t;t=t.parentElement}var r;return null}(t.target);if("mousemove"!==t.type||!n){var r=Qn(b.querySelectorAll(".tippy-popper")).concat(b).map((function(e){var t=e._tippy,n=t.popperChildren.tooltip,r=t.props.interactiveBorder;return{popperRect:e.getBoundingClientRect(),tooltipRect:n.getBoundingClientRect(),interactiveBorder:r}}));(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.tooltipRect,o=e.interactiveBorder,a=Math.min(t.top,i.top),s=Math.max(t.right,i.right),l=Math.max(t.bottom,i.bottom),u=Math.min(t.left,i.left);return a-r>o||r-l>o||u-n>o||n-s>o}))})(r,t)&&(I(),X(t))}}function q(e){if(!(Y(e)||Dn(O.props.trigger,"click")&&p))return O.props.interactive?(v.body.addEventListener("mouseleave",X),v.addEventListener("mousemove",y),$n(gr,y),void y(e)):void X(e)}function U(e){(Dn(O.props.trigger,"focusin")||e.target===P())&&(O.props.interactive&&e.relatedTarget&&b.contains(e.relatedTarget)||X(e))}function Y(e){var t="ontouchstart"in window,n=Dn(e.type,"touch"),r=L();return t&&Kn.isTouch&&r&&!n||Kn.isTouch&&!r&&n}function G(){var t,n=O.props.popperOptions,r=O.popperChildren.arrow,i=Sn(n,"flip"),o=Sn(n,"preventOverflow");function a(e){var n=O.state.currentPlacement;O.state.currentPlacement=e.placement,O.props.flip&&!O.props.flipOnUpdate&&(e.flipped&&(O.popperInstance.options.placement=e.placement),Pn(O.popperInstance.modifiers,"flip","enabled",!1)),_.setAttribute("data-placement",e.placement),!1!==e.attributes["x-out-of-boundaries"]?_.setAttribute("data-out-of-boundaries",""):_.removeAttribute("data-out-of-boundaries");var r=ar(e.placement),i=Dn(["top","bottom"],r),o=Dn(["bottom","right"],r);_.style.top="0",_.style.left="0",_.style[i?"top":"left"]=(o?1:-1)*t+"px",n&&n!==e.placement&&O.popperInstance.update()}var s=_n({eventsEnabled:!1,placement:O.props.placement},n,{modifiers:_n({},n&&n.modifiers,{tippyDistance:{enabled:!0,order:0,fn:function(e){t=function(e,t){var n="string"==typeof t&&Dn(t,"rem"),r=e.documentElement;return r&&n?parseFloat(getComputedStyle(r).fontSize||String(16))*zn(t):zn(t)}(v,O.props.distance);var n=ar(e.placement),r=Vn(n,o&&o.padding,t),a=Vn(n,i&&i.padding,t),s=O.popperInstance.modifiers;return Pn(s,"preventOverflow","padding",r),Pn(s,"flip","padding",a),e}},preventOverflow:_n({boundariesElement:O.props.boundary},o),flip:_n({enabled:O.props.flip,behavior:O.props.flipBehavior},i),arrow:_n({element:r,enabled:!!r},Sn(n,"arrow")),offset:_n({offset:O.props.offset},Sn(n,"offset"))}),onCreate:function(e){a(e),In(n&&n.onCreate,s.onCreate,[e]),K()},onUpdate:function(e){a(e),In(n&&n.onUpdate,s.onUpdate,[e]),K()}});O.popperInstance=new wn(e,b,s)}function K(){0===m?(m++,O.popperInstance.update()):s&&1===m&&(m++,function(e){e.offsetHeight}(b),s())}function J(e){O.clearDelayTimeouts(),O.popperInstance||G(),e&&R("onTrigger",[O,e]),D();var t=j(!0);t?n=setTimeout((function(){O.show()}),t):O.show()}function X(e){if(O.clearDelayTimeouts(),R("onUntrigger",[O,e]),O.state.isVisible){if(!(Dn(O.props.trigger,"mouseenter")&&Dn(O.props.trigger,"click")&&Dn(["mouseleave","mousemove"],e.type)&&p)){var t=j(!1);t?r=setTimeout((function(){O.state.isVisible&&O.hide()}),t):i=requestAnimationFrame((function(){O.hide()}))}}else F()}}function Ar(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]),n=Hn.plugins.concat(t.plugins||n),document.addEventListener("touchstart",Xn,_n({},Gn,{capture:!0})),window.addEventListener("blur",er);var r,i=_n({},t,{plugins:n}),o=(r=e,Cn(r)?[r]:function(e){return Tn(e,"NodeList")}(r)?Qn(r):Array.isArray(r)?r:Qn(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&vr(t,i);return n&&e.push(n),e}),[]);return Cn(e)?o[0]:o}Ar.version="5.2.1",Ar.defaultProps=Hn,Ar.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Hn[t]=e[t]}))},Ar.currentInput=Kn,(new(a())).add(),$(document).ready((function(){$(".collapse-trigger").click((function(){var e=$(this).attr("data-target");if(e){var t=$(document).find("#"+e);$(t).toggleClass("collapsed")}})),$(".highlight > pre").each((function(e){if(!$(this).parent().hasClass("no-select-button")){var t="codeblock"+(e+1);$(this).find("code").attr("id",t);var n=document.createElement("a");n.setAttribute("type","button"),n.setAttribute("class","btn btn-copy-code"),n.setAttribute("data-clipboard-target","#"+t),n.innerHTML='<i class="far fa-file-code fa-2x"></i>',this.insertBefore(n,this.firstChild),Ar(n,{trigger:"manual",content:"Copied!",placement:"left"})}})),new(vt())(".btn-copy-code").on("success",(function(e){var t=e.trigger._tippy;e.clearSelection(),t.show(),setTimeout((function(){t.hide()}),1e3,t)}))})),ht.data("searchComponent",(()=>({show:!1,query:"",getResults(){if(this.query.length<1)return[];var e=gt.search(this.query).slice(0,10).map((function(e){return package_data.filter((function(t,n,r){return t.id==e.ref}))[0]}));return this.open(),e},toggle(){this.show=!this.show},open(){this.show=!0},close(){this.show=!1},isOpen(){return this.show}}))),ht.start()})()})(); |