argumentaire-IA/site/assets/javascripts/bundle.0df4f2d0.min.js
Pascal Le Merrer 980d1fb34d
Some checks failed
Documentation / deploy (push) Has been cancelled
Passage à Zensical
2026-07-08 15:27:16 +02:00

14 lines
162 KiB
JavaScript

"use strict";(()=>{var jc=Object.create;var In=Object.defineProperty,Fc=Object.defineProperties,Uc=Object.getOwnPropertyDescriptor,Nc=Object.getOwnPropertyDescriptors,Dc=Object.getOwnPropertyNames,zr=Object.getOwnPropertySymbols,Wc=Object.getPrototypeOf,Rn=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable;var Do=(e,t,r)=>t in e?In(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))Rn.call(t,r)&&Do(e,r,t[r]);if(zr)for(var r of zr(t))Wo.call(t,r)&&Do(e,r,t[r]);return e},He=(e,t)=>Fc(e,Nc(t));var xr=(e,t)=>{var r={};for(var n in e)Rn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zr)for(var n of zr(e))t.indexOf(n)<0&&Wo.call(e,n)&&(r[n]=e[n]);return r};var jn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Vc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Dc(t))!Rn.call(e,o)&&o!==r&&In(e,o,{get:()=>t[o],enumerable:!(n=Uc(t,o))||n.enumerable});return e};var Zt=(e,t,r)=>(r=e!=null?jc(Wc(e)):{},Vc(t||!e||!e.__esModule?In(r,"default",{value:e,enumerable:!0}):r,e));var pt=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{s(r.next(c))}catch(l){o(l)}},a=c=>{try{s(r.throw(c))}catch(l){o(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,a);s((r=r.apply(e,t)).next())});var zo=jn((Fn,Vo)=>{(function(e,t){typeof Fn=="object"&&typeof Vo!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Fn,(function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(y){return!!(y&&y!==document&&y.nodeName!=="HTML"&&y.nodeName!=="BODY"&&"classList"in y&&"contains"in y.classList)}function c(y){var Z=y.type,ve=y.tagName;return!!(ve==="INPUT"&&a[Z]&&!y.readOnly||ve==="TEXTAREA"&&!y.readOnly||y.isContentEditable)}function l(y){y.classList.contains("focus-visible")||(y.classList.add("focus-visible"),y.setAttribute("data-focus-visible-added",""))}function u(y){y.hasAttribute("data-focus-visible-added")&&(y.classList.remove("focus-visible"),y.removeAttribute("data-focus-visible-added"))}function p(y){y.metaKey||y.altKey||y.ctrlKey||(s(r.activeElement)&&l(r.activeElement),n=!0)}function d(y){n=!1}function m(y){s(y.target)&&(n||c(y.target))&&l(y.target)}function h(y){s(y.target)&&(y.target.classList.contains("focus-visible")||y.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(y.target))}function v(y){document.visibilityState==="hidden"&&(o&&(n=!0),_())}function _(){document.addEventListener("mousemove",E),document.addEventListener("mousedown",E),document.addEventListener("mouseup",E),document.addEventListener("pointermove",E),document.addEventListener("pointerdown",E),document.addEventListener("pointerup",E),document.addEventListener("touchmove",E),document.addEventListener("touchstart",E),document.addEventListener("touchend",E)}function x(){document.removeEventListener("mousemove",E),document.removeEventListener("mousedown",E),document.removeEventListener("mouseup",E),document.removeEventListener("pointermove",E),document.removeEventListener("pointerdown",E),document.removeEventListener("pointerup",E),document.removeEventListener("touchmove",E),document.removeEventListener("touchstart",E),document.removeEventListener("touchend",E)}function E(y){y.target.nodeName&&y.target.nodeName.toLowerCase()==="html"||(n=!1,x())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",d,!0),document.addEventListener("pointerdown",d,!0),document.addEventListener("touchstart",d,!0),document.addEventListener("visibilitychange",v,!0),_(),r.addEventListener("focus",m,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)}))});var Hn=jn((pE,Ts)=>{"use strict";var fp=/["'&<>]/;Ts.exports=mp;function mp(e){var t=""+e,r=fp.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}a!==i&&(o+=t.substring(a,i)),a=i+1,o+=n}return a!==i?o+t.substring(a,i):o}});var Ao=jn((Ur,ko)=>{(function(t,r){typeof Ur=="object"&&typeof ko=="object"?ko.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Ur=="object"?Ur.ClipboardJS=r():t.ClipboardJS=r()})(Ur,function(){return(function(){var e={686:(function(n,o,i){"use strict";i.d(o,{default:function(){return yr}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),u=i(817),p=i.n(u);function d(G){try{return document.execCommand(G)}catch(H){return!1}}var m=function(H){var C=p()(H);return d("cut"),C},h=m;function v(G){var H=document.documentElement.getAttribute("dir")==="rtl",C=document.createElement("textarea");C.style.fontSize="12pt",C.style.border="0",C.style.padding="0",C.style.margin="0",C.style.position="absolute",C.style[H?"right":"left"]="-9999px";var V=window.pageYOffset||document.documentElement.scrollTop;return C.style.top="".concat(V,"px"),C.setAttribute("readonly",""),C.value=G,C}var _=function(H,C){var V=v(H);C.container.appendChild(V);var z=p()(V);return d("copy"),V.remove(),z},x=function(H){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},V="";return typeof H=="string"?V=_(H,C):H instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(H==null?void 0:H.type)?V=_(H.value,C):(V=p()(H),d("copy")),V},E=x;function y(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(C){return typeof C}:y=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},y(G)}var Z=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=H.action,V=C===void 0?"copy":C,z=H.container,Q=H.target,Ve=H.text;if(V!=="copy"&&V!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Q!==void 0)if(Q&&y(Q)==="object"&&Q.nodeType===1){if(V==="copy"&&Q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(V==="cut"&&(Q.hasAttribute("readonly")||Q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ve)return E(Ve,{container:z});if(Q)return V==="cut"?h(Q):E(Q,{container:z})},ve=Z;function L(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?L=function(C){return typeof C}:L=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},L(G)}function M(G,H){if(!(G instanceof H))throw new TypeError("Cannot call a class as a function")}function W(G,H){for(var C=0;C<H.length;C++){var V=H[C];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(G,V.key,V)}}function te(G,H,C){return H&&W(G.prototype,H),C&&W(G,C),G}function ue(G,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(H&&H.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),H&&le(G,H)}function le(G,H){return le=Object.setPrototypeOf||function(V,z){return V.__proto__=z,V},le(G,H)}function De(G){var H=ut();return function(){var V=rt(G),z;if(H){var Q=rt(this).constructor;z=Reflect.construct(V,arguments,Q)}else z=V.apply(this,arguments);return _t(this,z)}}function _t(G,H){return H&&(L(H)==="object"||typeof H=="function")?H:We(G)}function We(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function ut(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(G){return!1}}function rt(G){return rt=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},rt(G)}function Jt(G,H){var C="data-clipboard-".concat(G);if(H.hasAttribute(C))return H.getAttribute(C)}var Ht=(function(G){ue(C,G);var H=De(C);function C(V,z){var Q;return M(this,C),Q=H.call(this),Q.resolveOptions(z),Q.listenClick(V),Q}return te(C,[{key:"resolveOptions",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof z.action=="function"?z.action:this.defaultAction,this.target=typeof z.target=="function"?z.target:this.defaultTarget,this.text=typeof z.text=="function"?z.text:this.defaultText,this.container=L(z.container)==="object"?z.container:document.body}},{key:"listenClick",value:function(z){var Q=this;this.listener=l()(z,"click",function(Ve){return Q.onClick(Ve)})}},{key:"onClick",value:function(z){var Q=z.delegateTarget||z.currentTarget,Ve=this.action(Q)||"copy",Xt=ve({action:Ve,container:this.container,target:this.target(Q),text:this.text(Q)});this.emit(Xt?"success":"error",{action:Ve,text:Xt,trigger:Q,clearSelection:function(){Q&&Q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return Jt("action",z)}},{key:"defaultTarget",value:function(z){var Q=Jt("target",z);if(Q)return document.querySelector(Q)}},{key:"defaultText",value:function(z){return Jt("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return E(z,Q)}},{key:"cut",value:function(z){return h(z)}},{key:"isSupported",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Q=typeof z=="string"?[z]:z,Ve=!!document.queryCommandSupported;return Q.forEach(function(Xt){Ve=Ve&&!!document.queryCommandSupported(Xt)}),Ve}}]),C})(s()),yr=Ht}),828:(function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,c){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}n.exports=a}),438:(function(n,o,i){var a=i(828);function s(u,p,d,m,h){var v=l.apply(this,arguments);return u.addEventListener(d,v,h),{destroy:function(){u.removeEventListener(d,v,h)}}}function c(u,p,d,m,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof d=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return s(v,p,d,m,h)}))}function l(u,p,d,m){return function(h){h.delegateTarget=a(h.target,p),h.delegateTarget&&m.call(u,h)}}n.exports=c}),879:(function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}}),370:(function(n,o,i){var a=i(879),s=i(438);function c(d,m,h){if(!d&&!m&&!h)throw new Error("Missing required arguments");if(!a.string(m))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(d))return l(d,m,h);if(a.nodeList(d))return u(d,m,h);if(a.string(d))return p(d,m,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(d,m,h){return d.addEventListener(m,h),{destroy:function(){d.removeEventListener(m,h)}}}function u(d,m,h){return Array.prototype.forEach.call(d,function(v){v.addEventListener(m,h)}),{destroy:function(){Array.prototype.forEach.call(d,function(v){v.removeEventListener(m,h)})}}}function p(d,m,h){return s(document.body,d,m,h)}n.exports=c}),817:(function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(i),c.removeAllRanges(),c.addRange(l),a=c.toString()}return a}n.exports=o}),279:(function(n){function o(){}o.prototype={on:function(i,a,s){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var c=this;function l(){c.off(i,l),a.apply(s,arguments)}return l._=a,this.on(i,l,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,l=s.length;for(c;c<l;c++)s[c].fn.apply(s[c].ctx,a);return this},off:function(i,a){var s=this.e||(this.e={}),c=s[i],l=[];if(c&&a)for(var u=0,p=c.length;u<p;u++)c[u].fn!==a&&c[u].fn._!==a&&l.push(c[u]);return l.length?s[i]=l:delete s[i],this}},n.exports=o,n.exports.TinyEmitter=o})},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}return(function(){r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,{a:o}),o}})(),(function(){r.d=function(n,o){for(var i in o)r.o(o,i)&&!r.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:o[i]})}})(),(function(){r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}})(),r(686)})().default})});var Sk=Zt(zo());var Un=function(e,t){return Un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Un(e,t)};function pe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Un(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function qo(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(p){a(p)}}function c(u){try{l(n.throw(u))}catch(p){a(p)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(e,t||[])).next())})}function qr(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function $e(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function re(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function ie(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function $t(e){return this instanceof $t?(this.v=e,this):new $t(e)}function Ko(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(m){return function(h){return Promise.resolve(h).then(m,p)}}function s(m,h){n[m]&&(o[m]=function(v){return new Promise(function(_,x){i.push([m,v,_,x])>1||c(m,v)})},h&&(o[m]=h(o[m])))}function c(m,h){try{l(n[m](h))}catch(v){d(i[0][3],v)}}function l(m){m.value instanceof $t?Promise.resolve(m.value.v).then(u,p):d(i[0][2],m)}function u(m){c("next",m)}function p(m){c("throw",m)}function d(m,h){m(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Bo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof $e=="function"?$e(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,c){a=e[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function U(e){return typeof e=="function"}function Qt(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Kr=Qt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=r}});function ft(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var nt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=$e(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(U(u))try{u()}catch(v){i=v instanceof Kr?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var d=$e(p),m=d.next();!m.done;m=d.next()){var h=m.value;try{Go(h)}catch(v){i=i!=null?i:[],v instanceof Kr?i=ie(ie([],re(i)),re(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(i)throw new Kr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Go(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&ft(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ft(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Nn=nt.EMPTY;function Br(e){return e instanceof nt||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function Go(e){U(e)?e():e.unsubscribe()}var Xe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var er={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=er.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,ie([e,t],re(r))):setTimeout.apply(void 0,ie([e,t],re(r)))},clearTimeout:function(e){var t=er.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Gr(e){er.setTimeout(function(){var t=Xe.onUnhandledError;if(t)t(e);else throw e})}function Pe(){}var Yo=(function(){return Dn("C",void 0,void 0)})();function Jo(e){return Dn("E",void 0,e)}function Xo(e){return Dn("N",e,void 0)}function Dn(e,t,r){return{kind:e,value:t,error:r}}var Pt=null;function tr(e){if(Xe.useDeprecatedSynchronousErrorHandling){var t=!Pt;if(t&&(Pt={errorThrown:!1,error:null}),e(),t){var r=Pt,n=r.errorThrown,o=r.error;if(Pt=null,n)throw o}}else e()}function Zo(e){Xe.useDeprecatedSynchronousErrorHandling&&Pt&&(Pt.errorThrown=!0,Pt.error=e)}var wr=(function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Br(r)&&r.add(n)):n.destination=Bc,n}return t.create=function(r,n,o){return new mt(r,n,o)},t.prototype.next=function(r){this.isStopped?Vn(Xo(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Vn(Jo(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Vn(Yo,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(nt);var zc=Function.prototype.bind;function Wn(e,t){return zc.call(e,t)}var qc=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Yr(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Yr(n)}else Yr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Yr(r)}},e})(),mt=(function(e){pe(t,e);function t(r,n,o){var i=e.call(this)||this,a;if(U(r)||!r)a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:o!=null?o:void 0};else{var s;i&&Xe.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Wn(r.next,s),error:r.error&&Wn(r.error,s),complete:r.complete&&Wn(r.complete,s)}):a=r}return i.destination=new qc(a),i}return t})(wr);function Yr(e){Xe.useDeprecatedSynchronousErrorHandling?Zo(e):Gr(e)}function Kc(e){throw e}function Vn(e,t){var r=Xe.onStoppedNotification;r&&er.setTimeout(function(){return r(e,t)})}var Bc={closed:!0,next:Pe,error:Kc,complete:Pe};var rr=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Le(e){return e}function Qo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zn(e)}function zn(e){return e.length===0?Le:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var F=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=Yc(t)?t:new mt(t,r,n);return tr(function(){var a=o,s=a.operator,c=a.source;i.add(s?s.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=ei(r),new r(function(o,i){var a=new mt({next:function(s){try{t(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[rr]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return zn(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=ei(t),new t(function(n,o){var i;r.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},e.create=function(t){return new e(t)},e})();function ei(e){var t;return(t=e!=null?e:Xe.Promise)!==null&&t!==void 0?t:Promise}function Gc(e){return e&&U(e.next)&&U(e.error)&&U(e.complete)}function Yc(e){return e&&e instanceof wr||Gc(e)&&Br(e)}function Jc(e){return U(e==null?void 0:e.lift)}function S(e){return function(t){if(Jc(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function T(e,t,r,n,o){return new Xc(e,t,r,n,o)}var Xc=(function(e){pe(t,e);function t(r,n,o,i,a,s){var c=e.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:e.prototype._next,c._error=i?function(l){try{i(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=o?function(){try{o()}catch(l){r.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(wr);var nr={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=nr.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new nt(function(){return r==null?void 0:r(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=nr.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,ie([],re(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=nr.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,ie([],re(e)))},delegate:void 0};var ti=Qt(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var I=(function(e){pe(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new ri(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new ti},t.prototype.next=function(r){var n=this;tr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=$e(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;tr(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;tr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Nn:(this.currentObservers=null,s.push(r),new nt(function(){n.currentObservers=null,ft(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new F;return r.source=this,r},t.create=function(r,n){return new ri(r,n)},t})(F);var ri=(function(e){pe(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Nn},t})(I);var qn=(function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(I);var Er={now:function(){return(Er.delegate||Date).now()},delegate:void 0};var Tr=(function(e){pe(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Er);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=i?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,a=r._infiniteTimeWindow,s=(a?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var c=o.now(),l=0,u=1;u<i.length&&i[u]<=c;u+=2)l=u;l&&i.splice(0,l+1)}},t})(I);var ni=(function(e){pe(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t})(nt);var Sr={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Sr.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,ie([e,t],re(r))):setInterval.apply(void 0,ie([e,t],re(r)))},clearInterval:function(e){var t=Sr.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var or=(function(e){pe(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Sr.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Sr.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ft(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(ni);var Kn=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=Er.now,e})();var ir=(function(e){pe(t,e);function t(r,n){n===void 0&&(n=Kn.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t})(Kn);var ye=new ir(or),Bn=ye;var oi=(function(e){pe(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})(or);var ii=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(ir);var Gn=new ii(oi);var ai=(function(e){pe(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=nr.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&n===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(nr.cancelAnimationFrame(n),r._scheduled=void 0)},t})(or);var si=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t})(ir);var je=new si(ai);var w=new F(function(e){return e.complete()});function Jr(e){return e&&U(e.schedule)}function Yn(e){return e[e.length-1]}function wt(e){return U(Yn(e))?e.pop():void 0}function Be(e){return Jr(Yn(e))?e.pop():void 0}function Xr(e,t){return typeof Yn(e)=="number"?e.pop():t}var ar=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function Zr(e){return U(e==null?void 0:e.then)}function Qr(e){return U(e[rr])}function en(e){return Symbol.asyncIterator&&U(e==null?void 0:e[Symbol.asyncIterator])}function tn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Zc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rn=Zc();function nn(e){return U(e==null?void 0:e[rn])}function on(e){return Ko(this,arguments,function(){var r,n,o,i;return qr(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,$t(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,$t(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,$t(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function an(e){return U(e==null?void 0:e.getReader)}function K(e){if(e instanceof F)return e;if(e!=null){if(Qr(e))return Qc(e);if(ar(e))return el(e);if(Zr(e))return tl(e);if(en(e))return ci(e);if(nn(e))return rl(e);if(an(e))return nl(e)}throw tn(e)}function Qc(e){return new F(function(t){var r=e[rr]();if(U(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function el(e){return new F(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function tl(e){return new F(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Gr)})}function rl(e){return new F(function(t){var r,n;try{for(var o=$e(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}function ci(e){return new F(function(t){ol(e,t).catch(function(r){return t.error(r)})})}function nl(e){return ci(on(e))}function ol(e,t){var r,n,o,i;return qo(this,void 0,void 0,function(){var a,s;return qr(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=Bo(e),c.label=1;case 1:return[4,r.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),o={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Fe(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function Ie(e,t){return t===void 0&&(t=0),S(function(r,n){r.subscribe(T(n,function(o){return Fe(n,e,function(){return n.next(o)},t)},function(){return Fe(n,e,function(){return n.complete()},t)},function(o){return Fe(n,e,function(){return n.error(o)},t)}))})}function It(e,t){return t===void 0&&(t=0),S(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function li(e,t){return K(e).pipe(It(t),Ie(t))}function ui(e,t){return K(e).pipe(It(t),Ie(t))}function pi(e,t){return new F(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function fi(e,t){return new F(function(r){var n;return Fe(r,t,function(){n=e[rn](),Fe(r,t,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return U(n==null?void 0:n.return)&&n.return()}})}function sn(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(function(r){Fe(r,t,function(){var n=e[Symbol.asyncIterator]();Fe(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function mi(e,t){return sn(on(e),t)}function di(e,t){if(e!=null){if(Qr(e))return li(e,t);if(ar(e))return pi(e,t);if(Zr(e))return ui(e,t);if(en(e))return sn(e,t);if(nn(e))return fi(e,t);if(an(e))return mi(e,t)}throw tn(e)}function de(e,t){return t?di(e,t):K(e)}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Be(e);return de(e,r)}function cn(e,t){var r=U(e)?e:function(){return e},n=function(o){return o.error(r())};return new F(t?function(o){return t.schedule(n,0,o)}:n)}var sr=Qt(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function ln(e,t){var r=typeof t=="object";return new Promise(function(n,o){var i=new mt({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){r?n(t.defaultValue):o(new sr)}});e.subscribe(i)})}function hi(e){return e instanceof Date&&!isNaN(e)}function f(e,t){return S(function(r,n){var o=0;r.subscribe(T(n,function(i){n.next(e.call(t,i,o++))}))})}var il=Array.isArray;function al(e,t){return il(t)?e.apply(void 0,ie([],re(t))):e(t)}function Et(e){return f(function(t){return al(e,t)})}var sl=Array.isArray,cl=Object.getPrototypeOf,ll=Object.prototype,ul=Object.keys;function vi(e){if(e.length===1){var t=e[0];if(sl(t))return{args:t,keys:null};if(pl(t)){var r=ul(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}function pl(e){return e&&typeof e=="object"&&cl(e)===ll}function bi(e,t){return e.reduce(function(r,n,o){return r[n]=t[o],r},{})}function oe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Be(e),n=wt(e),o=vi(e),i=o.args,a=o.keys;if(i.length===0)return de([],r);var s=new F(Jn(i,r,a?function(c){return bi(a,c)}:Le));return n?s.pipe(Et(n)):s}function Jn(e,t,r){return r===void 0&&(r=Le),function(n){gi(t,function(){for(var o=e.length,i=new Array(o),a=o,s=o,c=function(u){gi(t,function(){var p=de(e[u],t),d=!1;p.subscribe(T(n,function(m){i[u]=m,d||(d=!0,s--),s||n.next(r(i.slice()))},function(){--a||n.complete()}))},n)},l=0;l<o;l++)c(l)},n)}}function gi(e,t,r){e?Fe(r,e,t):t()}function yi(e,t,r,n,o,i,a,s){var c=[],l=0,u=0,p=!1,d=function(){p&&!c.length&&!l&&t.complete()},m=function(v){return l<n?h(v):c.push(v)},h=function(v){i&&t.next(v),l++;var _=!1;K(r(v,u++)).subscribe(T(t,function(x){o==null||o(x),i?m(x):t.next(x)},function(){_=!0},void 0,function(){if(_)try{l--;for(var x=function(){var E=c.shift();a?Fe(t,a,function(){return h(E)}):h(E)};c.length&&l<n;)x();d()}catch(E){t.error(E)}}))};return e.subscribe(T(t,m,function(){p=!0,d()})),function(){s==null||s()}}function ae(e,t,r){return r===void 0&&(r=1/0),U(t)?ae(function(n,o){return f(function(i,a){return t(n,i,o,a)})(K(e(n,o)))},r):(typeof t=="number"&&(r=t),S(function(n,o){return yi(n,o,e,r)}))}function cr(e){return e===void 0&&(e=1/0),ae(Le,e)}function _i(){return cr(1)}function ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _i()(de(e,Be(e)))}function j(e){return new F(function(t){K(e()).subscribe(t)})}var fl=["addListener","removeListener"],ml=["addEventListener","removeEventListener"],dl=["on","off"];function b(e,t,r,n){if(U(r)&&(n=r,r=void 0),n)return b(e,t,r).pipe(Et(n));var o=re(bl(e)?ml.map(function(s){return function(c){return e[s](t,c,r)}}):hl(e)?fl.map(xi(e,t)):vl(e)?dl.map(xi(e,t)):[],2),i=o[0],a=o[1];if(!i&&ar(e))return ae(function(s){return b(s,t,r)})(K(e));if(!i)throw new TypeError("Invalid event target");return new F(function(s){var c=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return s.next(1<l.length?l:l[0])};return i(c),function(){return a(c)}})}function xi(e,t){return function(r){return function(n){return e[r](t,n)}}}function hl(e){return U(e.addListener)&&U(e.removeListener)}function vl(e){return U(e.on)&&U(e.off)}function bl(e){return U(e.addEventListener)&&U(e.removeEventListener)}function un(e,t,r){return r?un(e,t).pipe(Et(r)):new F(function(n){var o=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return n.next(a.length===1?a[0]:a)},i=e(o);return U(t)?function(){return t(o,i)}:void 0})}function ze(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Bn);var n=-1;return t!=null&&(Jr(t)?r=t:n=t),new F(function(o){var i=hi(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Be(e),n=Xr(e,1/0),o=e;return o.length?o.length===1?K(o[0]):cr(n)(de(o,r)):w}var Ge=new F(Pe);var gl=Array.isArray;function pn(e){return e.length===1&&gl(e[0])?e[0]:e}function O(e,t){return S(function(r,n){var o=0;r.subscribe(T(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function Rt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=wt(e),n=pn(e);return n.length?new F(function(o){var i=n.map(function(){return[]}),a=n.map(function(){return!1});o.add(function(){i=a=null});for(var s=function(l){K(n[l]).subscribe(T(o,function(u){if(i[l].push(u),i.every(function(d){return d.length})){var p=i.map(function(d){return d.shift()});o.next(r?r.apply(void 0,ie([],re(p))):p),i.some(function(d,m){return!d.length&&a[m]})&&o.complete()}},function(){a[l]=!0,!i[l].length&&o.complete()}))},c=0;!o.closed&&c<n.length;c++)s(c);return function(){i=a=null}}):w}function wi(e){return S(function(t,r){var n=!1,o=null,i=null,a=!1,s=function(){if(i==null||i.unsubscribe(),i=null,n){n=!1;var l=o;o=null,r.next(l)}a&&r.complete()},c=function(){i=null,a&&r.complete()};t.subscribe(T(r,function(l){n=!0,o=l,i||K(e(l)).subscribe(i=T(r,s,c))},function(){a=!0,(!n||!i||i.closed)&&r.complete()}))})}function Ze(e,t){return t===void 0&&(t=ye),wi(function(){return ze(e,t)})}function jt(e,t){return t===void 0&&(t=null),t=t!=null?t:e,S(function(r,n){var o=[],i=0;r.subscribe(T(n,function(a){var s,c,l,u,p=null;i++%t===0&&o.push([]);try{for(var d=$e(o),m=d.next();!m.done;m=d.next()){var h=m.value;h.push(a),e<=h.length&&(p=p!=null?p:[],p.push(h))}}catch(x){s={error:x}}finally{try{m&&!m.done&&(c=d.return)&&c.call(d)}finally{if(s)throw s.error}}if(p)try{for(var v=$e(p),_=v.next();!_.done;_=v.next()){var h=_.value;ft(o,h),n.next(h)}}catch(x){l={error:x}}finally{try{_&&!_.done&&(u=v.return)&&u.call(v)}finally{if(l)throw l.error}}},function(){var a,s;try{for(var c=$e(o),l=c.next();!l.done;l=c.next()){var u=l.value;n.next(u)}}catch(p){a={error:p}}finally{try{l&&!l.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}n.complete()},void 0,function(){o=null}))})}function me(e){return S(function(t,r){var n=null,o=!1,i;n=t.subscribe(T(r,void 0,void 0,function(a){i=K(e(a,me(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Ei(e,t,r,n,o){return function(i,a){var s=r,c=t,l=0;i.subscribe(T(a,function(u){var p=l++;c=s?e(c,u,p):(s=!0,u),n&&a.next(c)},o&&(function(){s&&a.next(c),a.complete()})))}}function Xn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=wt(e);return r?Qo(Xn.apply(void 0,ie([],re(e))),Et(r)):S(function(n,o){Jn(ie([n],re(pn(e))))(o)})}function Qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xn.apply(void 0,ie([],re(e)))}function Or(e){return S(function(t,r){var n=!1,o=null,i=null,a=function(){if(i==null||i.unsubscribe(),i=null,n){n=!1;var s=o;o=null,r.next(s)}};t.subscribe(T(r,function(s){i==null||i.unsubscribe(),n=!0,o=s,i=T(r,a,Pe),K(e(s)).subscribe(i)},function(){a(),r.complete()},void 0,function(){o=i=null}))})}function Ye(e,t){return t===void 0&&(t=ye),S(function(r,n){var o=null,i=null,a=null,s=function(){if(o){o.unsubscribe(),o=null;var l=i;i=null,n.next(l)}};function c(){var l=a+e,u=t.now();if(u<l){o=this.schedule(void 0,l-u),n.add(o);return}s()}r.subscribe(T(n,function(l){i=l,a=t.now(),o||(o=t.schedule(c,e),n.add(o))},function(){s(),n.complete()},void 0,function(){i=o=null}))})}function it(e){return S(function(t,r){var n=!1;t.subscribe(T(r,function(o){n=!0,r.next(o)},function(){n||r.next(e),r.complete()}))})}function Me(e){return e<=0?function(){return w}:S(function(t,r){var n=0;t.subscribe(T(r,function(o){++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function be(){return S(function(e,t){e.subscribe(T(t,Pe))})}function Ti(e){return f(function(){return e})}function Zn(e,t){return t?function(r){return ot(t.pipe(Me(1),be()),r.pipe(Zn(e)))}:ae(function(r,n){return K(e(r,n)).pipe(Me(1),Ti(r))})}function Ft(e,t){t===void 0&&(t=ye);var r=ze(e,t);return Zn(function(){return r})}function Qn(e,t){return S(function(r,n){var o=new Set;r.subscribe(T(n,function(i){var a=e?e(i):i;o.has(a)||(o.add(a),n.next(i))})),t&&K(t).subscribe(T(n,function(){return o.clear()},Pe))})}function se(e,t){return t===void 0&&(t=Le),e=e!=null?e:yl,S(function(r,n){var o,i=!0;r.subscribe(T(n,function(a){var s=t(a);(i||!e(o,s))&&(i=!1,o=s,n.next(a))}))})}function yl(e,t){return e===t}function he(e,t){return se(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}function Si(e){return e===void 0&&(e=_l),S(function(t,r){var n=!1;t.subscribe(T(r,function(o){n=!0,r.next(o)},function(){return n?r.complete():r.error(e())}))})}function _l(){return new sr}function _e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return ot(r,D.apply(void 0,ie([],re(e))))}}function fn(e,t){return t?function(r){return r.pipe(fn(function(n,o){return K(e(n,o)).pipe(f(function(i,a){return t(n,i,o,a)}))}))}:S(function(r,n){var o=0,i=null,a=!1;r.subscribe(T(n,function(s){i||(i=T(n,void 0,function(){i=null,a&&n.complete()}),K(e(s,o++)).subscribe(i))},function(){a=!0,!i&&n.complete()}))})}function q(e){return S(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function Lr(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?O(function(o,i){return e(o,i,n)}):Le,Me(1),r?it(t):Si(function(){return new sr}))}}function eo(e){return e<=0?function(){return w}:S(function(t,r){var n=[];t.subscribe(T(r,function(o){n.push(o),e<n.length&&n.shift()},function(){var o,i;try{for(var a=$e(n),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}r.complete()},void 0,function(){n=null}))})}function Oi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Be(e),n=Xr(e,1/0);return S(function(o,i){cr(n)(de(ie([o],re(e)),r)).subscribe(i)})}function Ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Oi.apply(void 0,ie([],re(e)))}function mn(){return S(function(e,t){var r,n=!1;e.subscribe(T(t,function(o){var i=r;r=o,n&&t.next([i,o]),n=!0}))})}function Nt(e){var t,r=1/0,n;return e!=null&&(typeof e=="object"?(t=e.count,r=t===void 0?1/0:t,n=e.delay):r=e),r<=0?function(){return w}:S(function(o,i){var a=0,s,c=function(){if(s==null||s.unsubscribe(),s=null,n!=null){var u=typeof n=="number"?ze(n):K(n(a)),p=T(i,function(){p.unsubscribe(),l()});u.subscribe(p)}else l()},l=function(){var u=!1;s=o.subscribe(T(i,void 0,function(){++a<r?s?c():u=!0:i.complete()})),u&&c()};l()})}function Mr(e,t){return S(Ei(e,t,arguments.length>=2,!0))}function xe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new I}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var u,p,d,m=0,h=!1,v=!1,_=function(){p==null||p.unsubscribe(),p=void 0},x=function(){_(),u=d=void 0,h=v=!1},E=function(){var y=u;x(),y==null||y.unsubscribe()};return S(function(y,Z){m++,!v&&!h&&_();var ve=d=d!=null?d:r();Z.add(function(){m--,m===0&&!v&&!h&&(p=to(E,c))}),ve.subscribe(Z),!u&&m>0&&(u=new mt({next:function(L){return ve.next(L)},error:function(L){v=!0,_(),p=to(x,o,L),ve.error(L)},complete:function(){h=!0,_(),p=to(x,a),ve.complete()}}),K(y).subscribe(u))})(l)}}function to(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t===!0){e();return}if(t!==!1){var o=new mt({next:function(){o.unsubscribe(),e()}});return K(t.apply(void 0,ie([],re(r)))).subscribe(o)}}function ne(e,t,r){var n,o,i,a,s=!1;return e&&typeof e=="object"?(n=e.bufferSize,a=n===void 0?1/0:n,o=e.windowTime,t=o===void 0?1/0:o,i=e.refCount,s=i===void 0?!1:i,r=e.scheduler):a=e!=null?e:1/0,xe({connector:function(){return new Tr(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function ke(e){return O(function(t,r){return e<=r})}function J(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Be(e);return S(function(n,o){(r?ot(e,n,r):ot(e,n)).subscribe(o)})}function g(e,t){return S(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(T(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;K(e(c,u)).subscribe(o=T(n,function(p){return n.next(t?t(c,p,u,l++):p)},function(){o=null,s()}))},function(){a=!0,s()}))})}function ee(e){return S(function(t,r){K(e).subscribe(T(r,function(){return r.complete()},Pe)),!r.closed&&t.subscribe(r)})}function ro(e,t){return t===void 0&&(t=!1),S(function(r,n){var o=0;r.subscribe(T(n,function(i){var a=e(i,o++);(a||t)&&n.next(i),!a&&n.complete()}))})}function P(e,t,r){var n=U(e)||t||r?{next:e,error:t,complete:r}:e;return n?S(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(T(i,function(c){var l;(l=n.next)===null||l===void 0||l.call(n,c),i.next(c)},function(){var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},function(c){var l;s=!1,(l=n.error)===null||l===void 0||l.call(n,c),i.error(c)},function(){var c,l;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):Le}function Li(e,t){return S(function(r,n){var o=t!=null?t:{},i=o.leading,a=i===void 0?!0:i,s=o.trailing,c=s===void 0?!1:s,l=!1,u=null,p=null,d=!1,m=function(){p==null||p.unsubscribe(),p=null,c&&(_(),d&&n.complete())},h=function(){p=null,d&&n.complete()},v=function(x){return p=K(e(x)).subscribe(T(n,m,h))},_=function(){if(l){l=!1;var x=u;u=null,n.next(x),!d&&v(x)}};r.subscribe(T(n,function(x){l=!0,u=x,!(p&&!p.closed)&&(a?_():v(x))},function(){d=!0,!(c&&l&&p&&!p.closed)&&n.complete()}))})}function kr(e,t,r){t===void 0&&(t=ye);var n=ze(e,t);return Li(function(){return n},r)}function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=wt(e);return S(function(n,o){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),c=!1,l=function(p){K(e[p]).subscribe(T(o,function(d){a[p]=d,!c&&!s[p]&&(s[p]=!0,(c=s.every(Le))&&(s=null))},Pe))},u=0;u<i;u++)l(u);n.subscribe(T(o,function(p){if(c){var d=ie([p],re(a));o.next(r?r.apply(void 0,ie([],re(d))):d)}}))})}function Mi(){let e=new Tr(1);return b(document,"DOMContentLoaded",{once:!0}).subscribe(()=>e.next(document)),e}function $(e,t=document){return Array.from(t.querySelectorAll(e))}function Y(e,t=document){let r=we(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function we(e,t=document){return t.querySelector(e)||void 0}function Tt(){var e,t,r,n;return(n=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?n:void 0}var xl=R(b(document.body,"focusin"),b(document.body,"focusout")).pipe(Ye(1),J(void 0),f(()=>Tt()||document.body),ne(1));function lr(e){return xl.pipe(f(t=>e.contains(t)),se())}function Dt(e,t){let{matches:r}=matchMedia("(hover)");return j(()=>(r?R(b(e,"mouseenter").pipe(f(()=>!0)),b(e,"mouseleave").pipe(f(()=>!1))):R(b(e,"touchstart").pipe(f(()=>!0)),b(e,"touchend").pipe(f(()=>!1)),b(e,"touchcancel").pipe(f(()=>!1)))).pipe(t?Or(o=>ze(+!o*t)):Le,J(!0,e.matches(":hover"))))}function ki(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)ki(e,r)}function A(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)ki(n,o);return n}function Ai(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function at(e){let t=A("script",{src:e});return j(()=>(document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>cn(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(f(()=>{}),q(()=>document.head.removeChild(t)),Me(1))))}function Ci(e){let t=A("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>cn(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(f(()=>{}),Me(1))}var Hi=new I,wl=j(()=>typeof ResizeObserver=="undefined"?at("https://unpkg.com/resize-observer-polyfill"):D(void 0)).pipe(f(()=>new ResizeObserver(e=>e.forEach(t=>Hi.next(t)))),g(e=>R(Ge,D(e)).pipe(q(()=>e.disconnect()))),ne(1));function Ae(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Re(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return wl.pipe(P(r=>r.observe(t)),g(r=>Hi.pipe(O(n=>n.target===t),q(()=>r.unobserve(t)))),f(()=>Ae(e)),J(Ae(e)))}function Ar(e){return{width:e.scrollWidth,height:e.scrollHeight}}function $i(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Pi(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function St(e){return{x:e.offsetLeft,y:e.offsetTop}}function Ii(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Ri(e){return R(b(window,"load"),b(window,"resize")).pipe(Ze(0,je),f(()=>St(e)),J(St(e)))}function dn(e){return{x:e.scrollLeft,y:e.scrollTop}}function Wt(e){return R(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(Ze(0,je),f(()=>dn(e)),J(dn(e)))}var ji=new I,El=j(()=>D(new IntersectionObserver(e=>{for(let t of e)ji.next(t)},{threshold:0}))).pipe(g(e=>R(Ge,D(e)).pipe(q(()=>e.disconnect()))),ne(1));function Ot(e){return El.pipe(P(t=>t.observe(e)),g(t=>ji.pipe(O(({target:r})=>r===e),q(()=>t.unobserve(e)),f(({isIntersecting:r})=>r))))}var Tl=Object.create,da=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Ol=Object.getOwnPropertyNames,Ll=Object.getPrototypeOf,Ml=Object.prototype.hasOwnProperty,kl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Al=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ol(t))!Ml.call(e,o)&&o!==r&&da(e,o,{get:()=>t[o],enumerable:!(n=Sl(t,o))||n.enumerable});return e},Cl=(e,t,r)=>(r=e!=null?Tl(Ll(e)):{},Al(t||!e||!e.__esModule?da(r,"default",{value:e,enumerable:!0}):r,e)),Hl=kl((e,t)=>{var r="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,p=typeof self=="object"&&self&&self.Object===Object&&self,d=u||p||Function("return this")(),m=Object.prototype,h=m.toString,v=Math.max,_=Math.min,x=function(){return d.Date.now()};function E(M,W,te){var ue,le,De,_t,We,ut,rt=0,Jt=!1,Ht=!1,yr=!0;if(typeof M!="function")throw new TypeError(r);W=L(W)||0,y(te)&&(Jt=!!te.leading,Ht="maxWait"in te,De=Ht?v(L(te.maxWait)||0,W):De,yr="trailing"in te?!!te.trailing:yr);function G(Se){var xt=ue,_r=le;return ue=le=void 0,rt=Se,_t=M.apply(_r,xt),_t}function H(Se){return rt=Se,We=setTimeout(z,W),Jt?G(Se):_t}function C(Se){var xt=Se-ut,_r=Se-rt,No=W-xt;return Ht?_(No,De-_r):No}function V(Se){var xt=Se-ut,_r=Se-rt;return ut===void 0||xt>=W||xt<0||Ht&&_r>=De}function z(){var Se=x();if(V(Se))return Q(Se);We=setTimeout(z,C(Se))}function Q(Se){return We=void 0,yr&&ue?G(Se):(ue=le=void 0,_t)}function Ve(){We!==void 0&&clearTimeout(We),rt=0,ue=ut=le=We=void 0}function Xt(){return We===void 0?_t:Q(x())}function Vr(){var Se=x(),xt=V(Se);if(ue=arguments,le=this,ut=Se,xt){if(We===void 0)return H(ut);if(Ht)return We=setTimeout(z,W),G(ut)}return We===void 0&&(We=setTimeout(z,W)),_t}return Vr.cancel=Ve,Vr.flush=Xt,Vr}function y(M){var W=typeof M;return!!M&&(W=="object"||W=="function")}function Z(M){return!!M&&typeof M=="object"}function ve(M){return typeof M=="symbol"||Z(M)&&h.call(M)==o}function L(M){if(typeof M=="number")return M;if(ve(M))return n;if(y(M)){var W=typeof M.valueOf=="function"?M.valueOf():M;M=y(W)?W+"":W}if(typeof M!="string")return M===0?M:+M;M=M.replace(i,"");var te=s.test(M);return te||c.test(M)?l(M.slice(2),te?2:8):a.test(M)?n:+M}t.exports=E}),Sn,B,ha,va,Vt,Fi,ba,ga,ya,mo,ao,so,$l,Hr={},_a=[],Pl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Rr=Array.isArray;function ht(e,t){for(var r in t)e[r]=t[r];return e}function ho(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function kt(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Sn.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return bn(e,a,n,o,null)}function bn(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o!=null?o:++ha,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function qe(e){return e.children}function lt(e,t){this.props=e,this.context=t}function pr(e,t){if(t==null)return e.__?pr(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?pr(e):null}function xa(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return xa(e)}}function Ui(e){(!e.__d&&(e.__d=!0)&&Vt.push(e)&&!xn.__r++||Fi!=B.debounceRendering)&&((Fi=B.debounceRendering)||ba)(xn)}function xn(){for(var e,t,r,n,o,i,a,s=1;Vt.length;)Vt.length>s&&Vt.sort(ga),e=Vt.shift(),s=Vt.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=ht({},n)).__v=n.__v+1,B.vnode&&B.vnode(r),vo(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o!=null?o:pr(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Ta(i,r,a),n.__e=n.__=null,r.__e!=o&&xa(r)));xn.__r=0}function wa(e,t,r,n,o,i,a,s,c,l,u){var p,d,m,h,v,_,x,E=n&&n.__k||_a,y=t.length;for(c=Il(r,t,E,c,y),p=0;p<y;p++)(m=r.__k[p])!=null&&(d=m.__i==-1?Hr:E[m.__i]||Hr,m.__i=p,_=vo(e,m,d,o,i,a,s,c,l,u),h=m.__e,m.ref&&d.ref!=m.ref&&(d.ref&&bo(d.ref,null,m),u.push(m.ref,m.__c||h,m)),v==null&&h!=null&&(v=h),(x=!!(4&m.__u))||d.__k===m.__k?c=Ea(m,c,e,x):typeof m.type=="function"&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return r.__e=v,c}function Il(e,t,r,n,o){var i,a,s,c,l,u=r.length,p=u,d=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(c=i+d,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?bn(null,a,null,null,null):Rr(a)?bn(qe,{children:a},null,null,null):a.constructor==null&&a.__b>0?bn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(l=a.__i=Rl(a,r,c,p))!=-1&&(p--,(s=r[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(o>u?d--:o<u&&d++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?d--:l==c+1?d++:(l>c?d--:d++,a.__u|=4))):e.__k[i]=null;if(p)for(i=0;i<u;i++)(s=r[i])!=null&&!(2&s.__u)&&(s.__e==n&&(n=pr(s)),Oa(s,s));return n}function Ea(e,t,r,n){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=Ea(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=pr(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function $r(e,t){return t=t||[],e==null||typeof e=="boolean"||(Rr(e)?e.some(function(r){$r(r,t)}):t.push(e)),t}function Rl(e,t,r,n){var o,i,a,s=e.key,c=e.type,l=t[r],u=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return r;if(n>(u?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if((l=t[a=o>=0?o--:i++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return a}return-1}function Ni(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||Pl.test(t)?r:r+"px"}function hn(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Ni(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Ni(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ya,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=mo,e.addEventListener(t,i?so:ao,i)):e.removeEventListener(t,i?so:ao,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r!=null?r:"";break e}catch(s){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Di(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=mo++;else if(t.t<r.u)return;return r(B.event?B.event(t):t)}}}function vo(e,t,r,n,o,i,a,s,c,l){var u,p,d,m,h,v,_,x,E,y,Z,ve,L,M,W,te,ue,le=t.type;if(t.constructor!=null)return null;128&r.__u&&(c=!!(32&r.__u),i=[s=t.__e=r.__e]),(u=B.__b)&&u(t);e:if(typeof le=="function")try{if(x=t.props,E="prototype"in le&&le.prototype.render,y=(u=le.contextType)&&n[u.__c],Z=u?y?y.props.value:u.__:n,r.__c?_=(p=t.__c=r.__c).__=p.__E:(E?t.__c=p=new le(x,Z):(t.__c=p=new lt(x,Z),p.constructor=le,p.render=Fl),y&&y.sub(p),p.props=x,p.state||(p.state={}),p.context=Z,p.__n=n,d=p.__d=!0,p.__h=[],p._sb=[]),E&&p.__s==null&&(p.__s=p.state),E&&le.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=ht({},p.__s)),ht(p.__s,le.getDerivedStateFromProps(x,p.__s))),m=p.props,h=p.state,p.__v=t,d)E&&le.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),E&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(E&&le.getDerivedStateFromProps==null&&x!==m&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(x,Z),!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(x,p.__s,Z)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(p.props=x,p.state=p.__s,p.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(De){De&&(De.__=t)}),ve=0;ve<p._sb.length;ve++)p.__h.push(p._sb[ve]);p._sb=[],p.__h.length&&a.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(x,p.__s,Z),E&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(m,h,v)})}if(p.context=Z,p.props=x,p.__P=e,p.__e=!1,L=B.__r,M=0,E){for(p.state=p.__s,p.__d=!1,L&&L(t),u=p.render(p.props,p.state,p.context),W=0;W<p._sb.length;W++)p.__h.push(p._sb[W]);p._sb=[]}else do p.__d=!1,L&&L(t),u=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++M<25);p.state=p.__s,p.getChildContext!=null&&(n=ht(ht({},n),p.getChildContext())),E&&!d&&p.getSnapshotBeforeUpdate!=null&&(v=p.getSnapshotBeforeUpdate(m,h)),te=u,u!=null&&u.type===qe&&u.key==null&&(te=Sa(u.props.children)),s=wa(e,Rr(te)?te:[te],t,r,n,o,i,a,s,c,l),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),_&&(p.__E=p.__=null)}catch(De){if(t.__v=null,c||i!=null)if(De.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else{for(ue=i.length;ue--;)ho(i[ue]);co(t)}else t.__e=r.__e,t.__k=r.__k,De.then||co(t);B.__e(De,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=jl(r.__e,t,r,n,o,i,a,c,l);return(u=B.diffed)&&u(t),128&t.__u?void 0:s}function co(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(co)}function Ta(e,t,r){for(var n=0;n<r.length;n++)bo(r[n],r[++n],r[++n]);B.__c&&B.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){B.__e(i,o.__v)}})}function Sa(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Rr(e)?e.map(Sa):ht({},e)}function jl(e,t,r,n,o,i,a,s,c){var l,u,p,d,m,h,v,_=r.props,x=t.props,E=t.type;if(E=="svg"?o="http://www.w3.org/2000/svg":E=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((m=i[l])&&"setAttribute"in m==!!E&&(E?m.localName==E:m.nodeType==3)){e=m,i[l]=null;break}}if(e==null){if(E==null)return document.createTextNode(x);e=document.createElementNS(o,E,x.is&&x),s&&(B.__m&&B.__m(t,i),s=!1),i=null}if(E==null)_===x||s&&e.data==x||(e.data=x);else{if(i=i&&Sn.call(e.childNodes),_=r.props||Hr,!s&&i!=null)for(_={},l=0;l<e.attributes.length;l++)_[(m=e.attributes[l]).name]=m.value;for(l in _)if(m=_[l],l!="children"){if(l=="dangerouslySetInnerHTML")p=m;else if(!(l in x)){if(l=="value"&&"defaultValue"in x||l=="checked"&&"defaultChecked"in x)continue;hn(e,l,null,m,o)}}for(l in x)m=x[l],l=="children"?d=m:l=="dangerouslySetInnerHTML"?u=m:l=="value"?h=m:l=="checked"?v=m:s&&typeof m!="function"||_[l]===m||hn(e,l,m,_[l],o);if(u)s||p&&(u.__html==p.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(p&&(e.innerHTML=""),wa(t.type=="template"?e.content:e,Rr(d)?d:[d],t,r,n,E=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&pr(r,0),s,c),i!=null)for(l=i.length;l--;)ho(i[l]);s||(l="value",E=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[l]||E=="progress"&&!h||E=="option"&&h!=_[l])&&hn(e,l,h,_[l],o),l="checked",v!=null&&v!=e[l]&&hn(e,l,v,_[l],o))}return e}function bo(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){B.__e(o,r)}}function Oa(e,t,r){var n,o;if(B.unmount&&B.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||bo(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){B.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Oa(n[o],t,r||typeof e.type!="function");r||ho(e.__e),e.__c=e.__=e.__e=void 0}function Fl(e,t,r){return this.constructor(e,r)}function Ul(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),B.__&&B.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],a=[],vo(t,e=(!n&&r||t).__k=kt(qe,null,[e]),o||Hr,Hr,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?Sn.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),Ta(i,e,a)}Sn=_a.slice,B={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},ha=0,va=function(e){return e!=null&&e.constructor==null},lt.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ht({},this.state),typeof e=="function"&&(e=e(ht({},r),this.props)),e&&ht(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ui(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ui(this))},lt.prototype.render=qe,Vt=[],ba=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ga=function(e,t){return e.__v.__b-t.__v.__b},xn.__r=0,ya=/(PointerCapture)$|Capture$/i,mo=0,ao=Di(!1),so=Di(!0),$l=0;var Pr,ge,no,Wi,Ir=0,La=[],Ee=B,Vi=Ee.__b,zi=Ee.__r,qi=Ee.diffed,Ki=Ee.__c,Bi=Ee.unmount,Gi=Ee.__;function go(e,t){Ee.__h&&Ee.__h(ge,e,Ir||t),Ir=0;var r=ge.__H||(ge.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function wn(e){return Ir=1,Nl(ka,e)}function Nl(e,t,r){var n=go(Pr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):ka(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=ge,!ge.__f)){var o=function(s,c,l){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(d){return!!d.__c});if(u.every(function(d){return!d.__N}))return!i||i.call(this,s,c,l);var p=n.__c.props!==s;return u.forEach(function(d){if(d.__N){var m=d.__[0];d.__=d.__N,d.__N=void 0,m!==d.__[0]&&(p=!0)}}),i&&i.call(this,s,c,l)||p};ge.__f=!0;var i=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(s,c,l){if(this.__e){var u=i;i=void 0,o(s,c,l),i=u}a&&a.call(this,s,c,l)},ge.shouldComponentUpdate=o}return n.__N||n.__}function vt(e,t){var r=go(Pr++,3);!Ee.__s&&Ma(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function qt(e){return Ir=5,mr(function(){return{current:e}},[])}function mr(e,t){var r=go(Pr++,7);return Ma(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Dl(e,t){return Ir=8,mr(function(){return e},t)}function Wl(){for(var e;e=La.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(gn),e.__H.__h.forEach(lo),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}Ee.__b=function(e){ge=null,Vi&&Vi(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Gi&&Gi(e,t)},Ee.__r=function(e){zi&&zi(e),Pr=0;var t=(ge=e.__c).__H;t&&(no===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(gn),t.__h.forEach(lo),t.__h=[],Pr=0)),no=ge},Ee.diffed=function(e){qi&&qi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(La.push(t)!==1&&Wi===Ee.requestAnimationFrame||((Wi=Ee.requestAnimationFrame)||Vl)(Wl)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),no=ge=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(gn),r.__h=r.__h.filter(function(n){return!n.__||lo(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Ee.__e(n,r.__v)}}),Ki&&Ki(e,t)},Ee.unmount=function(e){Bi&&Bi(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{gn(n)}catch(o){t=o}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var Yi=typeof requestAnimationFrame=="function";function Vl(e){var t,r=function(){clearTimeout(n),Yi&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Yi&&(t=requestAnimationFrame(r))}function gn(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function lo(e){var t=ge;e.__c=e.__(),ge=t}function Ma(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ka(e,t){return typeof t=="function"?t(e):t}function zl(e,t){for(var r in t)e[r]=t[r];return e}function Ji(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Xi(e,t){this.props=e,this.context=t}(Xi.prototype=new lt).isPureReactComponent=!0,Xi.prototype.shouldComponentUpdate=function(e,t){return Ji(this.props,e)||Ji(this.state,t)};var Zi=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zi&&Zi(e)};var Cw=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,ql=B.__e;B.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}ql(e,t,r,n)};var Qi=B.unmount;function Aa(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=zl({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Aa(n,t,r)})),e}function Ca(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ca(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function oo(){this.__u=0,this.o=null,this.__b=null}function Ha(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function vn(){this.i=null,this.l=null}B.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Qi&&Qi(e)},(oo.prototype=new lt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Ha(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ca(c,c.__c.__P,c.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.o.pop();)l.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},oo.prototype.componentWillUnmount=function(){this.o=[]},oo.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Aa(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&kt(qe,null,e.fallback);return o&&(o.__u&=-33),[kt(qe,null,t.__a?null:e.children),o]};var ea=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(vn.prototype=new lt).__a=function(e){var t=this,r=Ha(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),ea(t,e,n)):o()};r?r(i):i()}},vn.prototype.render=function(e){this.i=null,this.l=new Map;var t=$r(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},vn.prototype.componentDidUpdate=vn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){ea(e,r,t)})};var Kl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Bl=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Gl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yl=/[A-Z0-9]/g,Jl=typeof document<"u",Xl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ta=B.event;function Zl(){}function Ql(){return this.cancelBubble}function eu(){return this.defaultPrevented}B.event=function(e){return ta&&(e=ta(e)),e.persist=Zl,e.isPropagationStopped=Ql,e.isDefaultPrevented=eu,e.nativeEvent=e};var $a,tu={enumerable:!1,configurable:!0,get:function(){return this.class}},ra=B.vnode;B.vnode=function(e){typeof e.type=="string"&&(function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||Jl&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||Xl(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":Gl.test(a)&&(a=c):c=a="oninput":i&&Bl.test(a)?a=a.replace(Yl,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&o[a=c]&&(a="oninputCapture"),o[a]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=$r(r.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=$r(r.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",tu)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o})(e),e.$$typeof=Kl,ra&&ra(e)};var na=B.__r;B.__r=function(e){na&&na(e),$a=e.__c};var oa=B.diffed;B.diffed=function(e){oa&&oa(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),$a=null};function Pa(e){let t=qt(e);return t.current=e,mr(()=>Object.freeze({get current(){return t.current}}),[])}var ru=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function nu(e,...t){var r;(r=e==null?void 0:e.addEventListener)==null||r.call(e,...t)}function ou(e,...t){var r;(r=e==null?void 0:e.removeEventListener)==null||r.call(e,...t)}var iu=(e,t)=>Object.hasOwn(e,t),au=()=>!0,su=()=>!1;function cu(e=!1){let t=qt(e),r=Dl(()=>t.current,[]);return vt(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function lu(e,...t){let r=cu(),n=Pa(t[1]),o=mr(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);vt(()=>{let i=uu(e)?e.current:e;if(!i)return;let a=t.slice(2);return nu(i,t[0],o,...a),()=>{ou(i,t[0],o,...a)}},[e,t[0]])}function uu(e){return e!==null&&typeof e=="object"&&iu(e,"current")}var pu=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e?au:su,fu=ru?globalThis:null;function Ia(e,t,r=[],n={}){let{event:o="keydown",target:i=fu,eventOptions:a}=n,s=Pa(t),c=mr(()=>{let l=pu(e);return function(u){l(u)&&s.current.call(this,u)}},r);lu(i,o,c,a)}function Ra(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ra(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function mu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ra(e))&&(n&&(n+=" "),n+=t);return n}var Kt=mu,du=Symbol.for("preact-signals");function On(){if(Mt>1)Mt--;else{for(var e,t=!1;Cr!==void 0;){var r=Cr;for(Cr=void 0,uo++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ua(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(uo=0,Mt--,t)throw e}}function hu(e){if(Mt>0)return e();Mt++;try{return e()}finally{On()}}var ce=void 0;function ja(e){var t=ce;ce=void 0;try{return e()}finally{ce=t}}var Cr=void 0,Mt=0,uo=0,En=0;function Fa(e){if(ce!==void 0){var t=e.n;if(t===void 0||t.t!==ce)return t={i:0,S:e,p:ce.s,n:void 0,t:ce,e:void 0,x:void 0,r:t},ce.s!==void 0&&(ce.s.n=t),ce.s=t,e.n=t,32&ce.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ce.s,t.n=void 0,ce.s.n=t,ce.s=t),t}}function Ce(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Ce.prototype.brand=du;Ce.prototype.h=function(){return!0};Ce.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:ja(function(){var n;(n=t.W)==null||n.call(t)}))};Ce.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&ja(function(){var o;(o=t.Z)==null||o.call(t)}))}};Ce.prototype.subscribe=function(e){var t=this;return Bt(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}},{name:"sub"})};Ce.prototype.valueOf=function(){return this.value};Ce.prototype.toString=function(){return this.value+""};Ce.prototype.toJSON=function(){return this.value};Ce.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(Ce.prototype,"value",{get:function(){var e=Fa(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(uo>100)throw new Error("Cycle detected");this.v=e,this.i++,En++,Mt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{On()}}}});function At(e,t){return new Ce(e,t)}function Ua(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Na(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Da(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Gt(e,t){Ce.call(this,void 0),this.x=e,this.s=void 0,this.g=En-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Gt.prototype=new Ce;Gt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===En))return!0;if(this.g=En,this.f|=1,this.i>0&&!Ua(this))return this.f&=-2,!0;var e=ce;try{Na(this),ce=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ce=e,Da(this),this.f&=-2,!0};Gt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Ce.prototype.S.call(this,e)};Gt.prototype.U=function(e){if(this.t!==void 0&&(Ce.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Gt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Gt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Fa(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function ia(e,t){return new Gt(e,t)}function Wa(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Mt++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,yo(e),n}finally{ce=r,On()}}}function yo(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Wa(e)}function vu(e){if(ce!==this)throw new Error("Out-of-order effect");Da(this),ce=e,this.f&=-2,8&this.f&&yo(this),On()}function dr(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}dr.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};dr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Wa(this),Na(this),Mt++;var e=ce;return ce=this,vu.bind(this,e)};dr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Cr,Cr=this)};dr.prototype.d=function(){this.f|=8,1&this.f||yo(this)};dr.prototype.dispose=function(){this.d()};function Bt(e,t){var r=new dr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Va,_o,io,za=[];Bt(function(){Va=this.N})();function hr(e,t){B[e]=t.bind(null,B[e]||function(){})}function Tn(e){io&&io(),io=e&&e.S()}function qa(e){var t=this,r=e.data,n=gu(r);n.value=r;var o=mr(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ia(function(){var m=n.value.value;return m===0?0:m===!0?"":m||""}),u=ia(function(){return!Array.isArray(l.value)&&!va(l.value)}),p=Bt(function(){if(this.N=Ka,u.value){var m=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=m)}}),d=t.__$u.d;return t.__$u.d=function(){p(),d.call(this)},[u,l]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}qa.displayName="ReactiveTextNode";Object.defineProperties(Ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:qa},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});hr("__b",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof Ce&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});hr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==qe){Tn();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Bt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),_o=n,Tn(r)}e(t)});hr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Tn(),_o=void 0,e(t,r,n)});hr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),Tn(),_o=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var c in n){var l=i[c],u=n[c];l===void 0?(l=bu(r,c,u,o),i[c]=l):l.o(u,o)}}}e(t)});function bu(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=At(r);return{o:function(a,s){i.value=a,n=s},d:Bt(function(){this.N=Ka;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}hr("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});hr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});lt.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function gu(e,t){return wn(function(){return At(e,t)})[0]}var yu=function(e){queueMicrotask(function(){queueMicrotask(e)})};function _u(){hu(function(){for(var e;e=za.shift();)Va.call(e)})}function Ka(){za.push(this)===1&&(B.requestAnimationFrame||yu)(_u)}var po=[0];for(let e=0;e<32;e++)po.push(po[e]|1<<e);function xu(e){return new Uint32Array(e)}var aa=class{constructor(e,t=xu(Math.ceil(e/32))){this.size=e,this.data=t}get(e){return this.data[e>>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let r=0;r<this.data.length;r++){if(this.data[r]===0)continue;let n=this.data[r];t&&r===this.data.length-1&&(n=n&po[t]);for(let o=0,i=32-Math.clz32(n);o<i;o++)n&1<<o&&e((r<<5)+o)}}};function wu(e){fr.value=e,e.items.find(t=>{var r;return(r=t.tags)==null?void 0:r.length})&&(matchMedia("(max-width: 768px)").matches||Ba())}function zt(){et.value=He(k({},et.value),{hideSearch:!et.value.hideSearch})}function Ba(){et.value=He(k({},et.value),{hideFilters:!et.value.hideFilters})}function yn(){return et.value.selectedItem}function fo(e){et.value=He(k({},et.value),{selectedItem:e})}function Eu(){var e,t;return(t=(e=fr.value)==null?void 0:e.items)!=null?t:[]}function Ln(){return typeof Oe.value.input=="string"?Oe.value.input:""}function Ga(e){let t=Ya();e.length&&!t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:e}):!e.length&&t.length?Oe.value=He(k({},Oe.value),{page:void 0,input:{type:"operator",data:{operator:"not",operands:[]}}}):Oe.value=He(k({},Oe.value),{page:void 0,input:e})}function Tu(){typeof ct.value.pagination.next<"u"&&(Oe.value=He(k({},Oe.value),{page:ct.value.pagination.next}))}function Su(e){let t=Oe.value.filter.input;if("type"in t&&t.type==="operator"){for(let r of t.data.operands)if("type"in r&&r.type==="value"&&typeof r.data.value=="string"&&r.data.value===e)return!0}return!1}function Ya(){let e=Oe.value.filter.input,t=[];if("type"in e&&e.type==="operator")for(let r of e.data.operands)"type"in r&&r.type==="value"&&typeof r.data.value=="string"&&t.push(r.data.value);return t}function Ou(e){let t=Oe.value.filter.input,r=[];if("type"in t&&t.type==="operator")for(let n of t.data.operands)"type"in n&&n.type==="value"&&typeof n.data.value=="string"&&r.push(n.data.value);if(r.includes(e)){let n=r.indexOf(e);n>-1&&r.splice(n,1)}else r.push(e);Oe.value=He(k({},Oe.value),{page:void 0,filter:He(k({},Oe.value.filter),{input:{type:"operator",data:{operator:"and",operands:r.map(n=>({type:"value",data:{field:"tags",value:n}}))}}})}),Ga(Ln())}function Lu(){return ct.value.items}function Mu(){return ct.value.total}function ku(){var e;for(let t of(e=ct.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function ur(){return et.value.hideSearch}function Au(){return et.value.hideFilters}function Ja(){var e;return(e=Xa.value.highlight)!=null?e:!1}var et=At({hideSearch:!0,hideFilters:!0,selectedItem:0}),Xa=At({}),fr=At(),sa=At(),Oe=At({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),ct=At({items:[],query:{select:{documents:new aa(0),terms:new aa(0)},values:[]},pagination:{total:0}});function Cu(e,t,r){for(let n=0;t<r;){switch(n=n<<8^32|e.charCodeAt(++t),n){case 97:case 98:case 99:case 101:case 104:case 105:case 108:case 109:case 112:case 115:case 116:case 119:case 24946:case 25185:case 25455:case 25965:case 26989:case 26990:case 27753:case 28005:case 28769:case 29551:case 29810:case 30562:case 6386277:case 6447475:case 6647138:case 6909552:case 7104878:case 7169396:case 7364978:case 7565173:case 7631457:case 1701667429:case 1768845429:case 1869967971:case 1885434465:case 1936684402:case 1953653091:continue;case 25202:case 26738:case 6516588:case 6909287:case 7823986:case 1634885997:case 1634887009:case 1650553701:case 1818848875:case 1835165028:case 1835365473:case 1852863860:case 1918985067:case 1970430821:switch(e.charCodeAt(++t)){case 9:case 10:case 32:case 47:case 62:return!0}}break}return!1}function Hu(e,t,r=0,n=e.length){let o=0,i=r;for(let a=0;i<n;i++)switch(a=e.charCodeAt(i),a){case 60:i>r&&t(0,o,r,r=i);continue;case 62:e.charCodeAt(r+1)===47?t(2,--o,r,r=i+1):Cu(e,r,n)?t(3,o,r,r=i+1):t(1,o++,r,r=i+1)}i>r&&t(0,o,r,i)}function $u(e,t=0,r=e.length){let n=++t;e:for(let l=0;n<r;n++)switch(l=e.charCodeAt(n),l){case 9:case 10:case 32:case 62:break e}let o=e.slice(t,t=n),i=[],a=0,s=0,c=0;for(let l=0;n<r;n++){let u=e.charCodeAt(n);switch(a){case 0:switch(u){case 9:case 10:case 32:t===n?t++:(s=1,a=1);break;case 61:s=1,a=2;break;case 47:t++;case 62:t<n&&(s=1);break}break;case 1:switch(u){case 9:case 10:case 32:continue;case 61:a=2,t=n+1;continue;default:a=0,t=n,l++}continue;case 2:switch(u){case 9:case 10:case 32:t===n?t++:c===0&&(s=2,a=0);break;case 34:case 39:switch(c){case 0:c=u,t=n+1;continue;case u:s=2,a=0,c=0}break;case 62:t<n&&(s=2);break}}switch(s){case 1:i[l]=[e.slice(t,n),""],s=0,t=n+1;break;case 2:i[l++][1]=e.slice(t,n),s=0,t=n+1;break}}return{tag:o,attrs:i.length?Object.fromEntries(i):null}}function Pu(e,t,r){return e.slice(t,r)}function Iu(e){return(t,r,n,o)=>{let i=[],a=[],{onElement:s,onText:c=Pu}=typeof r=="function"?{onElement:r}:r,l=0,u=0;return e(t,(p,d,m,h)=>{if(p===0)i[l++]=c(t,m,h),a[u++]={value:null,depth:d};else if(p&1&&(a[u++]={value:$u(t,m,h),depth:d}),p&2)for(let v=0;u>=0;v++){let{value:_,depth:x}=a[--u];if(x>d)continue;let E=i.slice(l-=v,l+v);i[l++]=s(_,E),u++;break}},n,o),i.slice(0,l)}}function Ru(e){return e.replace(/[&<>]/g,t=>{switch(t.charCodeAt(0)){case 38:return"&amp;";case 60:return"&lt;";case 62:return"&gt;"}})}function _n(e){return e.replace(/&(amp|[lg]t);/g,t=>{switch(t.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function ju(e,t){return{start:e.start+t,end:e.end+t,value:e.value}}function Fu(e,t,r){return e.slice(t,r)}function Uu(e){let{onHighlight:t,onText:r=Fu}=typeof e=="function"?{onHighlight:e}:e;return(n,o,i=0,a=n.length)=>{var l;let s=[],c=(l=o==null?void 0:o.ranges)!=null?l:[];for(let u=0,p=i;u<c.length;u++){let d=c[u].start;if(d>a)break;let m=c[u].end;if(m<p)continue;d=Math.max(d,i),m=Math.min(m,a),d>i&&s.push(r(n,i,d));let{value:h}=c[u];s.push(t(n,{start:d,end:i=m,value:h}))}return i<a&&s.push(r(n,i,a)),s}}var Nu={fuzzy:"m"},Du=0;function N(e,t,r,n,o,i){t||(t={});var a,s,c=t;if("ref"in c)for(s in c={},t)s=="ref"?a=t[s]:c[s]=t[s];var l={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Du,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)c[s]===void 0&&(c[s]=a[s]);return B.vnode&&B.vnode(l),l}var Za=Iu(Hu),Qa=Uu({onText(e,t,r){return _n(e.slice(t,r))},onHighlight(e,{start:t,end:r,value:n}){let o=Math.min(r,t+n);return t===r?null:(n===-1&&(o=r),N("mark",{className:Kt({[Nu.fuzzy]:n===-1}),children:[N("u",{children:_n(e.slice(t,o))}),_n(e.slice(o,r))]}))}}),Wu=new Set(["p","pre","li","ul","ol","div"]),Vu=new Set(["code","span","sup","sub","em","strong","b","i","kbd","samp","mark","u","a"]);function zu(e){return e.filter(t=>t!==null&&typeof t<"u"&&t!==!1&&!(typeof t=="string"&&t.trim().length===0))}function es(e,t){let r=Za(e,{onElement(n,o){return kt(n.tag,n.attrs,...o)},onText(n,o,i){return Qa(n,t==null?void 0:t.value.highlight,o,i)}});return N(qe,{children:r})}function qu(e,t){var n;let r=[];for(let o=0,i=0;o<e.length;o++){let a=[];if((n=t==null?void 0:t.value.highlight)!=null&&n.ranges)for(let s of t.value.highlight.ranges)a.push(ju(s,-i));r.push(es(e[o],He(k({},t),{value:He(k({},t==null?void 0:t.value),{highlight:{ranges:a}})}))),i+=e[o].length}return r}function Ku(e,t,r=320){var u,p,d;let n=(u=t==null?void 0:t.value.highlight)==null?void 0:u.ranges.find(m=>m.start<m.end),o=Math.floor(r*.25),i=Math.floor(r*1.75),a=n?Math.max(0,n.start-o):0,s=n?Math.min(e.length,n.end+i):Math.min(e.length,2*r),c=[];for(let m of(d=(p=t==null?void 0:t.value.highlight)==null?void 0:p.ranges)!=null?d:[])m.end<=a||m.start>=s||c.push(He(k({},m),{start:Math.max(m.start,a),end:Math.min(m.end,s)}));let l=Za(e,{onElement(m,h){var _;let v=zu(h);if(v.length!==0)return Vu.has(m.tag)?kt(m.tag,(_=m.attrs)!=null?_:{},...v):m.tag==="li"?N(qe,{children:["\u2013 ",v," "]}):Wu.has(m.tag)?N(qe,{children:[" ",v," "]}):N(qe,{children:v})},onText(m,h,v){let _=Math.max(h,a),x=Math.min(v,s);if(!(_>=x))return Qa(m,{ranges:c},_,x)}});return N(qe,{children:[a>0&&"...",l]})}function ts(e,t={highlight:!0}){Xa.value=t;let r=new Worker(e);r.onmessage=n=>{let o=n.data;switch(o.type){case 1:sa.value=!0;break;case 3:typeof o.data.pagination.prev<"u"?ct.value=He(k({},ct.value),{pagination:o.data.pagination,items:[...ct.value.items,...o.data.items]}):(ct.value=o.data,fo(0));break}},Bt(()=>{fr.value&&r.postMessage({type:0,data:fr.value})}),Bt(()=>{sa.value&&r.postMessage({type:2,data:Oe.value})})}var ca={container:"p",hidden:"v"};function Bu(e){return N("div",{class:Kt(ca.container,{[ca.hidden]:e.hidden}),onClick:()=>zt()})}var la={container:"r",disabled:"c"};function ua(e){return N("button",{class:Kt(la.container,{[la.disabled]:!e.onClick}),onClick:e.onClick,children:e.children})}var pa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),fa=e=>{let t=Gu(e);return t.charAt(0).toUpperCase()+t.slice(1)},Yu=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Ju={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Xu=c=>{var l=c,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,children:o,iconNode:i,class:a=""}=l,s=xr(l,["color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","class"]);return kt("svg",k(He(k({},Ju),{width:String(t),height:t,stroke:e,"stroke-width":n?Number(r)*24/Number(t):r,class:["lucide",a].join(" ")}),s),[...i.map(([u,p])=>kt(u,p)),...$r(o)])},rs=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=xr(s,["class","children"]);return kt(Xu,He(k({},i),{iconNode:t,class:Yu(`lucide-${pa(fa(e))}`,`lucide-${pa(e)}`,n)}),o)};return r.displayName=fa(e),r},Zu=rs("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),Qu=rs("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Hw=Cl(Hl(),1);function ep({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:o=!1,onChange:i}={}){var a;let[s,c]=wn(null),[l,u]=wn(()=>({isIntersecting:o,entry:void 0})),p=qt();p.current=i;let d=((a=l.entry)==null?void 0:a.isIntersecting)&&n;vt(()=>{if(!s||!("IntersectionObserver"in window)||d)return;let v,_=new IntersectionObserver(x=>{let E=Array.isArray(_.thresholds)?_.thresholds:[_.thresholds];x.forEach(y=>{let Z=y.isIntersecting&&E.some(ve=>y.intersectionRatio>=ve);u({isIntersecting:Z,entry:y}),p.current&&p.current(Z,y),Z&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return _.observe(s),()=>{_.disconnect()}},[s,JSON.stringify(e),t,r,d,n]);let m=qt(null);vt(()=>{var v;!s&&(v=l.entry)!=null&&v.target&&!n&&!d&&m.current!==l.entry.target&&(m.current=l.entry.target,u({isIntersecting:o,entry:void 0}))},[s,l.entry,n,d,o]);let h=[c,!!l.isIntersecting,l.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var dt={container:"n",hidden:"l",content:"y",pop:"d",badge:"w",sidebar:"e",controls:"k",results:"z",loadmore:"j"};function tp(e){let{isIntersecting:t,ref:r}=ep({threshold:0});vt(()=>{t&&Tu()},[t]);let n=qt(null);vt(()=>{n.current&&typeof Oe.value.page>"u"&&n.current.scrollTo({top:0,behavior:"smooth"})},[Oe.value]);let o=Ya();return N("div",{class:Kt(dt.container,{[dt.hidden]:e.hidden}),children:[N("div",{class:dt.content,children:[N("div",{class:dt.controls,children:[N(ua,{onClick:zt,children:N(Qu,{})}),N(np,{focus:!e.hidden}),N(ua,{onClick:Ba,children:[N(Zu,{}),o.length>0&&N("span",{class:dt.badge,children:o.length})]})]}),N("div",{class:dt.results,ref:n,children:[N(op,{keyboard:!e.hidden}),N("div",{class:dt.loadmore,ref:r})]})]}),N("div",{class:Kt(dt.sidebar,{[dt.hidden]:Au()}),children:N(rp,{})})]})}var Lt={container:"X",list:"F",heading:"I",title:"R",item:"o",active:"g",value:"q",count:"A"};function rp(e){let t=ku();return t.sort((r,n)=>n.node.count-r.node.count),N("div",{class:Lt.container,children:[N("h3",{class:Lt.heading,children:"Filters"}),N("h4",{class:Lt.title,children:"Tags"}),N("ol",{class:Lt.list,children:t.map(r=>N("li",{class:Kt(Lt.item,{[Lt.active]:Su(r.node.value)}),onClick:()=>Ou(r.node.value),children:[N("span",{class:Lt.value,children:r.node.value}),N("span",{class:Lt.count,children:r.node.count})]}))})]})}var ma={container:"f"};function np(e){let t=qt(null);return vt(()=>{var r,n;e.focus?(r=t.current)==null||r.focus():(n=t.current)==null||n.blur()},[e.focus]),N("div",{class:ma.container,children:N("input",{ref:t,type:"text",class:ma.content,value:_n(Ln()),onInput:r=>Ga(Ru(r.currentTarget.value)),autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox"})})}var st={container:"b",heading:"B",item:"i",active:"h",wrapper:"C",meta:"D",actions:"s",title:"x",path:"t",excerpt:"u",more:"E"};function ns(){let[e,t]=wn(!1);return vt(()=>{let r=()=>t(!0),n=()=>t(!1);return document.addEventListener("compositionstart",r),document.addEventListener("compositionend",n),()=>{document.removeEventListener("compositionstart",r),document.removeEventListener("compositionend",n)}},[]),e}function op(e){var s;let t=Eu(),r=Lu(),n=yn(),o=qt([]),i=ns();vt(()=>{let c=o.current[n];c&&c.scrollIntoView({block:"center",behavior:"smooth"})},[n]),Ia(e.keyboard,c=>{if(i)return;let l=yn();c.key==="ArrowDown"?(c.preventDefault(),fo(Math.min(l+1,r.length-1))):c.key==="ArrowUp"&&(c.preventDefault(),fo(Math.max(l-1,0)))},[e.keyboard,i]);let a=(s=Mu())!=null?s:0;return N(qe,{children:[r.length>0&&N("h3",{class:st.heading,children:[N("span",{class:st.bubble,children:new Intl.NumberFormat("en-US").format(a)})," ","results"]}),N("ol",{class:st.container,children:r.map((c,l)=>{var _,x,E,y;let u=c.matches.find(({field:Z})=>Z==="text"),p=es(t[c.id].title,c.matches.find(({field:Z})=>Z==="title")),d=qu((_=t[c.id].path)!=null?_:[],c.matches.find(({field:Z})=>Z==="path")),m=Ku(t[c.id].text,u),h=Math.max(0,((y=(E=(x=u==null?void 0:u.value.highlight)==null?void 0:x.ranges)==null?void 0:E.filter(Z=>Z.start<Z.end).length)!=null?y:0)-1),v=t[c.id].location;if(Ja()){let Z=encodeURIComponent(Ln()),[ve,L]=v.split("#",2);v=`${ve}?h=${Z.replace(/%20/g,"+")}`,typeof L<"u"&&(v+=`#${L}`)}return N("li",{children:N("a",{ref:Z=>{o.current[l]=Z},href:v,onClick:()=>zt(),class:Kt(st.item,{[st.active]:l===yn()}),children:N("div",{class:st.wrapper,children:[N("div",{class:st.meta,children:N("menu",{class:st.path,children:d.map(Z=>N("li",{children:Z}))})}),N("h2",{class:st.title,children:p}),m&&N("div",{class:st.excerpt,children:m})]})})})})})]})}var ip={container:"a"};function ap(e){let t=ns();return Ia(!0,r=>{var n,o,i,a,s;if(!t)if((r.metaKey||r.ctrlKey)&&r.key==="k")r.preventDefault(),zt();else if((r.metaKey||r.ctrlKey)&&r.key==="j")document.body.classList.toggle("dark");else if(r.key==="Enter"&&!ur()){r.preventDefault();let c=yn(),l=(o=(n=ct.value)==null?void 0:n.items[c])==null?void 0:o.id;if((a=(i=fr.value)==null?void 0:i.items[l])!=null&&a.location){zt();let u=(s=fr.value)==null?void 0:s.items[l].location;if(Ja()){let p=encodeURIComponent(Ln()),[d,m]=u.split("#",2);u=`${d}?h=${p.replace(/%20/g,"+")}`,typeof m<"u"&&(u+=`#${m}`)}window.location.href=u}}else r.key==="Escape"&&!ur()&&(r.preventDefault(),zt())},[t]),N("div",{class:ip.container,children:[N(Bu,{hidden:ur()}),N(tp,{hidden:ur()})]})}function os(e,t){wu(e),Ul(N(ap,{}),t)}function xo(){zt()}function sp(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function cp(){return R(b(window,"compositionstart").pipe(f(()=>!0)),b(window,"compositionend").pipe(f(()=>!1))).pipe(J(!1))}function is(){let e=b(window,"keydown").pipe(f(t=>({mode:ur()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),O(({mode:t,type:r})=>{if(t==="global"){let n=Tt();if(typeof n!="undefined")return!sp(n,r)}return!0}),xe());return cp().pipe(g(t=>t?w:e))}function Ue(){return new URL(location.href)}function bt(e,t=!1){if(X("navigation.instant")&&!t){let r=A("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function as(){return new I}function ss(){return location.hash.slice(1)}function cs(e){let t=A("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function wo(e){return R(b(window,"hashchange"),e).pipe(f(ss),J(ss()),O(t=>t.length>0),f(decodeURIComponent),ne(1))}function ls(e){return wo(e).pipe(f(t=>we(`[id="${t}"]`)),O(t=>typeof t!="undefined"))}function jr(e){let t=matchMedia(e);return un(r=>t.addListener(()=>r(t.matches))).pipe(J(t.matches))}function us(){let e=matchMedia("print");return R(b(window,"beforeprint").pipe(f(()=>!0)),b(window,"afterprint").pipe(f(()=>!1))).pipe(J(e.matches))}function Eo(e,t){return e.pipe(g(r=>r?t():w))}function To(e,t){return new F(r=>{let n=new XMLHttpRequest;return n.open("GET",`${e}`),n.responseType="blob",n.addEventListener("load",()=>{n.status>=200&&n.status<300?(r.next(n.response),r.complete()):r.error(new Error(n.statusText))}),n.addEventListener("error",()=>{r.error(new Error("Network error"))}),n.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(n.addEventListener("progress",o=>{var i;if(o.lengthComputable)t.progress$.next(o.loaded/o.total*100);else{let a=(i=n.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(o.loaded/+a*100)}}),t.progress$.next(5)),n.send(),()=>n.abort()})}function tt(e,t){return To(e,t).pipe(g(r=>r.text()),f(r=>JSON.parse(r)),ne(1))}function Mn(e,t){let r=new DOMParser;return To(e,t).pipe(g(n=>n.text()),f(n=>r.parseFromString(n,"text/html")),ne(1))}function ps(e,t){let r=new DOMParser;return To(e,t).pipe(g(n=>n.text()),f(n=>r.parseFromString(n,"text/xml")),ne(1))}var So={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function Oo(e,t){So[e].checked!==t&&So[e].click()}function kn(e){let t=So[e];return b(t,"change").pipe(f(()=>t.checked),J(t.checked))}function fs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function ms(){return R(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(f(fs),J(fs()))}function ds(){return{width:innerWidth,height:innerHeight}}function hs(){return b(window,"resize",{passive:!0}).pipe(f(ds),J(ds()))}function vs(){return oe([ms(),hs()]).pipe(f(([e,t])=>({offset:e,size:t})),ne(1))}function An(e,{viewport$:t,header$:r}){let n=t.pipe(he("size")),o=oe([n,r]).pipe(f(()=>St(e)));return oe([r,t,o]).pipe(f(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}var lp=Y("#__config"),vr=JSON.parse(lp.textContent);vr.base=`${new URL(vr.base,Ue())}`;function Ne(){return vr}function X(e){return vr.features.includes(e)}function Yt(e,t){return typeof t!="undefined"?vr.translations[e].replace("#",t.toString()):vr.translations[e]}function gt(e,t=document){return Y(`[data-md-component=${e}]`,t)}function Te(e,t=document){return $(`[data-md-component=${e}]`,t)}function up(e){let t=Y(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(f(()=>Y(".md-typeset",e)),f(r=>({hash:__md_hash(r.innerHTML)})))}function bs(e){if(!X("announce.dismiss")||!e.childElementCount)return w;if(!e.hidden){let t=Y(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return j(()=>{let t=new I;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),up(e).pipe(P(r=>t.next(r)),q(()=>t.complete()),f(r=>k({ref:e},r)))})}function pp(e,{target$:t}){return t.pipe(f(r=>({hidden:r!==e})))}function gs(e,t){let r=new I;return r.subscribe(({hidden:n})=>{e.hidden=n}),pp(e,t).pipe(P(n=>r.next(n)),q(()=>r.complete()),f(n=>k({ref:e},n)))}function Lo(e,t){return t==="inline"?A("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"})):A("div",{class:"md-tooltip",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"}))}function Cn(...e){return A("div",{class:"md-tooltip2",role:"dialog"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function ys(...e){return A("div",{class:"md-tooltip2",role:"tooltip"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function _s(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return A("aside",{class:"md-annotation",tabIndex:0},Lo(t),A("a",{href:r,class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}else return A("aside",{class:"md-annotation",tabIndex:0},Lo(t),A("span",{class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}function xs(e){return A("button",{class:"md-code__button",title:Yt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function ws(){return A("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function Es(){return A("nav",{class:"md-code__nav"})}var dp=Zt(Hn());function Ss(e){return A("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>A("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Ai(r):r)))}function Mo(e){let t=`tabbed-control tabbed-control--${e}`;return A("div",{class:t,hidden:!0},A("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function Os(e){return A("div",{class:"md-typeset__scrollwrap"},A("div",{class:"md-typeset__table"},e))}function hp(e){var n;let t=Ne(),r=new URL(`../${e.version}/`,t.base);return A("li",{class:"md-version__item"},A("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&A("span",{class:"md-version__alias"},e.aliases[0])))}function Ls(e,t){var n;let r=Ne();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),A("div",{class:"md-version"},A("button",{class:"md-version__current","aria-label":Yt("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&A("span",{class:"md-version__alias"},t.aliases[0])),A("ul",{class:"md-version__list"},e.map(hp)))}var vp=0;function bp(e,t=250){let r=oe([lr(e),Dt(e,t)]).pipe(f(([o,i])=>o||i),se()),n=j(()=>Pi(e)).pipe(ae(Wt),kr(1),Qe(r),f(()=>Ii(e)));return r.pipe(Lr(o=>o),g(()=>oe([r,n])),f(([o,i])=>({active:o,offset:i})),xe())}function Fr(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${vp++}`;return j(()=>{let a=new I,s=new qn(!1);a.pipe(be(),_e(!1)).subscribe(s);let c=s.pipe(Or(u=>ze(+!u*250,Gn)),se(),g(u=>u?n:w),P(u=>u.id=i),xe());oe([a.pipe(f(({active:u})=>u)),c.pipe(g(u=>Dt(u,250)),J(!1))]).pipe(f(u=>u.some(p=>p))).subscribe(s);let l=s.pipe(O(u=>u),fe(c,o),f(([u,p,{size:d}])=>{let m=e.getBoundingClientRect(),h=m.width/2;if(p.role==="tooltip")return{x:h,y:8+m.height};if(m.y>=d.height/2){let{height:v}=Ae(p);return{x:h,y:-16-v}}else return{x:h,y:16+m.height}}));return oe([c,a,l]).subscribe(([u,{offset:p},d])=>{u.style.setProperty("--md-tooltip-host-x",`${p.x}px`),u.style.setProperty("--md-tooltip-host-y",`${p.y}px`),u.style.setProperty("--md-tooltip-x",`${d.x}px`),u.style.setProperty("--md-tooltip-y",`${d.y}px`),u.classList.toggle("md-tooltip2--top",d.y<0),u.classList.toggle("md-tooltip2--bottom",d.y>=0)}),s.pipe(O(u=>u),fe(c,(u,p)=>p),O(u=>u.role==="tooltip")).subscribe(u=>{let p=Ae(Y(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${p.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(se(),Ie(je),fe(c)).subscribe(([u,p])=>{p.classList.toggle("md-tooltip2--active",u)}),oe([s.pipe(O(u=>u)),c]).subscribe(([u,p])=>{p.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(O(u=>!u)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),bp(e,r).pipe(P(u=>a.next(u)),q(()=>a.complete()),f(u=>k({ref:e},u)))})}function Je(e,{viewport$:t},r=document.body){return Fr(e,{content$:new F(n=>{let o=e.title,i=ys(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function gp(e,t){let r=j(()=>oe([Ri(e),Wt(t)])).pipe(f(([{x:n,y:o},i])=>{let{width:a,height:s}=Ae(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return lr(e).pipe(g(n=>r.pipe(f(o=>({active:n,offset:o})),Me(+!n||1/0))))}function Ms(e,t,{target$:r}){let[n,o]=Array.from(e.children);return j(()=>{let i=new I,a=i.pipe(be(),_e(!0));return i.subscribe({next({offset:s}){e.style.setProperty("--md-tooltip-x",`${s.x}px`),e.style.setProperty("--md-tooltip-y",`${s.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),Ot(e).pipe(ee(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),R(i.pipe(O(({active:s})=>s)),i.pipe(Ye(250),O(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(Ze(16,je)).subscribe(({active:s})=>{n.classList.toggle("md-tooltip--active",s)}),i.pipe(kr(125,je),O(()=>!!e.offsetParent),f(()=>e.offsetParent.getBoundingClientRect()),f(({x:s})=>s)).subscribe({next(s){s?e.style.setProperty("--md-tooltip-0",`${-s}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(o,"click").pipe(ee(a),O(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),b(o,"mousedown").pipe(ee(a),fe(i)).subscribe(([s,{active:c}])=>{var l;if(s.button!==0||s.metaKey||s.ctrlKey)s.preventDefault();else if(c){s.preventDefault();let u=e.parentElement.closest(".md-annotation");u instanceof HTMLElement?u.focus():(l=Tt())==null||l.blur()}}),r.pipe(ee(a),O(s=>s===n),Ft(125)).subscribe(()=>e.focus()),gp(e,t).pipe(P(s=>i.next(s)),q(()=>i.complete()),f(s=>k({ref:e},s)))})}function yp(e){let t=Ne();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate){let n=e.closest("[class|=language]");if(n)for(let o of Array.from(n.classList)){if(!o.startsWith("language-"))continue;let[,i]=o.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return $(r.join(", "),e)}function _p(e){let t=[];for(let r of yp(e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let l=i.splitText(a.index);i=l.splitText(s.length),t.push(l)}else{i.textContent=s,t.push(i);break}}}}return t}function ks(e,t){t.append(...Array.from(e.childNodes))}function $n(e,t,{target$:r,print$:n}){let o=t.closest("[id]"),i=o==null?void 0:o.id,a=new Map;for(let s of _p(t)){let[,c]=s.textContent.match(/\((\d+)\)/);we(`:scope > li:nth-child(${c})`,e)&&(a.set(c,_s(c,i)),s.replaceWith(a.get(c)))}return a.size===0?w:j(()=>{let s=new I,c=s.pipe(be(),_e(!0)),l=[];for(let[u,p]of a)l.push([Y(".md-typeset",p),Y(`:scope > li:nth-child(${u})`,e)]);return n.pipe(ee(c)).subscribe(u=>{e.hidden=!u,e.classList.toggle("md-annotation-list",u);for(let[p,d]of l)u?ks(p,d):ks(d,p)}),R(...[...a].map(([,u])=>Ms(u,t,{target$:r}))).pipe(q(()=>s.complete()),xe())})}function As(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return As(t)}}function Cs(e,t){return j(()=>{let r=As(e);return typeof r!="undefined"?$n(r,e,t):w})}var $s=Zt(Ao());var xp=0,Hs=R(b(window,"keydown").pipe(f(()=>!0)),R(b(window,"keyup"),b(window,"contextmenu")).pipe(f(()=>!1))).pipe(J(!1),ne(1));function Ps(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ps(t)}}function wp(e){return Re(e).pipe(f(({width:t})=>({scrollable:Ar(e).width>t})),he("scrollable"))}function Is(e,t){let{matches:r}=matchMedia("(hover)"),n=j(()=>{let o=new I,i=o.pipe(eo(1));o.subscribe(({scrollable:m})=>{m&&r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let a=[],s=e.closest("pre"),c=s.closest("[id]"),l=c?c.id:xp++;s.id=`__code_${l}`;let u=[],p=e.closest(".highlight");if(p instanceof HTMLElement){let m=Ps(p);if(typeof m!="undefined"&&(p.classList.contains("annotate")||X("content.code.annotate"))){let h=$n(m,e,t);u.push(Re(p).pipe(ee(i),f(({width:v,height:_})=>v&&_),se(),g(v=>v?h:w)))}}let d=$(":scope > span[id]",e);if(d.length&&(e.classList.add("md-code__content"),e.closest(".select")||X("content.code.select")&&!e.closest(".no-select"))){let m=+d[0].id.split("-").pop(),h=ws();a.push(h),X("content.tooltips")&&u.push(Je(h,{viewport$}));let v=b(h,"click").pipe(Mr(L=>!L,!1),P(()=>h.blur()),xe());v.subscribe(L=>{h.classList.toggle("md-code__button--active",L)});let _=de(d).pipe(ae(L=>Dt(L).pipe(f(M=>[L,M]))));v.pipe(g(L=>L?_:w)).subscribe(([L,M])=>{let W=we(".hll.select",L);if(W&&!M)W.replaceWith(...Array.from(W.childNodes));else if(!W&&M){let te=document.createElement("span");te.className="hll select",te.append(...Array.from(L.childNodes).slice(1)),L.append(te)}});let x=de(d).pipe(ae(L=>b(L,"mousedown").pipe(P(M=>M.preventDefault()),f(()=>L)))),E=v.pipe(g(L=>L?x:w),fe(Hs),f(([L,M])=>{var te;let W=d.indexOf(L)+m;if(M===!1)return[W,W];{let ue=$(".hll",e).map(le=>d.indexOf(le.parentElement)+m);return(te=window.getSelection())==null||te.removeAllRanges(),[Math.min(W,...ue),Math.max(W,...ue)]}})),y=wo(w).pipe(O(L=>L.startsWith(`__codelineno-${l}-`)));y.subscribe(L=>{let[,,M]=L.split("-"),W=M.split(":").map(ue=>+ue-m+1);W.length===1&&W.push(W[0]);for(let ue of $(".hll:not(.select)",e))ue.replaceWith(...Array.from(ue.childNodes));let te=d.slice(W[0]-1,W[1]);for(let ue of te){let le=document.createElement("span");le.className="hll",le.append(...Array.from(ue.childNodes).slice(1)),ue.append(le)}}),y.pipe(Me(1),Ie(ye)).subscribe(L=>{if(L.includes(":")){let M=document.getElementById(L.split(":")[0]);M&&setTimeout(()=>{let W=M,te=-64;for(;W!==document.body;)te+=W.offsetTop,W=W.offsetParent;window.scrollTo({top:te})},1)}});let ve=de($('a[href^="#__codelineno"]',p)).pipe(ae(L=>b(L,"click").pipe(P(M=>M.preventDefault()),f(()=>L)))).pipe(ee(i),fe(Hs),f(([L,M])=>{let te=+Y(`[id="${L.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(M===!1)return[te,te];{let ue=$(".hll",e).map(le=>+le.parentElement.id.split("-").pop());return[Math.min(te,...ue),Math.max(te,...ue)]}}));R(E,ve).subscribe(L=>{let M=`#__codelineno-${l}-`;L[0]===L[1]?M+=L[0]:M+=`${L[0]}:${L[1]}`,history.replaceState({},"",M),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+M,oldURL:window.location.href}))})}if($s.default.isSupported()&&(e.closest(".copy")||X("content.code.copy")&&!e.closest(".no-copy"))){let m=xs(s.id);a.push(m),X("content.tooltips")&&u.push(Je(m,{viewport$}))}if(a.length){let m=Es();m.append(...a),s.insertBefore(m,e)}return wp(e).pipe(P(m=>o.next(m)),q(()=>o.complete()),f(m=>k({ref:e},m)),Ut(R(...u).pipe(ee(i))))});return X("content.lazy")?Ot(e).pipe(O(o=>o),Me(1),g(()=>n)):n}function Ep(e,{target$:t,print$:r}){let n=!0;return R(t.pipe(f(o=>o.closest("details:not([open])")),O(o=>e===o),f(()=>({action:"open",reveal:!0}))),r.pipe(O(o=>o||!n),P(()=>n=e.open),f(o=>({action:o?"open":"close"}))))}function Rs(e,t){return j(()=>{let r=new I;return r.subscribe(({action:n,reveal:o})=>{e.toggleAttribute("open",n==="open"),o&&e.scrollIntoView()}),Ep(e,t).pipe(P(n=>r.next(n)),q(()=>r.complete()),f(n=>k({ref:e},n)))})}var Ns=Zt(Hn());var js,Fs,Co={},Us=!1;function Ds(e,t){return t()?at(e).pipe(me(()=>D(void 0)),f(()=>{})):D(void 0)}function Tp(e){if(!e)return[];if(e.startsWith("[")&&e.endsWith("]"))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}catch(t){}return e.split(/[,\s]+/).map(t=>t.trim()).filter(t=>t.length>0)}function Sp(e){var o,i;let t=e.querySelector(".pyodide-editor-bar .pyodide-bar-item"),n=((o=t==null?void 0:t.textContent)!=null?o:"").match(/session:\s*([^)]+)\)?/i);return((i=n==null?void 0:n[1])==null?void 0:i.trim())||"default"}function Op(e){var i,a;let t=e.querySelector("[id$='--editor']"),r=e.querySelector("[id$='--run']"),n=e.querySelector("[id$='--clear']"),o=e.querySelector("[id$='--output']");if(!t||!r||!n||!o)throw new Error("Invalid Pyodide structure");return{root:e,editor:t,output:o,run:r,clear:n,source:(a=(i=t.textContent)==null?void 0:i.trimEnd())!=null?a:"",session:Sp(e),install:Tp(e.dataset.install)}}function Lp(e,t){return e in Co||(Co[e]=t.globals.get("dict")()),Co[e]}function Nr(e,t){e.innerHTML=(0,Ns.default)(t)}function Ho(e){e.innerHTML=""}function Mp(e){return new Option(e).innerHTML}function kp(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Ap(e,t,r,n){return pt(this,null,function*(){let o=[];e.setStdout({batched(i){o.push(i),Nr(r,`${o.join(`
`)}
`)}});try{let i=yield e.runPythonAsync(t.getValue(),{globals:Lp(n,e)});typeof i!="undefined"&&i!==null&&(o.push(String(i)),Nr(r,`${o.join(`
`)}
`))}catch(i){o.push(Mp(String(i))),Nr(r,`${o.join(`
`)}
`)}})}function Cp(){return Fs||(Fs=Ds("https://unpkg.com/pyodide@314.0.2/pyodide.js",()=>typeof loadPyodide=="undefined"||loadPyodide instanceof Element).pipe(f(()=>pt(null,null,function*(){try{let e=yield loadPyodide({indexURL:"https://unpkg.com/pyodide@314.0.2/"});return yield e.loadPackage("micropip"),e}catch(e){return null}})),ne(1))),Fs}function Hp(){Us||(ace.define("ace/theme/zensical",["require","exports","module","ace/lib/dom"],(e,t)=>{t.isDark=!1,t.cssClass="ace-zensical",t.cssText=""}),Us=!0)}function Ws(e){return js||(js=Ds("https://unpkg.com/ace-builds@1.44.0/src-noconflict/ace.js",()=>typeof ace=="undefined"||ace instanceof Element).pipe(ne(1))),new F(t=>{let r=!0,n,o,i=Op(e);i.root.setAttribute("data-md-exec-state","ready");let a=()=>Ho(i.output),s=()=>pt(null,null,function*(){return o||(o=pt(null,null,function*(){if(i.root.setAttribute("data-md-exec-state","loading"),Nr(i.output,"Initializing..."),yield kp(),!r)return null;let u=yield ln(Cp()).then(p=>p);if(!r||!u)return null;if(i.install.length>0)try{let p=u.pyimport("micropip");for(let d of i.install)yield p.install(d)}catch(p){return Ho(i.output),Nr(i.output,`Could not install one or more packages: ${i.install.join(", ")}
${String(p)}`),i.root.setAttribute("data-md-exec-state","error"),null}return r?(Ho(i.output),i.root.setAttribute("data-md-exec-state","ready"),u):null})),o}),c=()=>{pt(null,null,function*(){let u=yield s();!r||!u||!n||Ap(u,n,i.output,i.session)})},l=u=>{u.ctrlKey&&u.key.toLowerCase()==="enter"&&(u.preventDefault(),i.run.click())};return i.run.addEventListener("click",c),i.clear.addEventListener("click",a),i.root.addEventListener("keydown",l),pt(null,null,function*(){yield ln(js),r&&(Hp(),i.editor.textContent="",n=ace.edit(i.editor),n.setTheme("ace/theme/zensical"),n.session.setMode("ace/mode/python"),n.setOption("fontFamily","var(--md-code-font)"),n.setOption("minLines",0),n.setOption("maxLines",1/0),n.session.setValue(i.source),n.gotoLine(1,0,!1),n.clearSelection(),n.resize(),n.renderer.updateFull())}),t.next({ref:i.root}),()=>{r=!1,i.run.removeEventListener("click",c),i.clear.removeEventListener("click",a),i.root.removeEventListener("keydown",l),n==null||n.destroy(),i.root.removeAttribute("data-md-exec-state")}})}var Vs;function $p(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?at("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(me(()=>w),f(()=>{})):D(void 0)}function Pp(){return Ci("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css").pipe(me(()=>w),f(()=>{}))}function zs(e){return Vs||(Vs=$p().pipe(f(()=>new GLightbox(k({touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),ne(1))),Pp().pipe(g(()=>Vs),g(t=>(t.reload(),e.map(r=>({ref:r})))))}var qs=0,Ks=new Map;function Ip(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function Rp(e,t){for(let r of $("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of $("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${qs}`)}return qs++,D(e)}function jp(e){let t=Ks.get(e.toString());return t?D(t):Mn(e).pipe(g(r=>Rp(r,e)),f(r=>(Ks.set(e.toString(),r),r)))}function Bs(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return w;if(!(X("navigation.instant.preview")||e.hasAttribute("data-preview")))return w;e.removeAttribute("title");let n=oe([lr(e),Dt(e).pipe(ke(1))]).pipe(f(([i,a])=>i||a),se(),O(i=>i));return Rt([r,n]).pipe(g(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?D(a):w}),g(i=>jp(i)),g(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=we(a,i);return typeof s=="undefined"?w:D(Ip(s))})).pipe(g(i=>{let a=new F(s=>{let c=Cn(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Fr(e,k({content$:a},t))}))}var Gs=".node circle,.node ellipse,.node path,.node polygon,.node rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.marker{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{line-height:normal;overflow:visible}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{fill:var(--md-mermaid-label-bg-color);color:var(--md-mermaid-edge-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.classGroup text{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.classLabel .box{fill:var(--md-mermaid-label-bg-color);background-color:var(--md-mermaid-label-bg-color);opacity:1}.classLabel .label{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality{fill:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important;font-family:var(--md-mermaid-font-family)}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.nodeLabel p{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}defs [id$=-barbEnd]{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color);font-family:var(--md-mermaid-font-family)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{stroke:none;font-family:var(--md-mermaid-font-family)!important}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan,.sectionTitle{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}[id$=-arrowhead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{fill:var(--md-mermaid-sequence-label-fg-color);font-family:var(--md-mermaid-font-family)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}[id$=-sequencenumber],defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}[class^=activation]{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-label-fg-color);stroke-width:1.5px}";var $o,Up=0;function Np(){return typeof mermaid=="undefined"||mermaid instanceof Element?at("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):D(void 0)}function Ys(e){return e.classList.remove("mermaid"),$o||($o=Np().pipe(P(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Gs,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),f(()=>{}),ne(1))),$o.subscribe(()=>pt(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${Up++}`,r=A("div",{class:"mermaid"}),n=e.textContent,{svg:o,fn:i}=yield mermaid.render(t,n),a=r.attachShadow({mode:"closed"});a.innerHTML=o,e.replaceWith(r),i==null||i(a)})),$o.pipe(f(()=>({ref:e})))}var Js=A("table");function Xs(e){return e.replaceWith(Js),Js.replaceWith(Os(e)),D({ref:e})}function Dp(e){let t=e.find(r=>r.checked)||e[0];return R(...e.map(r=>b(r,"change").pipe(f(()=>Y(`label[for="${r.id}"]`))))).pipe(J(Y(`label[for="${t.id}"]`)),f(r=>({active:r})))}function Zs(e,{viewport$:t,target$:r}){let n=Y(".tabbed-labels",e),o=$(":scope > input",e),i=Mo("prev");e.append(i);let a=Mo("next");return e.append(a),j(()=>{let s=new I,c=s.pipe(be(),_e(!0));oe([s,Re(e),Ot(e)]).pipe(ee(c),Ze(1,je)).subscribe({next([{active:l},u]){let p=St(l),{width:d}=Ae(l);e.style.setProperty("--md-indicator-x",`${p.x}px`),e.style.setProperty("--md-indicator-width",`${d}px`);let m=dn(n);(p.x<m.x||p.x+d>m.x+u.width)&&n.scrollTo({left:Math.max(0,p.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),oe([Wt(n),Re(n)]).pipe(ee(c)).subscribe(([l,u])=>{let p=Ar(n);i.hidden=l.x<16,a.hidden=l.x>p.width-u.width-16}),R(b(i,"click").pipe(f(()=>-1)),b(a,"click").pipe(f(()=>1))).pipe(ee(c)).subscribe(l=>{let{width:u}=Ae(n);n.scrollBy({left:u*l,behavior:"smooth"})}),r.pipe(ee(c),O(l=>o.includes(l))).subscribe(l=>l.click()),n.classList.add("tabbed-labels--linked");for(let l of o){let u=Y(`label[for="${l.id}"]`);u.replaceChildren(A("a",{href:`#${u.htmlFor}`,tabIndex:-1},...Array.from(u.childNodes))),b(u.firstElementChild,"click").pipe(ee(c),O(p=>!(p.metaKey||p.ctrlKey)),P(p=>{p.preventDefault(),p.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${u.htmlFor}`),u.click()})}return X("content.tabs.link")&&s.pipe(ke(1),fe(t)).subscribe(([{active:l},{offset:u}])=>{let p=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let d=e.offsetTop-u.y;for(let h of $("[data-tabs]"))for(let v of $(":scope > input",h)){let _=Y(`label[for="${v.id}"]`);if(_!==l&&_.innerText.trim()===p){_.setAttribute("data-md-switching",""),v.click();break}}window.scrollTo({top:e.offsetTop-d});let m=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([p,...m])])}}),s.pipe(ee(c)).subscribe(()=>{for(let l of $("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),Dp(o).pipe(P(l=>s.next(l)),q(()=>s.complete()),f(l=>k({ref:e},l)))}).pipe(It(ye))}function Qs(e,t){let{viewport$:r,target$:n,print$:o}=t;return R(...$(".annotate:not(.highlight)",e).map(i=>Cs(i,{target$:n,print$:o})),...$(".pyodide",e).map(i=>Ws(i)),...$("pre:not(.mermaid) > code",e).filter(i=>!i.closest(".pyodide")).map(i=>Is(i,{target$:n,print$:o})),...$("a",e).map(i=>Bs(i,t)),...$("pre.mermaid",e).map(i=>Ys(i)),...[$(".glightbox",e)].filter(i=>i.length>0).map(i=>zs(i)),...$("table:not([class])",e).map(i=>Xs(i)),...$("details",e).map(i=>Rs(i,{target$:n,print$:o})),...$("[data-tabs]",e).map(i=>Zs(i,{viewport$:r,target$:n})),...$("[title]:not([data-preview])",e).filter(()=>X("content.tooltips")).map(i=>Je(i,{viewport$:r})),...$(".footnote-ref",e).filter(()=>X("content.footnote.tooltips")).map(i=>Fr(i,{content$:new F(a=>{let s=new URL(i.href).hash.slice(1),c=Array.from(document.getElementById(s).cloneNode(!0).children),l=Cn(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function Wp(e,{alert$:t}){return t.pipe(g(r=>R(D(!0),D(!1).pipe(Ft(2e3))).pipe(f(n=>({message:r,active:n})))))}function ec(e,t){let r=Y(".md-typeset",e);return j(()=>{let n=new I;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),Wp(e,t).pipe(P(o=>n.next(o)),q(()=>n.complete()),f(o=>k({ref:e},o)))})}function Vp({viewport$:e}){if(!X("header.autohide"))return D(!1);let t=e.pipe(f(({offset:{y:o}})=>o),jt(2,1),f(([o,i])=>[o<i,i]),he(0)),r=oe([e,t]).pipe(O(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),f(([,[o]])=>o),se()),n=kn("search");return oe([e,n]).pipe(f(([{offset:o},i])=>o.y>400&&!i),se(),g(o=>o?r:D(!1)),J(!1))}function tc(e,t){return j(()=>oe([Re(e),Vp(t)])).pipe(f(([{height:r},n])=>({height:r,hidden:n})),se((r,n)=>r.height===n.height&&r.hidden===n.hidden),ne(1))}function rc(e,{viewport$:t,header$:r,main$:n}){return j(()=>{let o=new I,i=o.pipe(be(),_e(!0));o.pipe(he("active"),Qe(r)).subscribe(([{active:s},{hidden:c}])=>{e.classList.toggle("md-header--shadow",s&&!c),e.hidden=c});let a=de($("[title]",e)).pipe(O(()=>X("content.tooltips")),ae(s=>Je(s,{viewport$:t})));return n.subscribe(o),r.pipe(ee(i),f(s=>k({ref:e},s)),Ut(a.pipe(ee(i))))})}function zp(e,{viewport$:t,header$:r}){return An(e,{viewport$:t,header$:r}).pipe(f(({offset:{y:n}})=>{let{height:o}=Ae(e);return{active:o>0&&n>=o}}),he("active"))}function nc(e,t){return j(()=>{let r=new I;r.subscribe({next({active:o}){e.classList.toggle("md-header__title--active",o)},complete(){e.classList.remove("md-header__title--active")}});let n=we(".md-content h1");return typeof n=="undefined"?w:zp(n,t).pipe(P(o=>r.next(o)),q(()=>r.complete()),f(o=>k({ref:e},o)))})}function oc(e,{viewport$:t,header$:r}){let n=r.pipe(f(({height:i})=>i),se()),o=n.pipe(g(()=>Re(e).pipe(f(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),he("bottom"))));return oe([n,o,t]).pipe(f(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),se((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function qp(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return D(...e).pipe(ae(n=>b(n,"change").pipe(f(()=>n))),J(e[r]),f(n=>({index:e.indexOf(n),color:{media:n.getAttribute("data-md-color-media"),scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),ne(1))}function ic(e){let t=$("input",e),r=A("meta",{name:"theme-color"});document.head.appendChild(r);let n=A("meta",{name:"color-scheme"});document.head.appendChild(n);let o=jr("(prefers-color-scheme: light)");return j(()=>{let i=new I;return i.subscribe(a=>{if(document.body.setAttribute("data-md-color-switching",""),a.color.media==="(prefers-color-scheme)"){let s=matchMedia("(prefers-color-scheme: light)"),c=document.querySelector(s.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=c.getAttribute("data-md-color-scheme"),a.color.primary=c.getAttribute("data-md-color-primary"),a.color.accent=c.getAttribute("data-md-color-accent")}for(let[s,c]of Object.entries(a.color))document.body.setAttribute(`data-md-color-${s}`,c);for(let s=0;s<t.length;s++){let c=t[s].nextElementSibling;c instanceof HTMLElement&&(c.hidden=a.index!==s)}__md_set("__palette",a)}),b(e,"keydown").pipe(O(a=>a.key==="Enter"),fe(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(f(()=>{let a=gt("header"),s=window.getComputedStyle(a);return n.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")})).subscribe(a=>r.content=`#${a}`),i.pipe(Ie(ye)).subscribe(()=>{document.body.removeAttribute("data-md-color-switching")}),qp(t).pipe(ee(o.pipe(ke(1))),Nt(),P(a=>i.next(a)),q(()=>i.complete()),f(a=>k({ref:e},a)))})}function ac(e,{progress$:t}){return j(()=>{let r=new I;return r.subscribe(({value:n})=>{e.style.setProperty("--md-progress-value",`${n}`)}),t.pipe(P(n=>r.next({value:n})),q(()=>r.complete()),f(n=>({ref:e,value:n})))})}var sc=`.m u{text-decoration:underline!important;text-decoration-style:wavy!important;text-decoration-thickness:1px!important}.p{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));cursor:pointer;height:100%;pointer-events:auto;position:absolute;transition:opacity .25s;width:100%}.p.v{opacity:0;pointer-events:none;transition:opacity .35s}.r{align-items:center;background-color:initial;border:none;border-radius:var(--space-2);cursor:pointer;display:flex;flex-shrink:0;font-family:var(--font-family);height:36px;justify-content:center;outline:none;padding:0;position:relative;transition:background-color .25s,color .25s;width:36px;z-index:1}.r svg{stroke:rgb(var(--color-foreground));height:18px;opacity:.5;width:18px}.r:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.r:hover:before{opacity:1;transform:scale(1)}.r.c{cursor:auto}.r.c:before{display:none}.n{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background)/var(--alpha-light));border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));border-radius:var(--space-3);box-shadow:0 0 60px #0000000d;display:flex;height:480px;overflow:hidden;pointer-events:auto;position:absolute;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s;width:640px}.n.l{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media (max-width:680px){.n{border-radius:0;height:100%;width:100%}}.y{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;min-width:0}@keyframes d{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.w{animation:d .25s ease-in-out;background:var(--color-highlight);border-radius:100%;color:#fff;font-size:8px;font-weight:700;height:12px;padding-top:1px;position:absolute;right:4px;top:4px;width:12px}.e{background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-left:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));flex-shrink:0;overflow-y:scroll;position:relative;transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s;width:200px}.e>*{transform:translate(0);transition:transform .25s cubic-bezier(.16,1,.3,1)}.e.l{opacity:0;width:0}.e.l>*{transform:translate(-48px)}@media (max-width:680px){.e{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background-color:rgba(var(--color-background-subtle)/var(--alpha-light));box-shadow:0 0 60px #00000026;height:100%;position:absolute;right:0;top:0}}.k{border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));display:flex;gap:var(--space-1);padding:var(--space-2)}.z{-webkit-overflow-scrolling:touch;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}.j{padding:8px 10px}.X{color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2);position:absolute;width:100%}.F,.X{display:flex;flex-direction:column}.F{gap:2px;list-style:none;padding:0}.F,.I{margin:0}.I{font-size:16px;font-weight:400}.I,.R{padding:8px}.R{font-size:14px;margin:4px 0 0;opacity:.5}.R,.o{font-size:12px}.o{cursor:pointer;display:flex;padding:4px 8px;position:relative}.o:before{background-color:var(--color-highlight-transparent);border-radius:var(--space-1);content:"";inset:0;opacity:0;position:absolute;transform:scale(.75);transition:transform 125ms,opacity 125ms;z-index:0}.o.g:before,.o:hover:before{opacity:1;transform:scale(1)}.o.g,.o:hover{color:var(--color-highlight)}.q{flex-grow:1}.A,.q{position:relative}.A{font-weight:700}.f{flex-grow:1}.f input{background:#0000;border:none;color:rgb(var(--color-foreground));font-family:var(--font-family);font-size:16px;height:100%;letter-spacing:-.25px;outline:none;width:100%}.b{color:rgb(var(--color-foreground)/var(--alpha-light));display:flex;flex-direction:column;gap:2px;line-height:1.3;list-style:none;margin:var(--space-2);margin-top:0;padding:0}.B,.b li{margin:0}.B{color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;margin-top:var(--space-2);padding:0 18px}.i{border-radius:var(--space-2);color:inherit;cursor:pointer;display:flex;flex-direction:row;flex-grow:1;padding:8px 10px;position:relative;text-decoration:none}.i:before{background-color:rgb(var(--color-background-subtle));border-radius:var(--border-radius-2);content:"";display:block;inset:0;opacity:0;position:absolute;transform:scale(.9);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.i.h:before,.i:hover:before{opacity:1;transform:scale(1)}}.i mark{background:#0000;color:var(--color-highlight)}.i u{text-decoration:underline}.C{flex-direction:column;flex-grow:1;gap:5.5px}.C,.D{display:flex;min-width:0}.D{align-items:flex-start;gap:var(--space-2);justify-content:space-between}.s{align-items:flex-end;align-self:flex-end;display:flex;flex-direction:column;gap:6px;justify-content:flex-end;margin-right:-8px;margin-top:auto;opacity:0;position:relative;transform:translate(-2px);transition:transform 125ms,opacity 125ms;z-index:0}@media (pointer:fine){.h>.s,:hover>.s{opacity:1;transform:none}}.x{font-size:14px;margin:0;position:relative}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);font-size:13px;padding:2px 4px}.t{color:rgb(var(--color-foreground)/.45);display:inline-flex;flex:1 1 auto;flex-wrap:wrap;font-size:12px;gap:var(--space-1);list-style:none;margin:0;min-width:0;padding:0;position:relative}.t li{white-space:nowrap}.t li:after{content:"/";display:inline;margin-left:var(--space-1)}.t li:last-child:after{content:"";display:none}.u{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:rgb(var(--color-foreground));display:-webkit-box;font-size:12px;line-height:1.5;overflow:hidden;position:relative}.u code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px}.E,.u code{font-size:11px}.E{color:rgb(var(--color-foreground)/.45);line-height:1;white-space:nowrap;z-index:1}.a{--space-1:4px;--space-2:calc(var(--space-1)*2);--space-3:calc(var(--space-2)*2);--space-4:calc(var(--space-3)*2);--space-5:calc(var(--space-4)*2);--alpha-light:0.7;--alpha-lighter:0.54;--alpha-lightest:0.07;--color-highlight:var(--md-accent-fg-color,#526cfe);--color-highlight-transparent:var(
--md-accent-fg-color--transparent,#526cfe1a
);--border-radius-1:var(--space-1);--border-radius-2:var(--space-2);--border-radius-3:calc(var(--space-1) + var(--space-2));--font-family:var(
--md-text-font-family,Inter,Roboto Flex,system-ui,sans-serif
);--font-size:16px;--line-height:1.5;--letter-spacing:-0.5px;-webkit-font-smoothing:antialiased;align-items:center;display:flex;font-family:var(--font-family);font-size:var(--font-size);height:100vh;justify-content:center;letter-spacing:var(--letter-spacing);line-height:var(--line-height);pointer-events:none;position:absolute;width:100vw}@media (pointer:coarse){.a{height:-webkit-fill-available}}.a *,.a :after,.a :before{box-sizing:border-box}`;function cc(e,{index$:t}){let r=Ne(),n=document.createElement("div");document.body.appendChild(n),n.style.position="fixed",n.style.height="100%",n.style.top="0",n.style.zIndex="4";let o=n.attachShadow({mode:"open"});o.appendChild(A("style",{},sc.toString()));try{ts(r.search,{highlight:r.features.includes("search.highlight")}),de(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();os(i,o)}),b(e,"click").subscribe(()=>{xo()}),kn("search").pipe(ke(1)).subscribe(()=>xo())}catch(i){e.hidden=!0;let a=Y("label[for=__search]");a.hidden=!0}return Ge}var lc=Zt(Hn());function uc(e,{index$:t,location$:r}){return oe([t,r.pipe(J(Ue()),O(n=>!!n.searchParams.get("h")))]).pipe(f(([n,o])=>Bp(n.config)(o.searchParams.get("h"))),f(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let c=s.textContent,l=n(c);l.length>c.length&&o.set(s,l)}for(let[s,c]of o){let{childNodes:l}=A("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:o}}))}function Bp(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}<mark data-md-highlight>${a}</mark>`;return o=>{o=o.replace(/\s+/g," ").replace(/&/g,"&amp;").trim();let i=new RegExp(`(^|${e.separator}|)(${o.split(r).map(a=>a.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")).filter(a=>a.length>=2).join("|")})`,"img");return a=>(0,lc.default)(a).replace(i,n).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function Gp(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return oe([r,t]).pipe(f(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),se((i,a)=>i.height===a.height&&i.locked===a.locked))}function Po(e,n){var o=n,{header$:t}=o,r=xr(o,["header$"]);let i=Y(".md-sidebar__scrollwrap",e),{y:a}=St(i);return j(()=>{let s=new I,c=s.pipe(be(),_e(!0)),l=s.pipe(Ze(0,je));return l.pipe(fe(t)).subscribe({next([{height:u},{height:p}]){i.style.height=`${u-2*a}px`,e.style.top=`${p}px`},complete(){i.style.height="",e.style.top=""}}),l.pipe(Lr()).subscribe(()=>{for(let u of $(".md-nav__link--active[href]",e)){if(!u.clientHeight)continue;let p=u.closest(".md-sidebar__scrollwrap");if(typeof p!="undefined"){let d=u.offsetTop-p.offsetTop,{height:m}=Ae(p);p.scrollTo({top:d-m/2})}}}),de($("label[tabindex]",e)).pipe(ae(u=>b(u,"click").pipe(Ie(ye),f(()=>u),ee(c)))).subscribe(u=>{let p=Y(`[id="${u.htmlFor}"]`);Y(`[aria-labelledby="${u.id}"]`).setAttribute("aria-expanded",`${p.checked}`)}),X("content.tooltips")&&de($("abbr[title]",e)).pipe(ae(u=>Je(u,{viewport$})),ee(c)).subscribe(),Gp(e,r).pipe(P(u=>s.next(u)),q(()=>s.complete()),f(u=>k({ref:e},u)))})}function pc(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Rt(tt(`${r}/releases/latest`).pipe(me(()=>w),f(n=>({version:n.tag_name})),it({})),tt(r).pipe(me(()=>w),f(n=>({stars:n.stargazers_count,forks:n.forks_count})),it({}))).pipe(f(([n,o])=>k(k({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return tt(r).pipe(f(n=>({repositories:n.public_repos})),it({}))}}function fc(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Rt(tt(`${r}/releases/permalink/latest`).pipe(me(()=>w),f(({tag_name:n})=>({version:n})),it({})),tt(r).pipe(me(()=>w),f(({star_count:n,forks_count:o})=>({stars:n,forks:o})),it({}))).pipe(f(([n,o])=>k(k({},n),o)))}function mc(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return pc(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return fc(r,n)}return w}var Yp;function Jp(e){return Yp||(Yp=j(()=>{let t=__md_get("__source",sessionStorage);if(t)return D(t);if(Te("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return w}return mc(e.href).pipe(P(n=>__md_set("__source",n,sessionStorage)))}).pipe(me(()=>w),O(t=>Object.keys(t).length>0),f(t=>({facts:t})),ne(1)))}function dc(e){let t=Y(":scope > :last-child",e);return j(()=>{let r=new I;return r.subscribe(({facts:n})=>{t.appendChild(Ss(n)),t.classList.add("md-source__repository--active")}),Jp(e).pipe(P(n=>r.next(n)),q(()=>r.complete()),f(n=>k({ref:e},n)))})}function Xp(e,{viewport$:t,header$:r}){return Re(document.body).pipe(g(()=>An(e,{header$:r,viewport$:t})),f(({offset:{y:n}})=>({hidden:n>=10})),he("hidden"))}function hc(e,t){return j(()=>{let r=new I;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(X("navigation.tabs.sticky")?D({hidden:!1}):Xp(e,t)).pipe(P(n=>r.next(n)),q(()=>r.complete()),f(n=>k({ref:e},n)))})}function Zp(e,{viewport$:t,header$:r}){let n=new Map,o=$(".md-nav__link",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),l=we(`[id="${c}"]`);typeof l!="undefined"&&n.set(s,l)}let i=r.pipe(he("height"),f(({height:s})=>{let c=gt("main"),l=Y(":scope > :first-child",c);return s+.9*(l.offsetTop-c.offsetTop)}),xe());return Re(document.body).pipe(he("height"),g(s=>j(()=>{let c=[];return D([...n].reduce((l,[u,p])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=p.tagName;)c.pop();let d=p.offsetTop;for(;!d&&p.parentElement;)p=p.parentElement,d=p.offsetTop;let m=p.offsetParent;for(;m;m=m.offsetParent)d+=m.offsetTop;return l.set([...c=[...c,u]].reverse(),d)},new Map))}).pipe(f(c=>new Map([...c].sort(([,l],[,u])=>l-u))),Qe(i),g(([c,l])=>t.pipe(Mr(([u,p],{offset:{y:d},size:m})=>{let h=d+m.height>=Math.floor(s.height);for(;p.length;){let[,v]=p[0];if(v-l<d||h)u=[...u,p.shift()];else break}for(;u.length;){let[,v]=u[u.length-1];if(v-l>=d&&!h)p=[u.pop(),...p];else break}return[u,p]},[[],[...c]]),se((u,p)=>u[0]===p[0]&&u[1]===p[1])))))).pipe(f(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),J({prev:[],next:[]}),jt(2,1),f(([s,c])=>s.prev.length<c.prev.length?{prev:c.prev.slice(Math.max(0,s.prev.length-1),c.prev.length),next:[]}:{prev:c.prev.slice(-1),next:c.next.slice(0,c.next.length-s.next.length)}))}function vc(e,{viewport$:t,header$:r,main$:n,target$:o}){return j(()=>{let i=new I,a=i.pipe(be(),_e(!0));i.subscribe(({prev:c,next:l})=>{for(let[u]of l)u.classList.remove("md-nav__link--passed"),u.classList.remove("md-nav__link--active");for(let[u,[p]]of c.entries())p.classList.add("md-nav__link--passed"),p.classList.toggle("md-nav__link--active",u===c.length-1)});let s=we(".md-sidebar--secondary");if(typeof s!="undefined"&&b(document.body,"click").subscribe(c=>{let l=c.target;if(!s.contains(l)){let u=we(".md-nav__toggle",s);typeof u!="undefined"&&(u.checked=!1)}}),X("toc.follow")){let c=R(t.pipe(Ye(1),f(()=>{})),t.pipe(Ye(250),f(()=>"smooth")));i.pipe(O(({prev:l})=>l.length>0),Qe(n.pipe(Ie(ye))),fe(c)).subscribe(([[{prev:l}],u])=>{let[p]=l[l.length-1];if(p.offsetHeight){let d=$i(p);if(typeof d!="undefined"){let m=p.offsetTop-d.offsetTop,{height:h}=Ae(d);d.scrollTo({top:m-h/2,behavior:u})}}})}return X("navigation.tracking")&&t.pipe(ee(a),he("offset"),Ye(250),ke(1),ee(o.pipe(ke(1))),Nt({delay:250}),fe(i)).subscribe(([,{prev:c}])=>{let l=Ue(),u=c[c.length-1];if(u&&u.length){let[p]=u,{hash:d}=new URL(p.href);l.hash!==d&&(l.hash=d,history.replaceState({},"",`${l}`))}else l.hash="",history.replaceState({},"",`${l}`)}),Zp(e,{viewport$:t,header$:r}).pipe(P(c=>i.next(c)),q(()=>i.complete()),f(c=>k({ref:e},c)))})}function Qp(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(f(({offset:{y:a}})=>a),jt(2,1),f(([a,s])=>a>s&&s>0),se()),i=r.pipe(f(({active:a})=>a));return oe([i,o]).pipe(f(([a,s])=>!(a&&s)),se(),ee(n.pipe(ke(1))),_e(!0),Nt({delay:250}),f(a=>({hidden:a})))}function bc(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new I,a=i.pipe(be(),_e(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(ee(a),he("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),b(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),Qp(e,{viewport$:t,main$:n,target$:o}).pipe(P(s=>i.next(s)),q(()=>i.complete()),f(s=>k({ref:e},s)))}function gc(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function ef(e,t){let r=new Map;for(let n of $("url",e)){let o=Y("loc",n),i=[gc(new URL(o.textContent),t)];r.set(`${i[0]}`,i);for(let a of $("[rel=alternate]",n)){let s=a.getAttribute("href");s!=null&&i.push(gc(new URL(s),t))}}return r}function br(e){return ps(new URL("sitemap.xml",e)).pipe(f(t=>ef(t,new URL(e))),me(()=>D(new Map)),xe())}function yc({document$:e}){let t=new Map;e.pipe(g(()=>$("link[rel=alternate]")),f(r=>new URL(r.href)),O(r=>!t.has(r.toString())),ae(r=>br(r).pipe(f(n=>[r,n]),me(()=>w)))).subscribe(([r,n])=>{t.set(r.toString().replace(/\/$/,""),n)}),b(document.body,"click").pipe(O(r=>!r.metaKey&&!r.ctrlKey),g(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([p])=>n.href.startsWith(`${p}/`));if(typeof o=="undefined")return w;let[i,a]=o,s=Ue();if(s.href.startsWith(i))return w;let c=Ne(),l=s.href.replace(c.base,"");l=`${i}/${l}`;let u=a.has(l.split("#")[0])?new URL(l,c.base):new URL(i);return r.preventDefault(),D(u)}}return w})).subscribe(r=>bt(r,!0))}var Io=Zt(Ao());function tf(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function _c({alert$:e}){Io.default.isSupported()&&new F(t=>{new Io.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||tf(Y(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(P(t=>{t.trigger.focus()}),f(()=>Yt("clipboard.copied"))).subscribe(e)}function xc(e,t){if(!(e.target instanceof Element))return w;let r=e.target.closest("a");if(r===null)return w;if(r.target||e.metaKey||e.ctrlKey)return w;let n=new URL(r.href);return n.search=n.hash="",t.has(`${n}`)?(e.preventDefault(),D(r)):w}function wc(e){let t=new Map;for(let r of $(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Ec(e){for(let t of $("[href], [src]",e))for(let r of["href","src"]){let n=t.getAttribute(r);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){t[r]=t[r];break}}return D(e)}function rf(e){var r;if(e.tagName!=="STYLE")return!1;let t=(r=e.textContent)!=null?r:"";return t.includes(".ace_editor")||t.includes(".ace-zensical")||t.includes(".ace_scroller")||t.includes(".ace_gutter")}function nf(e){for(let n of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...X("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let o=we(n),i=we(n,e);typeof o!="undefined"&&typeof i!="undefined"&&o.replaceWith(i)}let t=wc(document);for(let[n,o]of wc(e))t.has(n)?t.delete(n):document.head.appendChild(o);for(let n of t.values()){let o=n.getAttribute("name");o!=="theme-color"&&o!=="color-scheme"&&!rf(n)&&n.remove()}let r=gt("container");return ot($("script",r)).pipe(g(n=>{let o=e.createElement("script");if(n.src){for(let i of n.getAttributeNames())o.setAttribute(i,n.getAttribute(i));return n.replaceWith(o),new F(i=>{o.onload=()=>i.complete()})}else return o.textContent=n.textContent,n.replaceWith(o),w}),be(),_e(document))}function Tc({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Ge;D(document).subscribe(Ec);let o=b(document.body,"click").pipe(Qe(e),g(([s,c])=>xc(s,c)),f(({href:s})=>new URL(s)),xe()),i=b(window,"popstate").pipe(f(Ue),xe());o.pipe(fe(r)).subscribe(([s,{offset:c}])=>{history.replaceState(c,""),history.pushState(null,"",s)}),R(o,i).subscribe(t);let a=t.pipe(J(Ue()),mn(),O(([s,c])=>s.pathname!==c.pathname),f(([,s])=>s),g(s=>Mn(s,{progress$:n}).pipe(me(()=>(bt(s,!0),w)))),g(Ec),g(nf),xe());return R(a.pipe(fe(t,(s,c)=>c)),a.pipe(g(()=>t),he("hash")),t.pipe(J(Ue()),mn(),O(([s,c])=>s.pathname===c.pathname&&s.hash!==c.hash),f(([,s])=>s)),t.pipe(se((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),g(()=>o),P(()=>history.back()))).subscribe(s=>{var c,l;history.state!==null||!s.hash?window.scrollTo(0,(l=(c=history.state)==null?void 0:c.y)!=null?l:0):(history.scrollRestoration="auto",cs(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),b(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(he("offset"),Ye(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),X("navigation.instant.prefetch")&&R(b(document.body,"mousemove"),b(document.body,"focusin")).pipe(Qe(e),g(([s,c])=>xc(s,c)),Ye(25),Qn(({href:s})=>s),fn(s=>{let c=document.createElement("link");return c.rel="prefetch",c.href=s.toString(),document.head.appendChild(c),b(c,"load").pipe(f(()=>c),Me(1))})).subscribe(s=>s.remove()),a}function Sc(e){var u;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(u=Ro(o))==null?void 0:u.pathname;if(i===void 0)return;let a=of(n.pathname,i);if(a===void 0)return;let s=sf(t.keys());if(!t.has(s))return;let c=Ro(a,s);if(!c||!t.has(c.href))return;let l=Ro(a,r);if(l)return l.hash=n.hash,l.search=n.search,l}function Ro(e,t){try{return new URL(e,t)}catch(r){return}}function of(e,t){if(e.startsWith(t))return e.slice(t.length)}function af(e,t){let r=Math.min(e.length,t.length),n;for(n=0;n<r&&e[n]===t[n];++n);return n}function sf(e){let t;for(let r of e)t===void 0?t=r:t=t.slice(0,af(t,r));return t!=null?t:""}function Oc({document$:e}){let t=Ne(),r=tt(new URL("../versions.json",t.base)).pipe(me(()=>w)),n=r.pipe(f(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:a,aliases:s})=>a===i||s.includes(i))||o[0]}));r.pipe(f(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),g(o=>b(document.body,"click").pipe(O(i=>!i.metaKey&&!i.ctrlKey),fe(n),g(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&o.get(c)===a?w:(i.preventDefault(),D(new URL(c)))}}return w}),g(i=>br(i).pipe(f(a=>{var s;return(s=Sc({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Ue(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>bt(o,!0)),oe([r,n]).subscribe(([o,i])=>{Y(".md-header__topic").appendChild(Ls(o,i))}),e.pipe(g(()=>n)).subscribe(o=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let c=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(c)||(c=[c]);e:for(let l of c)for(let u of o.aliases.concat(o.version))if(new RegExp(l,"i").test(u)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of Te("outdated"))c.hidden=!1})}function Lc({document$:e,viewport$:t}){e.pipe(g(()=>$(".md-ellipsis")),ae(r=>Ot(r).pipe(ee(e.pipe(ke(1))),O(n=>n),f(()=>r),Me(1))),O(r=>r.offsetWidth<r.scrollWidth),ae(r=>{let n=r.innerText,o=r.closest("a")||r;return o.title=n,X("content.tooltips")?Je(o,{viewport$:t}).pipe(ee(e.pipe(ke(1))),q(()=>o.removeAttribute("title"))):w})).subscribe(),X("content.tooltips")&&e.pipe(g(()=>$(".md-status")),ae(r=>Je(r,{viewport$:t}))).subscribe()}function Mc({document$:e,tablet$:t}){e.pipe(g(()=>$(".md-toggle--indeterminate")),P(r=>{r.indeterminate=!0,r.checked=!1}),ae(r=>b(r,"change").pipe(ro(()=>r.classList.contains("md-toggle--indeterminate")),f(()=>r))),fe(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function cf(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function kc({document$:e}){e.pipe(g(()=>$("[data-md-scrollfix]")),P(t=>t.removeAttribute("data-md-scrollfix")),O(cf),ae(t=>b(t,"touchstart").pipe(f(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function lf(){return location.protocol==="file:"?at(`${new URL("search.js",Pn.base)}`).pipe(f(()=>__index),me(()=>Ge),ne(1)):tt(new URL("search.json",Pn.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var yt=Mi(),Wr=as(),gr=ls(Wr),Cc=is(),Ke=vs(),jo=jr("(min-width: 60em)"),Hc=jr("(min-width: 76.25em)"),$c=us(),Pn=Ne(),Pc=we(".md-search")?lf():Ge,Fo=new I;_c({alert$:Fo});yc({document$:yt});var Uo=new I,Ic=br(Pn.base);X("navigation.instant")&&Tc({sitemap$:Ic,location$:Wr,viewport$:Ke,progress$:Uo}).subscribe(yt);var Ac;((Ac=Pn.version)==null?void 0:Ac.provider)==="mike"&&Oc({document$:yt});R(Wr,gr).pipe(Ft(125)).subscribe(()=>{Oo("drawer",!1),Oo("search",!1)});Cc.pipe(O(({mode:e,meta:t})=>e==="global"&&!t)).subscribe(e=>{switch(e.type){case",":case"p":let t=document.querySelector("link[rel=prev]");t instanceof HTMLLinkElement&&bt(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&bt(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&n.click();break;case"Enter":let o=Tt();o instanceof HTMLLabelElement&&o.click()}});Lc({viewport$:Ke,document$:yt});Mc({document$:yt,tablet$:jo});kc({document$:yt});var Ct=tc(gt("header"),{viewport$:Ke}),Dr=yt.pipe(f(()=>gt("main")),g(e=>oc(e,{viewport$:Ke,header$:Ct})),ne(1)),uf=R(...Te("consent").map(e=>gs(e,{target$:gr})),...Te("dialog").map(e=>ec(e,{alert$:Fo})),...Te("palette").map(e=>ic(e)),...Te("progress").map(e=>ac(e,{progress$:Uo})),...Te("search").map(e=>cc(e,{index$:Pc})),...Te("source").map(e=>dc(e))),pf=j(()=>R(...Te("announce").map(e=>bs(e)),...Te("content").map(e=>Qs(e,{sitemap$:Ic,viewport$:Ke,target$:gr,print$:$c})),...Te("content").map(e=>X("search.highlight")?uc(e,{index$:Pc,location$:Wr}):w),...Te("header").map(e=>rc(e,{viewport$:Ke,header$:Ct,main$:Dr})),...Te("header-title").map(e=>nc(e,{viewport$:Ke,header$:Ct})),...Te("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Eo(Hc,()=>Po(e,{viewport$:Ke,header$:Ct,main$:Dr})):Eo(jo,()=>Po(e,{viewport$:Ke,header$:Ct,main$:Dr}))),...Te("tabs").map(e=>hc(e,{viewport$:Ke,header$:Ct})),...Te("toc").map(e=>vc(e,{viewport$:Ke,header$:Ct,main$:Dr,target$:gr})),...Te("top").map(e=>bc(e,{viewport$:Ke,header$:Ct,main$:Dr,target$:gr})))),Rc=yt.pipe(g(()=>pf),Ut(uf),ne(1));Rc.subscribe();window.document$=yt;window.location$=Wr;window.target$=gr;window.keyboard$=Cc;window.viewport$=Ke;window.tablet$=jo;window.screen$=Hc;window.print$=$c;window.alert$=Fo;window.progress$=Uo;window.component$=Rc;})();