Files
hello-algo/ru/assets/javascripts/bundle.d7f30b55.min.js
T
krahets a81d2e9187 deploy
2026-07-22 17:42:01 +08:00

12 lines
162 KiB
JavaScript

"use strict";(()=>{function __ha_langroot(e){let t=new URL(e),r=t.pathname.match(/^\/(zh-hant|en|ja|ru)(?:\/|$)/);return t.pathname=r?`/${r[1]}/`:"/",t.search="",t.hash="",t}var Nc=Object.create;var Rn=Object.defineProperty,Dc=Object.defineProperties,Wc=Object.getOwnPropertyDescriptor,Vc=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertyNames,zr=Object.getOwnPropertySymbols,qc=Object.getPrototypeOf,jn=Object.prototype.hasOwnProperty,zo=Object.prototype.propertyIsEnumerable;var Vo=(e,t,r)=>t in e?Rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))jn.call(t,r)&&Vo(e,r,t[r]);if(zr)for(var r of zr(t))zo.call(t,r)&&Vo(e,r,t[r]);return e},He=(e,t)=>Dc(e,Vc(t));var _r=(e,t)=>{var r={};for(var n in e)jn.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&&zo.call(e,n)&&(r[n]=e[n]);return r};var Fn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Kc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zc(t))!jn.call(e,o)&&o!==r&&Rn(e,o,{get:()=>t[o],enumerable:!(n=Wc(t,o))||n.enumerable});return e};var xr=(e,t,r)=>(r=e!=null?Nc(qc(e)):{},Kc(t||!e||!e.__esModule?Rn(r,"default",{value:e,enumerable:!0}):r,e));var ut=(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 Ko=Fn((Un,qo)=>{(function(e,t){typeof Un=="object"&&typeof qo!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Un,(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(g){return!!(g&&g!==document&&g.nodeName!=="HTML"&&g.nodeName!=="BODY"&&"classList"in g&&"contains"in g.classList)}function c(g){var ee=g.type,ue=g.tagName;return!!(ue==="INPUT"&&a[ee]&&!g.readOnly||ue==="TEXTAREA"&&!g.readOnly||g.isContentEditable)}function l(g){g.classList.contains("focus-visible")||(g.classList.add("focus-visible"),g.setAttribute("data-focus-visible-added",""))}function u(g){g.hasAttribute("data-focus-visible-added")&&(g.classList.remove("focus-visible"),g.removeAttribute("data-focus-visible-added"))}function f(g){g.metaKey||g.altKey||g.ctrlKey||(s(r.activeElement)&&l(r.activeElement),n=!0)}function p(g){n=!1}function m(g){s(g.target)&&(n||c(g.target))&&l(g.target)}function h(g){s(g.target)&&(g.target.classList.contains("focus-visible")||g.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(g.target))}function v(g){document.visibilityState==="hidden"&&(o&&(n=!0),_())}function _(){document.addEventListener("mousemove",x),document.addEventListener("mousedown",x),document.addEventListener("mouseup",x),document.addEventListener("pointermove",x),document.addEventListener("pointerdown",x),document.addEventListener("pointerup",x),document.addEventListener("touchmove",x),document.addEventListener("touchstart",x),document.addEventListener("touchend",x)}function S(){document.removeEventListener("mousemove",x),document.removeEventListener("mousedown",x),document.removeEventListener("mouseup",x),document.removeEventListener("pointermove",x),document.removeEventListener("pointerdown",x),document.removeEventListener("pointerup",x),document.removeEventListener("touchmove",x),document.removeEventListener("touchstart",x),document.removeEventListener("touchend",x)}function x(g){g.target.nodeName&&g.target.nodeName.toLowerCase()==="html"||(n=!1,S())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",p,!0),document.addEventListener("pointerdown",p,!0),document.addEventListener("touchstart",p,!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 ko=Fn((lE,Ms)=>{"use strict";var fp=/["'&<>]/;Ms.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 Ho=Fn((Ur,Co)=>{(function(t,r){typeof Ur=="object"&&typeof Co=="object"?Co.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 gr}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),u=i(817),f=i.n(u);function p(G){try{return document.execCommand(G)}catch(H){return!1}}var m=function(H){var C=f()(H);return p("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=f()(V);return p("copy"),V.remove(),z},S=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=f()(H),p("copy")),V},x=S;function g(G){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(C){return typeof C}:g=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},g(G)}var ee=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=H.action,V=C===void 0?"copy":C,z=H.container,Z=H.target,We=H.text;if(V!=="copy"&&V!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Z!==void 0)if(Z&&g(Z)==="object"&&Z.nodeType===1){if(V==="copy"&&Z.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(V==="cut"&&(Z.hasAttribute("readonly")||Z.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(We)return x(We,{container:z});if(Z)return V==="cut"?h(Z):x(Z,{container:z})},ue=ee;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 ie(G,H,C){return H&&W(G.prototype,H),C&&W(G,C),G}function ne(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&&de(G,H)}function de(G,H){return de=Object.setPrototypeOf||function(V,z){return V.__proto__=z,V},de(G,H)}function Yt(G){var H=lt();return function(){var V=tt(G),z;if(H){var Z=tt(this).constructor;z=Reflect.construct(V,arguments,Z)}else z=V.apply(this,arguments);return yt(this,z)}}function yt(G,H){return H&&(L(H)==="object"||typeof H=="function")?H:De(G)}function De(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}function lt(){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 tt(G){return tt=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},tt(G)}function Jt(G,H){var C="data-clipboard-".concat(G);if(H.hasAttribute(C))return H.getAttribute(C)}var Ht=(function(G){ne(C,G);var H=Yt(C);function C(V,z){var Z;return M(this,C),Z=H.call(this),Z.resolveOptions(z),Z.listenClick(V),Z}return ie(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 Z=this;this.listener=l()(z,"click",function(We){return Z.onClick(We)})}},{key:"onClick",value:function(z){var Z=z.delegateTarget||z.currentTarget,We=this.action(Z)||"copy",Xt=ue({action:We,container:this.container,target:this.target(Z),text:this.text(Z)});this.emit(Xt?"success":"error",{action:We,text:Xt,trigger:Z,clearSelection:function(){Z&&Z.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return Jt("action",z)}},{key:"defaultTarget",value:function(z){var Z=Jt("target",z);if(Z)return document.querySelector(Z)}},{key:"defaultText",value:function(z){return Jt("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return x(z,Z)}},{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"],Z=typeof z=="string"?[z]:z,We=!!document.queryCommandSupported;return Z.forEach(function(Xt){We=We&&!!document.queryCommandSupported(Xt)}),We}}]),C})(s()),gr=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,f,p,m,h){var v=l.apply(this,arguments);return u.addEventListener(p,v,h),{destroy:function(){u.removeEventListener(p,v,h)}}}function c(u,f,p,m,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof p=="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,f,p,m,h)}))}function l(u,f,p,m){return function(h){h.delegateTarget=a(h.target,f),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(p,m,h){if(!p&&!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(p))return l(p,m,h);if(a.nodeList(p))return u(p,m,h);if(a.string(p))return f(p,m,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(p,m,h){return p.addEventListener(m,h),{destroy:function(){p.removeEventListener(m,h)}}}function u(p,m,h){return Array.prototype.forEach.call(p,function(v){v.addEventListener(m,h)}),{destroy:function(){Array.prototype.forEach.call(p,function(v){v.removeEventListener(m,h)})}}}function f(p,m,h){return s(document.body,p,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,f=c.length;u<f;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 Ek=xr(Ko());var Nn=function(e,t){return Nn=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])},Nn(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");Nn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Bo(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(f){a(f)}}function c(u){try{l(n.throw(u))}catch(f){a(f)}}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 te(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 ae(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 Go(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,f)}}function s(m,h){n[m]&&(o[m]=function(v){return new Promise(function(_,S){i.push([m,v,_,S])>1||c(m,v)})},h&&(o[m]=h(o[m])))}function c(m,h){try{l(n[m](h))}catch(v){p(i[0][3],v)}}function l(m){m.value instanceof $t?Promise.resolve(m.value.v).then(u,f):p(i[0][2],m)}function u(m){c("next",m)}function f(m){c("throw",m)}function p(m,h){m(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Yo(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 Zt(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=Zt(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 pt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var rt=(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 f=this._finalizers;if(f){this._finalizers=null;try{for(var p=$e(f),m=p.next();!m.done;m=p.next()){var h=m.value;try{Jo(h)}catch(v){i=i!=null?i:[],v instanceof Kr?i=ae(ae([],te(i)),te(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}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)Jo(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)&&pt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&pt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Dn=rt.EMPTY;function Br(e){return e instanceof rt||e&&"closed"in e&&U(e.remove)&&U(e.add)&&U(e.unsubscribe)}function Jo(e){U(e)?e():e.unsubscribe()}var Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Qt={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Qt.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,ae([e,t],te(r))):setTimeout.apply(void 0,ae([e,t],te(r)))},clearTimeout:function(e){var t=Qt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Gr(e){Qt.setTimeout(function(){var t=Je.onUnhandledError;if(t)t(e);else throw e})}function Pe(){}var Xo=(function(){return Wn("C",void 0,void 0)})();function Zo(e){return Wn("E",void 0,e)}function Qo(e){return Wn("N",e,void 0)}function Wn(e,t,r){return{kind:e,value:t,error:r}}var Pt=null;function er(e){if(Je.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 ei(e){Je.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=Jc,n}return t.create=function(r,n,o){return new ft(r,n,o)},t.prototype.next=function(r){this.isStopped?zn(Qo(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?zn(Zo(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?zn(Xo,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})(rt);var Bc=Function.prototype.bind;function Vn(e,t){return Bc.call(e,t)}var Gc=(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})(),ft=(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&&Je.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&Vn(r.next,s),error:r.error&&Vn(r.error,s),complete:r.complete&&Vn(r.complete,s)}):a=r}return i.destination=new Gc(a),i}return t})(wr);function Yr(e){Je.useDeprecatedSynchronousErrorHandling?ei(e):Gr(e)}function Yc(e){throw e}function zn(e,t){var r=Je.onStoppedNotification;r&&Qt.setTimeout(function(){return r(e,t)})}var Jc={closed:!0,next:Pe,error:Yc,complete:Pe};var tr=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Le(e){return e}function ti(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qn(e)}function qn(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=Zc(t)?t:new ft(t,r,n);return er(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=ri(r),new r(function(o,i){var a=new ft({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[tr]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return qn(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=ri(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 ri(e){var t;return(t=e!=null?e:Je.Promise)!==null&&t!==void 0?t:Promise}function Xc(e){return e&&U(e.next)&&U(e.error)&&U(e.complete)}function Zc(e){return e&&e instanceof wr||Xc(e)&&Br(e)}function Qc(e){return U(e==null?void 0:e.lift)}function T(e){return function(t){if(Qc(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 E(e,t,r,n,o){return new el(e,t,r,n,o)}var el=(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 rr={schedule:function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=rr.delegate;n&&(t=n.requestAnimationFrame,r=n.cancelAnimationFrame);var o=t(function(i){r=void 0,e(i)});return new rt(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=rr.delegate;return((r==null?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,ae([],te(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=rr.delegate;return((r==null?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,ae([],te(e)))},delegate:void 0};var ni=Zt(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 oi(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new ni},t.prototype.next=function(r){var n=this;er(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;er(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;er(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?Dn:(this.currentObservers=null,s.push(r),new rt(function(){n.currentObservers=null,pt(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 oi(r,n)},t})(F);var oi=(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:Dn},t})(I);var Kn=(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 ii=(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})(rt);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,ae([e,t],te(r))):setInterval.apply(void 0,ae([e,t],te(r)))},clearInterval:function(e){var t=Sr.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0};var nr=(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,pt(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(ii);var Bn=(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 or=(function(e){pe(t,e);function t(r,n){n===void 0&&(n=Bn.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})(Bn);var ye=new or(nr),Gn=ye;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.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})(nr);var si=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(or);var Yn=new si(ai);var ci=(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=rr.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&&(rr.cancelAnimationFrame(n),r._scheduled=void 0)},t})(nr);var li=(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})(or);var je=new li(ci);var w=new F(function(e){return e.complete()});function Jr(e){return e&&U(e.schedule)}function Jn(e){return e[e.length-1]}function xt(e){return U(Jn(e))?e.pop():void 0}function Ke(e){return Jr(Jn(e))?e.pop():void 0}function Xr(e,t){return typeof Jn(e)=="number"?e.pop():t}var ir=(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[tr])}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 tl(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rn=tl();function nn(e){return U(e==null?void 0:e[rn])}function on(e){return Go(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 rl(e);if(ir(e))return nl(e);if(Zr(e))return ol(e);if(en(e))return ui(e);if(nn(e))return il(e);if(an(e))return al(e)}throw tn(e)}function rl(e){return new F(function(t){var r=e[tr]();if(U(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function nl(e){return new F(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function ol(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 il(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 ui(e){return new F(function(t){sl(e,t).catch(function(r){return t.error(r)})})}function al(e){return ui(on(e))}function sl(e,t){var r,n,o,i;return Bo(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=Yo(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),T(function(r,n){r.subscribe(E(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),T(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function pi(e,t){return K(e).pipe(It(t),Ie(t))}function fi(e,t){return K(e).pipe(It(t),Ie(t))}function mi(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 di(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 hi(e,t){return sn(on(e),t)}function vi(e,t){if(e!=null){if(Qr(e))return pi(e,t);if(ir(e))return mi(e,t);if(Zr(e))return fi(e,t);if(en(e))return sn(e,t);if(nn(e))return di(e,t);if(an(e))return hi(e,t)}throw tn(e)}function he(e,t){return t?vi(e,t):K(e)}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ke(e);return he(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 ar=Zt(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 ft({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){r?n(t.defaultValue):o(new ar)}});e.subscribe(i)})}function bi(e){return e instanceof Date&&!isNaN(e)}function d(e,t){return T(function(r,n){var o=0;r.subscribe(E(n,function(i){n.next(e.call(t,i,o++))}))})}var cl=Array.isArray;function ll(e,t){return cl(t)?e.apply(void 0,ae([],te(t))):e(t)}function wt(e){return d(function(t){return ll(e,t)})}var ul=Array.isArray,pl=Object.getPrototypeOf,fl=Object.prototype,ml=Object.keys;function gi(e){if(e.length===1){var t=e[0];if(ul(t))return{args:t,keys:null};if(dl(t)){var r=ml(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}function dl(e){return e&&typeof e=="object"&&pl(e)===fl}function yi(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=Ke(e),n=xt(e),o=gi(e),i=o.args,a=o.keys;if(i.length===0)return he([],r);var s=new F(Xn(i,r,a?function(c){return yi(a,c)}:Le));return n?s.pipe(wt(n)):s}function Xn(e,t,r){return r===void 0&&(r=Le),function(n){_i(t,function(){for(var o=e.length,i=new Array(o),a=o,s=o,c=function(u){_i(t,function(){var f=he(e[u],t),p=!1;f.subscribe(E(n,function(m){i[u]=m,p||(p=!0,s--),s||n.next(r(i.slice()))},function(){--a||n.complete()}))},n)},l=0;l<o;l++)c(l)},n)}}function _i(e,t,r){e?Fe(r,e,t):t()}function xi(e,t,r,n,o,i,a,s){var c=[],l=0,u=0,f=!1,p=function(){f&&!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(E(t,function(S){o==null||o(S),i?m(S):t.next(S)},function(){_=!0},void 0,function(){if(_)try{l--;for(var S=function(){var x=c.shift();a?Fe(t,a,function(){return h(x)}):h(x)};c.length&&l<n;)S();p()}catch(x){t.error(x)}}))};return e.subscribe(E(t,m,function(){f=!0,p()})),function(){s==null||s()}}function se(e,t,r){return r===void 0&&(r=1/0),U(t)?se(function(n,o){return d(function(i,a){return t(n,i,o,a)})(K(e(n,o)))},r):(typeof t=="number"&&(r=t),T(function(n,o){return xi(n,o,e,r)}))}function sr(e){return e===void 0&&(e=1/0),se(Le,e)}function wi(){return sr(1)}function nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return wi()(he(e,Ke(e)))}function j(e){return new F(function(t){K(e()).subscribe(t)})}var hl=["addListener","removeListener"],vl=["addEventListener","removeEventListener"],bl=["on","off"];function b(e,t,r,n){if(U(r)&&(n=r,r=void 0),n)return b(e,t,r).pipe(wt(n));var o=te(_l(e)?vl.map(function(s){return function(c){return e[s](t,c,r)}}):gl(e)?hl.map(Ei(e,t)):yl(e)?bl.map(Ei(e,t)):[],2),i=o[0],a=o[1];if(!i&&ir(e))return se(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 Ei(e,t){return function(r){return function(n){return e[r](t,n)}}}function gl(e){return U(e.addListener)&&U(e.removeListener)}function yl(e){return U(e.on)&&U(e.off)}function _l(e){return U(e.addEventListener)&&U(e.removeEventListener)}function un(e,t,r){return r?un(e,t).pipe(wt(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 Ve(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Gn);var n=-1;return t!=null&&(Jr(t)?r=t:n=t),new F(function(o){var i=bi(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=Ke(e),n=Xr(e,1/0),o=e;return o.length?o.length===1?K(o[0]):sr(n)(he(o,r)):w}var Be=new F(Pe);var xl=Array.isArray;function pn(e){return e.length===1&&xl(e[0])?e[0]:e}function O(e,t){return T(function(r,n){var o=0;r.subscribe(E(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=xt(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(E(o,function(u){if(i[l].push(u),i.every(function(p){return p.length})){var f=i.map(function(p){return p.shift()});o.next(r?r.apply(void 0,ae([],te(f))):f),i.some(function(p,m){return!p.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 Ti(e){return T(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(E(r,function(l){n=!0,o=l,i||K(e(l)).subscribe(i=E(r,s,c))},function(){a=!0,(!n||!i||i.closed)&&r.complete()}))})}function Xe(e,t){return t===void 0&&(t=ye),Ti(function(){return Ve(e,t)})}function jt(e,t){return t===void 0&&(t=null),t=t!=null?t:e,T(function(r,n){var o=[],i=0;r.subscribe(E(n,function(a){var s,c,l,u,f=null;i++%t===0&&o.push([]);try{for(var p=$e(o),m=p.next();!m.done;m=p.next()){var h=m.value;h.push(a),e<=h.length&&(f=f!=null?f:[],f.push(h))}}catch(S){s={error:S}}finally{try{m&&!m.done&&(c=p.return)&&c.call(p)}finally{if(s)throw s.error}}if(f)try{for(var v=$e(f),_=v.next();!_.done;_=v.next()){var h=_.value;pt(o,h),n.next(h)}}catch(S){l={error:S}}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(f){a={error:f}}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 T(function(t,r){var n=null,o=!1,i;n=t.subscribe(E(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 Si(e,t,r,n,o){return function(i,a){var s=r,c=t,l=0;i.subscribe(E(a,function(u){var f=l++;c=s?e(c,u,f):(s=!0,u),n&&a.next(c)},o&&(function(){s&&a.next(c),a.complete()})))}}function Zn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=xt(e);return r?ti(Zn.apply(void 0,ae([],te(e))),wt(r)):T(function(n,o){Xn(ae([n],te(pn(e))))(o)})}function Ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Zn.apply(void 0,ae([],te(e)))}function Or(e){return T(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(E(r,function(s){i==null||i.unsubscribe(),n=!0,o=s,i=E(r,a,Pe),K(e(s)).subscribe(i)},function(){a(),r.complete()},void 0,function(){o=i=null}))})}function Ge(e,t){return t===void 0&&(t=ye),T(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(E(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 ot(e){return T(function(t,r){var n=!1;t.subscribe(E(r,function(o){n=!0,r.next(o)},function(){n||r.next(e),r.complete()}))})}function Me(e){return e<=0?function(){return w}:T(function(t,r){var n=0;t.subscribe(E(r,function(o){++n<=e&&(r.next(o),e<=n&&r.complete())}))})}function be(){return T(function(e,t){e.subscribe(E(t,Pe))})}function Oi(e){return d(function(){return e})}function Qn(e,t){return t?function(r){return nt(t.pipe(Me(1),be()),r.pipe(Qn(e)))}:se(function(r,n){return K(e(r,n)).pipe(Me(1),Oi(r))})}function Ft(e,t){t===void 0&&(t=ye);var r=Ve(e,t);return Qn(function(){return r})}function eo(e,t){return T(function(r,n){var o=new Set;r.subscribe(E(n,function(i){var a=e?e(i):i;o.has(a)||(o.add(a),n.next(i))})),t&&K(t).subscribe(E(n,function(){return o.clear()},Pe))})}function ce(e,t){return t===void 0&&(t=Le),e=e!=null?e:wl,T(function(r,n){var o,i=!0;r.subscribe(E(n,function(a){var s=t(a);(i||!e(o,s))&&(i=!1,o=s,n.next(a))}))})}function wl(e,t){return e===t}function ve(e,t){return ce(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}function Li(e){return e===void 0&&(e=El),T(function(t,r){var n=!1;t.subscribe(E(r,function(o){n=!0,r.next(o)},function(){return n?r.complete():r.error(e())}))})}function El(){return new ar}function _e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){return nt(r,D.apply(void 0,ae([],te(e))))}}function fn(e,t){return t?function(r){return r.pipe(fn(function(n,o){return K(e(n,o)).pipe(d(function(i,a){return t(n,i,o,a)}))}))}:T(function(r,n){var o=0,i=null,a=!1;r.subscribe(E(n,function(s){i||(i=E(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 T(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?ot(t):Li(function(){return new ar}))}}function to(e){return e<=0?function(){return w}:T(function(t,r){var n=[];t.subscribe(E(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 Mi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Ke(e),n=Xr(e,1/0);return T(function(o,i){sr(n)(he(ae([o],te(e)),r)).subscribe(i)})}function Ut(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Mi.apply(void 0,ae([],te(e)))}function mn(){return T(function(e,t){var r,n=!1;e.subscribe(E(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}:T(function(o,i){var a=0,s,c=function(){if(s==null||s.unsubscribe(),s=null,n!=null){var u=typeof n=="number"?Ve(n):K(n(a)),f=E(i,function(){f.unsubscribe(),l()});u.subscribe(f)}else l()},l=function(){var u=!1;s=o.subscribe(E(i,void 0,function(){++a<r?s?c():u=!0:i.complete()})),u&&c()};l()})}function Mr(e,t){return T(Si(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,f,p,m=0,h=!1,v=!1,_=function(){f==null||f.unsubscribe(),f=void 0},S=function(){_(),u=p=void 0,h=v=!1},x=function(){var g=u;S(),g==null||g.unsubscribe()};return T(function(g,ee){m++,!v&&!h&&_();var ue=p=p!=null?p:r();ee.add(function(){m--,m===0&&!v&&!h&&(f=ro(x,c))}),ue.subscribe(ee),!u&&m>0&&(u=new ft({next:function(L){return ue.next(L)},error:function(L){v=!0,_(),f=ro(S,o,L),ue.error(L)},complete:function(){h=!0,_(),f=ro(S,a),ue.complete()}}),K(g).subscribe(u))})(l)}}function ro(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 ft({next:function(){o.unsubscribe(),e()}});return K(t.apply(void 0,ae([],te(r)))).subscribe(o)}}function re(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=Ke(e);return T(function(n,o){(r?nt(e,n,r):nt(e,n)).subscribe(o)})}function y(e,t){return T(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(E(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;K(e(c,u)).subscribe(o=E(n,function(f){return n.next(t?t(c,f,u,l++):f)},function(){o=null,s()}))},function(){a=!0,s()}))})}function Q(e){return T(function(t,r){K(e).subscribe(E(r,function(){return r.complete()},Pe)),!r.closed&&t.subscribe(r)})}function no(e,t){return t===void 0&&(t=!1),T(function(r,n){var o=0;r.subscribe(E(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?T(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(E(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 ki(e,t){return T(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,f=null,p=!1,m=function(){f==null||f.unsubscribe(),f=null,c&&(_(),p&&n.complete())},h=function(){f=null,p&&n.complete()},v=function(S){return f=K(e(S)).subscribe(E(n,m,h))},_=function(){if(l){l=!1;var S=u;u=null,n.next(S),!p&&v(S)}};r.subscribe(E(n,function(S){l=!0,u=S,!(f&&!f.closed)&&(a?_():v(S))},function(){p=!0,!(c&&l&&f&&!f.closed)&&n.complete()}))})}function kr(e,t,r){t===void 0&&(t=ye);var n=Ve(e,t);return ki(function(){return n},r)}function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=xt(e);return T(function(n,o){for(var i=e.length,a=new Array(i),s=e.map(function(){return!1}),c=!1,l=function(f){K(e[f]).subscribe(E(o,function(p){a[f]=p,!c&&!s[f]&&(s[f]=!0,(c=s.every(Le))&&(s=null))},Pe))},u=0;u<i;u++)l(u);n.subscribe(E(o,function(f){if(c){var p=ae([f],te(a));o.next(r?r.apply(void 0,ae([],te(p))):p)}}))})}function Ai(){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 Et(){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 Tl=R(b(document.body,"focusin"),b(document.body,"focusout")).pipe(Ge(1),J(void 0),d(()=>Et()||document.body),re(1));function cr(e){return Tl.pipe(d(t=>e.contains(t)),ce())}function Dt(e,t){let{matches:r}=matchMedia("(hover)");return j(()=>(r?R(b(e,"mouseenter").pipe(d(()=>!0)),b(e,"mouseleave").pipe(d(()=>!1))):R(b(e,"touchstart").pipe(d(()=>!0)),b(e,"touchend").pipe(d(()=>!1)),b(e,"touchcancel").pipe(d(()=>!1)))).pipe(t?Or(o=>Ve(+!o*t)):Le,J(!0,e.matches(":hover"))))}function Ci(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)Ci(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)Ci(n,o);return n}function Hi(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function it(e){let t=A("script",{src:e});return j(()=>(document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(y(()=>cn(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(d(()=>{}),q(()=>document.head.removeChild(t)),Me(1))))}function $i(e){let t=A("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(y(()=>cn(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(d(()=>{}),Me(1))}var Pi=new I,Sl=j(()=>typeof ResizeObserver=="undefined"?it("https://unpkg.com/resize-observer-polyfill"):D(void 0)).pipe(d(()=>new ResizeObserver(e=>e.forEach(t=>Pi.next(t)))),y(e=>R(Be,D(e)).pipe(q(()=>e.disconnect()))),re(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 Sl.pipe(P(r=>r.observe(t)),y(r=>Pi.pipe(O(n=>n.target===t),q(()=>r.unobserve(t)))),d(()=>Ae(e)),J(Ae(e)))}function Ar(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Ii(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 Ri(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 Tt(e){return{x:e.offsetLeft,y:e.offsetTop}}function ji(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function Fi(e){return R(b(window,"load"),b(window,"resize")).pipe(Xe(0,je),d(()=>Tt(e)),J(Tt(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(Xe(0,je),d(()=>dn(e)),J(dn(e)))}var Ui=new I,Ol=j(()=>D(new IntersectionObserver(e=>{for(let t of e)Ui.next(t)},{threshold:0}))).pipe(y(e=>R(Be,D(e)).pipe(q(()=>e.disconnect()))),re(1));function St(e){return Ol.pipe(P(t=>t.observe(e)),y(t=>Ui.pipe(O(({target:r})=>r===e),q(()=>t.unobserve(e)),d(({isIntersecting:r})=>r))))}var Ll=Object.create,ba=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,kl=Object.getOwnPropertyNames,Al=Object.getPrototypeOf,Cl=Object.prototype.hasOwnProperty,Hl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$l=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kl(t))!Cl.call(e,o)&&o!==r&&ba(e,o,{get:()=>t[o],enumerable:!(n=Ml(t,o))||n.enumerable});return e},Pl=(e,t,r)=>(r=e!=null?Ll(Al(e)):{},$l(t||!e||!e.__esModule?ba(r,"default",{value:e,enumerable:!0}):r,e)),Il=Hl((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,f=typeof self=="object"&&self&&self.Object===Object&&self,p=u||f||Function("return this")(),m=Object.prototype,h=m.toString,v=Math.max,_=Math.min,S=function(){return p.Date.now()};function x(M,W,ie){var ne,de,Yt,yt,De,lt,tt=0,Jt=!1,Ht=!1,gr=!0;if(typeof M!="function")throw new TypeError(r);W=L(W)||0,g(ie)&&(Jt=!!ie.leading,Ht="maxWait"in ie,Yt=Ht?v(L(ie.maxWait)||0,W):Yt,gr="trailing"in ie?!!ie.trailing:gr);function G(Se){var _t=ne,yr=de;return ne=de=void 0,tt=Se,yt=M.apply(yr,_t),yt}function H(Se){return tt=Se,De=setTimeout(z,W),Jt?G(Se):yt}function C(Se){var _t=Se-lt,yr=Se-tt,Wo=W-_t;return Ht?_(Wo,Yt-yr):Wo}function V(Se){var _t=Se-lt,yr=Se-tt;return lt===void 0||_t>=W||_t<0||Ht&&yr>=Yt}function z(){var Se=S();if(V(Se))return Z(Se);De=setTimeout(z,C(Se))}function Z(Se){return De=void 0,gr&&ne?G(Se):(ne=de=void 0,yt)}function We(){De!==void 0&&clearTimeout(De),tt=0,ne=lt=de=De=void 0}function Xt(){return De===void 0?yt:Z(S())}function Vr(){var Se=S(),_t=V(Se);if(ne=arguments,de=this,lt=Se,_t){if(De===void 0)return H(lt);if(Ht)return De=setTimeout(z,W),G(lt)}return De===void 0&&(De=setTimeout(z,W)),yt}return Vr.cancel=We,Vr.flush=Xt,Vr}function g(M){var W=typeof M;return!!M&&(W=="object"||W=="function")}function ee(M){return!!M&&typeof M=="object"}function ue(M){return typeof M=="symbol"||ee(M)&&h.call(M)==o}function L(M){if(typeof M=="number")return M;if(ue(M))return n;if(g(M)){var W=typeof M.valueOf=="function"?M.valueOf():M;M=g(W)?W+"":W}if(typeof M!="string")return M===0?M:+M;M=M.replace(i,"");var ie=s.test(M);return ie||c.test(M)?l(M.slice(2),ie?2:8):a.test(M)?n:+M}t.exports=x}),Ln,B,ga,ya,Lt,Ni,_a,xa,oo,bn,Cr,wa,ho,co,lo,Rl,xn={},wn=[],jl=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Rr=Array.isArray;function dt(e,t){for(var r in t)e[r]=t[r];return e}function vo(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?Ln.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 gn(e,a,n,o,null)}function gn(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:++ga,__i:-1,__u:0};return o==null&&B.vnode!=null&&B.vnode(i),i}function ze(e){return e.children}function ct(e,t){this.props=e,this.context=t}function ur(e,t){if(t==null)return e.__?ur(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"?ur(e):null}function Fl(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],o=[],i=dt({},t);i.__v=t.__v+1,B.vnode&&B.vnode(i),bo(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,r!=null?r:ur(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,La(n,i,o),t.__e=t.__=null,i.__e!=r&&Ea(i)}}function Ea(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Ea(e)}function Di(e){(!e.__d&&(e.__d=!0)&&Lt.push(e)&&!En.__r++||Ni!=B.debounceRendering)&&((Ni=B.debounceRendering)||_a)(En)}function En(){try{for(var e,t=1;Lt.length;)Lt.length>t&&Lt.sort(xa),e=Lt.shift(),t=Lt.length,Fl(e)}finally{Lt.length=En.__r=0}}function Ta(e,t,r,n,o,i,a,s,c,l,u){var f,p,m,h,v,_,S,x=n&&n.__k||wn,g=t.length;for(c=Ul(r,t,x,c,g),f=0;f<g;f++)(m=r.__k[f])!=null&&(p=m.__i!=-1&&x[m.__i]||xn,m.__i=f,_=bo(e,m,p,o,i,a,s,c,l,u),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&go(p.ref,null,m),u.push(m.ref,m.__c||h,m)),v==null&&h!=null&&(v=h),(S=!!(4&m.__u))||p.__k===m.__k?(c=Sa(m,c,e,S),S&&p.__e&&(p.__e=null)):typeof m.type=="function"&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return r.__e=v,c}function Ul(e,t,r,n,o){var i,a,s,c,l,u=r.length,f=u,p=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?a=e.__k[i]=gn(null,a,null,null,null):Rr(a)?a=e.__k[i]=gn(ze,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?a=e.__k[i]=gn(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,c=i+p,a.__=e,a.__b=e.__b+1,s=null,(l=a.__i=Nl(a,r,c,f))!=-1&&(f--,(s=r[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(o>u?p--:o<u&&p++),typeof a.type!="function"&&(a.__u|=4)):l!=c&&(l==c-1?p--:l==c+1?p++:(l>c?p--:p++,a.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<u;i++)(s=r[i])!=null&&!(2&s.__u)&&(s.__e==n&&(n=ur(s)),ka(s,s));return n}function Sa(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=Sa(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=ur(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 Nl(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&&s==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 Wi(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||jl.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||Wi(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Wi(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(wa,"$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[Cr]=n[Cr]:(r[Cr]=ho,e.addEventListener(t,i?lo:co,i)):e.removeEventListener(t,i?lo:co,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 Vi(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[bn]==null)t[bn]=ho++;else if(t[bn]<r[Cr])return;return r(B.event?B.event(t):t)}}}function bo(e,t,r,n,o,i,a,s,c,l){var u,f,p,m,h,v,_,S,x,g,ee,ue,L,M,W,ie,ne=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),i=[s=t.__e=r.__e]),(u=B.__b)&&u(t);e:if(typeof ne=="function"){f=a.length;try{if(x=t.props,g=ne.prototype&&ne.prototype.render,ee=(u=ne.contextType)&&n[u.__c],ue=u?ee?ee.props.value:u.__:n,r.__c?S=(p=t.__c=r.__c).__=p.__E:(g?t.__c=p=new ne(x,ue):(t.__c=p=new ct(x,ue),p.constructor=ne,p.render=Wl),ee&&ee.sub(p),p.state||(p.state={}),p.__n=n,m=p.__d=!0,p.__h=[],p._sb=[]),g&&p.__s==null&&(p.__s=p.state),g&&ne.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=dt({},p.__s)),dt(p.__s,ne.getDerivedStateFromProps(x,p.__s))),h=p.props,v=p.state,p.__v=t,m)g&&ne.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),g&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(g&&ne.getDerivedStateFromProps==null&&x!==h&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(x,ue),t.__v==r.__v||!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(x,p.__s,ue)===!1){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)}),wn.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&a.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(x,p.__s,ue),g&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(h,v,_)})}if(p.context=ue,p.props=x,p.__P=e,p.__e=!1,L=B.__r,M=0,g)p.state=p.__s,p.__d=!1,L&&L(t),u=p.render(p.props,p.state,p.context),wn.push.apply(p.__h,p._sb),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=dt(dt({},n),p.getChildContext())),g&&!m&&p.getSnapshotBeforeUpdate!=null&&(_=p.getSnapshotBeforeUpdate(h,v)),W=u!=null&&u.type===ze&&u.key==null?Ma(u.props.children):u,s=Ta(e,Rr(W)?W:[W],t,r,n,o,i,a,s,c,l),p.base=t.__e,t.__u&=-161,p.__h.length&&a.push(p),S&&(p.__E=p.__=null)}catch(de){if(a.length=f,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!=null&&(i[i.indexOf(s)]=null),t.__e=s}else if(i!=null)for(ie=i.length;ie--;)vo(i[ie])}else t.__e=r.__e;t.__k==null&&(t.__k=r.__k||[]),de.then||Oa(t),B.__e(de,t,r)}}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=Dl(r.__e,t,r,n,o,i,a,c,l);return(u=B.diffed)&&u(t),128&t.__u?void 0:s}function Oa(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Oa))}function La(e,t,r){for(var n=0;n<r.length;n++)go(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 Ma(e){return typeof e!="object"||e==null||e.__b>0?e:Rr(e)?e.map(Ma):e.constructor!==void 0?null:dt({},e)}function Dl(e,t,r,n,o,i,a,s,c){var l,u,f,p,m,h,v,_=r.props||xn,S=t.props,x=t.type;if(x=="svg"?o="http://www.w3.org/2000/svg":x=="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==!!x&&(x?m.localName==x:m.nodeType==3)){e=m,i[l]=null;break}}if(e==null){if(x==null)return document.createTextNode(S);e=document.createElementNS(o,x,S.is&&S),s&&(B.__m&&B.__m(t,i),s=!1),i=null}if(x==null)_===S||s&&e.data==S||(e.data=S);else{if(i=x=="textarea"&&S.defaultValue!=null?null:i&&Ln.call(e.childNodes),!s&&i!=null)for(_={},l=0;l<e.attributes.length;l++)_[(m=e.attributes[l]).name]=m.value;for(l in _)m=_[l],l=="dangerouslySetInnerHTML"?f=m:l=="children"||l in S||l=="value"&&"defaultValue"in S||l=="checked"&&"defaultChecked"in S||hn(e,l,null,m,o);for(l in S)m=S[l],l=="children"?p=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||f&&(u.__html==f.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(f&&(e.innerHTML=""),Ta(t.type=="template"?e.content:e,Rr(p)?p:[p],t,r,n,x=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&ur(r,0),s,c),i!=null)for(l=i.length;l--;)vo(i[l]);s&&x!="textarea"||(l="value",x=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[l]||x=="progress"&&!h||x=="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 go(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 ka(e,t,r){var n,o;if(B.unmount&&B.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||go(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){B.__e(i,t)}n.base=n.__P=n.__n=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&ka(n[o],t,r||typeof e.type!="function");r||vo(e.__e),e.__c=e.__=e.__e=void 0}function Wl(e,t,r){return this.constructor(e,r)}function Vl(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=[],bo(t,e=(!n&&r||t).__k=kt(ze,null,[e]),o||xn,xn,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?Ln.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),La(i,e,a),e.props.children=null}Ln=wn.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}},ga=0,ya=function(e){return e!=null&&e.constructor===void 0},ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=dt({},this.state),typeof e=="function"&&(e=e(dt({},r),this.props)),e&&dt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Di(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Di(this))},ct.prototype.render=ze,Lt=[],_a=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,xa=function(e,t){return e.__v.__b-t.__v.__b},En.__r=0,oo=Math.random().toString(8),bn="__d"+oo,Cr="__a"+oo,wa=/(PointerCapture)$|Capture$/i,ho=0,co=Vi(!1),lo=Vi(!0),Rl=0;var Pr,ge,io,zi,Ir=0,Aa=[],Ee=B,qi=Ee.__b,Ki=Ee.__r,Bi=Ee.diffed,Gi=Ee.__c,Yi=Ee.unmount,Ji=Ee.__;function yo(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 Tn(e){return Ir=1,zl($a,e)}function zl(e,t,r){var n=yo(Pr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):$a(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=!1,f=n.__c.props!==s;if(n.__c.__H.__.some(function(m){if(m.__N){u=!0;var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(f=!0)}}),i){var p=i.call(this,s,c,l);return u?p||f:p}return!u||f};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 ht(e,t){var r=yo(Pr++,3);!Ee.__s&&Ha(r.__H,t)&&(r.__=e,r.u=t,ge.__H.__h.push(r))}function zt(e){return Ir=5,fr(function(){return{current:e}},[])}function fr(e,t){var r=yo(Pr++,7);return Ha(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ql(e,t){return Ir=8,fr(function(){return e},t)}function Xi(){for(var e;e=Aa.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(uo),t.__h.some(Ca),t.__h=[]}catch(r){t.__h=[],Ee.__e(r,e.__v)}}}Ee.__b=function(e){ge=null,qi&&qi(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ji&&Ji(e,t)},Ee.__r=function(e){Ki&&Ki(e),Pr=0;var t=(ge=e.__c).__H;t&&(io===ge?(t.__h=[],ge.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.length&&Xi(),Pr=0)),io=ge},Ee.diffed=function(e){Bi&&Bi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Aa.push(t)!==1&&zi===Ee.requestAnimationFrame||((zi=Ee.requestAnimationFrame)||Kl)(Xi)),t.__H.__.some(function(r){r.u&&(r.__H=r.u,r.u=void 0)})),io=ge=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.some(uo),r.__h=r.__h.filter(function(n){return!n.__||Ca(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Ee.__e(n,r.__v)}}),Gi&&Gi(e,t)},Ee.unmount=function(e){Yi&&Yi(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{uo(n)}catch(o){t=o}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var Zi=typeof requestAnimationFrame=="function";function Kl(e){var t,r=function(){clearTimeout(n),Zi&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Zi&&(t=requestAnimationFrame(r))}function uo(e){var t=ge,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ge=t}function Ca(e){var t=ge;e.__c=e.__(),ge=t}function Ha(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function $a(e,t){return typeof t=="function"?t(e):t}function Bl(e,t){for(var r in t)e[r]=t[r];return e}function Qi(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 ea(e,t){this.props=e,this.context=t}(ea.prototype=new ct).isPureReactComponent=!0,ea.prototype.shouldComponentUpdate=function(e,t){return Qi(this.props,e)||Qi(this.state,t)};var ta=B.__b;B.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ta&&ta(e)};var kw=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Gl=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)}Gl(e,t,r,n)};var ra=B.unmount;function Pa(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=Bl({},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 Pa(n,t,r)})),e}function Ia(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ia(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 ao(){this.__u=0,this.o=null,this.__b=null}function Ra(e){var t=e.__&&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.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ra&&ra(e)},(ao.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Ra(n.__v),i=!1,a=function(){i||n.__z||(i=!0,r.__R=null,o?o(c):c())};r.__R=a;var s=r.__P;r.__P=null;var c=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Ia(l,l.__c.__P,l.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.__P=s,u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},ao.prototype.componentWillUnmount=function(){this.o=[]},ao.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]=Pa(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&kt(ze,null,e.fallback);return o&&(o.__u&=-33),[kt(ze,null,t.__a?null:e.children),o]};var na=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 ct).__a=function(e){var t=this,r=Ra(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),na(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){na(e,r,t)})};var Yl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Jl=/^(?: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]/,Xl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zl=/[A-Z0-9]/g,Ql=typeof document<"u",eu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ct.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var oa=B.event;B.event=function(e){return oa&&(e=oa(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var ja,tu={configurable:!0,get:function(){return this.class}},ia=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||Ql&&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"||eu(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":Xl.test(a)&&(a=c):c=a="oninput":i&&Jl.test(a)?a=a.replace(Zl,"-$&").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})),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&&(o.class=o.className=r.className),t.props=o})(e),e.$$typeof=Yl,ia&&ia(e)};var aa=B.__r;B.__r=function(e){aa&&aa(e),ja=e.__c};var sa=B.diffed;B.diffed=function(e){sa&&sa(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),ja=null};function Fa(e){let t=zt(e);return t.current=e,fr(()=>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=zt(e),r=ql(()=>t.current,[]);return ht(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function lu(e,...t){let r=cu(),n=Fa(t[1]),o=fr(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);ht(()=>{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 Ua(e,t,r=[],n={}){let{event:o="keydown",target:i=fu,eventOptions:a}=n,s=Fa(t),c=fr(()=>{let l=pu(e);return function(u){l(u)&&s.current.call(this,u)}},r);lu(i,o,c,a)}function Na(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=Na(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=Na(e))&&(n&&(n+=" "),n+=t);return n}var qt=mu,du=Symbol.for("preact-signals");function Mn(){if(Mt>1)Mt--;else{for(var e,t=!1;Hr!==void 0;){var r=Hr;for(Hr=void 0,po++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Va(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(po=0,Mt--,t)throw e}}function hu(e){if(Mt>0)return e();Mt++;try{return e()}finally{Mn()}}var le=void 0;function Da(e){var t=le;le=void 0;try{return e()}finally{le=t}}var Hr=void 0,Mt=0,po=0,Sn=0;function Wa(e){if(le!==void 0){var t=e.n;if(t===void 0||t.t!==le)return t={i:0,S:e,p:le.s,n:void 0,t:le,e:void 0,x:void 0,r:t},le.s!==void 0&&(le.s.n=t),le.s=t,e.n=t,32&le.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=le.s,t.n=void 0,le.s.n=t,le.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:Da(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&&Da(function(){var o;(o=t.Z)==null||o.call(t)}))}};Ce.prototype.subscribe=function(e){var t=this;return Kt(function(){var r=t.value,n=le;le=void 0;try{e(r)}finally{le=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=le;le=void 0;try{return this.value}finally{le=e}};Object.defineProperty(Ce.prototype,"value",{get:function(){var e=Wa(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(po>100)throw new Error("Cycle detected");this.v=e,this.i++,Sn++,Mt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Mn()}}}});function At(e,t){return new Ce(e,t)}function Va(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 za(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 qa(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 Bt(e,t){Ce.call(this,void 0),this.x=e,this.s=void 0,this.g=Sn-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}Bt.prototype=new Ce;Bt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Sn))return!0;if(this.g=Sn,this.f|=1,this.i>0&&!Va(this))return this.f&=-2,!0;var e=le;try{za(this),le=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 le=e,qa(this),this.f&=-2,!0};Bt.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)};Bt.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)}};Bt.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(Bt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Wa(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function ca(e,t){return new Bt(e,t)}function Ka(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Mt++;var r=le;le=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,_o(e),n}finally{le=r,Mn()}}}function _o(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ka(e)}function vu(e){if(le!==this)throw new Error("Out-of-order effect");qa(this),le=e,this.f&=-2,8&this.f&&_o(this),Mn()}function mr(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}mr.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()}};mr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ka(this),za(this),Mt++;var e=le;return le=this,vu.bind(this,e)};mr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Hr,Hr=this)};mr.prototype.d=function(){this.f|=8,1&this.f||_o(this)};mr.prototype.dispose=function(){this.d()};function Kt(e,t){var r=new mr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var Ba,xo,so,Ga=[];Kt(function(){Ba=this.N})();function dr(e,t){B[e]=t.bind(null,B[e]||function(){})}function On(e){so&&so(),so=e&&e.S()}function Ya(e){var t=this,r=e.data,n=gu(r);n.value=r;var o=fr(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=ca(function(){var m=n.value.value;return m===0?0:m===!0?"":m||""}),u=ca(function(){return!Array.isArray(l.value)&&!ya(l.value)}),f=Kt(function(){if(this.N=Ja,u.value){var m=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=m)}}),p=t.__$u.d;return t.__$u.d=function(){f(),p.call(this)},[u,l]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}Ya.displayName="ReactiveTextNode";Object.defineProperties(Ce.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Ya},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});dr("__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)});dr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==ze){On();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Kt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),xo=n,On(r)}e(t)});dr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),On(),xo=void 0,e(t,r,n)});dr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),On(),xo=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:Kt(function(){this.N=Ja;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}dr("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)});dr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.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 Tn(function(){return At(e,t)})[0]}var yu=function(e){queueMicrotask(function(){queueMicrotask(e)})};function _u(){hu(function(){for(var e;e=Ga.shift();)Ba.call(e)})}function Ja(){Ga.push(this)===1&&(B.requestAnimationFrame||yu)(_u)}var fo=[0];for(let e=0;e<32;e++)fo.push(fo[e]|1<<e);function xu(e){return new Uint32Array(e)}var la=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&fo[t]);for(let o=0,i=32-Math.clz32(n);o<i;o++)n&1<<o&&e((r<<5)+o)}}};function wu(e){pr.value=e,e.items.find(t=>{var r;return(r=t.tags)==null?void 0:r.length})&&(matchMedia("(max-width: 768px)").matches||Xa())}function Vt(){Qe.value=He(k({},Qe.value),{hideSearch:!Qe.value.hideSearch})}function Xa(){Qe.value=He(k({},Qe.value),{hideFilters:!Qe.value.hideFilters})}function yn(){return Qe.value.selectedItem}function mo(e){Qe.value=He(k({},Qe.value),{selectedItem:e})}function Eu(){var e,t;return(t=(e=pr.value)==null?void 0:e.items)!=null?t:[]}function kn(){return typeof Oe.value.input=="string"?Oe.value.input:""}function Za(e){let t=Qa();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 st.value.pagination.next<"u"&&(Oe.value=He(k({},Oe.value),{page:st.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 Qa(){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}}))}}})}),Za(kn())}function Lu(){return st.value.items}function Mu(){return st.value.total}function ku(){var e;for(let t of(e=st.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function lr(){return Qe.value.hideSearch}function Au(){return Qe.value.hideFilters}function es(){var e;return(e=ts.value.highlight)!=null?e:!1}var Qe=At({hideSearch:!0,hideFilters:!0,selectedItem:0}),ts=At({}),pr=At(),ua=At(),Oe=At({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),st=At({items:[],query:{select:{documents:new la(0),terms:new la(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,(f,p,m,h)=>{if(f===0)i[l++]=c(t,m,h),a[u++]={value:null,depth:p};else if(f&1&&(a[u++]={value:$u(t,m,h),depth:p}),f&2)for(let v=0;u>=0;v++){let{value:_,depth:S}=a[--u];if(S>p)continue;let x=i.slice(l-=v,l+v);i[l++]=s(_,x),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,f=i;u<c.length;u++){let p=c[u].start;if(p>a)break;let m=c[u].end;if(m<f)continue;p=Math.max(p,i),m=Math.min(m,a),p>i&&s.push(r(n,i,p));let{value:h}=c[u];s.push(t(n,{start:p,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 rs=Iu(Hu),ns=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:qt({[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 os(e,t){let r=rs(e,{onElement(n,o){return kt(n.tag,n.attrs,...o)},onText(n,o,i){return ns(n,t==null?void 0:t.value.highlight,o,i)}});return N(ze,{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(os(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,f,p;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(p=(f=t==null?void 0:t.value.highlight)==null?void 0:f.ranges)!=null?p:[])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=rs(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(ze,{children:["\u2013 ",v," "]}):Wu.has(m.tag)?N(ze,{children:[" ",v," "]}):N(ze,{children:v})},onText(m,h,v){let _=Math.max(h,a),S=Math.min(v,s);if(!(_>=S))return ns(m,{ranges:c},_,S)}});return N(ze,{children:[a>0&&"...",l]})}function is(e,t={highlight:!0}){ts.value=t;let r=new Worker(e);r.onmessage=n=>{let o=n.data;switch(o.type){case 1:ua.value=!0;break;case 3:typeof o.data.pagination.prev<"u"?st.value=He(k({},st.value),{pagination:o.data.pagination,items:[...st.value.items,...o.data.items]}):(st.value=o.data,mo(0));break}},Kt(()=>{pr.value&&r.postMessage({type:0,data:pr.value})}),Kt(()=>{ua.value&&r.postMessage({type:2,data:Oe.value})})}var pa={container:"p",hidden:"v"};function Bu(e){return N("div",{class:qt(pa.container,{[pa.hidden]:e.hidden}),onClick:()=>Vt()})}var fa={container:"r",disabled:"c"};function ma(e){return N("button",{class:qt(fa.container,{[fa.disabled]:!e.onClick}),onClick:e.onClick,children:e.children})}var da=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()),ha=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=_r(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,f])=>kt(u,f)),...$r(o)])},as=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=_r(s,["class","children"]);return kt(Xu,He(k({},i),{iconNode:t,class:Yu(`lucide-${da(ha(e))}`,`lucide-${da(e)}`,n)}),o)};return r.displayName=ha(e),r},Zu=as("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),Qu=as("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Aw=Pl(Il(),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]=Tn(null),[l,u]=Tn(()=>({isIntersecting:o,entry:void 0})),f=zt();f.current=i;let p=((a=l.entry)==null?void 0:a.isIntersecting)&&n;ht(()=>{if(!s||!("IntersectionObserver"in window)||p)return;let v,_=new IntersectionObserver(S=>{let x=Array.isArray(_.thresholds)?_.thresholds:[_.thresholds];S.forEach(g=>{let ee=g.isIntersecting&&x.some(ue=>g.intersectionRatio>=ue);u({isIntersecting:ee,entry:g}),f.current&&f.current(ee,g),ee&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return _.observe(s),()=>{_.disconnect()}},[s,JSON.stringify(e),t,r,p,n]);let m=zt(null);ht(()=>{var v;!s&&(v=l.entry)!=null&&v.target&&!n&&!p&&m.current!==l.entry.target&&(m.current=l.entry.target,u({isIntersecting:o,entry:void 0}))},[s,l.entry,n,p,o]);let h=[c,!!l.isIntersecting,l.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var mt={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});ht(()=>{t&&Tu()},[t]);let n=zt(null);ht(()=>{n.current&&typeof Oe.value.page>"u"&&n.current.scrollTo({top:0,behavior:"smooth"})},[Oe.value]);let o=Qa();return N("div",{class:qt(mt.container,{[mt.hidden]:e.hidden}),children:[N("div",{class:mt.content,children:[N("div",{class:mt.controls,children:[N(ma,{onClick:Vt,children:N(Qu,{})}),N(np,{focus:!e.hidden}),N(ma,{onClick:Xa,children:[N(Zu,{}),o.length>0&&N("span",{class:mt.badge,children:o.length})]})]}),N("div",{class:mt.results,ref:n,children:[N(op,{keyboard:!e.hidden}),N("div",{class:mt.loadmore,ref:r})]})]}),N("div",{class:qt(mt.sidebar,{[mt.hidden]:Au()}),children:N(rp,{})})]})}var Ot={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:Ot.container,children:[N("h3",{class:Ot.heading,children:"Filters"}),N("h4",{class:Ot.title,children:"Tags"}),N("ol",{class:Ot.list,children:t.map(r=>N("li",{class:qt(Ot.item,{[Ot.active]:Su(r.node.value)}),onClick:()=>Ou(r.node.value),children:[N("span",{class:Ot.value,children:r.node.value}),N("span",{class:Ot.count,children:r.node.count})]},r.node.value))})]})}var va={container:"f"};function np(e){let t=zt(null);return ht(()=>{var r,n;e.focus?(r=t.current)==null||r.focus():(n=t.current)==null||n.blur()},[e.focus]),N("div",{class:va.container,children:N("input",{ref:t,type:"text",class:va.content,value:_n(kn()),onInput:r=>Za(Ru(r.currentTarget.value)),autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox"})})}var at={container:"b",heading:"B",item:"i",active:"h",wrapper:"C",meta:"D",actions:"s",title:"x",path:"t",excerpt:"u",more:"E"};function ss(){let[e,t]=Tn(!1);return ht(()=>{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=zt([]),i=ss();ht(()=>{let c=o.current[n];c&&c.scrollIntoView({block:"center",behavior:"smooth"})},[n]),Ua(e.keyboard,c=>{if(i)return;let l=yn();c.key==="ArrowDown"?(c.preventDefault(),mo(Math.min(l+1,r.length-1))):c.key==="ArrowUp"&&(c.preventDefault(),mo(Math.max(l-1,0)))},[e.keyboard,i]);let a=(s=Mu())!=null?s:0;return N(ze,{children:[r.length>0&&N("h3",{class:at.heading,children:[N("span",{class:at.bubble,children:new Intl.NumberFormat("en-US").format(a)})," ","results"]}),N("ol",{class:at.container,children:r.map((c,l)=>{var _,S,x,g;let u=c.matches.find(({field:ee})=>ee==="text"),f=os(t[c.id].title,c.matches.find(({field:ee})=>ee==="title")),p=qu((_=t[c.id].path)!=null?_:[],c.matches.find(({field:ee})=>ee==="path")),m=Ku(t[c.id].text,u),h=Math.max(0,((g=(x=(S=u==null?void 0:u.value.highlight)==null?void 0:S.ranges)==null?void 0:x.filter(ee=>ee.start<ee.end).length)!=null?g:0)-1),v=t[c.id].location;if(es()){let ee=encodeURIComponent(kn()),[ue,L]=v.split("#",2);v=`${ue}?h=${ee.replace(/%20/g,"+")}`,typeof L<"u"&&(v+=`#${L}`)}return N("li",{children:N("a",{ref:ee=>{o.current[l]=ee},href:v,onClick:()=>Vt(),class:qt(at.item,{[at.active]:l===yn()}),children:N("div",{class:at.wrapper,children:[N("div",{class:at.meta,children:N("menu",{class:at.path,children:p.map((ee,ue)=>N("li",{children:ee},ue))})}),N("h2",{class:at.title,children:f}),m&&N("div",{class:at.excerpt,children:m})]})})},c.id)})})]})}var ip={container:"a"};function ap(e){let t=ss();return Ua(!0,r=>{var n,o,i,a,s;if(!t)if((r.metaKey||r.ctrlKey)&&r.key==="k")r.preventDefault(),Vt();else if((r.metaKey||r.ctrlKey)&&r.key==="j")document.body.classList.toggle("dark");else if(r.key==="Enter"&&!lr()){r.preventDefault();let c=yn(),l=(o=(n=st.value)==null?void 0:n.items[c])==null?void 0:o.id;if((a=(i=pr.value)==null?void 0:i.items[l])!=null&&a.location){Vt();let u=(s=pr.value)==null?void 0:s.items[l].location;if(es()){let f=encodeURIComponent(kn()),[p,m]=u.split("#",2);u=`${p}?h=${f.replace(/%20/g,"+")}`,typeof m<"u"&&(u+=`#${m}`)}window.location.href=u}}else r.key==="Escape"&&!lr()&&(r.preventDefault(),Vt())},[t]),N("div",{class:ip.container,children:[N(Bu,{hidden:lr()}),N(tp,{hidden:lr()})]})}function cs(e,t){wu(e),Vl(N(ap,{}),t)}function wo(){Vt()}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(d(()=>!0)),b(window,"compositionend").pipe(d(()=>!1))).pipe(J(!1))}function ls(){let e=b(window,"keydown").pipe(d(t=>({mode:lr()?"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=Et();if(typeof n!="undefined")return!sp(n,r)}return!0}),xe());return cp().pipe(y(t=>t?w:e))}function Ue(){return new URL(location.href)}function vt(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 us(){return new I}function ps(){return location.hash.slice(1)}function fs(e){let t=A("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Eo(e){return R(b(window,"hashchange"),e).pipe(d(ps),J(ps()),O(t=>t.length>0),d(decodeURIComponent),re(1))}function ms(e){return Eo(e).pipe(d(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 ds(){let e=matchMedia("print");return R(b(window,"beforeprint").pipe(d(()=>!0)),b(window,"afterprint").pipe(d(()=>!1))).pipe(J(e.matches))}function To(e,t){return e.pipe(y(r=>r?t():w))}function So(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 et(e,t){return So(e,t).pipe(y(r=>r.text()),d(r=>JSON.parse(r)),re(1))}function An(e,t){let r=new DOMParser;return So(e,t).pipe(y(n=>n.text()),d(n=>r.parseFromString(n,"text/html")),re(1))}function hs(e,t){let r=new DOMParser;return So(e,t).pipe(y(n=>n.text()),d(n=>r.parseFromString(n,"text/xml")),re(1))}var Oo={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function Lo(e,t){Oo[e].checked!==t&&Oo[e].click()}function Cn(e){let t=Oo[e];return b(t,"change").pipe(d(()=>t.checked),J(t.checked))}function vs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function bs(){return R(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(d(vs),J(vs()))}function gs(){return{width:innerWidth,height:innerHeight}}function ys(){return b(window,"resize",{passive:!0}).pipe(d(gs),J(gs()))}function _s(){return oe([bs(),ys()]).pipe(d(([e,t])=>({offset:e,size:t})),re(1))}function Hn(e,{viewport$:t,header$:r}){let n=t.pipe(ve("size")),o=oe([n,r]).pipe(d(()=>Tt(e)));return oe([r,t,o]).pipe(d(([{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"),hr=JSON.parse(lp.textContent);hr.base=`${new URL(hr.base,Ue())}`;function Ne(){return hr}function X(e){return hr.features.includes(e)}function Gt(e,t){return typeof t!="undefined"?hr.translations[e].replace("#",t.toString()):hr.translations[e]}function bt(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(d(()=>Y(".md-typeset",e)),d(r=>({hash:__md_hash(r.innerHTML)})))}function xs(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()),d(r=>k({ref:e},r)))})}function pp(e,{target$:t}){return t.pipe(d(r=>({hidden:r!==e})))}function ws(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()),d(n=>k({ref:e},n)))}function Mo(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 $n(...e){return A("div",{class:"md-tooltip2",role:"dialog"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function Es(...e){return A("div",{class:"md-tooltip2",role:"tooltip"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function Ts(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},Mo(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},Mo(t),A("span",{class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}function Ss(e){return A("button",{class:"md-code__button",title:Gt("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function Os(){return A("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function Ls(){return A("nav",{class:"md-code__nav"})}var dp=xr(ko());function ks(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"?Hi(r):r)))}function Ao(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 As(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 Cs(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":Gt("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([cr(e),Dt(e,t)]).pipe(d(([o,i])=>o||i),ce()),n=j(()=>Ri(e)).pipe(se(Wt),kr(1),Ze(r),d(()=>ji(e)));return r.pipe(Lr(o=>o),y(()=>oe([r,n])),d(([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 Kn(!1);a.pipe(be(),_e(!1)).subscribe(s);let c=s.pipe(Or(u=>Ve(+!u*250,Yn)),ce(),y(u=>u?n:w),P(u=>u.id=i),xe());oe([a.pipe(d(({active:u})=>u)),c.pipe(y(u=>Dt(u,250)),J(!1))]).pipe(d(u=>u.some(f=>f))).subscribe(s);let l=s.pipe(O(u=>u),fe(c,o),d(([u,f,{size:p}])=>{let m=e.getBoundingClientRect(),h=m.width/2;if(f.role==="tooltip")return{x:h,y:8+m.height};if(m.y>=p.height/2){let{height:v}=Ae(f);return{x:h,y:-16-v}}else return{x:h,y:16+m.height}}));return oe([c,a,l]).subscribe(([u,{offset:f},p])=>{u.style.setProperty("--md-tooltip-host-x",`${f.x}px`),u.style.setProperty("--md-tooltip-host-y",`${f.y}px`),u.style.setProperty("--md-tooltip-x",`${p.x}px`),u.style.setProperty("--md-tooltip-y",`${p.y}px`),u.classList.toggle("md-tooltip2--top",p.y<0),u.classList.toggle("md-tooltip2--bottom",p.y>=0)}),s.pipe(O(u=>u),fe(c,(u,f)=>f),O(u=>u.role==="tooltip")).subscribe(u=>{let f=Ae(Y(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${f.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(ce(),Ie(je),fe(c)).subscribe(([u,f])=>{f.classList.toggle("md-tooltip2--active",u)}),oe([s.pipe(O(u=>u)),c]).subscribe(([u,f])=>{f.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()),d(u=>k({ref:e},u)))})}function Ye(e,{viewport$:t},r=document.body){return Fr(e,{content$:new F(n=>{let o=e.title,i=Es(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([Fi(e),Wt(t)])).pipe(d(([{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 cr(e).pipe(y(n=>r.pipe(d(o=>({active:n,offset:o})),Me(+!n||1/0))))}function Hs(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")}}),St(e).pipe(Q(a)).subscribe(s=>{e.toggleAttribute("data-md-visible",s)}),R(i.pipe(O(({active:s})=>s)),i.pipe(Ge(250),O(({active:s})=>!s))).subscribe({next({active:s}){s?e.prepend(n):n.remove()},complete(){e.prepend(n)}}),i.pipe(Xe(16,je)).subscribe(({active:s})=>{n.classList.toggle("md-tooltip--active",s)}),i.pipe(kr(125,je),O(()=>!!e.offsetParent),d(()=>e.offsetParent.getBoundingClientRect()),d(({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(Q(a),O(s=>!(s.metaKey||s.ctrlKey))).subscribe(s=>{s.stopPropagation(),s.preventDefault()}),b(o,"mousedown").pipe(Q(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=Et())==null||l.blur()}}),r.pipe(Q(a),O(s=>s===n),Ft(125)).subscribe(()=>e.focus()),gp(e,t).pipe(P(s=>i.next(s)),q(()=>i.complete()),d(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 $s(e,t){t.append(...Array.from(e.childNodes))}function Pn(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,Ts(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,f]of a)l.push([Y(".md-typeset",f),Y(`:scope > li:nth-child(${u})`,e)]);return n.pipe(Q(c)).subscribe(u=>{e.hidden=!u,e.classList.toggle("md-annotation-list",u);for(let[f,p]of l)u?$s(f,p):$s(p,f)}),R(...[...a].map(([,u])=>Hs(u,t,{target$:r}))).pipe(q(()=>s.complete()),xe())})}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 Is(e,t){return j(()=>{let r=Ps(e);return typeof r!="undefined"?Pn(r,e,t):w})}var js=xr(Ho());var xp=0,Rs=R(b(window,"keydown").pipe(d(()=>!0)),R(b(window,"keyup"),b(window,"contextmenu")).pipe(d(()=>!1))).pipe(J(!1),re(1));function Fs(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Fs(t)}}function wp(e){return Re(e).pipe(d(({width:t})=>({scrollable:Ar(e).width>t})),ve("scrollable"))}function Us(e,t){let{matches:r}=matchMedia("(hover)"),n=j(()=>{let o=new I,i=o.pipe(to(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=[],f=e.closest(".highlight");if(f instanceof HTMLElement){let m=Fs(f);if(typeof m!="undefined"&&(f.classList.contains("annotate")||X("content.code.annotate"))){let h=Pn(m,e,t);u.push(Re(f).pipe(Q(i),d(({width:v,height:_})=>v&&_),ce(),y(v=>v?h:w)))}}let p=$(":scope > span[id]",e);if(p.length&&(e.classList.add("md-code__content"),e.closest(".select")||X("content.code.select")&&!e.closest(".no-select"))){let m=+p[0].id.split("-").pop(),h=Os();a.push(h),X("content.tooltips")&&u.push(Ye(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 _=he(p).pipe(se(L=>Dt(L).pipe(d(M=>[L,M]))));v.pipe(y(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 ie=document.createElement("span");ie.className="hll select",ie.append(...Array.from(L.childNodes).slice(1)),L.append(ie)}});let S=he(p).pipe(se(L=>b(L,"mousedown").pipe(P(M=>M.preventDefault()),d(()=>L)))),x=v.pipe(y(L=>L?S:w),fe(Rs),d(([L,M])=>{var ie;let W=p.indexOf(L)+m;if(M===!1)return[W,W];{let ne=$(".hll",e).map(de=>p.indexOf(de.parentElement)+m);return(ie=window.getSelection())==null||ie.removeAllRanges(),[Math.min(W,...ne),Math.max(W,...ne)]}})),g=Eo(w).pipe(O(L=>L.startsWith(`__codelineno-${l}-`)));g.subscribe(L=>{let[,,M]=L.split("-"),W=M.split(":").map(ne=>+ne-m+1);W.length===1&&W.push(W[0]);for(let ne of $(".hll:not(.select)",e))ne.replaceWith(...Array.from(ne.childNodes));let ie=p.slice(W[0]-1,W[1]);for(let ne of ie){let de=document.createElement("span");de.className="hll",de.append(...Array.from(ne.childNodes).slice(1)),ne.append(de)}}),g.pipe(Me(1),Ie(ye)).subscribe(L=>{if(L.includes(":")){let M=document.getElementById(L.split(":")[0]);M&&setTimeout(()=>{let W=M,ie=-64;for(;W!==document.body;)ie+=W.offsetTop,W=W.offsetParent;window.scrollTo({top:ie})},1)}});let ue=he($('a[href^="#__codelineno"]',f)).pipe(se(L=>b(L,"click").pipe(P(M=>M.preventDefault()),d(()=>L)))).pipe(Q(i),fe(Rs),d(([L,M])=>{let ie=+Y(`[id="${L.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(M===!1)return[ie,ie];{let ne=$(".hll",e).map(de=>+de.parentElement.id.split("-").pop());return[Math.min(ie,...ne),Math.max(ie,...ne)]}}));R(x,ue).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(js.default.isSupported()&&(e.closest(".copy")||X("content.code.copy")&&!e.closest(".no-copy"))){let m=Ss(s.id);a.push(m),X("content.tooltips")&&u.push(Ye(m,{viewport$}))}if(a.length){let m=Ls();m.append(...a),s.insertBefore(m,e)}return wp(e).pipe(P(m=>o.next(m)),q(()=>o.complete()),d(m=>k({ref:e},m)),Ut(R(...u).pipe(Q(i))))});return X("content.lazy")?St(e).pipe(O(o=>o),Me(1),y(()=>n)):n}function Ep(e,{target$:t,print$:r}){let n=!0;return R(t.pipe(d(o=>o.closest("details:not([open])")),O(o=>e===o),d(()=>({action:"open",reveal:!0}))),r.pipe(O(o=>o||!n),P(()=>n=e.open),d(o=>({action:o?"open":"close"}))))}function Ns(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()),d(n=>k({ref:e},n)))})}var Ds,Ws,$o={},Vs=!1;function zs(e,t){return t()?it(e).pipe(me(()=>D(void 0)),d(()=>{})):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 i,a,s;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:(s=e.dataset.session)!=null?s:"default",install:Tp(e.dataset.install),minLines:typeof e.dataset.minlines=="undefined"?0:parseInt(e.dataset.minlines),maxLines:typeof e.dataset.maxlines=="undefined"?1/0:parseInt(e.dataset.maxlines)}}function Op(e,t){return e in $o||($o[e]=t.globals.get("dict")()),$o[e]}function Nr(e,t){e.textContent=t}function Po(e){e.textContent=""}function Lp(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Mp(e,t,r,n){return ut(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:Op(n,e)});typeof i!="undefined"&&i!==null&&(o.push(String(i)),Nr(r,`${o.join(`
`)}
`))}catch(i){o.push(String(i)),Nr(r,`${o.join(`
`)}
`)}})}function kp(){return Ws||(Ws=zs("https://unpkg.com/pyodide@314.0.2/pyodide.js",()=>typeof loadPyodide=="undefined"||loadPyodide instanceof Element).pipe(d(()=>ut(null,null,function*(){try{let e=yield loadPyodide({indexURL:"https://cdn.jsdelivr.net/pyodide/v314.0.2/full/"});return yield e.loadPackage("micropip"),e}catch(e){return null}})),re(1))),Ws}function Ap(){Vs||(ace.define("ace/theme/zensical",["require","exports","module","ace/lib/dom"],(e,t)=>{t.isDark=!1,t.cssClass="ace-zensical",t.cssText=""}),Vs=!0)}function qs(e){return Ds||(Ds=zs("https://unpkg.com/ace-builds@1.44.0/src-noconflict/ace.js",()=>typeof ace=="undefined"||ace instanceof Element).pipe(re(1))),new F(t=>{let r=!0,n,o,i=Sp(e);i.root.setAttribute("data-md-exec-state","ready");let a=()=>Po(i.output),s=()=>ut(null,null,function*(){return o||(o=ut(null,null,function*(){if(i.root.setAttribute("data-md-exec-state","loading"),Nr(i.output,"Initializing..."),yield Lp(),!r)return null;let u=yield ln(kp()).then(f=>f);if(!r||!u)return null;if(i.install.length>0)try{let f=u.pyimport("micropip");for(let p of i.install)yield f.install(p)}catch(f){return Po(i.output),Nr(i.output,`Could not install one or more packages: ${i.install.join(", ")}
${String(f)}`),i.root.setAttribute("data-md-exec-state","error"),null}return r?(Po(i.output),i.root.setAttribute("data-md-exec-state","ready"),u):null})),o}),c=()=>{ut(null,null,function*(){let u=yield s();!r||!u||!n||Mp(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),ut(null,null,function*(){yield ln(Ds),r&&(Ap(),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",i.minLines),n.setOption("maxLines",i.maxLines),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 Ks;function Cp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?it("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(me(()=>w),d(()=>{})):D(void 0)}function Hp(){return $i("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css").pipe(me(()=>w),d(()=>{}))}function Bs(e){return Ks||(Ks=Cp().pipe(d(()=>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:{}))),re(1))),Hp().pipe(y(()=>Ks),y(t=>(t.reload(),e.map(r=>({ref:r})))))}var Gs=0,Ys=new Map;function $p(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 Pp(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_${Gs}`)}return Gs++,D(e)}function Ip(e){let t=Ys.get(e.toString());return t?D(t):An(e).pipe(y(r=>Pp(r,e)),d(r=>(Ys.set(e.toString(),r),r)))}function Js(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([cr(e),Dt(e).pipe(ke(1))]).pipe(d(([i,a])=>i||a),ce(),O(i=>i));return Rt([r,n]).pipe(y(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?D(a):w}),y(i=>Ip(i)),y(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=we(a,i);return typeof s=="undefined"?w:D($p(s))})).pipe(y(i=>{let a=new F(s=>{let c=$n(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Fr(e,k({content$:a},t))}))}var Xs=".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 Io,jp=0;function Fp(){return typeof mermaid=="undefined"||mermaid instanceof Element?it("https://unpkg.com/mermaid@11/dist/mermaid.min.js"):D(void 0)}function Zs(e){return e.classList.remove("mermaid"),Io||(Io=Fp().pipe(P(()=>mermaid.initialize({startOnLoad:!1,themeCSS:Xs,sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),d(()=>{}),re(1))),Io.subscribe(()=>ut(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${jp++}`,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)})),Io.pipe(d(()=>({ref:e})))}var Qs=A("table");function ec(e){return e.replaceWith(Qs),Qs.replaceWith(As(e)),D({ref:e})}function Up(e){let t=e.find(r=>r.checked)||e[0];return R(...e.map(r=>b(r,"change").pipe(d(()=>Y(`label[for="${r.id}"]`))))).pipe(J(Y(`label[for="${t.id}"]`)),d(r=>({active:r})))}function tc(e,{viewport$:t,target$:r}){let n=Y(".tabbed-labels",e),o=$(":scope > input",e),i=Ao("prev");e.append(i);let a=Ao("next");return e.append(a),j(()=>{let s=new I,c=s.pipe(be(),_e(!0));oe([s,Re(e),St(e)]).pipe(Q(c),Xe(1,je)).subscribe({next([{active:l},u]){let f=Tt(l),{width:p}=Ae(l);e.style.setProperty("--md-indicator-x",`${f.x}px`),e.style.setProperty("--md-indicator-width",`${p}px`);let m=dn(n);(f.x<m.x||f.x+p>m.x+u.width)&&n.scrollTo({left:Math.max(0,f.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),oe([Wt(n),Re(n)]).pipe(Q(c)).subscribe(([l,u])=>{let f=Ar(n);i.hidden=l.x<16,a.hidden=l.x>f.width-u.width-16}),R(b(i,"click").pipe(d(()=>-1)),b(a,"click").pipe(d(()=>1))).pipe(Q(c)).subscribe(l=>{let{width:u}=Ae(n);n.scrollBy({left:u*l,behavior:"smooth"})}),r.pipe(Q(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(Q(c),O(f=>!(f.metaKey||f.ctrlKey)),P(f=>{f.preventDefault(),f.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 f=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let p=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()===f){_.setAttribute("data-md-switching",""),v.click();break}}window.scrollTo({top:e.offsetTop-p});let m=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([f,...m])])}}),s.pipe(Q(c)).subscribe(()=>{for(let l of $("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),Up(o).pipe(P(l=>s.next(l)),q(()=>s.complete()),d(l=>k({ref:e},l)))}).pipe(It(ye))}function rc(e,t){let{viewport$:r,target$:n,print$:o}=t;return R(...$(".annotate:not(.highlight)",e).map(i=>Is(i,{target$:n,print$:o})),...$(".pyodide",e).map(i=>qs(i)),...$("pre:not(.mermaid) > code",e).filter(i=>!i.closest(".pyodide")).map(i=>Us(i,{target$:n,print$:o})),...$("a",e).map(i=>Js(i,t)),...$("pre.mermaid",e).map(i=>Zs(i)),...[$(".glightbox",e)].filter(i=>i.length>0).map(i=>Bs(i)),...$("table:not([class])",e).map(i=>ec(i)),...$("details",e).map(i=>Ns(i,{target$:n,print$:o})),...$("[data-tabs]",e).map(i=>tc(i,{viewport$:r,target$:n})),...$("[title]:not([data-preview])",e).filter(()=>X("content.tooltips")).map(i=>Ye(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=$n(...c);return a.next(l),document.body.append(l),()=>l.remove()}),viewport$:r})))}function Np(e,{alert$:t}){return t.pipe(y(r=>R(D(!0),D(!1).pipe(Ft(2e3))).pipe(d(n=>({message:r,active:n})))))}function nc(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}),Np(e,t).pipe(P(o=>n.next(o)),q(()=>n.complete()),d(o=>k({ref:e},o)))})}function Dp({viewport$:e}){if(!X("header.autohide"))return D(!1);let t=e.pipe(d(({offset:{y:o}})=>o),jt(2,1),d(([o,i])=>[o<i,i]),ve(0)),r=oe([e,t]).pipe(O(([{offset:o},[,i]])=>Math.abs(i-o.y)>100),d(([,[o]])=>o),ce()),n=Cn("search");return oe([e,n]).pipe(d(([{offset:o},i])=>o.y>400&&!i),ce(),y(o=>o?r:D(!1)),J(!1))}function oc(e,t){return j(()=>oe([Re(e),Dp(t)])).pipe(d(([{height:r},n])=>({height:r,hidden:n})),ce((r,n)=>r.height===n.height&&r.hidden===n.hidden),re(1))}function ic(e,{viewport$:t,header$:r,main$:n}){return j(()=>{let o=new I,i=o.pipe(be(),_e(!0));o.pipe(ve("active"),Ze(r)).subscribe(([{active:s},{hidden:c}])=>{e.classList.toggle("md-header--shadow",s&&!c),e.hidden=c});let a=he($("[title]",e)).pipe(O(()=>X("content.tooltips")),se(s=>Ye(s,{viewport$:t})));return n.subscribe(o),r.pipe(Q(i),d(s=>k({ref:e},s)),Ut(a.pipe(Q(i))))})}function Wp(e,{viewport$:t,header$:r}){return Hn(e,{viewport$:t,header$:r}).pipe(d(({offset:{y:n}})=>{let{height:o}=Ae(e);return{active:o>0&&n>=o}}),ve("active"))}function ac(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:Wp(n,t).pipe(P(o=>r.next(o)),q(()=>r.complete()),d(o=>k({ref:e},o)))})}function sc(e,{viewport$:t,header$:r}){let n=r.pipe(d(({height:i})=>i),ce()),o=n.pipe(y(()=>Re(e).pipe(d(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),ve("bottom"))));return oe([n,o,t]).pipe(d(([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})),ce((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function Vp(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(se(n=>b(n,"change").pipe(d(()=>n))),J(e[r]),d(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")}})),re(1))}function cc(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(d(()=>{let a=bt("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")}),Vp(t).pipe(Q(o.pipe(ke(1))),Nt(),P(a=>i.next(a)),q(()=>i.complete()),d(a=>k({ref:e},a)))})}function lc(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()),d(n=>({ref:e,value:n})))})}var uc='.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:.7;--alpha-lighter:.54;--alpha-lightest:.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:-.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 pc(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",{},uc.toString()));try{is(r.search,{highlight:r.features.includes("search.highlight")}),he(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();cs(i,o)}),b(e,"click").subscribe(()=>{wo()}),Cn("search").pipe(ke(1)).subscribe(()=>wo())}catch(i){e.hidden=!0;let a=Y("label[for=__search]");a.hidden=!0}return Be}var fc=xr(ko());function mc(e,{index$:t,location$:r}){return oe([t,r.pipe(J(Ue()),O(n=>!!n.searchParams.get("h")))]).pipe(d(([n,o])=>qp(n.config)(o.searchParams.get("h"))),d(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 qp(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,fc.default)(a).replace(i,n).replace(/<\/mark>(\s+)<mark[^>]*>/img,"$1")}}function Kp(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return oe([r,t]).pipe(d(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),ce((i,a)=>i.height===a.height&&i.locked===a.locked))}function Ro(e,n){var o=n,{header$:t}=o,r=_r(o,["header$"]);let i=Y(".md-sidebar__scrollwrap",e),{y:a}=Tt(i);return j(()=>{let s=new I,c=s.pipe(be(),_e(!0)),l=s.pipe(Xe(0,je));return l.pipe(fe(t)).subscribe({next([{height:u},{height:f}]){i.style.height=`${u-2*a}px`,e.style.top=`${f}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 f=u.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let p=u.offsetTop-f.offsetTop,{height:m}=Ae(f);f.scrollTo({top:p-m/2})}}}),he($("label[tabindex]",e)).pipe(se(u=>b(u,"click").pipe(Ie(ye),d(()=>u),Q(c)))).subscribe(u=>{let f=Y(`[id="${u.htmlFor}"]`);Y(`[aria-labelledby="${u.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),X("content.tooltips")&&he($("abbr[title]",e)).pipe(se(u=>Ye(u,{viewport$})),Q(c)).subscribe(),Kp(e,r).pipe(P(u=>s.next(u)),q(()=>s.complete()),d(u=>k({ref:e},u)))})}function dc(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Rt(et(`${r}/releases/latest`).pipe(me(()=>w),d(n=>({version:n.tag_name})),ot({})),et(r).pipe(me(()=>w),d(n=>({stars:n.stargazers_count,forks:n.forks_count})),ot({}))).pipe(d(([n,o])=>k(k({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return et(r).pipe(d(n=>({repositories:n.public_repos})),ot({}))}}function hc(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Rt(et(`${r}/releases/permalink/latest`).pipe(me(()=>w),d(({tag_name:n})=>({version:n})),ot({})),et(r).pipe(me(()=>w),d(({star_count:n,forks_count:o})=>({stars:n,forks:o})),ot({}))).pipe(d(([n,o])=>k(k({},n),o)))}function vc(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return dc(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return hc(r,n)}return w}var Bp;function Gp(e){return Bp||(Bp=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 vc(e.href).pipe(P(n=>__md_set("__source",n,sessionStorage)))}).pipe(me(()=>w),O(t=>Object.keys(t).length>0),d(t=>({facts:t})),re(1)))}function bc(e){let t=Y(":scope > :last-child",e);return j(()=>{let r=new I;return r.subscribe(({facts:n})=>{t.appendChild(ks(n)),t.classList.add("md-source__repository--active")}),Gp(e).pipe(P(n=>r.next(n)),q(()=>r.complete()),d(n=>k({ref:e},n)))})}function Yp(e,{viewport$:t,header$:r}){return Re(document.body).pipe(y(()=>Hn(e,{header$:r,viewport$:t})),d(({offset:{y:n}})=>({hidden:n>=10})),ve("hidden"))}function gc(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}):Yp(e,t)).pipe(P(n=>r.next(n)),q(()=>r.complete()),d(n=>k({ref:e},n)))})}function Jp(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(ve("height"),d(({height:s})=>{let c=bt("main"),l=Y(":scope > :first-child",c);return s+.9*(l.offsetTop-c.offsetTop)}),xe());return Re(document.body).pipe(ve("height"),y(s=>j(()=>{let c=[];return D([...n].reduce((l,[u,f])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=f.tagName;)c.pop();let p=f.offsetTop;for(;!p&&f.parentElement;)f=f.parentElement,p=f.offsetTop;let m=f.offsetParent;for(;m;m=m.offsetParent)p+=m.offsetTop;return l.set([...c=[...c,u]].reverse(),p)},new Map))}).pipe(d(c=>new Map([...c].sort(([,l],[,u])=>l-u))),Ze(i),y(([c,l])=>t.pipe(Mr(([u,f],{offset:{y:p},size:m})=>{let h=p+m.height>=Math.floor(s.height);for(;f.length;){let[,v]=f[0];if(v-l<p||h)u=[...u,f.shift()];else break}for(;u.length;){let[,v]=u[u.length-1];if(v-l>=p&&!h)f=[u.pop(),...f];else break}return[u,f]},[[],[...c]]),ce((u,f)=>u[0]===f[0]&&u[1]===f[1])))))).pipe(d(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),J({prev:[],next:[]}),jt(2,1),d(([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 yc(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,[f]]of c.entries())f.classList.add("md-nav__link--passed"),f.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(Ge(1),d(()=>{})),t.pipe(Ge(250),d(()=>"smooth")));i.pipe(O(({prev:l})=>l.length>0),Ze(n.pipe(Ie(ye))),fe(c)).subscribe(([[{prev:l}],u])=>{let[f]=l[l.length-1];if(f.offsetHeight){let p=Ii(f);if(typeof p!="undefined"){let m=f.offsetTop-p.offsetTop,{height:h}=Ae(p);p.scrollTo({top:m-h/2,behavior:u})}}})}return X("navigation.tracking")&&t.pipe(Q(a),ve("offset"),Ge(250),ke(1),Q(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[f]=u,{hash:p}=new URL(f.href);l.hash!==p&&(l.hash=p,history.replaceState({},"",`${l}`))}else l.hash="",history.replaceState({},"",`${l}`)}),Jp(e,{viewport$:t,header$:r}).pipe(P(c=>i.next(c)),q(()=>i.complete()),d(c=>k({ref:e},c)))})}function Xp(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(d(({offset:{y:a}})=>a),jt(2,1),d(([a,s])=>a>s&&s>0),ce()),i=r.pipe(d(({active:a})=>a));return oe([i,o]).pipe(d(([a,s])=>!(a&&s)),ce(),Q(n.pipe(ke(1))),_e(!0),Nt({delay:250}),d(a=>({hidden:a})))}function _c(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(Q(a),ve("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),b(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),Xp(e,{viewport$:t,main$:n,target$:o}).pipe(P(s=>i.next(s)),q(()=>i.complete()),d(s=>k({ref:e},s)))}function xc(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function Zp(e,t){let r=new Map;for(let n of $("url",e)){let o=Y("loc",n),i=[xc(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(xc(new URL(s),t))}}return r}function vr(e){return hs(new URL("sitemap.xml",e)).pipe(d(t=>Zp(t,new URL(e))),me(()=>D(new Map)),xe())}function wc({document$:e}){let t=new Map;e.pipe(y(()=>$("link[rel=alternate]")),d(r=>__ha_langroot(r.href)),O(r=>!t.has(r.toString())),se(r=>vr(r).pipe(d(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),y(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([f])=>n.href.startsWith(`${f}/`));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=>vt(r,!0))}var jo=xr(Ho());function Qp(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 Ec({alert$:e}){jo.default.isSupported()&&new F(t=>{new jo.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||Qp(Y(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(P(t=>{t.trigger.focus()}),d(()=>Gt("clipboard.copied"))).subscribe(e)}function Tc(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 Sc(e){let t=new Map;for(let r of $(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Oc(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 ef(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 tf(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=Sc(document);for(let[n,o]of Sc(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"&&!ef(n)&&n.remove()}let r=bt("container");return nt($("script",r)).pipe(y(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 Lc({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Be;D(document).subscribe(Oc);let o=b(document.body,"click").pipe(Ze(e),y(([s,c])=>Tc(s,c)),d(({href:s})=>new URL(s)),xe()),i=b(window,"popstate").pipe(d(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),d(([,s])=>s),y(s=>An(s,{progress$:n}).pipe(me(()=>(vt(s,!0),w)))),y(Oc),y(tf),xe());return R(a.pipe(fe(t,(s,c)=>c)),a.pipe(y(()=>t),ve("hash")),t.pipe(J(Ue()),mn(),O(([s,c])=>s.pathname===c.pathname&&s.hash!==c.hash),d(([,s])=>s)),t.pipe(ce((s,c)=>s.pathname===c.pathname&&s.hash===c.hash),y(()=>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",fs(s.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),b(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(ve("offset"),Ge(100)).subscribe(({offset:s})=>{history.replaceState(s,"")}),X("navigation.instant.prefetch")&&R(b(document.body,"mousemove"),b(document.body,"focusin")).pipe(Ze(e),y(([s,c])=>Tc(s,c)),Ge(25),eo(({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(d(()=>c),Me(1))})).subscribe(s=>s.remove()),a}function Mc(e){var u;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(u=Fo(o))==null?void 0:u.pathname;if(i===void 0)return;let a=rf(n.pathname,i);if(a===void 0)return;let s=of(t.keys());if(!t.has(s))return;let c=Fo(a,s);if(!c||!t.has(c.href))return;let l=Fo(a,r);if(l)return l.hash=n.hash,l.search=n.search,l}function Fo(e,t){try{return new URL(e,t)}catch(r){return}}function rf(e,t){if(e.startsWith(t))return e.slice(t.length)}function nf(e,t){let r=Math.min(e.length,t.length),n;for(n=0;n<r&&e[n]===t[n];++n);return n}function of(e){let t;for(let r of e)t===void 0?t=r:t=t.slice(0,nf(t,r));return t!=null?t:""}function kc({document$:e}){let t=Ne(),r=et(new URL("../versions.json",t.base)).pipe(me(()=>w)),n=r.pipe(d(o=>{let[,i]=t.base.match(/([^/]+)\/?$/);return o.find(({version:a,aliases:s})=>a===i||s.includes(i))||o[0]}));r.pipe(d(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),y(o=>b(document.body,"click").pipe(O(i=>!i.metaKey&&!i.ctrlKey),fe(n),y(([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}),y(i=>vr(i).pipe(d(a=>{var s;return(s=Mc({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:Ue(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>vt(o,!0)),oe([r,n]).subscribe(([o,i])=>{Y(".md-header__topic").appendChild(Cs(o,i))}),e.pipe(y(()=>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 Ac({document$:e,viewport$:t}){e.pipe(y(()=>$(".md-ellipsis")),se(r=>St(r).pipe(Q(e.pipe(ke(1))),O(n=>n),d(()=>r),Me(1))),O(r=>r.offsetWidth<r.scrollWidth),se(r=>{let n=r.innerText,o=r.closest("a")||r;return o.title=n,X("content.tooltips")?Ye(o,{viewport$:t}).pipe(Q(e.pipe(ke(1))),q(()=>o.removeAttribute("title"))):w})).subscribe(),X("content.tooltips")&&e.pipe(y(()=>$(".md-status")),se(r=>Ye(r,{viewport$:t}))).subscribe()}function Cc({document$:e,tablet$:t}){e.pipe(y(()=>$(".md-toggle--indeterminate")),P(r=>{r.indeterminate=!0,r.checked=!1}),se(r=>b(r,"change").pipe(no(()=>r.classList.contains("md-toggle--indeterminate")),d(()=>r))),fe(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function af(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Hc({document$:e}){e.pipe(y(()=>$("[data-md-scrollfix]")),P(t=>t.removeAttribute("data-md-scrollfix")),O(af),se(t=>b(t,"touchstart").pipe(d(()=>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 sf(){return location.protocol==="file:"?it(`${new URL("search.js",In.base)}`).pipe(d(()=>__index),me(()=>Be),re(1)):et(new URL("search.json",In.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var gt=Ai(),Wr=us(),br=ms(Wr),Pc=ls(),qe=_s(),Uo=jr("(min-width: 60em)"),Ic=jr("(min-width: 76.25em)"),Rc=ds(),In=Ne(),jc=we(".md-search")?sf():Be,No=new I;Ec({alert$:No});wc({document$:gt});var Do=new I,Fc=vr(In.base);X("navigation.instant")&&Lc({sitemap$:Fc,location$:Wr,viewport$:qe,progress$:Do}).subscribe(gt);var $c;(($c=In.version)==null?void 0:$c.provider)==="mike"&&kc({document$:gt});R(Wr,br).pipe(Ft(125)).subscribe(()=>{Lo("drawer",!1),Lo("search",!1)});Pc.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&&vt(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&vt(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&n.click();break;case"Enter":let o=Et();o instanceof HTMLLabelElement&&o.click()}});Ac({viewport$:qe,document$:gt});Cc({document$:gt,tablet$:Uo});Hc({document$:gt});var Ct=oc(bt("header"),{viewport$:qe}),Dr=gt.pipe(d(()=>bt("main")),y(e=>sc(e,{viewport$:qe,header$:Ct})),re(1)),cf=R(...Te("consent").map(e=>ws(e,{target$:br})),...Te("dialog").map(e=>nc(e,{alert$:No})),...Te("palette").map(e=>cc(e)),...Te("progress").map(e=>lc(e,{progress$:Do})),...Te("search").map(e=>pc(e,{index$:jc})),...Te("source").map(e=>bc(e))),lf=j(()=>R(...Te("announce").map(e=>xs(e)),...Te("content").map(e=>rc(e,{sitemap$:Fc,viewport$:qe,target$:br,print$:Rc})),...Te("content").map(e=>X("search.highlight")?mc(e,{index$:jc,location$:Wr}):w),...Te("header").map(e=>ic(e,{viewport$:qe,header$:Ct,main$:Dr})),...Te("header-title").map(e=>ac(e,{viewport$:qe,header$:Ct})),...Te("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?To(Ic,()=>Ro(e,{viewport$:qe,header$:Ct,main$:Dr})):To(Uo,()=>Ro(e,{viewport$:qe,header$:Ct,main$:Dr}))),...Te("tabs").map(e=>gc(e,{viewport$:qe,header$:Ct})),...Te("toc").map(e=>yc(e,{viewport$:qe,header$:Ct,main$:Dr,target$:br})),...Te("top").map(e=>_c(e,{viewport$:qe,header$:Ct,main$:Dr,target$:br})))),Uc=gt.pipe(y(()=>lf),Ut(cf),re(1));Uc.subscribe();window.document$=gt;window.location$=Wr;window.target$=br;window.keyboard$=Pc;window.viewport$=qe;window.tablet$=Uo;window.screen$=Ic;window.print$=Rc;window.alert$=No;window.progress$=Do;window.component$=Uc;})();
/*! update cache: 20260722174038 */