html-reporter 11.18.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/cli/commands/gui.js +1 -1
- package/build/lib/cli/commands/gui.js.map +1 -1
- package/build/lib/config/index.js +1 -1
- package/build/lib/config/index.js.map +1 -1
- package/build/lib/constants/defaults.js +3 -2
- package/build/lib/constants/defaults.js.map +1 -1
- package/build/lib/gui/server.js +2 -2
- package/build/lib/gui/server.js.map +1 -1
- package/build/lib/server-utils.js +2 -1
- package/build/lib/server-utils.js.map +1 -1
- package/build/lib/static/180.min.js +1 -0
- package/build/lib/static/394.min.js +1 -1
- package/build/lib/static/567.min.js +1 -1
- package/build/lib/static/632.min.js +1 -1
- package/build/lib/static/{81.min.css → 646.min.css} +1 -1
- package/build/lib/static/646.min.js +1 -0
- package/build/lib/static/657.min.js +1 -0
- package/build/lib/static/899.min.js +1 -0
- package/build/lib/static/gui.html +19 -28
- package/build/lib/static/gui.min.css +1 -1
- package/build/lib/static/gui.min.js +1 -1
- package/build/lib/static/index.html +19 -28
- package/build/lib/static/old-ui-gui.html +29 -0
- package/build/lib/static/old-ui-report.html +29 -0
- package/build/lib/static/oldGui.min.css +1 -0
- package/build/lib/static/oldGui.min.js +1 -0
- package/build/lib/static/oldReport.min.js +1 -0
- package/build/lib/static/report.min.js +1 -1
- package/build/lib/static/search-worker.min.js +1 -1
- package/build/package.json +1 -1
- package/package.json +1 -1
- package/build/lib/static/33.min.js +0 -1
- package/build/lib/static/81.min.js +0 -1
- package/build/lib/static/842.min.js +0 -1
- package/build/lib/static/884.min.js +0 -1
- package/build/lib/static/new-ui-gui.html +0 -38
- package/build/lib/static/new-ui-report.html +0 -38
- package/build/lib/static/newGui.min.css +0 -1
- package/build/lib/static/newGui.min.js +0 -1
- package/build/lib/static/newReport.min.js +0 -1
- /package/build/lib/static/{33.min.css → 657.min.css} +0 -0
- /package/build/lib/static/{report.min.css → oldReport.min.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk=self.webpackChunk||[]).push([[180],{2132(e,t,n){"use strict";e.exports=n(11273)},52658(e,t,n){"use strict";n.d(t,{A:()=>_n,F:()=>En,b:()=>X,d:()=>Qe,s:()=>K});var r=n(14041),i=n(2132),o=n(66916),s=n(95268),a=n(8871),l=n(18150),c=n(31720),u=n(59339),d=n(25394),h=n(36389),p=n(46478),m=n(27718),f=n(90523),g=n(38900),v=n(14586),y=n(56070),b=n(85271),w=n(80714),_=n(89665),x=n(94165),E=n(54577),C=n(44091),S=n(20340),k=n(28401),N=n(31085),M=n(43144),O=n(42026),R=n(88415);const T=r.createContext({activeTabId:void 0});T.displayName="TabsContext";var A=n(47552);const I=(0,O.o)("tabs-legacy");function D({id:e,className:t,title:n,meta:i,hint:o,icon:s,counter:a,label:l,active:c,disabled:u,hasOverflow:d,extraProps:h,onClick:p,qa:m}){const{activeTabId:f}=r.useContext(T),g="boolean"==typeof c?c:f===e,v=r.useMemo(()=>void 0!==o?o:"string"==typeof n?n:void 0,[o,n]);return(0,N.jsxs)("div",{...h,role:"tab","aria-selected":g,"aria-disabled":!0===u,tabIndex:u?-1:0,className:I("item",{active:g,disabled:u,overflow:Boolean(d)},t),title:v,onClick:()=>{p(e)},onKeyDown:t=>{" "===t.key&&p(e)},"data-qa":m,children:[(0,N.jsxs)("div",{className:I("item-content"),children:[s&&(0,N.jsx)("div",{className:I("item-icon"),children:s}),(0,N.jsx)("div",{className:I("item-title"),children:n||e}),void 0!==a&&(0,N.jsx)("div",{className:I("item-counter"),children:a}),l&&(0,N.jsx)(A.J,{className:I("item-label"),theme:l.theme,children:l.content})]}),i&&(0,N.jsx)("div",{className:I("item-meta"),children:i})]})}D.displayName="Tabs.Item";const z=(0,O.o)("tabs-legacy");var P;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(P||(P={}));const L=[],F=r.forwardRef(({direction:e=P.Horizontal,size:t="m",activeTab:n,allowNotSelected:i=!1,items:o=L,children:s,className:a,onSelectTab:l,wrapTo:c,qa:u,...d},h)=>{const p=((e,t,n)=>e||(t||0===n?.length?void 0:n?.[0]?.id))(n,i,o),m=r.useMemo(()=>({activeTabId:p}),[p]),f=r.useMemo(()=>{const e=e=>{l&&l(e)};return o.map((t,n)=>{const r=(0,N.jsx)(D,{...t,onClick:e},t.id);return c?c(t,r,n):r})},[o,l,c]);return(0,N.jsx)("div",{...(0,R.$)(d,{labelable:!0}),role:"tablist",className:z({direction:e,size:t},a),"data-qa":u,ref:h,children:(0,N.jsx)(T.Provider,{value:m,children:s||f})})});F.displayName="Tabs";const j=Object.assign(F,{Item:D});function B(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const U=r.memo(({renderContent:e,size:t})=>r.createElement(r.Fragment,null,e({size:t})));U.displayName="RenderContent";const $=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:i,children:o})=>r.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"==typeof i?r.createElement(U,{size:e,renderContent:i}):o),W=r.createContext(void 0);W.displayName="AsideHeaderInnerContext";const H=W.Provider,V=()=>{const e=r.useContext(W);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},Y=r.createContext({compact:!1,size:0});Y.displayName="AsideHeaderContext";const G=Y.Provider,J=()=>{const e=r.useContext(Y);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e},q="gn-";(0,i.withNaming)({e:"__",m:"_"});const X=(0,i.withNaming)({n:q,e:"__",m:"_"}),Z=X("aside-header");function K(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}K('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-expanded-background-color,var(--gn-aside-header-background-color,var(--_--background-color)));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-top-alert-height,0);max-height:calc(100vh - var(--gn-top-alert-height, 0));position:sticky;top:var(--gn-top-alert-height,0);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;padding-top:var(--gn-aside-header-padding-top);position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;width:var(--gn-aside-header-size);z-index:-1}.gn-aside-header_compact .gn-aside-header__aside{background-color:var(--gn-aside-header-collapsed-background-color,var(--gn-aside-header-background-color,var(--_--background-color)))}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button .gn-aside-header__logo-icon-place{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));width:var(--gn-aside-header-min-width)}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-top-alert-height,0) 0 0;max-height:calc(100vh - var(--gn-top-alert-height, 0));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__top-alert{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__content{margin-top:var(--gn-top-alert-height,0);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const Q=r.lazy(()=>n.e(43).then(()=>n(86043)).then(e=>({default:e.TopAlert}))),ee=Object.assign(({compact:e,className:t,children:n,topAlert:i})=>{const o=e?56:236,s=(0,r.useMemo)(()=>({size:o,compact:e}),[e,o]);return r.createElement(G,{value:s},r.createElement("div",{className:Z({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${o}px`})},i&&r.createElement(r.Suspense,{fallback:null},r.createElement(Q,{className:Z("top-alert"),alert:i})),r.createElement("div",{className:Z("pane-container")},n)))},{Content:({children:e,renderContent:t})=>{const{size:n}=J();return r.createElement($,{size:n,className:Z("content"),renderContent:t},e)}});K(".gn-all-pages-list-item{align-items:center;background:none;border:none;color:inherit;column-gap:var(--g-spacing-4);display:flex;font:inherit;height:40px;outline:inherit;padding:0 var(--g-spacing-6);text-decoration:inherit;width:100%}.gn-all-pages-list-item:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-all-pages-list-item__text{flex:1;text-align:initial}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}.gn-all-pages-list-item_edit-mode{padding:0 0 0 var(--g-spacing-4)}");const te=X("all-pages-list-item"),ne=e=>{const{item:t,editMode:n,onToggle:i}=e,a=(0,r.useCallback)(e=>{e.stopPropagation(),e.preventDefault(),i()},[i]),[l,c]=t.link?["a",{href:t.link}]:["button",{}];return r.createElement(l,Object.assign({},c,{className:te(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}}),t.icon?r.createElement(o.I,{className:te("icon"),data:t.icon,size:t.iconSize}):null,r.createElement("span",{className:te("text")},t.title),n&&!t.preventUserRemoving&&r.createElement(s.$,{onClick:a,view:t.hidden?"flat-secondary":"flat-action"},r.createElement(s.$.Icon,null,t.hidden?r.createElement(b.A,null):r.createElement(w.A,null))))};var re=(0,k.N)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Configuring the menu bar","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"Все страницы","all-panel.menu.category.allOther":"Остальное","all-panel.resetToDefault":"Сбросить по умолчанию","all-panel.title.editing":"Настройка панели меню","all-panel.title.main":"Все страницы"}},`${q}AllPagesPanel`);const ie="all-pages";K(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}.gn-all-pages-panel__item_editMode{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__drag-placeholder{text-wrap:nowrap;padding-left:88px;padding-right:68px;visibility:hidden}");const oe=X("all-pages-panel"),se=e=>{const{startEditIcon:t,onEditModeChanged:n,className:i}=e,{menuItems:d,defaultMenuItems:h,onMenuItemsChanged:p,editMenuProps:m}=V(),f=(0,r.useRef)(d);f.current=d;const[g,v]=(0,r.useState)(!1),[y,b]=(0,r.useState)(null),w=(0,r.useCallback)(()=>{v(e=>!e)},[]),_=(e=>{const t=(0,r.useMemo)(()=>{const t=e.filter(e=>"divider"!==e.type&&e.id!==ie);return t.sort((e,t)=>"action"===e.type?1:"action"===t.type?-1:0),t.reduce((e,t)=>{const n=t.category||re("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e},{})},[e]);return t})(d);(0,r.useEffect)(()=>{var e;null==n||n(g),g&&(null===(e=null==m?void 0:m.onOpenEditMode)||void 0===e||e.call(m))},[g,n,m]);const E=(0,r.useCallback)(e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)},[]),C=(0,r.useCallback)(e=>{var t;if(!p)return;const n=Object.assign(Object.assign({},e),{hidden:!e.hidden}),r=f.current.filter(e=>e.id!==ie);null===(t=null==m?void 0:m.onToggleMenuItem)||void 0===t||t.call(m,n),p(r.map(e=>e.id!==n.id?e:n))},[p,m]),S=(0,r.useCallback)(()=>{b(null)},[b]),k=(0,r.useCallback)((e,t,n)=>r.createElement(ne,{item:e,onDragStart:()=>{b(e.title)},onDragEnd:S,editMode:g,onToggle:()=>C(e),enableSorting:null==m?void 0:m.enableSorting}),[g,C,S,b,m]),N=(0,r.useCallback)(()=>{var e;if(!p)return;null===(e=null==m?void 0:m.onResetSettingsToDefault)||void 0===e||e.call(m);const t=null==h?void 0:h.filter(e=>e.id!==ie);t&&p(t)},[p,m,h]),M=(0,r.useCallback)(({oldIndex:e,newIndex:t})=>{var n;const r=f.current.filter(e=>e.id!==ie),i=r.splice(e,1)[0];r.splice(t,0,i),null==p||p(r.filter(e=>"divider"!==e.type)),b(null),null===(n=null==m?void 0:m.onChangeItemsOrder)||void 0===n||n.call(m,i,e,t)},[p,m]),O=(0,r.useMemo)(()=>f.current.filter(e=>e.id!==ie&&!e.afterMoreButton&&"divider"!==e.type),[d]);return r.createElement(a.s,{className:oe(null,i),gap:"5",direction:"column"},r.createElement(a.s,{gap:"4",alignItems:"center",justifyContent:"space-between"},r.createElement(l.E,{variant:"subheader-2"},re(g?"all-panel.title.editing":"all-panel.title.main")),r.createElement(c.m,{content:re("all-panel.title.editing")},r.createElement(s.$,{selected:g,view:"normal",onClick:w},t||r.createElement(o.I,{data:x.A})))),r.createElement(a.s,{className:oe("content"),gap:"5",direction:"column"},g&&(null==m?void 0:m.enableSorting)?r.createElement("div",null,r.createElement(u.B,{itemClassName:oe("item",{editMode:!0}),itemHeight:40,onSortEnd:M,sortable:!0,virtualized:!1,filterable:!1,items:O,onItemClick:E,renderItem:k}),y&&r.createElement("div",{className:oe("drag-placeholder")},y)):Object.keys(_).map(e=>r.createElement(a.s,{key:e,direction:"column",gap:"3"},r.createElement(l.E,{className:oe("category"),variant:"body-1",color:"secondary"},e),r.createElement(u.B,{virtualized:!1,filterable:!1,items:_[e],onItemClick:E,renderItem:k})))),g&&r.createElement(s.$,{onClick:N},re("all-panel.resetToDefault")))};let ae;ae="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let le=null,ce=null;const ue=ae.clearTimeout,de=ae.setTimeout,he=ae.cancelAnimationFrame||ae.mozCancelAnimationFrame||ae.webkitCancelAnimationFrame,pe=ae.requestAnimationFrame||ae.mozRequestAnimationFrame||ae.webkitRequestAnimationFrame;function me(e){let t,n,r,i,o,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;s(this),this.__resizeRAF__&&le(this.__resizeRAF__),this.__resizeRAF__=ce(function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(l)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,c=ae.getComputedStyle(o);c&&"static"===c.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=r:s.appendChild(n.createTextNode(r)),o.appendChild(s)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(u),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),s(o),o.addEventListener("scroll",a,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==he||null==pe?(le=ue,ce=function(e){return de(e,20)}):(le=function([e,t]){he(e),ue(t)},ce=function(e){const t=pe(function(){ue(n),e()}),n=de(function(){he(t),e()},20);return[t,n]});class fe extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),s=parseFloat(r.paddingTop||"0"),a=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-s-a,u=l.width-i-o,d=this._parentNode.offsetHeight-s-a,h=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===h&&this.state.scaledWidth===u)||(this.setState({height:d,width:h,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:h}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=me(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:a,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:h,scaledHeight:p,scaledWidth:m,width:f}=this.state,g={overflow:"visible"},v={};let y=!1;return i||(0===h&&(y=!0),g.height=0,v.height=h,v.scaledHeight=p),o||(0===f&&(y=!0),g.width=0,v.width=f,v.scaledWidth=m),s&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var ge,ve,ye,be,we,_e,xe,Ee,Ce,Se,ke,Ne,Me,Oe,Re,Te,Ae,Ie,De,ze,Pe,Le,Fe,je,Be,Ue,$e,We,He="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ye(){if(ve)return ge;return ve=1,ge=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function Ge(){if(_e)return we;_e=1;var e=function(){if(be)return ye;be=1;var e="object"==typeof He&&He&&He.Object===Object&&He;return ye=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return we=n}function Je(){if(Ne)return ke;Ne=1;var e=function(){if(Se)return Ce;Se=1;var e=/\s/;return Ce=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n},Ce}(),t=/^\s+/;return ke=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function qe(){if(Oe)return Me;Oe=1;var e=Ge().Symbol;return Me=e}function Xe(){if(ze)return De;ze=1;var e=qe(),t=function(){if(Te)return Re;Te=1;var e=qe(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return Re=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var s=!0}catch(e){}var a=r.call(e);return s&&(t?e[i]=o:delete e[i]),a}}(),n=function(){if(Ie)return Ae;Ie=1;var e=Object.prototype.toString;return Ae=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return De=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Ze(){if(je)return Fe;je=1;var e=Xe(),t=Le?Pe:(Le=1,Pe=function(e){return null!=e&&"object"==typeof e});return Fe=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}var Ke=function(){if(We)return $e;We=1;var e=Ye(),t=function(){if(Ee)return xe;Ee=1;var e=Ge();return xe=function(){return e.Date.now()}}(),n=function(){if(Ue)return Be;Ue=1;var e=Je(),t=Ye(),n=Ze(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return Be=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(t(a)){var l="function"==typeof a.valueOf?a.valueOf():a;a=t(l)?l+"":l}if("string"!=typeof a)return 0===a?a:+a;a=e(a);var c=i.test(a);return c||o.test(a)?s(a.slice(2),c?2:8):r.test(a)?NaN:+a}}(),r=Math.max,i=Math.min;return $e=function(o,s,a){var l,c,u,d,h,p,m=0,f=!1,g=!1,v=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function y(e){var t=l,n=c;return l=c=void 0,m=e,d=o.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=s||t<0||g&&e-m>=u}function w(){var e=t();if(b(e))return _(e);h=setTimeout(w,function(e){var t=s-(e-p);return g?i(t,u-(e-m)):t}(e))}function _(e){return h=void 0,v&&l?y(e):(l=c=void 0,d)}function x(){var e=t(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return m=e,h=setTimeout(w,s),f?y(e):d}(p);if(g)return clearTimeout(h),h=setTimeout(w,s),y(p)}return void 0===h&&(h=setTimeout(w,s)),d}return s=n(s)||0,e(a)&&(f=!!a.leading,u=(g="maxWait"in a)?r(n(a.maxWait)||0,s):u,v="trailing"in a?!!a.trailing:v),x.cancel=function(){void 0!==h&&clearTimeout(h),m=0,l=p=c=h=void 0},x.flush=function(){return void 0===h?d:_(t())},x},$e}(),Qe=Ve(Ke);K('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const et=X("composite-bar-highlighted-item"),tt=({iconRef:e,iconNode:t,onClick:n,onClickCapture:i})=>{const{openModalSubscriber:o}=V(),[{top:s,left:a,width:l,height:c},u]=(0,r.useState)({top:0,left:0,width:0,height:0}),[h,p]=(0,r.useState)(!1),m=(0,r.useMemo)(()=>Qe(()=>{var t;const{top:n=0,left:r=0,width:i=0,height:o=0}=(null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect())||{};u({top:n+window.scrollY,left:r+window.scrollX,width:i,height:o})},200,{leading:!0}),[e]),f=(0,r.useCallback)(()=>m(),[m]);return(0,r.useEffect)(()=>{if(h)return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[f,h]),null==o||o(e=>{p(e)}),t&&h?r.createElement(d.Z,null,r.createElement("div",{className:et(),style:{left:a,top:s,width:l,height:c},onClick:n,onClickCapture:i,"data-toast":!0},r.createElement("div",{className:et("icon")},t))):null};tt.displayName="HighlightedItem";const nt="collapse-item-id",rt=["right-start","right-end","right"];function it(e){if(!at(e))return 40;switch(e.type){case"action":return 50;case"divider":return 15;default:return 40}}function ot(e){return e.reduce((e,t)=>e+it(t),0)}function st(e){const t=e.findIndex(({current:e})=>Boolean(e));return-1===t?void 0:t}function at(e){return void 0!==(null==e?void 0:e.id)}K('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-complementary);--_--item-text-color:var(--g-color-text-primary);--_--item-collapsed-radius:7px;--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color:var(--g-color-base-selection);align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;height:100%;min-width:0;outline:inherit;padding:0;text-decoration:inherit;width:100%}.gn-composite-bar-item:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{align-items:center;display:flex;margin-right:16px;overflow:hidden}.gn-composite-bar-item__title-text{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));display:-webkit-box;overflow:hidden;text-align:start}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{--_--item-icon-color:var(--g-color-text-misc);align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;height:100%;outline:inherit;padding:0 16px;text-decoration:inherit;width:100%}.gn-composite-bar-item__collapse-item:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-composite-bar-item__collapse-item-icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color));margin-right:10px}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color)));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color)));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const lt=X("composite-bar-item");function ct(e){let t=r.createElement("div",{className:lt("title-text")},e.title);return e.rightAdornment&&(t=r.createElement(r.Fragment,null,t,r.createElement("div",{className:lt("title-adornment")},e.rightAdornment))),t}const ut=["right-end"],dt={mainAxis:8,crossAxis:-20},ht=e=>{const{item:t,className:n,collapseItems:i,onMouseLeave:s,onMouseEnter:a,enableTooltip:l=!0,popupVisible:c=!1,popupAnchor:u,popupAnchorElement:d,popupPlacement:m=ut,popupOffset:f=dt,popupKeepMounted:g,renderPopupContent:v,onClosePopup:y,onOpenChangePopup:b,onItemClick:w,onItemClickCapture:_,onCollapseItemClick:x,bringForward:E}=e,{compact:C}=J(),[S,k]=r.useState(!1),N=r.useRef(null),M=d?{current:d}:u||N,O=r.useRef(null),R=t.type||"regular",T=t.current||!1,A=t.tooltipText||t.title,I=t.icon,D=t.iconSize||18,z=t.iconQa,P=t.id===nt,L=r.useCallback(e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=N.current)||void 0===t?void 0:t.contains(e.target))||null==y||y()},[y]),F=r.useCallback((e,t,n)=>{var r;t instanceof MouseEvent&&t.target&&(null===(r=N.current)||void 0===r?void 0:r.contains(t.target))||null==b||b(e,t,n)},[y]);if("divider"===t.type)return r.createElement("div",{className:lt("menu-divider")});const j=e=>C?r.createElement(h.m,{title:"",description:A,disabled:!l||P&&S||c,placement:"right",className:lt("icon-tooltip",{"item-type":R})},r.createElement("div",{onMouseEnter:()=>null==a?void 0:a(),onMouseLeave:()=>null==s?void 0:s(),className:lt("btn-icon")},e)):e,B=({icon:e,title:i})=>{const[o,l]=t.link?["a",{href:t.link}]:["button",{}];return r.createElement(r.Fragment,null,r.createElement(o,Object.assign({},l,{className:lt({type:R,current:T,compact:C},n),ref:N,"data-qa":t.qa,onClick:e=>{P?(k(!S),null==x||x()):null==w||w(t,!1,e)},onClickCapture:_,onMouseEnter:()=>{C||null==a||a()},onMouseLeave:()=>{C||null==s||s()}}),r.createElement("div",{className:lt("icon-place"),ref:O},j(e)),r.createElement("div",{className:lt("title"),title:"string"==typeof t.title?t.title:void 0},i)),v&&Boolean(null==M?void 0:M.current)&&r.createElement(p.z,{strategy:"fixed",open:c,keepMounted:g,placement:m,offset:f,anchorRef:M,onClose:L,onOpenChange:F},v()))},U=I?r.createElement(o.I,{qa:z,data:I,size:D,className:lt("icon")}):null,$={icon:U,title:ct(t)};let W,H=null;const V={compact:Boolean(C),collapsed:!1,item:t,ref:N};return"function"==typeof t.itemWrapper?(W=t.itemWrapper($,B,V),H=E&&t.itemWrapper($,({icon:e})=>j(e),V)):(W=B($),H=E&&j(U)),r.createElement(r.Fragment,null,E&&r.createElement(tt,{iconNode:H,iconRef:O,onClick:e=>null==w?void 0:w(t,!1,e),onClickCapture:_}),W,S&&P&&(null==i?void 0:i.length)&&Boolean(null==M?void 0:M.current)&&r.createElement(pt,Object.assign({},e,{anchorRef:N,onClose:()=>k(!1)})))};function pt({onItemClick:e,collapseItems:t,anchorRef:n,onClose:i}){const{compact:s}=J();return(null==t?void 0:t.length)?r.createElement(p.z,{strategy:"fixed",placement:rt,open:!0,anchorRef:n,onClose:i},r.createElement("div",{className:lt("collapse-items-popup-content")},r.createElement(u.B,{itemClassName:lt("root-collapse-item"),items:t,selectedItemIndex:st(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:i,renderItem:t=>{const i=({title:n,icon:i})=>{const[o,s]=t.link?["a",{href:t.link}]:["button",{}];return r.createElement(o,Object.assign({},s,{className:lt("collapse-item"),onClick:n=>{null==e||e(t,!0,n)}}),i,n)},a={title:ct(t),icon:t.icon&&r.createElement(o.I,{data:t.icon,size:14,className:lt("collapse-item-icon")})},l={compact:Boolean(s),collapsed:!0,item:t,ref:n};return"function"==typeof t.itemWrapper?t.itemWrapper(a,i,l):i(a)}}))):null}ht.displayName="Item";const mt={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},ft=r.createContext(mt);class gt extends r.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},mt),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return r.createElement(ft.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}K('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__popup{--g-popup-background-color:transparent;--g-popup-border-color:transparent;--g-popup-border-width:0;background-color:transparent;box-shadow:none}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const vt=X("multiple-tooltip"),yt={mainAxis:4,crossAxis:-32},bt=({items:e,open:t,anchorRef:n,placement:i})=>{const{activeIndex:o,hideCollapseItemTooltip:s}=r.useContext(ft),a=void 0===o?null:e[o];return r.createElement(p.z,{open:t,className:vt("popup"),anchorRef:n,strategy:"fixed",placement:i,offset:yt},r.createElement("div",{className:vt()},r.createElement("div",{className:vt("items-container")},e.filter(({type:e="regular",id:t})=>!s||t!==nt&&"action"!==e).map((e,t)=>"divider"===e.type?r.createElement("div",{className:vt("item",{divider:!0}),key:t},e.title):r.createElement("div",{className:vt("item",{active:e===a}),key:t},e.title)))))};K(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const wt=X("composite-bar"),_t=({type:e,items:t,onItemClick:n,onMoreClick:i,collapseItems:o,multipleTooltip:s=!1})=>{const a=(0,r.useRef)(null),l=(0,r.useRef)(null),{setValue:c,active:d,activeIndex:h,lastClickedItemIndex:p}=(0,r.useContext)(ft),{compact:m}=J();r.useEffect(()=>{function e(){s&&d&&c({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}},[s,d,c]);const f=(0,r.useCallback)(e=>{s&&m&&!d&&document.hasFocus()&&h!==p&&e.clientX<=56&&(null==c||c({active:!0}))},[s,m,d,h,p,c]),g=(0,r.useCallback)(()=>{s&&d&&document.hasFocus()&&(null==c||c({active:!1,lastClickedItemIndex:void 0}))},[s,d,c]),v=(0,r.useCallback)(e=>()=>{if(s&&document.hasFocus()){let t=d;if(d||e===p||(t=!0),h===e&&d===t)return;c({activeIndex:e,active:t})}},[s,d,p,h,c]),y=(0,r.useCallback)(()=>{var e;m&&document.hasFocus()&&(null===(e=a.current)||void 0===e||e.activateItem(void 0),!s||void 0===h&&void 0===p||c({activeIndex:void 0,lastClickedItemIndex:void 0}))},[h,m,p,s,c]),b=(0,r.useCallback)(e=>(t,r,i)=>{m&&s&&e!==p&&t.id!==nt&&c({lastClickedItemIndex:e,active:!1}),null==n||n(t,r,i)},[m,p,s,n,c]);return r.createElement(r.Fragment,null,r.createElement("div",{ref:l,onMouseEnter:f,onMouseLeave:g},r.createElement(u.B,{ref:a,items:t,selectedItemIndex:"menu"===e?st(t):void 0,itemHeight:it,itemsHeight:ot,itemClassName:wt("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const a=at(e)?{item:e}:e,l=at(e)?!s:e.enableTooltip;return r.createElement(ht,Object.assign({},a,{enableTooltip:l,onMouseEnter:v(n),onMouseLeave:y,onItemClick:b(n),onCollapseItemClick:i,collapseItems:o}))}})),"menu"===e&&s&&r.createElement(bt,{open:m&&d,anchorRef:l,placement:["right-start"],items:t}))},xt=({type:e,items:t,menuMoreTitle:n,onItemClick:i,onMoreClick:o,multipleTooltip:s=!1})=>{if(0===t.length)return null;let a;if("menu"===e){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter(e=>e.afterMoreButton);return ot(t)+ot(n)+(t.length===e.length?0:40)}(t),l=function(e){return{id:nt,title:e,icon:_.A,iconSize:18}}(n);a=r.createElement("div",{className:wt({autosizer:!0}),style:{minHeight:e}},0!==t.length&&r.createElement(fe,null,e=>{const n=Number.isNaN(e.width)?0:e.width,a=Number.isNaN(e.height)?0:e.height,{listItems:c,collapseItems:u}=function(e,t,n){var r,i,o;const s=e.filter(e=>e.afterMoreButton),a=e.filter(e=>!e.afterMoreButton),l=[...a,...s],c=ot(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=it(n);l.splice(a.length,0,n);const d=[];let h=c+u,p=l.length;for(;h>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===nt||e.afterMoreButton||("divider"!==e.type?(h-=it(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(h-=it(e),l.splice(p,1)))}return"divider"!==(null===(i=l[p])||void 0===i?void 0:i.type)||0!==p&&"divider"!==(null===(o=l[p-1])||void 0===o?void 0:o.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,a,l);return r.createElement("div",{style:{width:n,height:a}},r.createElement(_t,{type:"menu",items:c,onItemClick:i,onMoreClick:o,collapseItems:u,multipleTooltip:s}))}))}else a=r.createElement("div",{className:wt({subheader:!0})},r.createElement(_t,{type:"subheader",items:t,onItemClick:i}));return r.createElement(gt,null,a)};var Et={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},Ct={button_collapse:"Свернуть",button_expand:"Развернуть",label_more:"Ещё"};var St,kt=(0,k.N)({en:Et,ru:Ct},`${q}AsideHeader`);function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nt.apply(null,arguments)}var Mt=function(e){return r.createElement("svg",Nt({xmlns:"http://www.w3.org/2000/svg",width:8,height:8,fill:"currentColor",viewBox:"0 0 8 8"},e),St||(St=r.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45"})))};K('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const Ot=X("collapse-button"),Rt=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:i,collapseTitle:s}=V(),a=(0,r.useCallback)(()=>{null==t||t(!n)},[n,t]),l=n?i||kt("button_expand"):s||kt("button_collapse");return r.createElement("button",{className:Ot({compact:n},e),onClick:a,title:l},r.createElement(o.I,{data:Mt,className:Ot("icon"),width:"16",height:"10"}))};K(".gn-logo{height:40px}.gn-logo,.gn-logo__btn-logo{align-items:center;display:flex}.gn-logo__btn-logo{cursor:pointer;flex-shrink:0;justify-content:center}.gn-logo__btn-logo,.gn-logo__btn-logo:active,.gn-logo__btn-logo:focus,.gn-logo__btn-logo:hover,.gn-logo__btn-logo:visited{color:inherit;outline:none;text-decoration:none}.gn-logo__btn-logo:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-logo__logo-icon-place{align-items:center;display:flex;justify-content:center;width:36px}");const Tt=X("logo"),At=({text:e,icon:t,iconSrc:n,iconClassName:i,iconPlaceClassName:s,iconSize:a=24,textSize:l=15,href:c,target:u="_self",wrapper:d,onClick:h,compact:p,className:m,buttonClassName:f,"aria-label":g,"aria-labelledby":v})=>{const y="function"==typeof d;let b,w;n?b=r.createElement("span",{className:i},r.createElement("img",{alt:"logo icon",src:n,width:a,height:a})):t&&(b=r.createElement(o.I,{data:t,size:a,className:i})),w="function"==typeof e?e():r.createElement("div",{className:Tt("logo"),style:{fontSize:l}},e);const _=c?{tag:"a",target:u,rel:"_self"===u?void 0:"noreferrer",href:c,"aria-label":g,"aria-labelledby":v}:{tag:"span"},{tag:x}=_,E=B(_,["tag"]),C=r.createElement(x,Object.assign({},E,{className:Tt("btn-logo",f),onClick:h}),r.createElement("span",{className:Tt("logo-icon-place",s)},b),!p&&w);return r.createElement("div",{className:Tt(null,m)},y?d(C,Boolean(p)):C)};var It;function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dt.apply(null,arguments)}var zt=function(e){return r.createElement("svg",Dt({xmlns:"http://www.w3.org/2000/svg",width:56,height:29,fill:"currentColor",viewBox:"0 0 56 29"},e),It||(It=r.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))};const Pt=[],Lt=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:i,subheaderItems:s}=V(),{compact:a}=J(),l=(0,r.useCallback)(t=>{var r;null==n||n(),null===(r=null==e?void 0:e.onClick)||void 0===r||r.call(e,t)},[n,e]);return r.createElement("div",{className:Z("header",{"with-decoration":i})},e&&r.createElement(At,Object.assign({},e,{onClick:l,compact:a,buttonClassName:Z("logo-button"),iconPlaceClassName:Z("logo-icon-place")})),r.createElement(xt,{type:"subheader",items:s||Pt,onItemClick:t}),i&&r.createElement(o.I,{data:zt,className:Z("header-divider"),width:56,height:29}))};var Ft="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let jt=0;function Bt(){const e=/iP(hone|ad|od)|iOS/.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,o=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var s,a;const e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0,n=(null==(a=window.visualViewport)?void 0:a.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(o-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,o))}}let Ut=()=>{};const $t=r.forwardRef(function(e,t){const{lockScroll:n=!1,...r}=e;return Ft(()=>{if(n)return jt++,1===jt&&(Ut=Bt()),()=>{jt--,0===jt&&Ut()}},[n]),(0,N.jsx)("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})});function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(null,arguments)}function Ht(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Vt(e,t){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vt(e,t)}function Yt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vt(e,t)}function Gt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Jt=!1,qt=r.createContext(null),Xt=function(e){return e.scrollTop},Zt="unmounted",Kt="exited",Qt="entering",en="entered",tn="exiting",nn=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Kt,r.appearStatus=Qt):i=en:i=t.unmountOnExit||t.mountOnEnter?Zt:Kt,r.state={status:i},r.nextCallback=null,r}Yt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Zt?{status:Kt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Qt&&n!==en&&(t=Qt):n!==Qt&&n!==en||(t=tn)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Qt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this);n&&Xt(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Kt&&this.setState({status:Zt})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[M.findDOMNode(this),r],o=i[0],s=i[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||Jt?this.safeSetState({status:en},function(){t.props.onEntered(o)}):(this.props.onEnter(o,s),this.safeSetState({status:Qt},function(){t.props.onEntering(o,s),t.onTransitionEnd(l,function(){t.safeSetState({status:en},function(){t.props.onEntered(o,s)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:M.findDOMNode(this);t&&!Jt?(this.props.onExit(r),this.safeSetState({status:tn},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Kt},function(){e.props.onExited(r)})})})):this.safeSetState({status:Kt},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:M.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Zt)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=Ht(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(qt.Provider,{value:null},"function"==typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function rn(){}nn.contextType=qt,nn.propTypes={},nn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rn,onEntering:rn,onEntered:rn,onExit:rn,onExiting:rn,onExited:rn},nn.UNMOUNTED=Zt,nn.EXITED=Kt,nn.ENTERING=Qt,nn.ENTERED=en,nn.EXITING=tn;var on=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r})},sn=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Gt(n.className,r):n.setAttribute("class",Gt(n.className&&n.className.baseVal||"",r)));var n,r})},an=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Yt(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Xt(e),r&&(this.appliedClasses[t][n]=r,on(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&sn(e,r),i&&sn(e,i),o&&sn(e,o)},n.render=function(){var e=this.props;e.classNames;var t=Ht(e,["classNames"]);return r.createElement(nn,Wt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(r.Component);an.defaultProps={classNames:""},an.propTypes={};const ln=200,cn=800;function un(e,t){var n,r,i,o;return"touches"in e?"horizontal"===t?null!==(r=null===(n=e.touches[0])||void 0===n?void 0:n.clientX)&&void 0!==r?r:0:null!==(o=null===(i=e.touches[0])||void 0===i?void 0:i.clientY)&&void 0!==o?o:0:"horizontal"===t?e.clientX:e.clientY}function dn(e){const{direction:t="left",width:n,minResizeWidth:i=ln,maxResizeWidth:o=cn,onResizeStart:s,onResize:a,onResizeContinue:l}=e,[c,u]=r.useState(!1),[d,h]=r.useState(0),[p,m]=r.useState(null!=n?n:400),f=r.useCallback(e=>Math.min(Math.max(e,i),o),[i,o]),g=r.useCallback(e=>{const r=["right","bottom"].includes(t)?e:-e;return f((null!=n?n:p)+r)},[n,p,t,f]),v=r.useCallback(()=>{u(!0),h(0),null==s||s()},[s]),y=r.useCallback(e=>{h(e),null==l||l(g(e))},[g,l]),b=r.useCallback(e=>{const t=g(e);u(!1),m(t),null==a||a(t)},[g,a]),w=c?g(d):f(null!=n?n:p),_=function({onStart:e,onMove:t,onEnd:n,direction:i="horizontal"}){const o=r.useRef(0),s=r.useRef(0),a=r.useCallback(e=>{const n=un(e,i);if(s.current===n)return;s.current=n;const r=o.current-n;t(r)},[t,i]),l=r.useCallback(e=>{e.preventDefault()},[]),c=r.useCallback(e=>{window.removeEventListener("mousemove",a),window.removeEventListener("touchmove",a),window.removeEventListener("selectstart",l),document.body.style.removeProperty("cursor");const t=un(e,i),r=o.current-t;n(r)},[a,l,i,n]),u=r.useCallback(t=>{const n=un(t,i);o.current=n,s.current=n,window.addEventListener("mouseup",c,{once:!0}),window.addEventListener("touchend",c,{once:!0}),window.addEventListener("touchcancel",c,{once:!0}),window.addEventListener("mousemove",a),window.addEventListener("touchmove",a),window.addEventListener("selectstart",l,{passive:!1}),document.body.style.setProperty("cursor","horizontal"===i?"col-resize":"row-resize"),e()},[c,a,e,i]);return{onMouseDown:u,onTouchStart:u}}({onStart:v,onMove:y,onEnd:b,direction:["left","right"].includes(t)?"horizontal":"vertical"});return{resizedWidth:w,resizerHandlers:_,isResizing:c}}K(".gn-drawer{--_--item-shadow-default:0 1px 5px 0 var(--g-color-sfx-shadow);--_--item-position:fixed;--_--resizer-width:8px;--_--resizer-color:var(--g-color-base-generic);--_--resizer-handle-color:var(--g-color-line-generic);--_--resizer-handle-color-hover:var(--g-color-line-generic-hover);--_--resizer-z-index:100;--_--veil-background-color:var(--g-color-sfx-veil);pointer-events:none}.gn-drawer_hideVeil{--_--item-shadow:var(--gn-drawer-item-shadow,var(--_--item-shadow-default))}.gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;box-shadow:var(--_--item-shadow,none);height:100%;left:var(--gn-aside-header-size,0);pointer-events:auto;position:var(--gn-drawer-item-position,var(--_--item-position));top:var(--gn-top-alert-height,0);will-change:transform;z-index:var(--gn-drawer-item-z-index)}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item_direction_top{bottom:auto;right:0}.gn-drawer__item_direction_bottom{right:0;top:auto}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition_direction_top-enter{transform:translateY(-100%)}.gn-drawer__item-transition_direction_bottom-enter{transform:translateY(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_bottom-enter-active,.gn-drawer__item-transition_direction_right-enter-active,.gn-drawer__item-transition_direction_top-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_bottom-enter-done,.gn-drawer__item-transition_direction_right-enter-done,.gn-drawer__item-transition_direction_top-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_bottom-exit,.gn-drawer__item-transition_direction_right-exit,.gn-drawer__item-transition_direction_top-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_bottom-exit-active,.gn-drawer__item-transition_direction_right-exit-active,.gn-drawer__item-transition_direction_top-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition_direction_top-exit-active{transform:translateY(-100%)}.gn-drawer__item-transition_direction_bottom-exit-active{transform:translateY(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_bottom-exit-done,.gn-drawer__item-transition_direction_right-exit-done,.gn-drawer__item-transition_direction_top-exit-done,.gn-drawer__item_hidden{visibility:hidden}.gn-drawer__veil{background-color:var(--gn-drawer-veil-background-color,var(--_--veil-background-color));inset:0;pointer-events:auto;position:absolute;z-index:var(--gn-drawer-veil-z-index)}.gn-drawer__veil_hidden{display:none}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}.gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color,var(--_--resizer-handle-color));border-radius:2px;height:28px;width:2px}.gn-drawer__resizer-handle_direction_bottom,.gn-drawer__resizer-handle_direction_top{height:2px;width:28px}.gn-drawer__resizer{align-items:center;background:var(--gn-drawer-item-resizer-color,var(--_--resizer-color));cursor:col-resize;display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;top:0;width:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));z-index:var(--gn-drawer-item-resizer-z-index,var(--_--resizer-z-index))}.gn-drawer__resizer_direction_right{left:0;top:var(--gn-top-alert-height,0)}.gn-drawer__resizer_direction_left{right:0;top:var(--gn-top-alert-height,0)}.gn-drawer__resizer_direction_top{bottom:0;left:0;top:unset}.gn-drawer__resizer_direction_bottom{left:0;top:0}.gn-drawer__resizer_direction_bottom,.gn-drawer__resizer_direction_top{cursor:row-resize;height:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));width:100%}.gn-drawer__resizer:hover .gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color-hover,var(--_--resizer-handle-color-hover))}");const hn=X("drawer"),pn=r.forwardRef(function(e,t){const{visible:n,content:i,children:o,direction:s="left",className:a,resizable:l,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:h,onResizeContinue:p,onResize:f,keepMounted:g=!1}=e,[v,y]=r.useState(!0),b=r.useRef(null),w=(0,m.N)(t,b),_="left"===s?void 0:s,{resizedWidth:x,resizerHandlers:E,isResizing:C}=dn({direction:s,width:c,minResizeWidth:u,maxResizeWidth:d,onResizeStart:h,onResize:f,onResizeContinue:p}),S={};l&&(["left","right"].includes(s)?S.width=`${x}px`:S.height=`${x}px`),r.useEffect(()=>{y(!0)},[s]);const k=l?r.createElement("div",Object.assign({className:hn("resizer",{direction:s})},E),r.createElement("div",{className:hn("resizer-handle",{direction:s})})):null;return r.createElement(an,{in:n,timeout:300,mountOnEnter:!g,unmountOnExit:!g,classNames:hn("item-transition",{direction:_}),nodeRef:b,onEnter:()=>y(!1),onExit:()=>y(!1)},r.createElement("div",{ref:w,className:hn("item",{direction:_,hidden:v&&!n,resize:C},[a]),style:S},k,null!=o?o:i))}),mn=({className:e,veilClassName:t,children:n,style:i,onVeilClick:o,onEscape:s,hideVeil:a,disablePortal:l=!0,keepMounted:c=!1})=>{let u=!1;r.Children.forEach(n,e=>{if(r.isValidElement(e)&&e.type===pn){Boolean(e.props.visible)&&(u=!0)}}),r.useEffect(()=>{function e(e){"Escape"===e.key&&(null==s||s(e))}return u&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[s,u]);const h=r.useRef(null),p=r.useRef(null),m=r.createElement(nn,{in:u,timeout:{enter:0,exit:300},mountOnEnter:!c,unmountOnExit:!c,nodeRef:h},s=>{const l=u&&"entered"===s;return r.createElement("div",{ref:h,className:hn({hideVeil:a},e),style:i},r.createElement(an,{in:l,timeout:300,unmountOnExit:!0,classNames:hn("veil-transition"),nodeRef:p},r.createElement("div",{ref:p,className:hn("veil",{hidden:a},t),onClick:o})),r.Children.map(n,e=>{if(r.isValidElement(e)&&e.type===pn){const t=Boolean(e.props.visible);return r.cloneElement(e,Object.assign(Object.assign({keepMounted:c},e.props),{visible:t&&l}))}return e}))});return l?m:r.createElement(d.Z,null,u?r.createElement($t,{lockScroll:!0},m):m)},fn=()=>{const{panelItems:e,onClosePanel:t,size:n}=V();return e?r.createElement(mn,{className:Z("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map(e=>r.createElement(pn,Object.assign({key:e.id},e)))):null},gn=r.forwardRef((e,t)=>{const{size:n,onItemClick:i,headerDecoration:o,multipleTooltip:s,menuMoreTitle:a,onMenuMoreClick:l,renderFooter:c,compact:u,customBackground:d,customBackgroundClassName:h,className:p,hideCollapseButton:m,qa:g}=V(),v=(()=>{const{menuItems:e,allPagesIsAvailable:t}=V();return(0,r.useMemo)(()=>{if(!t)return e;let n=0;return e.filter((e,t,r)=>!(e.hidden||t>0&&"divider"===e.type&&("divider"===r[n].type||r[n].hidden)||(n=t,0)))},[t,e])})(),y=(0,r.useRef)(null);return r.useEffect(()=>{(0,f.c)(t,y.current)},[t]),r.createElement(r.Fragment,null,r.createElement("div",{className:Z("aside",p),style:{width:n},"data-qa":g},r.createElement("div",{className:Z("aside-popup-anchor"),ref:y}),d&&r.createElement("div",{className:Z("aside-custom-background",h)},d),r.createElement("div",{className:Z("aside-content",{"with-decoration":o})},r.createElement(Lt,null),(null==v?void 0:v.length)?r.createElement(xt,{type:"menu",items:v,menuMoreTitle:null!=a?a:kt("label_more"),onItemClick:i,onMoreClick:l,multipleTooltip:s}):r.createElement("div",{className:Z("menu-items")}),r.createElement("div",{className:Z("footer")},null==c?void 0:c({size:n,compact:Boolean(u),asideRef:y})),!m&&r.createElement(Rt,null))),r.createElement(fn,null))});var vn;gn.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(vn||(vn={}));const yn=[],bn=e=>{const{size:t,onClosePanel:n,menuItems:i,panelItems:o,onMenuItemsChanged:s,onAllPagesClick:a}=e,[l,c]=(0,r.useState)(),u=r.useMemo(()=>({id:ie,title:re("menu-item.all-pages.title"),tooltipText:re("menu-item.all-pages.title"),icon:_.A}),[]),d=Boolean(s)&&(!i||(null==i?void 0:i.length)>0);(0,r.useEffect)(()=>{(null==o?void 0:o.some(e=>e.visible))&&c(void 0)},[o]);const h=(0,r.useCallback)(()=>{c(void 0),null==n||n()},[n]),p=(0,r.useCallback)((e,t,r)=>{var i;e.id===u.id?(null==n||n(),c(e=>e===vn.AllPages?void 0:vn.AllPages)):h(),null===(i=e.onItemClick)||void 0===i||i.call(e,e,t,r)},[h,u,n]),m=(0,r.useMemo)(()=>d?[...i||yn,Object.assign(Object.assign({},u),{current:l===vn.AllPages,onItemClick:a})]:i||yn,[d,i,l,u,a]),f=(0,r.useMemo)(()=>d?[...o||[],{id:vn.AllPages,content:r.createElement(se,null),visible:l===vn.AllPages}]:o,[d,o,l]);return Object.assign(Object.assign({},e),{onClosePanel:h,allPagesIsAvailable:d,menuItems:m,panelItems:f,size:t,onItemClick:p})},wn=r.forwardRef((e,t)=>{const{size:n,compact:i}=J(),o=bn(Object.assign({size:n,compact:i},e));return r.createElement(H,{value:o},r.createElement(gn,{ref:t}))});wn.displayName="PageLayoutAside";const _n=r.forwardRef((e,t)=>{var{compact:n,className:i,topAlert:o}=e,s=B(e,["compact","className","topAlert"]);return r.createElement(ee,{compact:n,className:i,topAlert:o},r.createElement(wn,Object.assign({ref:t},s)),r.createElement(ee.Content,{renderContent:s.renderContent}))});_n.displayName="AsideHeader";K(".gn-footer-item{height:40px;width:100%}");const xn=X("footer-item"),En=e=>{var{item:t}=e,n=B(e,["item"]);return r.createElement(ht,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:xn({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))};K(".gn-action-bar-group{align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-start;margin:0;padding:0}.gn-action-bar-group_pull_left{justify-content:flex-start;margin-left:0;margin-right:auto}.gn-action-bar-group_pull_left-grow{flex-grow:1}.gn-action-bar-group_pull_right{justify-content:flex-end;margin-left:auto;margin-right:0}.gn-action-bar-group_pull_right-grow{flex-grow:1}.gn-action-bar-group_pull_center{justify-content:center;margin-left:auto;margin-right:auto}.gn-action-bar-group_pull_center-grow,.gn-action-bar-group_stretch-container{flex-grow:1}");const Cn=X("action-bar-group"),Sn=({children:e,className:t,pull:n,stretchContainer:i})=>r.createElement("ul",{className:Cn({pull:n,"stretch-container":i},t),role:"group"},e);Sn.displayName="ActionBar.Group";K(".gn-action-bar-item{list-style:none;margin:0;padding:0}.gn-action-bar-item_pull_left{justify-content:flex-start;margin-left:0;margin-right:auto}.gn-action-bar-item_pull_left-grow{flex-grow:1}.gn-action-bar-item_pull_right{justify-content:flex-end;margin-left:auto;margin-right:0}.gn-action-bar-item_pull_right-grow{flex-grow:1}.gn-action-bar-item_pull_center{justify-content:center;margin-left:auto;margin-right:auto}.gn-action-bar-item_pull_center-grow{flex-grow:1}.gn-action-bar-item+.gn-action-bar-item_spacing{margin-left:8px}");const kn=X("action-bar-item"),Nn=({children:e,className:t,pull:n,spacing:i=!0})=>r.createElement("li",{className:kn({pull:n,spacing:i},t),role:"menuitem"},e);Nn.displayName="ActionBar.Item";K(".gn-action-bar-section{align-items:stretch;display:flex;flex-flow:row nowrap;justify-content:flex-start}.gn-action-bar-section+.gn-action-bar-section{border-left:1px solid var(--g-color-line-generic)}.gn-action-bar-section_type_primary{flex:1 1 auto;padding-left:20px;padding-right:20px}.gn-action-bar-section_type_secondary{padding-left:6px;padding-right:6px}");const Mn=X("action-bar-section"),On=({children:e,type:t="primary"})=>r.createElement("div",{className:Mn({type:t}),role:"menu"},e);On.displayName="ActionBar.Section";K(".gn-action-bar-separator{border-right:1px solid var(--g-color-line-generic);height:40px;list-style:none;margin:0 6px;padding:0}");const Rn=X("action-bar-separator"),Tn=()=>r.createElement("li",{role:"separator",className:Rn(),"aria-hidden":!0});Tn.displayName="ActionBar.Separator";K(".gn-action-bar{align-items:stretch;border-bottom:1px solid var(--g-color-line-generic);box-sizing:border-box;display:flex;flex-flow:row nowrap;height:40px;justify-content:flex-start}");const An=X("action-bar"),In=({children:e,className:t,"aria-label":n})=>r.createElement("section",{className:An(null,t),"aria-label":n},e);In.displayName="ActionBar";Object.assign(In,{Section:On,Group:Sn,Item:Nn,Separator:Tn});var Dn={button_close:"Close"},zn={button_close:"Закрыть"};var Pn=(0,k.N)({en:Dn,ru:zn},`${q}Title`);K(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const Ln=X("title"),Fn=({children:e,closeIconSize:t=23,hasSeparator:n,closeTitle:i=Pn("button_close"),onClose:a})=>r.createElement("div",{className:Ln({separator:n})},r.createElement(l.E,{className:Ln("text"),as:"h3",variant:"subheader-3"},e),a&&r.createElement(s.$,{onClick:a,view:"flat",size:"l","aria-label":i},r.createElement(o.I,{data:E.A,size:t})));Fn.displayName="Title";K(".gn-hotkeys-panel{--hotkeys-panel-width:400px;--hotkeys-panel-vertical-padding:18px;--hotkeys-panel-horizontal-padding:24px;inset:0;position:fixed}.gn-hotkeys-panel__drawer-item{box-sizing:border-box;display:flex;flex-direction:column;padding:var(--hotkeys-panel-vertical-padding) 0;width:var(--hotkeys-panel-width)}.gn-hotkeys-panel__title{margin:0 var(--hotkeys-panel-horizontal-padding) 16px var(--hotkeys-panel-horizontal-padding)}.gn-hotkeys-panel__search{box-sizing:border-box;margin-bottom:14px;padding:0 var(--hotkeys-panel-horizontal-padding)}.gn-hotkeys-panel__list{flex:1;overflow-y:auto}.gn-hotkeys-panel__item{height:auto;padding:8px var(--hotkeys-panel-horizontal-padding)}.gn-hotkeys-panel__item.g-list__item_active{background:inherit}.gn-hotkeys-panel__item-content{align-items:baseline;color:var(--g-color-text-primary);display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-body-1-line-height);width:100%}.gn-hotkeys-panel__item-content_group{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height)}.gn-hotkeys-panel__hotkey{color:var(--g-color-text-complementary)}");X("hotkeys-panel");var jn,Bn;var Un=Ve(Bn?jn:(Bn=1,jn=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0})),$n={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search","label_all-results":"All results"},Wn={label_title:"Настройки","label_filter-placeholder":"Найти настройки","label_empty-placeholder":"Ничего не найдено",label_search:"Поиск","label_all-results":"Все результаты"};var Hn=(0,k.N)({en:$n,ru:Wn},`${q}Settings`);const Vn="allSearchResults",Yn=Hn("label_all-results");function Gn(e){const{menu:t,pages:n}=e,r=function(e){return e.filter(e=>!("id"in e)||e.id!==Vn)}(t),i=Object.values(n);return Object.assign(Object.assign({},e),{menu:[{id:Vn,title:Yn,icon:{data:C.A}},...r],pages:Object.assign(Object.assign({},n),{[Vn]:Jn(i,r)})})}function Jn(e,t){const n={};for(const e of t)if("items"in e)for(const t of e.items)n[t.id]=[e.groupTitle,t.title];else n[e.id]=[e.title];return{id:Vn,sections:Object.values(e).map(e=>e.sections.map(t=>{var r;const i=null!==(r=n[e.id])&&void 0!==r?r:[],o=Un(i),s=i.join(" / ");return Object.assign(Object.assign({},t),{title:t.title===o?s:`${s} / ${t.title}`})})).flat()}}function qn(e){const t=r.useRef();return r.useEffect(()=>(t.current=e,()=>{t.current=void 0}),[e]),r.useCallback((...e)=>{if("function"==typeof t.current)return t.current(...e)},[])}function Xn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zn(e,t=""){const n=Xn(t).replace(/\s+/g,".*?"),r=Kn(e,"",new RegExp(n,"i"));return Boolean(n)&&r.menu.length>0?Gn(r):r}function Kn(e,t="",n){const i=[],o={};let s=!1,a=!1;return r.Children.forEach(e,e=>{var l,c;if(r.isValidElement(e))if(e.type===r.Fragment){const{menu:r,pages:s}=Kn(e.props.children,t,n);i.push(...r),Object.assign(o,s)}else if(e.props.groupTitle){0;const r=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;s=!0;const{menu:a,pages:c}=Kn(e.props.children,r,n);0,a.length>0&&i.push({groupTitle:e.props.groupTitle,items:a}),Object.assign(o,c)}else{a=!0;const r=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,o[r]=Qn(e.props.children,n),o[r].id=r,o[r].hidden||i.push({id:r,title:e.props.title,icon:e.props.icon,withBadge:o[r].withBadge,disabled:o[r].hidden})}}),{menu:i,pages:o}}function Qn(e,t){const n={id:"",sections:[],hidden:!0};return r.Children.forEach(e,e=>{if(r.isValidElement(e))if(e.type===r.Fragment){const{sections:r,withBadge:i,hidden:o}=Qn(e.props.children,t);n.sections.push(...r),n.withBadge=i||n.withBadge,n.hidden=o&&n.hidden}else{const{withBadge:r}=e.props,{items:i,hidden:o}=er(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=o&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:i,hidden:o}))}}),n}function er(e,t){let n=!0;const i=[];return r.Children.forEach(e,e=>{if(r.isValidElement(e))if(e.type===r.Fragment){const r=er(e.props.children,t);i.push(...r.items),n=n&&r.hidden}else{const r=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});i.push(r),n=n&&r.hidden}}),{items:i,hidden:n}}const tr=r.createContext({});function nr(e,t){const n=r.useRef(null);return r.useMemo(()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n},[e,t])}tr.displayName="SettingsSelectionContext";const rr=tr.Provider;var ir,or;var sr=Ve(or?ir:(or=1,ir=function(e){return e}));K('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item+.gn-settings-menu__group{margin-top:8px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const ar=X("settings-menu"),lr=r.forwardRef(function({items:e,onChange:t,activeItemId:n},i){const[o,s]=r.useState(),a=r.useRef(null),l=qn(t),c=function(e){const t=r.useRef(e);return t.current=e,r.useCallback(()=>t.current,[])}(o);return r.useImperativeHandle(i,()=>({handleKeyDown(e){if(!a.current)return!1;const t=c();return t&&"Enter"===e.key?(l(t),!0):"ArrowDown"===e.key?(s(ur(a.current,t,1)),!0):"ArrowUp"===e.key&&(s(ur(a.current,t,-1)),!0)},clearFocus(){s(void 0)}}),[c,l]),r.createElement("div",{ref:a,className:ar()},e.map(e=>"groupTitle"in e?r.createElement("div",{key:e.groupTitle,className:ar("group")},r.createElement("span",{className:ar("group-heading")},e.groupTitle),e.items.map(e=>cr(e,t,n,o))):cr(e,t,n,o)))});function cr(e,t,n,i){return r.createElement("span",{key:e.title,className:ar("item",{selected:n===e.id,disabled:e.disabled,focused:i===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?r.createElement(o.I,Object.assign({size:16},e.icon,{className:ar("item-icon")})):void 0,r.createElement("span",null,e.title))}function ur(e,t,n){var r;const i=e.querySelectorAll(`.${ar("item")}:not(.${ar("item")}_disabled)`);if(0===i.length)return;let o=n>0?-1:0;return t&&(o=Array.prototype.findIndex.call(i,e=>e.getAttribute("data-id")===t)),o=(i.length+o+n)%i.length,null!==(r=i[o].getAttribute("data-id"))&&void 0!==r?r:void 0}K('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const dr=X("settings-menu-mobile"),hr=({items:e,onChange:t,activeItemId:n,className:i})=>{const o=r.useRef(null),s=r.useMemo(()=>{const t=[];return e.forEach(e=>{if("groupTitle"in e)t.push(...e.items.map(({id:e,title:t,disabled:n,withBadge:r})=>({id:e,title:t,disabled:n,className:dr("item",{badge:r})})));else{const{id:n,title:r,disabled:i,withBadge:o}=e;t.push({id:n,title:r,disabled:i,className:dr("item",{badge:o})})}}),t},[e]);return r.createElement("div",{ref:o,onTouchMove:e=>{e.stopPropagation()}},r.createElement(j,{items:s,className:dr(null,i),size:"l",activeTab:n,onSelectTab:t}))},pr=X("settings-search");function mr({className:e,initialValue:t,onChange:n,debounce:i=200,inputRef:o,inputSize:s,placeholder:a,autoFocus:l=!0,selection:c}){const[u,d]=r.useState(null!=t?t:""),h=Qe(n,i),p=qn(e=>{d(e),h(e)});return(0,r.useEffect)(()=>{u&&c&&(h.cancel(),d(""),n(""))},[c]),r.createElement("div",{className:pr(null,e)},r.createElement(g.k,{value:u,controlRef:o,hasClear:!0,autoFocus:l,size:s,placeholder:a,onUpdate:p,controlProps:{"aria-label":Hn("label_search")}}))}K('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__section:only-child .gn-settings__section-item:first-of-type{margin-top:0}.gn-settings__section:only-child .gn-settings__section-heading{display:none}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-family:var(--g-text-caption-font-family);font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const fr=X("settings"),gr=r.createContext({}),vr=()=>r.useContext(gr);function yr(e){var{loading:t,renderLoading:n,children:i,view:o="normal",renderRightAdornment:s,renderSectionRightAdornment:a,showRightAdornmentOnHover:l=!0}=e,c=B(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?r.createElement("div",{className:fr({loading:!0,view:o})},"function"==typeof n?n():r.createElement(v.a,{className:fr("loader"),size:"m"})):r.createElement(gr.Provider,{value:{renderRightAdornment:s,renderSectionRightAdornment:a,showRightAdornmentOnHover:l}},r.createElement(br,Object.assign({view:o},c),i))}function br({initialPage:e,initialSearch:t,selection:n,children:i,renderNotFound:o,title:s=Hn("label_title"),filterPlaceholder:l=Hn("label_filter-placeholder"),emptyPlaceholder:c=Hn("label_empty-placeholder"),view:u,onPageChange:d,onClose:h}){var p;const{renderSectionRightAdornment:m,showRightAdornmentOnHover:f}=vr(),[g,v]=r.useState(null!=t?t:""),{menu:y,pages:b}=Zn(i,g),w=nr(b,n),_=Object.keys(b),x=w.page&&_.includes(w.page.id)?w.page.id:void 0,[E,C]=r.useState(x||(e&&_.includes(e)?e:void 0)),S=r.useRef(null),k=r.useRef(null),N="mobile"===u;r.useEffect(()=>{var e;null===(e=k.current)||void 0===e||e.clearFocus()},[g]),r.useEffect(()=>{const e=()=>{var e;null===(e=k.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}},[]);let M=E;M&&b[M]&&!b[M].hidden||(M=null===(p=Object.values(b).find(({hidden:e})=>!e))||void 0===p?void 0:p.id);const O=e=>{C(t=>(t===e||R(e)||null==d||d(e),e))},{isAllSearchPage:R}=function({pages:e,handlePageChange:t}){const n=e[Vn],i=Boolean(n);return r.useEffect(()=>{i&&t(Vn)},[i]),{isAllSearchPage:e=>e===Vn}}({pages:b,handlePageChange:O});r.useEffect(()=>{M!==E&&O(M)}),r.useEffect(()=>{x&&C(x)},[x]),r.useEffect(()=>{var e;(null===(e=w.selectedRef)||void 0===e?void 0:e.current)&&w.selectedRef.current.scrollIntoView()},[w.selectedRef]);const T=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting||(!e.section.id||e.section.id!==n.id)&&((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(w,e,t);return r.createElement("div",{key:t.title,className:fr("section",{selected:n}),ref:n?w.selectedRef:void 0},t.title&&!t.hideTitle&&r.createElement("h3",{className:fr("section-heading")},m?r.createElement(a.s,{gap:2,alignItems:"center"},t.title,r.createElement("div",{className:fr("section-right-adornment",{hidden:f})},m(t))):t.title),t.header&&(N?r.createElement("div",{className:fr("section-subheader")},t.header):t.header),t.items.map(e=>e.hidden?null:(({title:e,element:t})=>r.createElement("div",{key:e,className:fr("section-item")},r.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:g&&e?wr(e,g):e}))))(e)))};return r.createElement(rr,{value:w},r.createElement("div",{className:fr({view:u})},N?r.createElement(r.Fragment,null,r.createElement(mr,{inputRef:S,className:fr("search"),initialValue:t,selection:n,onChange:v,autoFocus:!1,inputSize:"xl"}),r.createElement(hr,{items:y,onChange:O,activeItemId:M,className:fr("tabs")})):r.createElement("div",{className:fr("menu"),onClick:()=>{S.current&&S.current.focus()},onKeyDown:e=>{k.current&&k.current.handleKeyDown(e)&&e.preventDefault()}},r.createElement(Fn,null,s),r.createElement(mr,{inputRef:S,className:fr("search"),initialValue:t,selection:n,onChange:v,placeholder:l,autoFocus:!0}),r.createElement(lr,{ref:k,items:y,onChange:O,activeItemId:M})),r.createElement("div",{className:fr("page")},(e=>{if(!e)return"function"==typeof o?o():r.createElement("div",{className:fr("not-found")},c);const t=b[e].sections.filter(e=>!e.hidden);return r.createElement(r.Fragment,null,!N&&r.createElement(Fn,{hasSeparator:!0,onClose:h},((e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""})(y,e)),r.createElement("div",{className:fr("content")},t.map(t=>T(e,t))))})(M))))}function wr(e,t){let n=e.slice(0);const i=[],o=Xn(t).split(" ").filter(Boolean);let s=0;for(const e of o){const t=new RegExp(e,"ig").exec(n);if(t){const e=t[0],o=t.index;o>0&&i.push(n.slice(0,o)),i.push(r.createElement("strong",{key:s++,className:fr("found")},e)),n=n.slice(o+e.length)}}return n&&i.push(n),i}yr.Group=function({children:e}){return r.createElement(r.Fragment,null,e)},yr.Page=function({children:e}){return r.createElement(r.Fragment,null,e)},yr.Section=function({children:e}){return r.createElement(r.Fragment,null,e)},yr.Item=function(e){const{id:t,labelId:n,highlightedTitle:i,children:o,align:s="center",withBadge:l,renderTitleComponent:c=sr,mode:u,description:d}=e,h=r.useContext(tr),p=h.setting&&h.setting.id===t,{renderRightAdornment:m,showRightAdornmentOnHover:f}=vr(),g=r.createElement("span",{className:fr("item-title",{badge:l})},c(i));return r.createElement("div",{className:fr("item",{align:s,mode:u,selected:p}),ref:p?h.selectedRef:void 0},r.createElement("label",{className:fr("item-heading"),id:n},m?r.createElement(a.s,{className:fr("item-title-wrapper"),gap:3},g,r.createElement("div",{className:fr("item-right-adornment",{hidden:f})},m(e))):g,d?r.createElement("span",{className:fr("item-description")},d):null),r.createElement("div",{className:fr("item-content")},o))};K(".gn-mobile-logo{align-items:center;display:flex;gap:var(--g-spacing-2);overflow:hidden}.gn-mobile-logo:is(a),.gn-mobile-logo:is(a):active,.gn-mobile-logo:is(a):focus,.gn-mobile-logo:is(a):hover,.gn-mobile-logo:is(a):visited{color:var(--g-color-text-primary);outline:none;text-decoration:none}.gn-mobile-logo__icon{flex-shrink:0}.gn-mobile-logo__title{font-family:var(--g-text-header-font-family);font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}");const _r=X("mobile-logo"),xr=({text:e,compact:t,icon:n,iconSrc:i,iconClassName:s,iconSize:a=32,textSize:l=20,href:c="/",target:u="_self",wrapper:d,onClick:h,className:p})=>{const m="function"==typeof d;let f,g;i?f=r.createElement("img",{alt:"logo icon",src:i,width:a,height:a,className:s}):n&&(f=r.createElement(o.I,{data:n,size:a,className:_r("icon",s)})),g="function"==typeof e?e():r.createElement("span",{className:_r("title"),style:{fontSize:l}},e);const v=r.createElement(r.Fragment,null,f,g);return m?r.createElement("div",{className:_r(null,p),onClick:h},d(v,t)):r.createElement("a",{href:c,target:u,ref:"_self"===u?void 0:"noreferrer",className:_r(null,p),onClick:h},v)};K('.gn-mobile-header-burger{background:none;border:none;color:inherit;cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash,.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:after,.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:before{left:3px}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:before{transform:rotate(45deg)}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:after{transform:rotate(-45deg)}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash{opacity:0}.gn-mobile-header-burger__icon{display:flex;height:var(--mobile-header-icon-size);place-content:center;position:relative;width:var(--mobile-header-icon-size)}.gn-mobile-header-burger__icon:after,.gn-mobile-header-burger__icon:before{content:"";transform-origin:left center;transition:transform .2s,left .2s}.gn-mobile-header-burger__icon:before{top:2px}.gn-mobile-header-burger__icon:after{bottom:2px}.gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash,.gn-mobile-header-burger__icon:after,.gn-mobile-header-burger__icon:before{background-color:var(--g-color-text-primary);border-radius:1px;height:2px;left:0;position:absolute;width:100%}.gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash{margin-top:-1px;top:50%;transition:opacity .2s}');const Er=X("mobile-header-burger"),Cr=r.memo(({closeTitle:e,openTitle:t,opened:n,className:i,onClick:o})=>r.createElement("button",{className:Er({opened:n},i),onClick:o,"aria-label":n?e:t},r.createElement("span",{className:Er("icon")},r.createElement("span",{className:Er("icon-dash")}))));Cr.displayName="Burger";const Sr=20,kr="MOBILE_PANEL_CLOSE",Nr="MOBILE_PANEL_OPEN",Mr="burger",Or="overlap",Rr=e=>"divider"===e.type?1:48,Tr=e=>{const t=e.findIndex(({current:e})=>Boolean(e));return-1===t?void 0:t};K(".gn-burger-composite-bar{overflow-y:auto}.gn-burger-composite-bar__item{align-items:center;box-sizing:border-box;display:flex;flex-grow:1;height:100%;overflow:hidden;padding:4px 22px 4px 12px}.gn-burger-composite-bar__item-icon-place{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin-right:8px;width:40px}.gn-burger-composite-bar .gn-burger-composite-bar__item-icon{color:var(--g-color-text-misc)}.gn-burger-composite-bar__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-burger-composite-bar__link{align-items:center;display:flex;flex-grow:1;height:100%}.gn-burger-composite-bar__link,.gn-burger-composite-bar__link:active,.gn-burger-composite-bar__link:focus,.gn-burger-composite-bar__link:hover,.gn-burger-composite-bar__link:visited{color:inherit;outline:none;text-decoration:none}.gn-burger-composite-bar__menu-divider{border-top:1px solid var(--g-color-line-generic);flex-grow:1;margin:0}.gn-burger-composite-bar__root-menu-item.g-list__item_selected{background-color:var(--g-color-base-selection)}.gn-burger-composite-bar__root-menu-item:not(.g-list__item_selected).g-list__item_active{background:none}");const Ar=X("burger-composite-bar"),Ir=({item:e,onItemClick:t})=>{const{icon:n,type:i="regular",iconSize:s=Sr}=e;if("divider"===i)return r.createElement("div",{className:Ar("menu-divider")});const a=r.createElement("div",{className:Ar("item",{type:i}),onClick:()=>{"function"==typeof e.onItemClick&&e.onItemClick(e),"regular"===i&&(null==t||t(e))}},r.createElement("div",{className:Ar("item-icon-place")},n&&r.createElement(o.I,{data:n,size:s,className:Ar("item-icon")})),r.createElement("div",{className:Ar("item-title")},e.title));return"function"==typeof e.itemWrapper?e.itemWrapper(a,e):e.link?r.createElement("a",{href:e.link,className:Ar("link")},a):a};Ir.displayName="Item";const Dr=r.memo(({items:e,onItemClick:t})=>r.createElement("nav",{className:Ar()},r.createElement(u.B,{items:e,selectedItemIndex:Tr(e),itemHeight:Rr,itemClassName:Ar("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:e=>r.createElement(Ir,{item:e,onItemClick:t})})));Dr.displayName="BurgerCompositeBar";K(".gn-mobile-header-burger-menu{display:flex;flex-direction:column;height:100%}.gn-mobile-header-burger-menu__footer{border-top:1px solid var(--g-color-base-generic);display:flex;margin-top:auto}");const zr=X("mobile-header-burger-menu"),Pr=r.memo(({items:e=[],renderFooter:t,modalItem:n,className:i,onItemClick:o})=>{var s;return r.createElement("div",{className:zr(null,i)},n&&r.createElement(y.c,{visible:n.visible,id:n.id,title:n.title,onClose:n.onClose,contentClassName:n.contentClassName,className:n.className},null===(s=n.renderContent)||void 0===s?void 0:s.call(n)),r.createElement(Dr,{items:e,onItemClick:o}),t&&r.createElement("div",{className:zr("footer")},null==t?void 0:t()))});Pr.displayName="BurgerMenu";var Lr={burger_button_close:"Close menu",burger_button_open:"Open menu",overlap_button_close:"Close"},Fr={burger_button_close:"Закрыть меню",burger_button_open:"Открыть меню",overlap_button_close:"Закрыть"};var jr=(0,k.N)({en:Lr,ru:Fr},`${q}MobileHeader`);K(".gn-mobile-overlap-panel{inset:0;position:fixed}.gn-mobile-overlap-panel__drawer-item{box-sizing:border-box;display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;width:100%}.gn-mobile-overlap-panel_action .gn-mobile-overlap-panel__title{padding-right:0}.gn-mobile-overlap-panel__close{margin-right:var(--g-spacing-1)}.gn-mobile-overlap-panel__action{margin-left:var(--g-spacing-1)}.gn-mobile-overlap-panel__action.g-button:hover:before,.gn-mobile-overlap-panel__close.g-button:hover:before{background-color:transparent}.gn-mobile-overlap-panel__title{display:inline-block;flex:1;justify-content:center;margin:0;padding-right:40px;text-align:center}.gn-mobile-overlap-panel__content{box-sizing:border-box;display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:0 var(--g-spacing-5)}.gn-mobile-overlap-panel__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--g-spacing-3);padding:var(--g-spacing-1) var(--g-spacing-3)}");const Br=X("mobile-overlap-panel"),Ur=({title:e,renderContent:t,className:n,onClose:i,action:a,closeTitle:c=jr("overlap_button_close"),visible:u,topOffset:d})=>r.createElement(mn,{className:Br("",{action:Boolean(a)},n),onVeilClick:i,onEscape:i,style:{top:d}},r.createElement(pn,{id:"overlap",visible:u,className:Br("drawer-item")},r.createElement("div",{className:Br("header")},r.createElement(s.$,{size:"l",view:"flat",className:Br("close"),onClick:i,"aria-label":c},r.createElement(o.I,{className:Br("icon"),data:S.A,size:Sr})),r.createElement(l.E,{whiteSpace:"nowrap",ellipsis:!0,variant:"subheader-2",className:Br("title"),as:e?"h2":void 0},e),a&&r.createElement(s.$,{size:"l",type:"button",view:"flat",onClick:a.onClick,className:Br("action"),"aria-label":a.title},r.createElement(o.I,{data:a.icon,size:Sr}))),r.createElement("div",{className:Br("content")},t())));K(".gn-mobile-header{--mobile-header-min-heigth:50px;--mobile-header-icon-size:20px;background-color:var(--g-color-base-background)}.gn-mobile-header__header-container{background-color:var(--g-color-base-background);position:sticky;top:0;z-index:var(--gn-mobile-header-z-index,100)}.gn-mobile-header__header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);box-sizing:border-box;display:flex;justify-content:space-between;padding:0 10px}.gn-mobile-header__burger{padding:12px}.gn-mobile-header__panel-item{--gn-drawer-item-position:var(--gn-mobile-header-panel-position,absolute)}.gn-mobile-header__burger-menu,.gn-mobile-header__panel-item{background-color:var(--g-color-base-background);max-height:100%;max-width:90vw;width:320px}.gn-mobile-header__user-menu{overflow-y:auto}.gn-mobile-header__overlap-panel,.gn-mobile-header__panels{z-index:var(--gn-mobile-header-panel-z-index,98)}.gn-mobile-header__panels{inset:var(--mobile-header-min-heigth) 0 0;overflow:hidden;position:fixed}.gn-mobile-header__panel-item{top:unset}.gn-mobile-header__content{overflow:auto}");const $r=r.lazy(()=>n.e(43).then(()=>n(86043)).then(e=>({default:e.TopAlert}))),Wr=X("mobile-header");r.forwardRef(({logo:e,burgerMenu:t,burgerCloseTitle:n=jr("burger_button_close"),burgerOpenTitle:i=jr("burger_button_open"),panelItems:o=[],renderContent:s,sideItemRenderContent:a,onClosePanel:l,onEvent:c,className:u,contentClassName:d,overlapPanel:h,topAlert:p},m)=>{const f=((e,t=null)=>{const n=r.useRef(t);return r.useEffect(()=>{e&&("function"==typeof e?e(n.current):e.current=n.current)},[e]),n})(m),[g]=(0,r.useState)(!0),[v,y]=(0,r.useState)(null),[b,w]=(0,r.useState)(!1),_=g?50:120,x=(0,r.useCallback)(e=>{e&&(y(t=>{const n=t===e;return null==c||c(e,n?kr:Nr),n?null:e}),w(!1))},[c]),E=(0,r.useCallback)(({detail:e})=>{"string"==typeof(null==e?void 0:e.panelName)&&x(null==e?void 0:e.panelName)},[x]),C=(0,r.useCallback)(({detail:e})=>{"string"==typeof(null==e?void 0:e.panelName)&&(null==c||c(null==e?void 0:e.panelName,Nr),y(null==e?void 0:e.panelName),w(!1))},[c]),S=(0,r.useCallback)(({detail:e})=>{"string"==typeof(null==e?void 0:e.panelName)&&(null==c||c(null==e?void 0:e.panelName,kr),y(null),w(!1))},[c]),k=(0,r.useCallback)(()=>{null==c||c(Mr,Nr),y(Mr)},[c]),N=(0,r.useCallback)(()=>{null==c||c(Mr,kr),y(null)},[c]),M=(0,r.useCallback)(()=>{null==c||c(Or,Nr),w(!0)},[c]),O=(0,r.useCallback)(()=>{null==c||c(Or,kr),w(!1)},[c]),R=(0,r.useCallback)(()=>{v&&(null==c||c(v,kr)),y(null)},[v,c]),T=(0,r.useCallback)(e=>{var t;(null===(t=e.closeMenuOnClick)||void 0===t||t)&&N()},[N]),A=(0,r.useCallback)(()=>{var e;return null===(e=t.renderFooter)||void 0===e?void 0:e.call(t,{size:_,isCompact:g})},[t,_,g]),I=(0,r.useCallback)(t=>{var n;null==l||l(),null===(n=e.onClick)||void 0===n||n.call(e,t)},[e,l]),D=(0,r.useMemo)(()=>({id:Mr,content:r.createElement(Pr,{items:t.items,modalItem:t.modalItem,renderFooter:A,onItemClick:T,className:Wr("burger-menu")})}),[t.items,t.modalItem,T,A]);return(0,r.useEffect)(()=>{const e=null==f?void 0:f.current;return e&&(e.addEventListener("MOBILE_BURGER_OPEN",k),e.addEventListener("MOBILE_BURGER_CLOSE",N),e.addEventListener("MOBILE_OVERLAP_PANEL_OPEN",M),e.addEventListener("MOBILE_OVERLAP_PANEL_CLOSE",O),e.addEventListener("MOBILE_PANEL_TOGGLE",E),e.addEventListener("MOBILE_PANEL_OPEN",C),e.addEventListener("MOBILE_PANEL_CLOSE",S)),()=>{e&&(e.removeEventListener("MOBILE_BURGER_OPEN",k),e.removeEventListener("MOBILE_BURGER_CLOSE",N),e.removeEventListener("MOBILE_OVERLAP_PANEL_OPEN",M),e.removeEventListener("MOBILE_OVERLAP_PANEL_CLOSE",O),e.removeEventListener("MOBILE_PANEL_TOGGLE",E),e.removeEventListener("MOBILE_PANEL_OPEN",C),e.removeEventListener("MOBILE_PANEL_CLOSE",S))}},[f,N,k,E,C,S,M,O]),r.createElement("div",{className:Wr({compact:g},u),ref:f},r.createElement("div",{className:Wr("header-container")},p&&r.createElement(r.Suspense,{fallback:null},r.createElement($r,{alert:p,mobileView:!0})),r.createElement("header",{className:Wr("header"),style:{height:_}},r.createElement(Cr,{opened:v===D.id,onClick:()=>x(Mr),className:Wr("burger"),closeTitle:n,openTitle:i}),r.createElement(xr,Object.assign({},e,{compact:g,onClick:I})),r.createElement("div",{className:Wr("side-item")},null==a?void 0:a({size:_})))),r.createElement(mn,{className:Wr("panels"),onVeilClick:R,onEscape:R,style:{top:`calc(${_}px + var(--gn-top-alert-height, 0px))`}},[D,...o].map(e=>r.createElement(pn,Object.assign({},e,{key:e.id,visible:v===e.id,className:Wr("panel-item",e.className)})))),h&&r.createElement(Ur,{topOffset:_,className:Wr("overlap-panel"),title:h.title,onClose:O,action:h.action,visible:b,renderContent:h.renderContent}),r.createElement($,{size:_,renderContent:s,className:Wr("content",d),cssSizeVariableName:"--mobile-header-size"}))}).displayName="MobileHeader";K('.gn-mobile-header-footer-item{flex-grow:1;position:relative}.gn-mobile-header-footer-item__button{align-items:center;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;outline:none;padding:13px 10px;width:100%}.gn-mobile-header-footer-item .gn-mobile-header-footer-item__icon{color:var(--g-color-text-misc)}.gn-mobile-header-footer-item+.gn-mobile-header-footer-item:before{border-left:1px solid var(--g-color-base-generic);bottom:8px;content:"";left:0;position:absolute;top:8px}.gn-mobile-header-footer-item:empty{display:none}');X("mobile-header-footer-item");K(".gn-footer-menu-item{align-items:center;align-self:stretch;display:flex;height:100%;justify-content:center}.gn-footer-menu-item .g-menu__item-content{color:var(--g-color-text-secondary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-footer-menu-item[class]:hover{background-color:inherit}.gn-footer-menu-item[class]:hover[href] .g-menu__item-content{color:var(--g-color-text-link-hover)}");X("footer-menu-item");K(".gn-footer_desktop{align-items:center;background:var(--g-color-base-background);display:flex;gap:var(--g-spacing-6);height:40px;justify-content:flex-end;padding:0 var(--g-spacing-6) 0 var(--g-spacing-3)}.gn-footer_desktop .gn-footer__menu{align-items:center;align-self:stretch;display:flex;flex:1;min-width:0;visibility:hidden}.gn-footer_desktop .gn-footer__menu_measured{visibility:visible}.gn-footer_desktop .gn-footer__list[class]{background-color:inherit;display:flex;height:100%;padding:0}.gn-footer_desktop .gn-footer__more-button svg{color:var(--g-color-text-secondary)}.gn-footer_desktop .gn-footer__right{align-items:center;display:flex;gap:var(--g-spacing-5)}.gn-footer_desktop .gn-footer__copyright{color:var(--g-color-text-secondary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);white-space:nowrap}.gn-footer_desktop .gn-footer__copyright_small{font-family:var(--g-text-caption-font-family);font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height)}.gn-footer_with-divider{border-top:1px solid var(--g-color-line-generic)}.gn-footer_view_clear{background:transparent;z-index:-1}");X("footer");K(".gn-footer_mobile{background:var(--g-color-base-background);display:flex;flex-direction:column;padding:var(--g-spacing-1) var(--g-spacing-6) var(--g-spacing-3) var(--g-spacing-3)}.gn-footer_mobile .gn-footer_with-divider{border-top:1px solid var(--g-color-line-generic)}.gn-footer_mobile .gn-footer__menu{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--g-spacing-1);visibility:hidden}.gn-footer_mobile .gn-footer__menu_measured{visibility:visible}.gn-footer_mobile .gn-footer__list[class]{background-color:inherit;display:flex;padding:0}.gn-footer_mobile .gn-footer__menu-item{box-sizing:border-box;padding:var(--g-spacing-2) var(--g-spacing-3)}.gn-footer_mobile .gn-footer__bottom-row{align-items:center;display:flex;justify-content:space-between}.gn-footer_mobile .gn-footer__copyright{color:var(--g-color-text-secondary);font-family:var(--g-text-caption-font-family);font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);padding:0 var(--g-spacing-3);white-space:nowrap}.gn-footer__modal .gn-footer__menu-item{color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:48px;line-height:var(--g-text-body-2-line-height)}.gn-footer_view_clear{background:transparent;z-index:-1}.gn-footer_view_clear .gn-footer__bottom-row{justify-content:flex-end}");X("footer")},99302(e,t,n){"use strict";n.d(t,{$1:()=>Q});var r={},i=Uint8Array,o=Uint16Array,s=Int32Array,a=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new s(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},d=u(a,2),h=d.b,p=d.r;h[28]=258,p[258]=28;for(var m=u(l,0),f=m.b,g=(m.r,new o(32768)),v=0;v<32768;++v){var y=(43690&v)>>1|(21845&v)<<1;y=(61680&(y=(52428&y)>>2|(13107&y)<<2))>>4|(3855&y)<<4,g[v]=((65280&y)>>8|(255&y)<<8)>>1}var b=function(e,t,n){for(var r=e.length,i=0,s=new o(t);i<r;++i)e[i]&&++s[e[i]-1];var a,l=new o(t);for(i=1;i<t;++i)l[i]=l[i-1]+s[i-1]<<1;if(n){a=new o(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],d=t-e[i],h=l[e[i]-1]++<<d,p=h|(1<<d)-1;h<=p;++h)a[g[h]>>c]=u}else for(a=new o(r),i=0;i<r;++i)e[i]&&(a[i]=g[l[e[i]-1]++]>>15-e[i]);return a},w=new i(288);for(v=0;v<144;++v)w[v]=8;for(v=144;v<256;++v)w[v]=9;for(v=256;v<280;++v)w[v]=7;for(v=280;v<288;++v)w[v]=8;var _=new i(32);for(v=0;v<32;++v)_[v]=5;var x=b(w,9,1),E=b(_,5,1),C=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},S=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},k=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},N=function(e){return(e+7)/8|0},M=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new i(e.subarray(t,n))},O=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],R=function(e,t,n){var r=new Error(t||O[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,R),!n)throw r;return r},T=function(e,t,n,r){var o=e.length,s=r?r.length:0;if(!o||t.f&&!t.l)return n||new i(0);var u=!n,d=u||2!=t.i,p=t.i;u&&(n=new i(3*o));var m=function(e){var t=n.length;if(e>t){var r=new i(Math.max(2*t,e));r.set(n),n=r}},g=t.f||0,v=t.p||0,y=t.b||0,w=t.l,_=t.d,O=t.m,T=t.n,A=8*o;do{if(!w){g=S(e,v,1);var I=S(e,v+1,3);if(v+=3,!I){var D=e[(V=N(v)+4)-4]|e[V-3]<<8,z=V+D;if(z>o){p&&R(0);break}d&&m(y+D),n.set(e.subarray(V,z),y),t.b=y+=D,t.p=v=8*z,t.f=g;continue}if(1==I)w=x,_=E,O=9,T=5;else if(2==I){var P=S(e,v,31)+257,L=S(e,v+10,15)+4,F=P+S(e,v+5,31)+1;v+=14;for(var j=new i(F),B=new i(19),U=0;U<L;++U)B[c[U]]=S(e,v+3*U,7);v+=3*L;var $=C(B),W=(1<<$)-1,H=b(B,$,1);for(U=0;U<F;){var V,Y=H[S(e,v,W)];if(v+=15&Y,(V=Y>>4)<16)j[U++]=V;else{var G=0,J=0;for(16==V?(J=3+S(e,v,3),v+=2,G=j[U-1]):17==V?(J=3+S(e,v,7),v+=3):18==V&&(J=11+S(e,v,127),v+=7);J--;)j[U++]=G}}var q=j.subarray(0,P),X=j.subarray(P);O=C(q),T=C(X),w=b(q,O,1),_=b(X,T,1)}else R(1);if(v>A){p&&R(0);break}}d&&m(y+131072);for(var Z=(1<<O)-1,K=(1<<T)-1,Q=v;;Q=v){var ee=(G=w[k(e,v)&Z])>>4;if((v+=15&G)>A){p&&R(0);break}if(G||R(2),ee<256)n[y++]=ee;else{if(256==ee){Q=v,w=null;break}var te=ee-254;if(ee>264){var ne=a[U=ee-257];te=S(e,v,(1<<ne)-1)+h[U],v+=ne}var re=_[k(e,v)&K],ie=re>>4;re||R(3),v+=15&re;X=f[ie];if(ie>3){ne=l[ie];X+=k(e,v)&(1<<ne)-1,v+=ne}if(v>A){p&&R(0);break}d&&m(y+131072);var oe=y+te;if(y<X){var se=s-X,ae=Math.min(X,oe);for(se+y<0&&R(3);y<ae;++y)n[y]=r[se+y]}for(;y<oe;++y)n[y]=n[y-X]}}t.l=w,t.p=Q,t.b=y,t.f=g,w&&(g=1,t.m=O,t.d=_,t.n=T)}while(!g);return y!=n.length&&u?M(n,0,y):n.subarray(0,y)},A=new i(0),I=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},D=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<r.length;++s){var a=r[s],l=o[s];if("function"==typeof a){t+=";"+l+"=";var c=a.toString();if(a.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;t+=c.slice(u,c.indexOf("(",u))}else for(var d in t+=c,a.prototype)t+=";"+l+".prototype."+d+"="+a.prototype[d].toString();else t+=c}else n[l]=a}return t},z=[],P=function(e,t,n,i){if(!z[n]){for(var o="",s={},a=e.length-1,l=0;l<a;++l)o=D(e[l],o,s);z[n]={c:D(e[a],o,s),e:s}}var c=I({},z[n].e);return function(e,t,n,i,o){var s=new Worker(r[t]||(r[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],o(r,null)}else o(null,t)},s.postMessage(n,i),s}(z[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,c,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(c),i)},L=function(){return[i,o,s,a,l,c,h,f,x,E,g,O,b,C,S,k,N,M,R,T,V,F,j]},F=function(e){return postMessage(e,[e.buffer])},j=function(e){return e&&{out:e.size&&new i(e.size),dictionary:e.dictionary}},B=function(e,t,n,r,i,o){var s=P(n,r,i,function(e,t){s.terminate(),o(e,t)});return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},U=function(e,t){return e[t]|e[t+1]<<8},$=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},W=function(e,t){return $(e,t)+4294967296*$(e,t+4)};function H(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&R(7),B(e,t,[L],function(e){return F(V(e.data[0],j(e.data[1])))},1,n)}function V(e,t){return T(e,{i:2},t&&t.out,t&&t.dictionary)}var Y="undefined"!=typeof TextDecoder&&new TextDecoder;try{Y.decode(A,{stream:!0})}catch(e){}var G=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:M(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}};function J(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(Y)return Y.decode(e);var i=G(e),o=i.s;return(n=i.r).length&&R(8),o}var q=function(e,t){return t+30+U(e,t+26)+U(e,t+28)},X=function(e,t,n){var r=U(e,t+28),i=U(e,t+30),o=J(e.subarray(t+46,t+46+r),!(2048&U(e,t+8))),s=t+46+r,a=Z(e,s,i,n,$(e,t+20),$(e,t+24),$(e,t+42)),l=a[0],c=a[1],u=a[2];return[U(e,t+10),l,c,o,s+i+U(e,t+32),u]},Z=function(e,t,n,r,i,o,s){var a=4294967295==i,l=4294967295==o,c=4294967295==s,u=t+n;if(r&&a+l+c){for(;t+4<u;t+=4+U(e,t+2))if(1==U(e,t))return[a?W(e,t+4+8*l):i,l?W(e,t+4):o,c?W(e,t+4+8*(l+a)):s,1];r<2&&R(13)}return[i,o,s,0]};var K="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function Q(e,t,n){n||(n=t,t={}),"function"!=typeof n&&R(7);var r=[],o=function(){for(var e=0;e<r.length;++e)r[e]()},s={},a=function(e,t){K(function(){n(e,t)})};K(function(){a=n});for(var l=e.length-22;101010256!=$(e,l);--l)if(!l||e.length-l>65558)return a(R(13,0,1),null),o;var c=U(e,l+8);if(c){var u=c,d=$(e,l+16),h=117853008==$(e,l-20);if(h){var p=$(e,l-12);(h=101075792==$(e,p))&&(u=c=$(e,p+32),d=$(e,p+48))}for(var m=t&&t.filter,f=function(t){var n=X(e,d,h),l=n[0],u=n[1],p=n[2],f=n[3],g=n[4],v=n[5],y=q(e,v);d=g;var b=function(e,t){e?(o(),a(e,null)):(t&&(s[f]=t),--c||a(null,s))};if(!m||m({name:f,size:u,originalSize:p,compression:l}))if(l)if(8==l){var w=e.subarray(y,y+u);if(p<524288||u>.8*p)try{b(null,V(w,{out:new i(p)}))}catch(e){b(e,null)}else r.push(H(w,{size:p},b))}else b(R(14,"unknown compression type "+l,1),null);else b(null,M(e,y,y+u));else b(null,null)},g=0;g<u;++g)f()}else a(null,{});return o}},6484(e){var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},39324(e,t,n){var r=n(6484),i=n(74535),o=n(43301),s=parseFloat,a=Math.min,l=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&i(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var c=e;e=t,t=c}if(n||e%1||t%1){var u=l();return a(e+u*(t-e+s("1e-"+((u+"").length-1))),t)}return r(e,t)}},51992(e,t,n){"use strict";const r=n(28985);class i{constructor(){this._queue=[]}enqueue(e,t){const n={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)return void this._queue.push(n);const r=function(e,t,n){let r=0,i=e.length;for(;i>0;){const o=i/2|0;let s=r+o;n(e[s],t)<=0?(r=++s,i-=o+1):i=o}return r}(this._queue,n,(e,t)=>t.priority-e.priority);this._queue.splice(r,0,n)}dequeue(){return this._queue.shift().run}get size(){return this._queue.length}}e.exports=class extends r{constructor(e){if(super(),!("number"==typeof(e={carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:i,...e}).concurrency&&e.concurrency>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e.concurrency}\` (${typeof e.concurrency})`);if(!("number"==typeof e.intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap}\` (${typeof e.intervalCap})`);if(!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,this._intervalCount=0,this._intervalCap=e.intervalCap,this._interval=e.interval,this._intervalId=null,this._intervalEnd=0,this._timeoutId=null,this.queue=new e.queueClass,this._queueClass=e.queueClass,this._pendingCount=0,this._concurrency=e.concurrency,this._isPaused=!1===e.autoStart,this._resolveEmpty=()=>{},this._resolveIdle=()=>{}}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother()}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=()=>{},0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=()=>{})}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=null}_intervalPaused(){const e=Date.now();if(null===this._intervalId){const t=this._intervalEnd-e;if(!(t<0))return null===this._timeoutId&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this.queue.size)return clearInterval(this._intervalId),this._intervalId=null,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._intervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother)return this.emit("active"),this.queue.dequeue()(),e&&this._initializeIntervalIfNeeded(),!0}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||null!==this._intervalId||(this._intervalId=setInterval(()=>this._onInterval(),this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){for(0===this._intervalCount&&0===this._pendingCount&&(clearInterval(this._intervalId),this._intervalId=null),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;this._tryToStartAnother(););}async add(e,t){return new Promise((n,r)=>{this.queue.enqueue(async()=>{this._pendingCount++,this._intervalCount++;try{n(await e())}catch(e){r(e)}this._next()},t),this._tryToStartAnother()})}async addAll(e,t){return Promise.all(e.map(e=>this.add(e,t)))}start(){if(this._isPaused)for(this._isPaused=!1;this._tryToStartAnother(););}pause(){this._isPaused=!0}clear(){this.queue=new this._queueClass}async onEmpty(){if(0!==this.queue.size)return new Promise(e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}})}async onIdle(){if(0!==this._pendingCount||0!==this.queue.size)return new Promise(e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}})}get size(){return this.queue.size}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}}},45267(e,t,n){"use strict";n.d(t,{A:()=>M});var r=n(14041),i=n(39067),o=n.n(i),s="undefined"!=typeof window?window:null,a=null===s,l=a?void 0:s.document,c="addEventListener",u="removeEventListener",d="getBoundingClientRect",h="_a",p="_b",m="_c",f="horizontal",g=function(){return!1},v=a?"calc":["","-webkit-","-moz-","-o-"].filter(function(e){var t=l.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length}).shift()+"calc",y=function(e){return"string"==typeof e||e instanceof String},b=function(e){if(y(e)){var t=l.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},w=function(e,t,n){var r=e[t];return void 0!==r?r:n},_=function(e,t,n,r){if(t){if("end"===r)return 0;if("center"===r)return e/2}else if(n){if("start"===r)return 0;if("center"===r)return e/2}return e},x=function(e,t){var n=l.createElement("div");return n.className="gutter gutter-"+t,n},E=function(e,t,n){var r={};return y(t)?r[e]=t:r[e]=v+"("+t+"% - "+n+"px)",r},C=function(e,t){var n;return(n={})[e]=t+"px",n};const S=function(e,t){if(void 0===t&&(t={}),a)return{};var n,r,i,o,v,y,S=e;Array.from&&(S=Array.from(S));var k=b(S[0]).parentNode,N=getComputedStyle?getComputedStyle(k):null,M=N?N.flexDirection:null,O=w(t,"sizes")||S.map(function(){return 100/S.length}),R=w(t,"minSize",100),T=Array.isArray(R)?R:S.map(function(){return R}),A=w(t,"maxSize",1/0),I=Array.isArray(A)?A:S.map(function(){return A}),D=w(t,"expandToMin",!1),z=w(t,"gutterSize",10),P=w(t,"gutterAlign","center"),L=w(t,"snapOffset",30),F=Array.isArray(L)?L:S.map(function(){return L}),j=w(t,"dragInterval",1),B=w(t,"direction",f),U=w(t,"cursor",B===f?"col-resize":"row-resize"),$=w(t,"gutter",x),W=w(t,"elementStyle",E),H=w(t,"gutterStyle",C);function V(e,t,r,i){var o=W(n,t,r,i);Object.keys(o).forEach(function(t){e.style[t]=o[t]})}function Y(){return y.map(function(e){return e.size})}function G(e){return"touches"in e?e.touches[0][r]:e[r]}function J(e){var t=y[this.a],n=y[this.b],r=t.size+n.size;t.size=e/this.size*r,n.size=r-e/this.size*r,V(t.element,t.size,this[p],t.i),V(n.element,n.size,this[m],n.i)}function q(e){var n,r=y[this.a],i=y[this.b];this.dragging&&(n=G(e)-this.start+(this[p]-this.dragOffset),j>1&&(n=Math.round(n/j)*j),n<=r.minSize+r.snapOffset+this[p]?n=r.minSize+this[p]:n>=this.size-(i.minSize+i.snapOffset+this[m])&&(n=this.size-(i.minSize+this[m])),n>=r.maxSize-r.snapOffset+this[p]?n=r.maxSize+this[p]:n<=this.size-(i.maxSize-i.snapOffset+this[m])&&(n=this.size-(i.maxSize+this[m])),J.call(this,n),w(t,"onDrag",g)(Y()))}function X(){var e=y[this.a].element,t=y[this.b].element,r=e[d](),s=t[d]();this.size=r[n]+s[n]+this[p]+this[m],this.start=r[i],this.end=r[o]}function Z(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var n=e[v];return 0===n?null:n-=B===f?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(k);if(null===t)return e;if(T.reduce(function(e,t){return e+t},0)>t)return e;var n=0,r=[],i=e.map(function(i,o){var s=t*i/100,a=_(z,0===o,o===e.length-1,P),l=T[o]+a;return s<l?(n+=l-s,r.push(0),l):(r.push(s-l),s)});return 0===n?e:i.map(function(e,i){var o=e;if(n>0&&r[i]-n>0){var s=Math.min(n,r[i]-n);n-=s,o=e-s}return o/t*100})}function K(){var e=this,n=y[e.a].element,r=y[e.b].element;e.dragging&&w(t,"onDragEnd",g)(Y()),e.dragging=!1,s[u]("mouseup",e.stop),s[u]("touchend",e.stop),s[u]("touchcancel",e.stop),s[u]("mousemove",e.move),s[u]("touchmove",e.move),e.stop=null,e.move=null,n[u]("selectstart",g),n[u]("dragstart",g),r[u]("selectstart",g),r[u]("dragstart",g),n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",l.body.style.cursor=""}function Q(e){if(!("button"in e)||0===e.button){var n=this,r=y[n.a].element,i=y[n.b].element;n.dragging||w(t,"onDragStart",g)(Y()),e.preventDefault(),n.dragging=!0,n.move=q.bind(n),n.stop=K.bind(n),s[c]("mouseup",n.stop),s[c]("touchend",n.stop),s[c]("touchcancel",n.stop),s[c]("mousemove",n.move),s[c]("touchmove",n.move),r[c]("selectstart",g),r[c]("dragstart",g),i[c]("selectstart",g),i[c]("dragstart",g),r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",i.style.userSelect="none",i.style.webkitUserSelect="none",i.style.MozUserSelect="none",i.style.pointerEvents="none",n.gutter.style.cursor=U,n.parent.style.cursor=U,l.body.style.cursor=U,X.call(n),n.dragOffset=G(e)-n.end}}B===f?(n="width",r="clientX",i="left",o="right",v="clientWidth"):"vertical"===B&&(n="height",r="clientY",i="top",o="bottom",v="clientHeight"),O=Z(O);var ee=[];function te(e){var t=e.i===ee.length,n=t?ee[e.i-1]:ee[e.i];X.call(n);var r=t?n.size-e.minSize-n[m]:e.minSize+n[p];J.call(n,r)}return(y=S.map(function(e,t){var r,i={element:b(e),size:O[t],minSize:T[t],maxSize:I[t],snapOffset:F[t],i:t};if(t>0&&((r={a:t-1,b:t,dragging:!1,direction:B,parent:k})[p]=_(z,t-1==0,!1,P),r[m]=_(z,!1,t===S.length-1,P),"row-reverse"===M||"column-reverse"===M)){var o=r.a;r.a=r.b,r.b=o}if(t>0){var s=$(t,B,i.element);!function(e,t,r){var i=H(n,t,r);Object.keys(i).forEach(function(t){e.style[t]=i[t]})}(s,z,t),r[h]=Q.bind(r),s[c]("mousedown",r[h]),s[c]("touchstart",r[h]),k.insertBefore(s,i.element),r.gutter=s}return V(i.element,i.size,_(z,0===t,t===S.length-1,P),t),t>0&&ee.push(r),i})).forEach(function(e){var t=e.element[d]()[n];t<e.minSize&&(D?te(e):e.minSize=t)}),{setSizes:function(e){var t=Z(e);t.forEach(function(e,n){if(n>0){var r=ee[n-1],i=y[r.a],o=y[r.b];i.size=t[n-1],o.size=e,V(i.element,i.size,r[p],i.i),V(o.element,o.size,r[m],o.i)}})},getSizes:Y,collapse:function(e){te(y[e])},destroy:function(e,t){ee.forEach(function(r){if(!0!==t?r.parent.removeChild(r.gutter):(r.gutter[u]("mousedown",r[h]),r.gutter[u]("touchstart",r[h])),!0!==e){var i=W(n,r.a.size,r[p]);Object.keys(i).forEach(function(e){y[r.a].element.style[e]="",y[r.b].element.style[e]=""})}})},parent:k,pairs:ee}};function k(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var N=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,n=k(e,["children","gutter"]);n.gutter=function(e,n){var r;return t?r=t(e,n):(r=document.createElement("div")).className="gutter gutter-"+n,r.__isSplitGutter=!0,r},this.split=S(this.parent.children,n)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;n.children;var r=n.minSize,i=n.sizes,o=n.collapsed,s=k(n,["children","minSize","sizes","collapsed"]),a=e.minSize,l=e.sizes,c=e.collapsed,u=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map(function(n){return t.props[n]!==e[n]}).reduce(function(e,t){return e||t},!1);if(Array.isArray(r)&&Array.isArray(a)){var d=!1;r.forEach(function(e,t){d=d||e!==a[t]}),u=u||d}else u=!(!Array.isArray(r)&&!Array.isArray(a))||(u||r!==a);if(u)s.minSize=r,s.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),s.gutter=function(e,t,n){return n.previousSibling},this.split=S(Array.from(this.parent.children).filter(function(e){return!e.__isSplitGutter}),s);else if(i){var h=!1;i.forEach(function(e,t){h=h||e!==l[t]}),h&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==c||u)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var n=t.children,i=k(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return r.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},i),n)},t}(r.Component);N.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},N.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const M=N},73335(e,t,n){"use strict";var r=n(14041),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:u,props:o,_owner:a.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},14041(e,t,n){"use strict";e.exports=n(14304)},35230(e,t,n){"use strict";n.d(t,{Ff:()=>u,lP:()=>o,me:()=>v,yk:()=>g});n(14041);var r={defaultProps:{},customizeNotification:null,generateId:null},i=Object.freeze({none:"none",info:"info",success:"success",loading:"loading",warning:"warning",error:"error"}),o=Object.freeze({topCenter:"top-center",topLeft:"top-left",topRight:"top-right",bottomCenter:"bottom-center",bottomLeft:"bottom-left",bottomRight:"bottom-right"});function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(null,arguments)}var a,l=function(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(function(e){return l(e)});var t={};for(var n in e)t[n]=l(e[n]);return t};!function(e){e.UpsertNotification="reapop/upsertNotification",e.DismissNotification="reapop/dismissNotification",e.DismissNotifications="reapop/dismissNotifications"}(a||(a={}));var c=[],u=function(){return function(e,t){switch(void 0===e&&(e=c),t.type){case a.UpsertNotification:var n=l(t.payload);return~e.findIndex(function(e){return e.id===n.id})?e.map(function(e){return e.id===n.id?n:e}):[].concat(e,[n]);case a.DismissNotification:var r=t.payload;return e.filter(function(e){return e.id!==r});case a.DismissNotifications:return[];default:return e}}},d=function(e){var t=l(e),n=s({},r.defaultProps,{status:i.none,buttons:[]});return void 0===t.id&&(t.id=r.generateId?r.generateId(e):Math.random().toString(36).slice(2,7)),Object.entries(n).forEach(function(e){var n=e[0],r=e[1];void 0===t[n]&&(t[n]=r)}),"function"==typeof r.customizeNotification&&r.customizeNotification(t),t};var h,p,m,f,g=function(e){return{type:a.DismissNotification,payload:e}},v=function(){var e,t,n=(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e],r={};return"string"==typeof(arguments.length<=0?void 0:arguments[0])&&(r.message=arguments.length<=0?void 0:arguments[0]),"string"==typeof(arguments.length<=1?void 0:arguments[1])&&(r.status=arguments.length<=1?void 0:arguments[1]),(t=n)&&t.constructor===Object&&(r=s({},r,n)),{type:a.UpsertNotification,payload:d(r)}};(h={})[o.topCenter]={top:"20px",left:"50%",transform:"translateX(-50%)"},h[o.topRight]={top:"20px",right:"20px"},h[o.topLeft]={top:"20px",left:"20px"},h[o.bottomCenter]={bottom:"20px",left:"50%",transform:"translateX(-50%)"},h[o.bottomRight]={bottom:"20px",right:"20px"},h[o.bottomLeft]={bottom:"20px",left:"20px"},(p={})[i.none]="#ffffff",p[i.info]="#4192ff",p[i.loading]="#4192ff",p[i.success]="#32d38b",p[i.warning]="#f5aa0a",p[i.error]="#E94C58",(m={})[i.none]="#ffffff",m[i.info]="#349ef3",m[i.loading]="#349ef3",m[i.success]="#4dc657",m[i.warning]="#f5aa0a",m[i.error]="#f5311d",(f={})[i.none]="#ffffff",f[i.info]="#007bff",f[i.loading]="#007bff",f[i.success]="#28a745",f[i.warning]="#ffc107",f[i.error]="#dc3545"},14668(e){!function(){var t={de_DE:{identifier:"de-DE",days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d.%m.%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},en_CA:{identifier:"en-CA",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},en_US:{identifier:"en-US",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%m/%d/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},es_MX:{identifier:"es-MX",days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},fr_FR:{identifier:"fr-FR",days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},it_IT:{identifier:"it-IT",days:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],shortDays:["dom","lun","mar","mer","gio","ven","sab"],months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortMonths:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},nl_NL:{identifier:"nl-NL",days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},pt_BR:{identifier:"pt-BR",days:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},ru_RU:{identifier:"ru-RU",days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],shortDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X",D:"%d.%m.%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},tr_TR:{identifier:"tr-TR",days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],shortDays:["Paz","Pzt","Sal","Çrş","Prş","Cum","Cts"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortMonths:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],AM:"ÖÖ",PM:"ÖS",am:"ÖÖ",pm:"ÖS",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},zh_CN:{identifier:"zh-CN",days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["日","一","二","三","四","五","六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],AM:"上午",PM:"下午",am:"上午",pm:"下午",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}}},n=t.en_US,r=new function e(r,h,p){var m,f=r||n,g=h||0,v=p||!1,y=0;function b(e,t,n,r){for(var c="",h=null,p=!1,m=e.length,f=!1,y=0;y<m;y++){var w=e.charCodeAt(y);if(!0!==p)37!==w?c+=e[y]:p=!0;else{if(45===w){h="";continue}if(95===w){h=" ";continue}if(48===w){h="0";continue}if(58===w){f&&d("[WARNING] detected use of unsupported %:: or %::: modifiers to strftime"),f=!0;continue}switch(w){case 37:c+="%";break;case 65:c+=n.days[t.getDay()];break;case 66:c+=n.months[t.getMonth()];break;case 67:c+=i(Math.floor(t.getFullYear()/100),h);break;case 68:c+=b(n.formats.D,t,n,r);break;case 70:c+=b(n.formats.F,t,n,r);break;case 72:c+=i(t.getHours(),h);break;case 73:c+=i(s(t.getHours()),h);break;case 76:c+=o(Math.floor(r%1e3));break;case 77:c+=i(t.getMinutes(),h);break;case 80:c+=t.getHours()<12?n.am:n.pm;break;case 82:c+=b(n.formats.R,t,n,r);break;case 83:c+=i(t.getSeconds(),h);break;case 84:c+=b(n.formats.T,t,n,r);break;case 85:c+=i(a(t,"sunday"),h);break;case 87:c+=i(a(t,"monday"),h);break;case 88:c+=b(n.formats.X,t,n,r);break;case 89:c+=t.getFullYear();break;case 90:if(v&&0===g)c+="GMT";else c+=u(t)||"";break;case 97:c+=n.shortDays[t.getDay()];break;case 98:case 104:c+=n.shortMonths[t.getMonth()];break;case 99:c+=b(n.formats.c,t,n,r);break;case 100:c+=i(t.getDate(),h);break;case 101:c+=i(t.getDate(),null==h?" ":h);break;case 106:var _=new Date(t.getFullYear(),0,1);c+=o(x=Math.ceil((t.getTime()-_.getTime())/864e5));break;case 107:c+=i(t.getHours(),null==h?" ":h);break;case 108:c+=i(s(t.getHours()),null==h?" ":h);break;case 109:c+=i(t.getMonth()+1,h);break;case 110:c+="\n";break;case 111:var x=t.getDate();n.ordinalSuffixes?c+=String(x)+(n.ordinalSuffixes[x-1]||l(x)):c+=String(x)+l(x);break;case 112:c+=t.getHours()<12?n.AM:n.PM;break;case 114:c+=b(n.formats.r,t,n,r);break;case 115:c+=Math.floor(r/1e3);break;case 116:c+="\t";break;case 117:c+=0===(x=t.getDay())?7:x;break;case 118:c+=b(n.formats.v,t,n,r);break;case 119:c+=t.getDay();break;case 120:c+=b(n.formats.x,t,n,r);break;case 121:c+=i(t.getFullYear()%100,h);break;case 122:if(v&&0===g)c+=f?"+00:00":"+0000";else{var E,C=(E=0!==g?g/6e4:-t.getTimezoneOffset())<0?"-":"+",S=f?":":"",k=Math.floor(Math.abs(E/60)),N=Math.abs(E%60);c+=C+i(k)+S+i(N)}break;default:p&&(c+="%"),c+=e[y]}h=null,p=!1}}return c}var w=function(e,t){var n;if(t){if(n=t.getTime(),v){var r=c(t);if(c(t=new Date(n+r+g))!==r){var i=c(t);t=new Date(n+i+g)}}}else{var o=Date.now();o>y?(y=o,m=new Date(y),n=y,v&&(m=new Date(y+c(m)+g))):n=y,t=m}return b(e,t,f,n)};return w.localize=function(t){return new e(t||f,g,v)},w.localizeByIdentifier=function(e){var n=t[e];return n?w.localize(n):(d('[WARNING] No locale found with identifier "'+e+'".'),w)},w.timezone=function(t){var n=g,r=v,i=typeof t;"number"!==i&&"string"!==i||(r=!0,"string"===i?n=("-"===t[0]?-1:1)*(60*parseInt(t.slice(1,3),10)+parseInt(t.slice(3,5),10))*60*1e3:"number"===i&&(n=60*t*1e3));return new e(f,n,r)},w.utc=function(){return new e(f,g,!0)},w}(n,0,!1);function i(e,t){return""===t||e>9?""+e:(null==t&&(t="0"),t+e)}function o(e){return e>99?e:e>9?"0"+e:"00"+e}function s(e){return 0===e?12:e>12?e-12:e}function a(e,t){t=t||"sunday";var n=e.getDay();"monday"===t&&(0===n?n=6:n--);var r=Date.UTC(e.getFullYear(),0,1),i=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),o=(Math.floor((i-r)/864e5)+7-n)/7;return Math.floor(o)}function l(e){var t=e%10,n=e%100;if(n>=11&&n<=13||0===t||t>=4)return"th";switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function c(e){return 6e4*(e.getTimezoneOffset()||0)}function u(e,t){return function(e,t){if(null==t)return null;var n=e.toLocaleString(t,{timeZoneName:"short"}).match(/\s([\w]+)$/);return n&&n[1]}(e,t)||function(e){var t=e.toString().match(/\(([\w\s]+)\)/);return t&&t[1]}(e)}function d(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)}e.exports=r,"function"!=typeof Date.now&&(Date.now=function(){return+new Date})}()},30295(e,t,n){"use strict";n.d(t,{B:()=>$i});var r,i=Object.defineProperty,o=(e,t,n)=>((e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),s=Object.defineProperty,a=(e,t,n)=>((e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),l=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(l||{});function c(e){return e.nodeType===e.ELEMENT_NODE}Date.now().toString();class u{constructor(){a(this,"idNodeMap",new Map),a(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function d(){return new u}function h(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==r?void 0:r[1])??null}const p=new RegExp(/(max|min)-device-(width|height)/.source,"g"),m={postcssPlugin:"postcss-custom-selectors",prepare:()=>({postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(p)&&(e.params=e.params.replace(p,"$1-$2"))}})},f={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){-1===e.indexOf(t)&&(e.push(t),t.selectors.forEach(function(e){e.includes(":hover")&&(t.selector+=",\n"+e.replace(/:hover/g,".\\:hover"))}))}}}};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var y,b={exports:{}};function w(){if(y)return b.exports;y=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return b.exports=t(),b.exports.createColors=t,b.exports}const _=v(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var x,E;function C(){if(E)return x;E=1;let e=w(),t=_;class n extends Error{constructor(e,t,r,i,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let r=this.source;null==n&&(n=e.isColorSupported),t&&n&&(r=t(r));let i,o,s=r.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(n){let{bold:t,gray:n,red:r}=e.createColors(!0);i=e=>t(r(e)),o=e=>n(e)}else i=o=e=>e;return s.slice(a,l).map((e,t)=>{let n=a+1+t,r=" "+(" "+n).slice(-c)+" | ";if(n===this.line){let t=o(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+o(r)+e+"\n "+t+i("^")}return" "+o(r)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return x=n,n.default=n,x}var S,k,N,M,O,R,T,A,I,D,z,P,L,F,j,B,U,$,W,H,V,Y,G,J,q,X,Z,K,Q,ee,te,ne,re,ie,oe,se,ae,le,ce,ue,de,he,pe,me,fe,ge,ve,ye,be,we,_e,xe,Ee,Ce={};function Se(){return S||(S=1,Ce.isClean=Symbol("isClean"),Ce.my=Symbol("my")),Ce}function ke(){if(N)return k;N=1;const e={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class t{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(t,n,r){let i;if(r||(r=n),n&&(i=t.raws[n],void 0!==i))return i;let o=t.parent;if("before"===r){if(!o||"root"===o.type&&o.first===t)return"";if(o&&"document"===o.type)return""}if(!o)return e[r];let s=t.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);{let e="raw"+((a=r)[0].toUpperCase()+a.slice(1));this[e]?i=this[e](s,t):s.walk(e=>{if(i=e.raws[n],void 0!==i)return!1})}var a;return void 0===i&&(i=e[r]),s.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return k=t,t.default=t,k}function Ne(){if(O)return M;O=1;let e=ke();function t(t,n){new e(n).stringify(t)}return M=t,t.default=t,M}function Me(){if(T)return R;T=1;let{isClean:e,my:t}=Se(),n=C(),r=ke(),i=Ne();function o(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],s=typeof i;"parent"===r&&"object"===s?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>o(e,n)):("object"===s&&null!==i&&(i=o(i)),n[r]=i)}return n}class s{constructor(n={}){this.raws={},this[e]=!1,this[t]=!0;for(let e in n)if("nodes"===e){this.nodes=[];for(let t of n[e])"function"==typeof t.clone?this.append(t.clone()):this.append(t)}else this[e]=n[e]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=o(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new r).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}return R=s,s.default=s,R}function Oe(){if(I)return A;I=1;let e=Me();class t extends e{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}return A=t,t.default=t,A}function Re(){if(z)return D;z=1;return D={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}}function Te(){if(L)return P;L=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=_,{existsSync:n,readFileSync:r}=_,{dirname:i,join:o}=_;class s{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=i(e),n(e))return this.mapFile=e,r(e,"utf-8").toString().trim()}loadMap(n,r){if(!1===r)return!1;if(r){if("string"==typeof r)return r;if("function"!=typeof r){if(r instanceof e)return t.fromSourceMap(r).toString();if(r instanceof t)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}{let e=r(n);if(e){let t=this.loadFile(e);if(!t)throw new Error("Unable to load previous source map: "+e.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return n&&(e=o(i(n),e)),this.loadFile(e)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return P=s,s.default=s,P}function Ae(){if(j)return F;j=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=_,{fileURLToPath:n,pathToFileURL:r}=_,{isAbsolute:i,resolve:o}=_,{nanoid:s}=Re(),a=_,l=C(),c=Te(),u=Symbol("fromOffsetCache"),d=Boolean(e&&t),h=Boolean(o&&i);class p{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!h||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=o(t.from)),h&&d){let e=new c(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,i={}){let o,s,a;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);s=e.line,a=e.col}else s=r.line,a=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let c=this.origin(t,n,s,a);return o=c?new l(e,void 0===c.endLine?c.line:{column:c.column,line:c.line},void 0===c.endLine?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,i.plugin):new l(e,void 0===s?t:{column:n,line:t},void 0===s?n:{column:a,line:s},this.css,this.file,i.plugin),o.input={column:n,endColumn:a,endLine:s,line:t,source:this.css},this.file&&(r&&(o.input.url=r(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[u])n=this[u];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[u]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:o(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,o,s){if(!this.map)return!1;let a,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof o&&(a=c.originalPositionFor({column:s,line:o})),l=i(u.source)?r(u.source):new URL(u.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let d={column:u.column,endColumn:a&&a.column,endLine:a&&a.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!n)throw new Error("file: protocol is not available in this PostCSS build");d.file=n(l)}let h=c.sourceContentFor(u.source);return h&&(d.source=h),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return F=p,p.default=p,a&&a.registerInput&&a.registerInput(p),F}function Ie(){if(U)return B;U=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=_,{dirname:n,relative:r,resolve:i,sep:o}=_,{pathToFileURL:s}=_,a=Ae(),l=Boolean(e&&t),c=Boolean(n&&i&&r&&o);return B=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let r,i=this.toUrl(this.path(t.file)),o=t.root||n(t.file);!1===this.mapOpts.sourcesContent?(r=new e(t.text),r.sourcesContent&&(r.sourcesContent=null)):r=t.consumer(),this.map.applySourceMap(r,i,this.toUrl(this.path(o)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&l&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let e,n,r=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(t,a,l)=>{if(this.css+=t,a&&"end"!==l&&(s.generated.line=r,s.generated.column=i-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=t.match(/\n/g),e?(r+=e.length,n=t.lastIndexOf("\n"),i=t.length-n):i+=t.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=i-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=i-1,this.map.addMapping(s)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let o=this.opts.to?n(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(o=n(i(o,this.mapOpts.annotation)));let s=r(o,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(s){let t=s(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===o&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}}function De(){if(W)return $;W=1;let e=Me();class t extends e{constructor(e){super(e),this.type="comment"}}return $=t,t.default=t,$}function ze(){if(V)return H;V=1;let e,t,n,r,{isClean:i,my:o}=Se(),s=Oe(),a=De(),l=Me();function c(e){return e.map(e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e))}function u(e){if(e[i]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)u(t)}class d extends l{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(r,l){if("string"==typeof r)r=c(e(r).nodes);else if(void 0===r)r=[];else if(Array.isArray(r)){r=r.slice(0);for(let e of r)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===r.type&&"document"!==this.type){r=r.nodes.slice(0);for(let e of r)e.parent&&e.parent.removeChild(e,"ignore")}else if(r.type)r=[r];else if(r.prop){if(void 0===r.value)throw new Error("Value field is missed in node creation");"string"!=typeof r.value&&(r.value=String(r.value)),r=[new s(r)]}else if(r.selector)r=[new t(r)];else if(r.name)r=[new n(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new a(r)]}return r.map(e=>(e[o]||d.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[i]&&u(e),void 0===e.raws.before&&l&&void 0!==l.raws.before&&(e.raws.before=l.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=t=>{e=t},d.registerRule=e=>{t=e},d.registerAtRule=e=>{n=e},d.registerRoot=e=>{r=e},H=d,d.default=d,d.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,n.prototype):"rule"===e.type?Object.setPrototypeOf(e,t.prototype):"decl"===e.type?Object.setPrototypeOf(e,s.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,r.prototype),e[o]=!0,e.nodes&&e.nodes.forEach(e=>{d.rebuild(e)})},H}function Pe(){if(G)return Y;G=1;let e,t,n=ze();class r extends n{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(n={}){return new e(new t,this,n).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},Y=r,r.default=r,Y}function Le(){if(q)return J;q=1;let e={};return J=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function Fe(){if(Z)return X;Z=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return X=e,e.default=e,X}function je(){if(Q)return K;Q=1;let e=Fe();class t{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}return K=t,t.default=t,K}function Be(){if(re)return ne;re=1;let e=ze();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return ne=t,t.default=t,e.registerAtRule(t),ne}function Ue(){if(oe)return ie;oe=1;let e,t,n=ze();class r extends n{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(n={}){return new e(new t,this,n).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},ie=r,r.default=r,n.registerRoot(r),ie}function $e(){if(ae)return se;ae=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(e,t,n){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};return se=e,e.default=e,se}function We(){if(ce)return le;ce=1;let e=ze(),t=$e();class n extends e{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}return le=n,n.default=n,e.registerRule(n),le}function He(){if(de)return ue;de=1;let e=Oe(),t=function(){if(te)return ee;te=1;const e="'".charCodeAt(0),t='"'.charCodeAt(0),n="\\".charCodeAt(0),r="/".charCodeAt(0),i="\n".charCodeAt(0),o=" ".charCodeAt(0),s="\f".charCodeAt(0),a="\t".charCodeAt(0),l="\r".charCodeAt(0),c="[".charCodeAt(0),u="]".charCodeAt(0),d="(".charCodeAt(0),h=")".charCodeAt(0),p="{".charCodeAt(0),m="}".charCodeAt(0),f=";".charCodeAt(0),g="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_=/.[\r\n"'(/\\]/,x=/[\da-f]/i;return ee=function(E,C={}){let S,k,N,M,O,R,T,A,I,D,z=E.css.valueOf(),P=C.ignoreErrors,L=z.length,F=0,j=[],B=[];function U(e){throw E.error("Unclosed "+e,F)}return{back:function(e){B.push(e)},endOfFile:function(){return 0===B.length&&F>=L},nextToken:function(E){if(B.length)return B.pop();if(F>=L)return;let C=!!E&&E.ignoreUnclosed;switch(S=z.charCodeAt(F),S){case i:case o:case a:case l:case s:k=F;do{k+=1,S=z.charCodeAt(k)}while(S===o||S===i||S===a||S===l||S===s);D=["space",z.slice(F,k)],F=k-1;break;case c:case u:case p:case m:case v:case f:case h:{let e=String.fromCharCode(S);D=[e,e,F];break}case d:if(A=j.length?j.pop()[1]:"",I=z.charCodeAt(F+1),"url"===A&&I!==e&&I!==t&&I!==o&&I!==i&&I!==a&&I!==s&&I!==l){k=F;do{if(R=!1,k=z.indexOf(")",k+1),-1===k){if(P||C){k=F;break}U("bracket")}for(T=k;z.charCodeAt(T-1)===n;)T-=1,R=!R}while(R);D=["brackets",z.slice(F,k+1),F,k],F=k}else k=z.indexOf(")",F+1),M=z.slice(F,k+1),-1===k||_.test(M)?D=["(","(",F]:(D=["brackets",M,F,k],F=k);break;case e:case t:N=S===e?"'":'"',k=F;do{if(R=!1,k=z.indexOf(N,k+1),-1===k){if(P||C){k=F+1;break}U("string")}for(T=k;z.charCodeAt(T-1)===n;)T-=1,R=!R}while(R);D=["string",z.slice(F,k+1),F,k],F=k;break;case y:b.lastIndex=F+1,b.test(z),k=0===b.lastIndex?z.length-1:b.lastIndex-2,D=["at-word",z.slice(F,k+1),F,k],F=k;break;case n:for(k=F,O=!0;z.charCodeAt(k+1)===n;)k+=1,O=!O;if(S=z.charCodeAt(k+1),O&&S!==r&&S!==o&&S!==i&&S!==a&&S!==l&&S!==s&&(k+=1,x.test(z.charAt(k)))){for(;x.test(z.charAt(k+1));)k+=1;z.charCodeAt(k+1)===o&&(k+=1)}D=["word",z.slice(F,k+1),F,k],F=k;break;default:S===r&&z.charCodeAt(F+1)===g?(k=z.indexOf("*/",F+2)+1,0===k&&(P||C?k=z.length:U("comment")),D=["comment",z.slice(F,k+1),F,k],F=k):(w.lastIndex=F+1,w.test(z),k=0===w.lastIndex?z.length-1:w.lastIndex-2,D=["word",z.slice(F,k+1),F,k],j.push(D),F=k)}return F++,D},position:function(){return F}}}}(),n=De(),r=Be(),i=Ue(),o=We();const s={empty:!0,space:!0};return ue=class{constructor(e){this.input=e,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,i,o=new r;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);let s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(e=l[l.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}comment(e){let t=new n;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,n){let r=new e;this.init(r,t[0][2]);let i,o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(i=t.shift(),":"===i[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,a=[];for(;t.length&&(s=t[0][0],"space"===s||"comment"===s);)a.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(i=t[e],"!important"===i[1].toLowerCase()){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n," !important"!==n&&(r.raws.important=n);break}if("important"===i[1].toLowerCase()){let n=t.slice(0),i="";for(let t=e;t>0;t--){let e=n[t][0];if(0===i.trim().indexOf("!")&&"space"!==e)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(r.important=!0,r.raws.important=i,t=n)}if("space"!==i[0]&&"comment"!==i[0])break}t.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=a.map(e=>e[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,a,l,c=n.length,u="",d=!0;for(let e=0;e<c;e+=1)i=n[e],o=i[0],"space"!==o||e!==c-1||r?"comment"===o?(l=n[e-1]?n[e-1][0]:"empty",a=n[e+1]?n[e+1][0]:"empty",s[l]||s[a]||","===u.slice(-1)?d=!1:u+=i[1]):u+=i[1]:d=!1;if(!d){let r=n.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}}function Ve(){if(pe)return he;pe=1;let e=ze(),t=He(),n=Ae();function r(e,r){let i=new n(e,r),o=new t(i);try{o.parse()}catch(e){throw e}return o.root}return he=r,r.default=r,e.registerParse(r),he}function Ye(){if(fe)return me;fe=1;let{isClean:e,my:t}=Se(),n=Ie(),r=Ne(),i=ze(),o=Pe(),s=(Le(),je()),a=Ve(),l=Ue();const c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},d={Once:!0,postcssPlugin:!0,prepare:!0};function h(e){return"object"==typeof e&&"function"==typeof e.then}function p(e){let t=!1,n=c[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function m(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:p(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function f(t){return t[e]=!1,t.nodes&&t.nodes.forEach(e=>f(e)),t}let g={};class v{constructor(e,n,r){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof v||n instanceof s)o=f(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let e=a;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{o=e(n,r)}catch(e){this.processed=!0,this.error=e}o&&!o[t]&&i.rebuild(o)}else o=f(n);this.result=new s(e,o,r),this.helpers={...g,postcss:g,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!u[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(h(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let n=[m(t)];for(;n.length>0;){let e=this.visitTick(n);if(h(e))try{await e}catch(e){let t=n[n.length-1].node;throw this.handleError(e,t)}}}if(this.listeners.OnceExit)for(let[e,n]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(e=>n(e,this.helpers));await Promise.all(e)}else await n(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return h(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=r;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new n(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(h(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(h(e))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:i}=n;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(i.length>0&&n.visitorIndex<i.length){let[e,t]=i[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===i.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=e;try{return t(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==n.iterator){let i,o=n.iterator;for(;i=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!i[e])return i[e]=!0,void t.push(m(i));n.iterator=0,delete r.indexes[o]}let o=n.events;for(;n.eventIndex<o.length;){let t=o[n.eventIndex];if(n.eventIndex+=1,0===t)return void(r.nodes&&r.nodes.length&&(r[e]=!0,n.iterator=r.getIterator()));if(this.listeners[t])return void(n.visitors=this.listeners[t])}t.pop()}walkSync(t){t[e]=!0;let n=p(t);for(let r of n)if(0===r)t.nodes&&t.each(t=>{t[e]||this.walkSync(t)});else{let e=this.listeners[r];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=e=>{g=e},me=v,v.default=v,l.registerLazyResult(v),o.registerLazyResult(v),me}function Ge(){if(be)return ye;be=1;let e=function(){if(ve)return ge;ve=1;let e=Ie(),t=Ne(),n=(Le(),Ve());const r=je();class i{constructor(n,i,o){let s;i=i.toString(),this.stringified=!1,this._processor=n,this._css=i,this._opts=o,this._map=void 0;let a=t;this.result=new r(this._processor,s,this._opts),this.result.css=i;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new e(a,s,this._opts,i);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=n;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}return ge=i,i.default=i,ge}(),t=Ye(),n=Pe(),r=Ue();class i{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(n,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new t(this,n,r):new e(this,n,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return ye=i,i.default=i,r.registerProcessor(i),n.registerProcessor(i),ye}const Je=g(function(){if(Ee)return xe;Ee=1;let e=C(),t=Oe(),n=Ye(),r=ze(),i=Ge(),o=Ne(),s=function(){if(_e)return we;_e=1;let e=Oe(),t=Te(),n=De(),r=Be(),i=Ae(),o=Ue(),s=We();function a(l,c){if(Array.isArray(l))return l.map(e=>a(e));let{inputs:u,...d}=l;if(u){c=[];for(let e of u){let n={...e,__proto__:i.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),c.push(n)}}if(d.nodes&&(d.nodes=l.nodes.map(e=>a(e,c))),d.source){let{inputId:e,...t}=d.source;d.source=t,null!=e&&(d.source.input=c[e])}if("root"===d.type)return new o(d);if("decl"===d.type)return new e(d);if("rule"===d.type)return new s(d);if("comment"===d.type)return new n(d);if("atrule"===d.type)return new r(d);throw new Error("Unknown node type: "+l.type)}return we=a,a.default=a,we}(),a=Pe(),l=Fe(),c=De(),u=Be(),d=je(),h=Ae(),p=Ve(),m=$e(),f=We(),g=Ue(),v=Me();function y(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new i(e)}return y.plugin=function(e,t){let n,r=!1;function o(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...n);return o.postcssPlugin=e,o.postcssVersion=(new i).version,o}return Object.defineProperty(o,"postcss",{get:()=>(n||(n=o()),n)}),o.process=function(e,t,n){return y([o(n)]).process(e,t)},o},y.stringify=o,y.parse=p,y.fromJSON=s,y.list=m,y.comment=e=>new c(e),y.atRule=e=>new u(e),y.decl=e=>new t(e),y.rule=e=>new f(e),y.root=e=>new g(e),y.document=e=>new a(e),y.CssSyntaxError=e,y.Declaration=t,y.Container=r,y.Processor=i,y.Document=a,y.Comment=c,y.Warning=l,y.AtRule=u,y.Result=d,y.Input=h,y.Rule=f,y.Root=g,y.Node=v,n.registerPostcss(y),xe=y,y.default=y,xe}());Je.stringify,Je.fromJSON,Je.plugin,Je.parse,Je.list,Je.document,Je.comment,Je.atRule,Je.rule,Je.decl,Je.root,Je.CssSyntaxError,Je.Declaration,Je.Container,Je.Processor,Je.Document,Je.Comment,Je.Warning,Je.AtRule,Je.Result,Je.Input,Je.Rule,Je.Root,Je.Node;const qe={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function Xe(e,t){const n=null==t?void 0:t.stylesWithHoverClass.get(e);if(n)return n;let r=e;try{r=Je([m,f]).process(e).css}catch(e){console.warn("Failed to adapt css for replay",e)}return null==t||t.stylesWithHoverClass.set(e,r),r}function Ze(){return{stylesWithHoverClass:new Map}}const Ke="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",Qe=new WeakSet;function et(e){if(e.UNSAFE_allowUnprotectedRebuild)return;const t=e.doc.defaultView;if(t&&(!Qe.has(e.doc)||!function(e){if(!e||"IFRAME"!==e.tagName)return!1;if(!("sandbox"in e))return!1;const t=Array.from(e.sandbox);return 1===t.length&&"allow-same-origin"===t[0]}(t.frameElement)))throw new Error("rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.")}function tt(e,t,n,r){const{doc:i,hackCss:o,cache:s}=r;e.childNodes.length?function(e,t,n,r){const i=[];for(const t of e.childNodes)t.type===l.Text&&i.push(t);const o=t.split("/* rr_split */");for(;o.length>1&&o.length>i.length;)o.splice(-2,2,o.slice(-2).join(""));let s="";n&&(s=Xe(o.join(""),r));let a=0;for(let e=0;e<i.length&&e!==o.length;e++){const t=i[e];if(n)if(e<o.length-1){let n=a,r=o[e+1].length;r=Math.min(r,30);let i=!1;for(;r>2;r--){const t=o[e+1].substring(0,r),l=s.substring(a).indexOf(t);if(i=-1!==l,i){n+=l;break}}i||(n+=o[e].length),t.textContent=s.substring(a,n),a=n}else t.textContent=s.substring(a);else t.textContent=o[e]}}(e,n,o,s):(o&&(n=Xe(n,s)),t.appendChild(i.createTextNode(n)))}function nt(e,t){var n;const{doc:r,hackCss:i,cache:o}=t;switch(e.type){case l.Document:return r.implementation.createDocument(null,"",null);case l.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case l.Element:{const i=function(e){let t=qe[e.tagName]?qe[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(e);let o;e.isSVG?o=r.createElementNS("http://www.w3.org/2000/svg",i):(e.isCustom&&(null==(n=r.defaultView)?void 0:n.customElements)&&!r.defaultView.customElements.get(e.tagName)&&r.defaultView.customElements.define(e.tagName,class extends r.defaultView.HTMLElement{}),o=r.createElement(i));const s={};for(const n in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,n))continue;let a=e.attributes[n];if(("option"!==i||"selected"!==n||!1!==a)&&null!==a)if(!0===a&&(a=""),n.startsWith("rr_"))s[n]=a;else{if("string"!=typeof a);else{if("style"===i&&"_cssText"===n){tt(e,o,a,t);continue}if("textarea"===i&&"value"===n){o.appendChild(r.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&"xlink:href"===n)o.setAttributeNS("http://www.w3.org/1999/xlink",n,a.toString());else if("onload"===n||"onclick"===n||"onmouse"===n.substring(0,7))o.setAttribute("_"+n,a.toString());else{if("meta"===i&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===n){o.setAttribute("csp-content",a.toString());continue}"link"===i&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===i&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===h(e.attributes.href)||("img"===i&&e.attributes.srcset&&e.attributes.rr_dataURL?o.setAttribute("rrweb-original-srcset",e.attributes.srcset):o.setAttribute(n,a.toString()))}}catch(e){}}}for(const t in s){const n=s[t];if("canvas"===i&&"rr_dataURL"===t){const e=r.createElement("img");e.onload=()=>{const t=o.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=n.toString(),o.RRNodeType&&(o.rr_dataURL=n.toString())}else if("img"===i&&"rr_dataURL"===t){const t=o;t.currentSrc.startsWith("data:")||(t.setAttribute("rrweb-original-src",e.attributes.src),t.src=n.toString())}if("rr_width"===t)o.style.setProperty("width",n.toString());else if("rr_height"===t)o.style.setProperty("height",n.toString());else if("rr_mediaCurrentTime"===t&&"number"==typeof n)o.currentTime=n;else if("rr_mediaState"===t)switch(n){case"played":o.play().catch(e=>console.warn("media playback error",e));break;case"paused":o.pause()}else"rr_mediaPlaybackRate"===t&&"number"==typeof n?o.playbackRate=n:"rr_mediaMuted"===t&&"boolean"==typeof n?o.muted=n:"rr_mediaLoop"===t&&"boolean"==typeof n?o.loop=n:"rr_mediaVolume"===t&&"number"==typeof n?o.volume=n:"rr_open_mode"===t&&o.setAttribute("rr_open_mode",n)}if(e.isShadowHost)if(o.shadowRoot)for(;o.shadowRoot.firstChild;)o.shadowRoot.removeChild(o.shadowRoot.firstChild);else o.attachShadow({mode:"open"});return o}case l.Text:return e.isStyle&&i?r.createTextNode(Xe(e.textContent,o)):r.createTextNode(e.textContent);case l.CDATA:return r.createCDATASection(e.textContent);case l.Comment:return r.createComment(e.textContent);default:return null}}function rt(e,t){const{doc:n,mirror:r,skipChild:i=!1,hackCss:o=!0,afterAppend:s,cache:a}=t;if(r.has(e.id)){const t=r.getNode(e.id),n=r.getMeta(t);if(d=e,(u=n)&&d&&u.type===d.type&&(u.type===l.Document?u.compatMode===d.compatMode:u.type===l.DocumentType?u.name===d.name&&u.publicId===d.publicId&&u.systemId===d.systemId:u.type===l.Comment||u.type===l.Text||u.type===l.CDATA?u.textContent===d.textContent:u.type===l.Element&&u.tagName===d.tagName&&JSON.stringify(u.attributes)===JSON.stringify(d.attributes)&&u.isSVG===d.isSVG&&u.needBlock===d.needBlock))return r.getNode(e.id)}var u,d;let h=nt(e,{doc:n,hackCss:o,cache:a});if(!h)return null;if(e.rootId&&r.getNode(e.rootId)!==n&&r.replace(e.rootId,n),e.type===l.Document&&(n.close(),n.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==l.DocumentType&&(e.childNodes[0].type===l.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),h=n),r.add(h,e),(e.type===l.Document||e.type===l.Element)&&!i)for(const t of e.childNodes){const i=rt(t,{doc:n,mirror:r,skipChild:!1,hackCss:o,afterAppend:s,cache:a});if(i){if(t.isShadow&&c(h)&&h.shadowRoot)h.shadowRoot.appendChild(i);else if(e.type===l.Document&&t.type==l.Element){const e=i;let t=null;e.childNodes.forEach(e=>{"BODY"===e.nodeName&&(t=e)}),t?(e.removeChild(t),h.appendChild(i),e.appendChild(t)):h.appendChild(i)}else h.appendChild(i);s&&s(i,t.id)}else console.warn("Failed to rebuild",t)}return h}function it(e,t){et(t);const{doc:n,onVisit:r,hackCss:i=!0,afterAppend:o,cache:s,mirror:a=new u}=t,c=rt(e,{doc:n,mirror:a,skipChild:!1,hackCss:i,afterAppend:o,cache:s});return function(e,t){function n(e){t(e)}for(const t of e.getIds())e.has(t)&&n(e.getNode(t))}(a,e=>{r&&r(e),function(e,t){const n=t.getMeta(e);if((null==n?void 0:n.type)!==l.Element)return;const r=e;for(const e in n.attributes){if(!Object.prototype.hasOwnProperty.call(n.attributes,e)||!e.startsWith("rr_"))continue;const t=n.attributes[e];"rr_scrollLeft"===e&&(r.scrollLeft=t),"rr_scrollTop"===e&&(r.scrollTop=t)}}(e,a)}),c}var ot=Object.defineProperty,st=(e,t,n)=>((e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),at=Object.defineProperty,lt=(e,t,n)=>((e,t,n)=>t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);Date.now().toString();let ct=class{constructor(){lt(this,"idNodeMap",new Map),lt(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var ht,pt={exports:{}};function mt(){if(ht)return pt.exports;ht=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return pt.exports=t(),pt.exports.createColors=t,pt.exports}const ft=dt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var gt,vt;function yt(){if(vt)return gt;vt=1;let e=mt(),t=ft;class n extends Error{constructor(e,t,r,i,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let r=this.source;null==n&&(n=e.isColorSupported),t&&n&&(r=t(r));let i,o,s=r.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(n){let{bold:t,gray:n,red:r}=e.createColors(!0);i=e=>t(r(e)),o=e=>n(e)}else i=o=e=>e;return s.slice(a,l).map((e,t)=>{let n=a+1+t,r=" "+(" "+n).slice(-c)+" | ";if(n===this.line){let t=o(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+o(r)+e+"\n "+t+i("^")}return" "+o(r)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return gt=n,n.default=n,gt}var bt,wt,_t,xt,Et,Ct,St,kt,Nt,Mt,Ot,Rt,Tt,At,It,Dt,zt,Pt,Lt,Ft,jt,Bt,Ut,$t,Wt,Ht,Vt,Yt,Gt,Jt,qt,Xt,Zt,Kt,Qt,en,tn,nn,rn,on,sn,an,ln,cn,un,dn,hn,pn,mn,fn,gn,vn,yn,bn={};function wn(){return bt||(bt=1,bn.isClean=Symbol("isClean"),bn.my=Symbol("my")),bn}function _n(){if(_t)return wt;_t=1;const e={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class t{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(t,n,r){let i;if(r||(r=n),n&&(i=t.raws[n],void 0!==i))return i;let o=t.parent;if("before"===r){if(!o||"root"===o.type&&o.first===t)return"";if(o&&"document"===o.type)return""}if(!o)return e[r];let s=t.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(t,r);{let e="raw"+((a=r)[0].toUpperCase()+a.slice(1));this[e]?i=this[e](s,t):s.walk(e=>{if(i=e.raws[n],void 0!==i)return!1})}var a;return void 0===i&&(i=e[r]),s.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}return wt=t,t.default=t,wt}function xn(){if(Et)return xt;Et=1;let e=_n();function t(t,n){new e(n).stringify(t)}return xt=t,t.default=t,xt}function En(){if(St)return Ct;St=1;let{isClean:e,my:t}=wn(),n=yt(),r=_n(),i=xn();function o(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],s=typeof i;"parent"===r&&"object"===s?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>o(e,n)):("object"===s&&null!==i&&(i=o(i)),n[r]=i)}return n}class s{constructor(n={}){this.raws={},this[e]=!1,this[t]=!0;for(let e in n)if("nodes"===e){this.nodes=[];for(let t of n[e])"function"==typeof t.clone?this.append(t.clone()):this.append(t)}else this[e]=n[e]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=o(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new r).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}return Ct=s,s.default=s,Ct}function Cn(){if(Nt)return kt;Nt=1;let e=En();class t extends e{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}return kt=t,t.default=t,kt}function Sn(){if(Ot)return Mt;Ot=1;return Mt={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}}function kn(){if(Tt)return Rt;Tt=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ft,{existsSync:n,readFileSync:r}=ft,{dirname:i,join:o}=ft;class s{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=i(e),n(e))return this.mapFile=e,r(e,"utf-8").toString().trim()}loadMap(n,r){if(!1===r)return!1;if(r){if("string"==typeof r)return r;if("function"!=typeof r){if(r instanceof e)return t.fromSourceMap(r).toString();if(r instanceof t)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}{let e=r(n);if(e){let t=this.loadFile(e);if(!t)throw new Error("Unable to load previous source map: "+e.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;return n&&(e=o(i(n),e)),this.loadFile(e)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Rt=s,s.default=s,Rt}function Nn(){if(It)return At;It=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ft,{fileURLToPath:n,pathToFileURL:r}=ft,{isAbsolute:i,resolve:o}=ft,{nanoid:s}=Sn(),a=ft,l=yt(),c=kn(),u=Symbol("fromOffsetCache"),d=Boolean(e&&t),h=Boolean(o&&i);class p{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!h||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=o(t.from)),h&&d){let e=new c(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,i={}){let o,s,a;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);s=e.line,a=e.col}else s=r.line,a=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let c=this.origin(t,n,s,a);return o=c?new l(e,void 0===c.endLine?c.line:{column:c.column,line:c.line},void 0===c.endLine?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,i.plugin):new l(e,void 0===s?t:{column:n,line:t},void 0===s?n:{column:a,line:s},this.css,this.file,i.plugin),o.input={column:n,endColumn:a,endLine:s,line:t,source:this.css},this.file&&(r&&(o.input.url=r(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[u])n=this[u];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[u]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:o(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,o,s){if(!this.map)return!1;let a,l,c=this.map.consumer(),u=c.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof o&&(a=c.originalPositionFor({column:s,line:o})),l=i(u.source)?r(u.source):new URL(u.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let d={column:u.column,endColumn:a&&a.column,endLine:a&&a.line,line:u.line,url:l.toString()};if("file:"===l.protocol){if(!n)throw new Error("file: protocol is not available in this PostCSS build");d.file=n(l)}let h=c.sourceContentFor(u.source);return h&&(d.source=h),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return At=p,p.default=p,a&&a.registerInput&&a.registerInput(p),At}function Mn(){if(zt)return Dt;zt=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=ft,{dirname:n,relative:r,resolve:i,sep:o}=ft,{pathToFileURL:s}=ft,a=Nn(),l=Boolean(e&&t),c=Boolean(n&&i&&r&&o);return Dt=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let t of this.previous()){let r,i=this.toUrl(this.path(t.file)),o=t.root||n(t.file);!1===this.mapOpts.sourcesContent?(r=new e(t.text),r.sourcesContent&&(r.sourcesContent=null)):r=t.consumer(),this.map.applySourceMap(r,i,this.toUrl(this.path(o)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&l&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let e,n,r=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(t,a,l)=>{if(this.css+=t,a&&"end"!==l&&(s.generated.line=r,s.generated.column=i-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=t.match(/\n/g),e?(r+=e.length,n=t.lastIndexOf("\n"),i=t.length-n):i+=t.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=i-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=i-1,this.map.addMapping(s)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let o=this.opts.to?n(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(o=n(i(o,this.mapOpts.annotation)));let s=r(o,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new a(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(s){let t=s(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===o&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}}function On(){if(Lt)return Pt;Lt=1;let e=En();class t extends e{constructor(e){super(e),this.type="comment"}}return Pt=t,t.default=t,Pt}function Rn(){if(jt)return Ft;jt=1;let e,t,n,r,{isClean:i,my:o}=wn(),s=Cn(),a=On(),l=En();function c(e){return e.map(e=>(e.nodes&&(e.nodes=c(e.nodes)),delete e.source,e))}function u(e){if(e[i]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)u(t)}class d extends l{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(r,l){if("string"==typeof r)r=c(e(r).nodes);else if(void 0===r)r=[];else if(Array.isArray(r)){r=r.slice(0);for(let e of r)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===r.type&&"document"!==this.type){r=r.nodes.slice(0);for(let e of r)e.parent&&e.parent.removeChild(e,"ignore")}else if(r.type)r=[r];else if(r.prop){if(void 0===r.value)throw new Error("Value field is missed in node creation");"string"!=typeof r.value&&(r.value=String(r.value)),r=[new s(r)]}else if(r.selector)r=[new t(r)];else if(r.name)r=[new n(r)];else{if(!r.text)throw new Error("Unknown node type in node creation");r=[new a(r)]}return r.map(e=>(e[o]||d.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[i]&&u(e),void 0===e.raws.before&&l&&void 0!==l.raws.before&&(e.raws.before=l.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return d.registerParse=t=>{e=t},d.registerRule=e=>{t=e},d.registerAtRule=e=>{n=e},d.registerRoot=e=>{r=e},Ft=d,d.default=d,d.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,n.prototype):"rule"===e.type?Object.setPrototypeOf(e,t.prototype):"decl"===e.type?Object.setPrototypeOf(e,s.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,r.prototype),e[o]=!0,e.nodes&&e.nodes.forEach(e=>{d.rebuild(e)})},Ft}function Tn(){if(Ut)return Bt;Ut=1;let e,t,n=Rn();class r extends n{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(n={}){return new e(new t,this,n).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},Bt=r,r.default=r,Bt}function An(){if(Wt)return $t;Wt=1;let e={};return $t=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}}function In(){if(Vt)return Ht;Vt=1;class e{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ht=e,e.default=e,Ht}function Dn(){if(Gt)return Yt;Gt=1;let e=In();class t{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}return Yt=t,t.default=t,Yt}function zn(){if(Zt)return Xt;Zt=1;let e=Rn();class t extends e{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return Xt=t,t.default=t,e.registerAtRule(t),Xt}function Pn(){if(Qt)return Kt;Qt=1;let e,t,n=Rn();class r extends n{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(n={}){return new e(new t,this,n).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=e=>{t=e},Kt=r,r.default=r,n.registerRoot(r),Kt}function Ln(){if(tn)return en;tn=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(e,t,n){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};return en=e,e.default=e,en}function Fn(){if(rn)return nn;rn=1;let e=Rn(),t=Ln();class n extends e{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}return nn=n,n.default=n,e.registerRule(n),nn}function jn(){if(sn)return on;sn=1;let e=Cn(),t=function(){if(qt)return Jt;qt=1;const e="'".charCodeAt(0),t='"'.charCodeAt(0),n="\\".charCodeAt(0),r="/".charCodeAt(0),i="\n".charCodeAt(0),o=" ".charCodeAt(0),s="\f".charCodeAt(0),a="\t".charCodeAt(0),l="\r".charCodeAt(0),c="[".charCodeAt(0),u="]".charCodeAt(0),d="(".charCodeAt(0),h=")".charCodeAt(0),p="{".charCodeAt(0),m="}".charCodeAt(0),f=";".charCodeAt(0),g="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_=/.[\r\n"'(/\\]/,x=/[\da-f]/i;return Jt=function(E,C={}){let S,k,N,M,O,R,T,A,I,D,z=E.css.valueOf(),P=C.ignoreErrors,L=z.length,F=0,j=[],B=[];function U(e){throw E.error("Unclosed "+e,F)}return{back:function(e){B.push(e)},endOfFile:function(){return 0===B.length&&F>=L},nextToken:function(E){if(B.length)return B.pop();if(F>=L)return;let C=!!E&&E.ignoreUnclosed;switch(S=z.charCodeAt(F),S){case i:case o:case a:case l:case s:k=F;do{k+=1,S=z.charCodeAt(k)}while(S===o||S===i||S===a||S===l||S===s);D=["space",z.slice(F,k)],F=k-1;break;case c:case u:case p:case m:case v:case f:case h:{let e=String.fromCharCode(S);D=[e,e,F];break}case d:if(A=j.length?j.pop()[1]:"",I=z.charCodeAt(F+1),"url"===A&&I!==e&&I!==t&&I!==o&&I!==i&&I!==a&&I!==s&&I!==l){k=F;do{if(R=!1,k=z.indexOf(")",k+1),-1===k){if(P||C){k=F;break}U("bracket")}for(T=k;z.charCodeAt(T-1)===n;)T-=1,R=!R}while(R);D=["brackets",z.slice(F,k+1),F,k],F=k}else k=z.indexOf(")",F+1),M=z.slice(F,k+1),-1===k||_.test(M)?D=["(","(",F]:(D=["brackets",M,F,k],F=k);break;case e:case t:N=S===e?"'":'"',k=F;do{if(R=!1,k=z.indexOf(N,k+1),-1===k){if(P||C){k=F+1;break}U("string")}for(T=k;z.charCodeAt(T-1)===n;)T-=1,R=!R}while(R);D=["string",z.slice(F,k+1),F,k],F=k;break;case y:b.lastIndex=F+1,b.test(z),k=0===b.lastIndex?z.length-1:b.lastIndex-2,D=["at-word",z.slice(F,k+1),F,k],F=k;break;case n:for(k=F,O=!0;z.charCodeAt(k+1)===n;)k+=1,O=!O;if(S=z.charCodeAt(k+1),O&&S!==r&&S!==o&&S!==i&&S!==a&&S!==l&&S!==s&&(k+=1,x.test(z.charAt(k)))){for(;x.test(z.charAt(k+1));)k+=1;z.charCodeAt(k+1)===o&&(k+=1)}D=["word",z.slice(F,k+1),F,k],F=k;break;default:S===r&&z.charCodeAt(F+1)===g?(k=z.indexOf("*/",F+2)+1,0===k&&(P||C?k=z.length:U("comment")),D=["comment",z.slice(F,k+1),F,k],F=k):(w.lastIndex=F+1,w.test(z),k=0===w.lastIndex?z.length-1:w.lastIndex-2,D=["word",z.slice(F,k+1),F,k],j.push(D),F=k)}return F++,D},position:function(){return F}}}}(),n=On(),r=zn(),i=Pn(),o=Fn();const s={empty:!0,space:!0};return on=class{constructor(e){this.input=e,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,i,o=new r;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);let s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(e=l[l.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}comment(e){let t=new n;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,n){let r=new e;this.init(r,t[0][2]);let i,o=t[t.length-1];for(";"===o[0]&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(t)),r.source.end.offset++;"word"!==t[0][0];)1===t.length&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let e=t[0][0];if(":"===e||"space"===e||"comment"===e)break;r.prop+=t.shift()[1]}for(r.raws.between="";t.length;){if(i=t.shift(),":"===i[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,a=[];for(;t.length&&(s=t[0][0],"space"===s||"comment"===s);)a.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(i=t[e],"!important"===i[1].toLowerCase()){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n," !important"!==n&&(r.raws.important=n);break}if("important"===i[1].toLowerCase()){let n=t.slice(0),i="";for(let t=e;t>0;t--){let e=n[t][0];if(0===i.trim().indexOf("!")&&"space"!==e)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(r.important=!0,r.raws.important=i,t=n)}if("space"!==i[0]&&"comment"!==i[0])break}t.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(r.raws.between+=a.map(e=>e[1]).join(""),a=[]),this.raw(r,"value",a.concat(t),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,a,l,c=n.length,u="",d=!0;for(let e=0;e<c;e+=1)i=n[e],o=i[0],"space"!==o||e!==c-1||r?"comment"===o?(l=n[e-1]?n[e-1][0]:"empty",a=n[e+1]?n[e+1][0]:"empty",s[l]||s[a]||","===u.slice(-1)?d=!1:u+=i[1]):u+=i[1]:d=!1;if(!d){let r=n.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}}function Bn(){if(ln)return an;ln=1;let e=Rn(),t=jn(),n=Nn();function r(e,r){let i=new n(e,r),o=new t(i);try{o.parse()}catch(e){throw e}return o.root}return an=r,r.default=r,e.registerParse(r),an}function Un(){if(un)return cn;un=1;let{isClean:e,my:t}=wn(),n=Mn(),r=xn(),i=Rn(),o=Tn(),s=(An(),Dn()),a=Bn(),l=Pn();const c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},u={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},d={Once:!0,postcssPlugin:!0,prepare:!0};function h(e){return"object"==typeof e&&"function"==typeof e.then}function p(e){let t=!1,n=c[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function m(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:p(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function f(t){return t[e]=!1,t.nodes&&t.nodes.forEach(e=>f(e)),t}let g={};class v{constructor(e,n,r){let o;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof v||n instanceof s)o=f(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let e=a;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{o=e(n,r)}catch(e){this.processed=!0,this.error=e}o&&!o[t]&&i.rebuild(o)}else o=f(n);this.result=new s(e,o,r),this.helpers={...g,postcss:g,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!u[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(h(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let n=[m(t)];for(;n.length>0;){let e=this.visitTick(n);if(h(e))try{await e}catch(e){let t=n[n.length-1].node;throw this.handleError(e,t)}}}if(this.listeners.OnceExit)for(let[e,n]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(e=>n(e,this.helpers));await Promise.all(e)}else await n(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return h(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=r;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new n(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(h(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(h(e))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:i}=n;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(i.length>0&&n.visitorIndex<i.length){let[e,t]=i[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===i.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=e;try{return t(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==n.iterator){let i,o=n.iterator;for(;i=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!i[e])return i[e]=!0,void t.push(m(i));n.iterator=0,delete r.indexes[o]}let o=n.events;for(;n.eventIndex<o.length;){let t=o[n.eventIndex];if(n.eventIndex+=1,0===t)return void(r.nodes&&r.nodes.length&&(r[e]=!0,n.iterator=r.getIterator()));if(this.listeners[t])return void(n.visitors=this.listeners[t])}t.pop()}walkSync(t){t[e]=!0;let n=p(t);for(let r of n)if(0===r)t.nodes&&t.each(t=>{t[e]||this.walkSync(t)});else{let e=this.listeners[r];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=e=>{g=e},cn=v,v.default=v,l.registerLazyResult(v),o.registerLazyResult(v),cn}function $n(){if(mn)return pn;mn=1;let e=function(){if(hn)return dn;hn=1;let e=Mn(),t=xn(),n=(An(),Bn());const r=Dn();class i{constructor(n,i,o){let s;i=i.toString(),this.stringified=!1,this._processor=n,this._css=i,this._opts=o,this._map=void 0;let a=t;this.result=new r(this._processor,s,this._opts),this.result.css=i;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new e(a,s,this._opts,i);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=n;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}return dn=i,i.default=i,dn}(),t=Un(),n=Tn(),r=Pn();class i{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(n,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new t(this,n,r):new e(this,n,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return pn=i,i.default=i,r.registerProcessor(i),n.registerProcessor(i),pn}const Wn=ut(function(){if(yn)return vn;yn=1;let e=yt(),t=Cn(),n=Un(),r=Rn(),i=$n(),o=xn(),s=function(){if(gn)return fn;gn=1;let e=Cn(),t=kn(),n=On(),r=zn(),i=Nn(),o=Pn(),s=Fn();function a(l,c){if(Array.isArray(l))return l.map(e=>a(e));let{inputs:u,...d}=l;if(u){c=[];for(let e of u){let n={...e,__proto__:i.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),c.push(n)}}if(d.nodes&&(d.nodes=l.nodes.map(e=>a(e,c))),d.source){let{inputId:e,...t}=d.source;d.source=t,null!=e&&(d.source.input=c[e])}if("root"===d.type)return new o(d);if("decl"===d.type)return new e(d);if("rule"===d.type)return new s(d);if("comment"===d.type)return new n(d);if("atrule"===d.type)return new r(d);throw new Error("Unknown node type: "+l.type)}return fn=a,a.default=a,fn}(),a=Tn(),l=In(),c=On(),u=zn(),d=Dn(),h=Nn(),p=Bn(),m=Ln(),f=Fn(),g=Pn(),v=En();function y(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new i(e)}return y.plugin=function(e,t){let n,r=!1;function o(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let o=t(...n);return o.postcssPlugin=e,o.postcssVersion=(new i).version,o}return Object.defineProperty(o,"postcss",{get:()=>(n||(n=o()),n)}),o.process=function(e,t,n){return y([o(n)]).process(e,t)},o},y.stringify=o,y.parse=p,y.fromJSON=s,y.list=m,y.comment=e=>new c(e),y.atRule=e=>new u(e),y.decl=e=>new t(e),y.rule=e=>new f(e),y.root=e=>new g(e),y.document=e=>new a(e),y.CssSyntaxError=e,y.Declaration=t,y.Container=r,y.Processor=i,y.Document=a,y.Comment=c,y.Warning=l,y.AtRule=u,y.Result=d,y.Input=h,y.Rule=f,y.Root=g,y.Node=v,n.registerPostcss(y),vn=y,y.default=y,vn}());Wn.stringify,Wn.fromJSON,Wn.plugin,Wn.parse,Wn.list,Wn.document,Wn.comment,Wn.atRule,Wn.rule,Wn.decl,Wn.root,Wn.CssSyntaxError,Wn.Declaration,Wn.Container,Wn.Processor,Wn.Document,Wn.Comment,Wn.Warning,Wn.AtRule,Wn.Result,Wn.Input,Wn.Rule,Wn.Root,Wn.Node;var Hn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Hn||{});function Vn(e){const t=[];for(const n in e){const r=e[n];if("string"!=typeof r)continue;const i=Xn(n);t.push(`${i}: ${r};`)}return t.join(" ")}const Yn=/-([a-z])/g,Gn=/^--[a-zA-Z0-9-]+$/,Jn=e=>Gn.test(e)?e:e.replace(Yn,(e,t)=>t?t.toUpperCase():""),qn=/\B([A-Z])/g,Xn=e=>e.replace(qn,"-$1").toLowerCase();class Zn{constructor(...e){st(this,"parentElement",null),st(this,"parentNode",null),st(this,"ownerDocument"),st(this,"firstChild",null),st(this,"lastChild",null),st(this,"previousSibling",null),st(this,"nextSibling",null),st(this,"ELEMENT_NODE",1),st(this,"TEXT_NODE",3),st(this,"nodeType"),st(this,"nodeName"),st(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof Zn))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class Kn extends Zn{constructor(...e){super(e),st(this,"nodeType",9),st(this,"nodeName","#document"),st(this,"compatMode","CSS1Compat"),st(this,"RRNodeType",Hn.Document),st(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===Hn.Element&&"HTML"===e.tagName)||null}get body(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find(e=>e.RRNodeType===Hn.Element&&"BODY"===e.tagName))||null}get head(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find(e=>e.RRNodeType===Hn.Element&&"HEAD"===e.tagName))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===Hn.Element||t===Hn.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===t))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===Hn.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const n=ar(this,e);return n.parentElement=null,n}insertBefore(e,t){const n=e.RRNodeType;if((n===Hn.Element||n===Hn.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===Hn.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=lr(this,e,t);return r.parentElement=null,r}removeChild(e){return cr(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'===e?t="-//W3C//DTD XHTML 1.0 Transitional//EN":'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'===e&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const e=this.createDocumentType("html",t,"");this.open(),this.appendChild(e)}}createDocument(e,t,n){return new Kn}createDocumentType(e,t,n){const r=new Qn(e,t,n);return r.ownerDocument=this,r}createElement(e){const t=new er(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new rr(e);return t.ownerDocument=this,t}createComment(e){const t=new ir(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new or(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class Qn extends Zn{constructor(e,t,n){super(),st(this,"nodeType",10),st(this,"RRNodeType",Hn.DocumentType),st(this,"name"),st(this,"publicId"),st(this,"systemId"),st(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=n,this.nodeName=e}toString(){return"RRDocumentType"}}class er extends Zn{constructor(e){super(),st(this,"nodeType",1),st(this,"RRNodeType",Hn.Element),st(this,"tagName"),st(this,"attributes",{}),st(this,"shadowRoot",null),st(this,"scrollLeft"),st(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new sr(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?function(e){const t={},n=/:(.+)/;return e.replace(/\/\*.*?\*\//g,"").split(/;(?![^(]*\))/g).forEach(function(e){if(e){const r=e.split(n);r.length>1&&(t[Jn(r[0].trim())]=r[1].trim())}}),t}(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(n,r,i)=>{if(t.test(n))return;const o=Jn(n);r?e[o]=r:delete e[o],"important"===i&&(e[o]+=" !important"),this.attributes.style=Vn(e)},e.removeProperty=n=>{if(t.test(n))return"";const r=Jn(n),i=e[r]||"";return delete e[r],this.attributes.style=Vn(e),i},e}getAttribute(e){return void 0===this.attributes[e]?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,n){this.setAttribute(t,n)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return ar(this,e)}insertBefore(e,t){return lr(this,e,t)}removeChild(e){return cr(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class tr extends er{constructor(){super(...arguments),st(this,"currentTime"),st(this,"volume"),st(this,"paused"),st(this,"muted"),st(this,"playbackRate"),st(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class nr extends er{constructor(){super(...arguments),st(this,"tagName","DIALOG"),st(this,"nodeName","DIALOG")}get isModal(){return"modal"===this.getAttribute("rr_open_mode")}get open(){return null!==this.getAttribute("open")}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class rr extends Zn{constructor(e){super(),st(this,"nodeType",3),st(this,"nodeName","#text"),st(this,"RRNodeType",Hn.Text),st(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class ir extends Zn{constructor(e){super(),st(this,"nodeType",8),st(this,"nodeName","#comment"),st(this,"RRNodeType",Hn.Comment),st(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class or extends Zn{constructor(e){super(),st(this,"nodeName","#cdata-section"),st(this,"nodeType",4),st(this,"RRNodeType",Hn.CDATA),st(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class sr{constructor(e,t){if(st(this,"onChange"),st(this,"classes",[]),st(this,"add",(...e)=>{for(const t of e){const e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(" "))}),st(this,"remove",(...e)=>{this.classes=this.classes.filter(t=>-1===e.indexOf(t)),this.onChange&&this.onChange(this.classes.join(" "))}),e){const t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}}function ar(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function lr(e,t,n){if(!n)return ar(e,t);if(n.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===n||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=n.previousSibling,n.previousSibling=t,t.nextSibling=n,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function cr(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var ur=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(ur||{});const dr={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},hr={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let pr=null;function mr(e,t,n,r=t.mirror||t.ownerDocument.mirror){e=function(e,t,n,r){var i;n.afterAppend&&!pr&&(pr=new WeakSet,setTimeout(()=>{pr=null},0));if(!vr(e,t)){const o=gr(t,n.mirror,r);null==(i=e.parentNode)||i.replaceChild(o,e),e=o}switch(t.RRNodeType){case Hn.Document:if(!yr(e,t,n.mirror,r)){const i=r.getMeta(t);i&&(n.mirror.removeNodeFromMap(e),e.close(),e.open(),n.mirror.add(e,i),null==pr||pr.add(e))}break;case Hn.Element:{const i=e,o=t;switch(o.tagName){case"IFRAME":{const i=e.contentDocument;if(!i)break;mr(i,t.contentDocument,n,r);break}}o.shadowRoot&&(i.shadowRoot||i.attachShadow({mode:"open"}),fr(i.shadowRoot,o.shadowRoot,n,r)),function(e,t,n){const r=e.attributes,i=t.attributes;for(const r in i){const o=i[r],s=n.getMeta(t);if((null==s?void 0:s.isSVG)&&dr[r])e.setAttributeNS(dr[r],r,o);else if("CANVAS"===t.tagName&&"rr_dataURL"===r){const t=document.createElement("img");t.src=o,t.onload=()=>{const n=e.getContext("2d");n&&n.drawImage(t,0,0,t.width,t.height)}}else{if("IFRAME"===t.tagName&&"srcdoc"===r)continue;try{e.setAttribute(r,o)}catch(e){console.warn(e)}}}for(const{name:t}of Array.from(r))t in i||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}(i,o,r);break}}return e}(e,t,n,r),fr(e,t,n,r),function(e,t,n){var r;switch(t.RRNodeType){case Hn.Document:{const e=t.scrollData;e&&n.applyScroll(e,!0);break}case Hn.Element:{const r=e,i=t;switch(i.scrollData&&n.applyScroll(i.scrollData,!0),i.inputData&&n.applyInput(i.inputData),i.tagName){case"AUDIO":case"VIDEO":{const t=e,n=i;void 0!==n.paused&&(n.paused?t.pause():t.play()),void 0!==n.muted&&(t.muted=n.muted),void 0!==n.volume&&(t.volume=n.volume),void 0!==n.currentTime&&(t.currentTime=n.currentTime),void 0!==n.playbackRate&&(t.playbackRate=n.playbackRate),void 0!==n.loop&&(t.loop=n.loop);break}case"CANVAS":{const i=t;if(null!==i.rr_dataURL){const e=document.createElement("img");e.onload=()=>{const t=r.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=i.rr_dataURL}i.canvasMutations.forEach(t=>n.applyCanvas(t.event,t.mutation,e));break}case"STYLE":{const e=r.sheet;e&&t.rules.forEach(t=>n.applyStyleSheetMutation(t,e));break}case"DIALOG":{const e=r,t=i,n=e.open,o=e.matches("dialog:modal"),s=t.open,a=t.isModal,l=o!==a,c=n!==s;if((l||n&&c)&&e.close(),s&&(c||l))try{a?e.showModal():e.show()}catch(e){console.warn(e)}break}}break}case Hn.Text:case Hn.Comment:case Hn.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}(null==pr?void 0:pr.has(e))&&(pr.delete(e),null==(r=n.afterAppend)||r.call(n,e,n.mirror.getId(e)))}(e,t,n)}function fr(e,t,n,r){const i=Array.from(e.childNodes),o=t.childNodes;if(0===i.length&&0===o.length)return;let s,a,l=0,c=i.length-1,u=0,d=o.length-1,h=i[l],p=i[c],m=o[u],f=o[d];for(;l<=c&&u<=d;)if(void 0===h)h=i[++l];else if(void 0===p)p=i[--c];else if(yr(h,m,n.mirror,r))h=i[++l],m=o[++u];else if(yr(p,f,n.mirror,r))p=i[--c],f=o[--d];else if(yr(h,f,n.mirror,r)){try{e.insertBefore(h,p.nextSibling)}catch(e){console.warn(e)}h=i[++l],f=o[--d]}else if(yr(p,m,n.mirror,r)){try{e.insertBefore(p,h)}catch(e){console.warn(e)}p=i[--c],m=o[++u]}else{if(!s){s={};for(let e=l;e<=c;e++){const t=i[e];t&&n.mirror.hasNode(t)&&(s[n.mirror.getId(t)]=e)}}a=s[r.getId(m)];const t=i[a];if(void 0!==a&&t&&yr(t,m,n.mirror,r)){try{e.insertBefore(t,h)}catch(e){console.warn(e)}i[a]=void 0}else{const t=gr(m,n.mirror,r);"#document"===e.nodeName&&h&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&h.nodeType===h.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&h.nodeType===h.ELEMENT_NODE)&&(e.removeChild(h),n.mirror.removeNodeFromMap(h),h=i[++l]);try{e.insertBefore(t,h||null)}catch(e){console.warn(e)}}m=o[++u]}if(l>c){const t=o[d+1];let i=null;for(t&&(i=n.mirror.getNode(r.getId(t)));u<=d;++u){const t=gr(o[u],n.mirror,r);try{e.insertBefore(t,i)}catch(e){console.warn(e)}}}else if(u>d)for(;l<=c;l++){const t=i[l];if(t&&t.parentNode===e)try{e.removeChild(t),n.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}let g=e.firstChild,v=t.firstChild;for(;null!==g&&null!==v;)mr(g,v,n,r),g=g.nextSibling,v=v.nextSibling}function gr(e,t,n){const r=n.getId(e),i=n.getMeta(e);let o=null;if(r>-1&&(o=t.getNode(r)),null!==o&&vr(o,e))return o;switch(e.RRNodeType){case Hn.Document:o=new Document;break;case Hn.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case Hn.Element:{let t=e.tagName.toLowerCase();t=hr[t]||t,o=i&&"isSVG"in i&&(null==i?void 0:i.isSVG)?document.createElementNS(dr.svg,t):document.createElement(e.tagName);break}case Hn.Text:o=document.createTextNode(e.data);break;case Hn.Comment:o=document.createComment(e.data);break;case Hn.CDATA:o=document.createCDATASection(e.data)}i&&t.add(o,{...i});try{null==pr||pr.add(o)}catch(e){}return o}function vr(e,t){return e.nodeType===t.nodeType&&(e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName)}function yr(e,t,n,r){const i=n.getId(e),o=r.getId(t);return-1!==i&&i===o&&vr(e,t)}class br extends Kn{constructor(e){super(),st(this,"UNSERIALIZED_STARTING_ID",-2),st(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),st(this,"mirror",new Ar),st(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,n){return new br}createDocumentType(e,t,n){const r=new wr(e,t,n);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let n;switch(t){case"AUDIO":case"VIDEO":n=new xr(t);break;case"IFRAME":n=new kr(t,this.mirror);break;case"CANVAS":n=new Cr(t);break;case"STYLE":n=new Sr(t);break;case"DIALOG":n=new Er(t);break;default:n=new _r(t)}return n.ownerDocument=this,n}createComment(e){const t=new Mr(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new Or(e);return t.ownerDocument=this,t}createTextNode(e){const t=new Nr(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const wr=Qn;class _r extends er{constructor(){super(...arguments),st(this,"inputData",null),st(this,"scrollData",null)}}class xr extends tr{}class Er extends nr{}class Cr extends _r{constructor(){super(...arguments),st(this,"rr_dataURL",null),st(this,"canvasMutations",[])}getContext(){return null}}class Sr extends _r{constructor(){super(...arguments),st(this,"rules",[])}}class kr extends _r{constructor(e,t){super(e),st(this,"contentDocument",new br),this.contentDocument.mirror=t}}const Nr=rr,Mr=ir,Or=or;function Rr(e,t,n,r){let i;switch(e.nodeType){case ur.DOCUMENT_NODE:r&&"IFRAME"===r.nodeName?i=r.contentDocument:(i=t,i.compatMode=e.compatMode);break;case ur.DOCUMENT_TYPE_NODE:{const n=e;i=t.createDocumentType(n.name,n.publicId,n.systemId);break}case ur.ELEMENT_NODE:{const n=e,r=(o=n)instanceof HTMLFormElement?"FORM":o.tagName.toUpperCase();i=t.createElement(r);const s=i;for(const{name:e,value:t}of Array.from(n.attributes))s.attributes[e]=t;n.scrollLeft&&(s.scrollLeft=n.scrollLeft),n.scrollTop&&(s.scrollTop=n.scrollTop);break}case ur.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case ur.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case ur.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case ur.DOCUMENT_FRAGMENT_NODE:i=r.attachShadow({mode:"open"});break;default:return null}var o;let s=n.getMeta(e);return t instanceof br&&(s||(s=Ir(i,t.unserializedId),n.add(e,s)),t.mirror.add(i,{...s})),i}function Tr(e,t=function(){return new ct}(),n=new br){return function e(r,i){const o=Rr(r,n,t,i);if(null!==o)if("IFRAME"!==(null==i?void 0:i.nodeName)&&r.nodeType!==ur.DOCUMENT_FRAGMENT_NODE&&(null==i||i.appendChild(o),o.parentNode=i,o.parentElement=i),"IFRAME"===r.nodeName){const t=r.contentDocument;t&&e(t,o)}else r.nodeType!==ur.DOCUMENT_NODE&&r.nodeType!==ur.ELEMENT_NODE&&r.nodeType!==ur.DOCUMENT_FRAGMENT_NODE||(r.nodeType===ur.ELEMENT_NODE&&r.shadowRoot&&e(r.shadowRoot,o),r.childNodes.forEach(t=>e(t,o)))}(e,null),n}class Ar{constructor(){st(this,"idNodeMap",new Map),st(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Ir(e,t){switch(e.RRNodeType){case Hn.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case Hn.DocumentType:{const n=e;return{id:t,type:e.RRNodeType,name:n.name,publicId:n.publicId,systemId:n.systemId}}case Hn.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case Hn.Text:case Hn.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case Hn.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const Dr={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},zr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Pr={},Lr={};function Fr(e){if(Pr[e])return Pr[e];const t=globalThis[e],n=t.prototype,r=e in Dr?Dr[e]:void 0,i=Boolean(r&&r.every(e=>{var t,r;return Boolean(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))})),o=e in zr?zr[e]:void 0,s=Boolean(o&&o.every(e=>{var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return Pr[e]=t.prototype,t.prototype;try{const r=document.createElement("iframe");r.style.display="none",document.body.appendChild(r);const i=r.contentWindow;if(!i)return t.prototype;const o=i[e].prototype;if(!o)return r.remove(),n;const s=navigator.userAgent;return s.includes("Safari")&&!s.includes("Chrome")?(r.classList.add("rr-block"),r.setAttribute("__rrwebUntaintedMutationObserver",""),Lr[e]=()=>r.remove()):r.remove(),Pr[e]=o}catch{return n}}const jr={};function Br(e,t,n){var r;const i=`${e}.${String(n)}`;if(jr[i])return jr[i].call(t);const o=Fr(e),s=null==(r=Object.getOwnPropertyDescriptor(o,n))?void 0:r.get;return s?(jr[i]=s,s.call(t)):t[n]}const Ur={};function $r(e,t,n){const r=`${e}.${String(n)}`;if(Ur[r])return Ur[r].bind(t);const i=Fr(e)[n];return"function"!=typeof i?t[n]:(Ur[r]=i,i.bind(t))}let Wr=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Wr=()=>(new Date).getTime());const Hr={ownerDocument:function(e){return Br("Node",e,"ownerDocument")},childNodes:function(e){return Br("Node",e,"childNodes")},parentNode:function(e){return Br("Node",e,"parentNode")},parentElement:function(e){return Br("Node",e,"parentElement")},textContent:function(e){return Br("Node",e,"textContent")},contains:function(e,t){return $r("Node",e,"contains")(t)},getRootNode:function(e){return $r("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Br("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Br("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Br("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Br("Element",e,"querySelectorAll")(t)},nowTimestamp:Wr,mutationObserverCtor:function(){return[Fr("MutationObserver").constructor,Lr.MutationObserver??(()=>{})]},patch:function(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}},Vr="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Yr={map:{},getId:()=>(console.error(Vr),-1),getNode:()=>(console.error(Vr),null),removeNodeFromMap(){console.error(Vr)},has:()=>(console.error(Vr),!1),reset(){console.error(Vr)}};function Gr(e){const t={},n=(e,n)=>{const r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(const i of e){const{nextId:e,parentId:o}=i;if(e&&e in t){const o=t[e];if(o.parent){const e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,n(i,o.parent))}else{const e=r.indexOf(o);r.splice(e,0,n(i,null))}continue}if(o in t){const e=t[o];e.children.push(n(i,e));continue}r.push(n(i,null))}return r}function Jr(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)Jr(e.children[n],t)}function qr(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Xr(e,t){var n,r;const i=null==(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?void 0:r.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=i.getBoundingClientRect(),s=Xr(i,t),a=o.height/i.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:a,absoluteScale:s.absoluteScale*a}}function Zr(e){return!!e&&(e instanceof Zn&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Hr.shadowRoot(e)))}function Kr(e,t){const n=null==e?void 0:e[t[0]];return n?1===t.length?n:Kr(n.cssRules,t.slice(1)):null}function Qr(e){const t=[...e],n=t.pop();return{positions:t,index:n}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Yr=new Proxy(Yr,{get:(e,t,n)=>("map"===t&&console.error(Vr),Reflect.get(e,t,n))}));class ei{constructor(){o(this,"id",1),o(this,"styleIDMap",new WeakMap),o(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}for(var ti=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(ti||{}),ni=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ni||{}),ri=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ri||{}),ii=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(ii||{}),oi=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(oi||{}),si=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(si||{}),ai=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ai||{}),li="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ci="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ui=0;ui<64;ui++)ci[li.charCodeAt(ui)]=ui;"undefined"!=typeof self&&self.Blob&&new Blob(['(function() {\n "use strict";\n var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";\n var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);\n for (var i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n }\n var encode = function(arraybuffer) {\n var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";\n for (i2 = 0; i2 < len; i2 += 3) {\n base64 += chars[bytes[i2] >> 2];\n base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];\n base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];\n base64 += chars[bytes[i2 + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + "=";\n } else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + "==";\n }\n return base64;\n };\n const lastBlobMap = /* @__PURE__ */ new Map();\n const transparentBlobMap = /* @__PURE__ */ new Map();\n async function getTransparentBlobFor(width, height, dataURLOptions) {\n const id = `${width}-${height}`;\n if ("OffscreenCanvas" in globalThis) {\n if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);\n const offscreen = new OffscreenCanvas(width, height);\n offscreen.getContext("2d");\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n transparentBlobMap.set(id, base64);\n return base64;\n } else {\n return "";\n }\n }\n const worker = self;\n worker.onmessage = async function(e) {\n if ("OffscreenCanvas" in globalThis) {\n const { id, bitmap, width, height, dataURLOptions } = e.data;\n const transparentBase64 = getTransparentBlobFor(\n width,\n height,\n dataURLOptions\n );\n const offscreen = new OffscreenCanvas(width, height);\n const ctx = offscreen.getContext("2d");\n ctx.drawImage(bitmap, 0, 0);\n bitmap.close();\n const blob = await offscreen.convertToBlob(dataURLOptions);\n const type = blob.type;\n const arrayBuffer = await blob.arrayBuffer();\n const base64 = encode(arrayBuffer);\n if (!lastBlobMap.has(id) && await transparentBase64 === base64) {\n lastBlobMap.set(id, base64);\n return worker.postMessage({ id });\n }\n if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });\n worker.postMessage({\n id,\n type,\n base64,\n width,\n height\n });\n lastBlobMap.set(id, base64);\n } else {\n return worker.postMessage({ id: e.data.id });\n }\n };\n})();\n//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map\n'],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],e=>2*e)[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(r=e.contentWindow)?void 0:r.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}function di(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)return;const n=e.HTMLElement||e.Element,r={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||a,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;const o=(s=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(s)?1:0);var s;function a(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+o<e.scrollHeight:"X"===t?e.clientWidth+o<e.scrollWidth:void 0}function u(t,n){const r=e.getComputedStyle(t,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(e){const t=c(e,"Y")&&u(e,"Y"),n=c(e,"X")&&u(e,"X");return t||n}function h(t){let n,r,o,s=(i()-t.startTime)/468;var a;s=s>1?1:s,a=s,n=.5*(1-Math.cos(Math.PI*a)),r=t.startX+(t.x-t.startX)*n,o=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,o),r===t.x&&o===t.y||e.requestAnimationFrame(h.bind(e,t))}function p(n,o,s){let l,c,u,d;const p=i();n===t.body?(l=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=r.scroll):(l=n,c=n.scrollLeft,u=n.scrollTop,d=a),h({scrollable:l,method:d,startTime:p,startX:c,startY:u,x:o,y:s})}e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?p.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):r.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?r.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0===arguments[0])return;if(!0===l(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}const e=arguments[0].left,t=arguments[0].top;p.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):r.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0===l(arguments[0]))return void r.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);const n=function(e){for(;e!==t.body&&!1===d(e);)e=e.parentNode||e.host;return e}(this),i=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==t.body?(p.call(this,n,n.scrollLeft+o.left-i.left,n.scrollTop+o.top-i.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:i.left,top:i.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}}d();class hi{constructor(e=[],t){o(this,"timeOffset",0),o(this,"speed"),o(this,"actions"),o(this,"raf",null),o(this,"lastTimestamp"),this.actions=e,this.speed=t.speed}addAction(e){const t=!0===this.raf;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{const t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}updateLiveTime(){!0===this.raf&&this.rafCheck()}rafCheck(){const e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){const e=this.actions[0];if(!(this.timeOffset>=e.delay))break;this.actions.shift(),e.doAction()}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(!0!==this.raf&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return null!==this.raf}findActionIndex(e){let t=0,n=this.actions.length-1;for(;t<=n;){const r=Math.floor((t+n)/2);if(this.actions[r].delay<e.delay)t=r+1;else{if(!(this.actions[r].delay>e.delay))return r+1;n=r-1}}return t}}function pi(e,t){if(e.type===ti.IncrementalSnapshot&&e.data.source===ni.MouseMove&&e.data.positions&&e.data.positions.length){const n=e.data.positions[0].timeOffset,r=e.timestamp+n;return e.delay=r-t,r-t}return e.delay=e.timestamp-t,e.delay}function mi(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}var fi,gi;(gi=fi||(fi={}))[gi.NotStarted=0]="NotStarted",gi[gi.Running=1]="Running",gi[gi.Stopped=2]="Stopped";var vi={type:"xstate.init"};function yi(e){return void 0===e?[]:[].concat(e)}function bi(e){return{type:"xstate.assign",assignment:e}}function wi(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function _i(e){return function(t){return e===t}}function xi(e){return"string"==typeof e?{type:e}:e}function Ei(e,t){return{value:e,context:t,actions:[],changed:!1,matches:_i(e)}}function Ci(e,t,n){var r=t,i=!1;return[e.filter(function(e){if("xstate.assign"===e.type){i=!0;var t=Object.assign({},r);return"function"==typeof e.assignment?t=e.assignment(r,n):Object.keys(e.assignment).forEach(function(i){t[i]="function"==typeof e.assignment[i]?e.assignment[i](r,n):e.assignment[i]}),r=t,!1}return!0}),r,i]}function Si(e,t){void 0===t&&(t={});var n=mi(Ci(yi(e.states[e.initial].entry).map(function(e){return wi(e,t.actions)}),e.context,vi),2),r=n[0],i=n[1],o={config:e,_options:t,initialState:{value:e.initial,actions:r,context:i,matches:_i(e.initial)},transition:function(t,n){var r,i,s="string"==typeof t?{value:t,context:e.context}:t,a=s.value,l=s.context,c=xi(n),u=e.states[a];if(u.on){var d=yi(u.on[c.type]);try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),p=h.next();!p.done;p=h.next()){var m=p.value;if(void 0===m)return Ei(a,l);var f="string"==typeof m?{target:m}:m,g=f.target,v=f.actions,y=void 0===v?[]:v,b=f.cond,w=void 0===b?function(){return!0}:b,_=void 0===g,x=null!=g?g:a,E=e.states[x];if(w(l,c)){var C=mi(Ci((_?yi(y):[].concat(u.exit,y,E.entry).filter(function(e){return e})).map(function(e){return wi(e,o._options.actions)}),l,c),3),S=C[0],k=C[1],N=C[2],M=null!=g?g:a;return{value:M,context:k,actions:S,changed:g!==a||S.length>0||N,matches:_i(M)}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}return Ei(a,l)}};return o}var ki=function(e,t){return e.actions.forEach(function(n){var r=n.exec;return r&&r(e.context,t)})};function Ni(e){var t=e.initialState,n=fi.NotStarted,r=new Set,i={_machine:e,send:function(i){n===fi.Running&&(t=e.transition(t,i),ki(t,xi(i)),r.forEach(function(e){return e(t)}))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var o="object"==typeof r?r:{context:e.config.context,value:r};t={value:o.value,actions:[],context:o.context,matches:_i(o.value)}}return n=fi.Running,ki(t,vi),i},stop:function(){return n=fi.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function Mi(e,{getCastFn:t,applyEventsSynchronously:n,emitter:r}){return Ni(Si({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:bi({lastPlayedEvent:(e,t)=>"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:bi((e,t)=>{let n=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(n=t.payload.timeOffset),{...e,timeOffset:n,baselineTime:e.events[0].timestamp+n}}),play(e){var i;const{timer:o,events:s,baselineTime:a,lastPlayedEvent:l}=e;o.clear();for(const e of s)pi(e,a);const c=function(e,t){for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.type===ti.Meta&&r.timestamp<=t)return e.slice(n)}return e}(s,a);let u=null==l?void 0:l.timestamp;(null==l?void 0:l.type)===ti.IncrementalSnapshot&&l.data.source===ni.MouseMove&&(u=l.timestamp+(null==(i=l.data.positions[0])?void 0:i.timeOffset)),a<(u||0)&&r.emit(si.PlayBack);const d=new Array;for(const e of c)if(!(u&&u<a&&(e.timestamp<=u||e===l)))if(e.timestamp<a)d.push(e);else{const n=t(e,!1);o.addAction({doAction:()=>{n()},delay:e.delay})}n(d),r.emit(si.Flush),o.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:bi(e=>({...e,lastPlayedEvent:null})),startLive:bi({baselineTime:(e,t)=>(e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime?t.payload.baselineTime:Date.now())}),addEvent:bi((e,n)=>{const{baselineTime:r,timer:i,events:o}=e;if("ADD_EVENT"===n.type){const{event:e}=n.payload;pi(e,r);let s=o.length-1;if(!o[s]||o[s].timestamp<=e.timestamp)o.push(e);else{let t=-1,n=0;for(;n<=s;){const t=Math.floor((n+s)/2);o[t].timestamp<=e.timestamp?n=t+1:s=t-1}-1===t&&(t=n),o.splice(t,0,e)}const a=e.timestamp<r,l=t(e,a);a?l():i.isActive()&&i.addAction({doAction:()=>{l()},delay:e.delay})}return{...e,events:o}})}}))}const Oi=new Map;function Ri(e,t){let n=Oi.get(e);return n||(n=new Map,Oi.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}function Ti(e,t,n){return async r=>{if(r&&"object"==typeof r&&"rr_type"in r){if(n&&(n.isUnchanged=!1),"ImageBitmap"===r.rr_type&&"args"in r){const i=await Ti(e,t,n)(r.args);return await createImageBitmap.apply(null,i)}if("index"in r){if(n||null===t)return r;const{rr_type:e,index:i}=r;return Ri(t,e)[i]}if("args"in r){const{rr_type:i,args:o}=r;return new(0,window[i])(...await Promise.all(o.map(Ti(e,t,n))))}if("base64"in r)return function(e){var t,n,r,i,o,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c=new ArrayBuffer(s),u=new Uint8Array(c);for(t=0;t<a;t+=4)n=ci[e.charCodeAt(t)],r=ci[e.charCodeAt(t+1)],i=ci[e.charCodeAt(t+2)],o=ci[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c}(r.base64);if("src"in r){const t=e.get(r.src);if(t)return t;{const t=new Image;return t.src=r.src,e.set(r.src,t),t}}if("data"in r&&"Blob"===r.rr_type){const i=await Promise.all(r.data.map(Ti(e,t,n)));return new Blob(i,{type:r.type})}}else if(Array.isArray(r)){return await Promise.all(r.map(Ti(e,t,n)))}return r}}const Ai=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];async function Ii({mutation:e,target:t,type:n,imageMap:r,errorHandler:i}){try{const i=function(e,t){try{return t===ii.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(e){return null}}(t,n);if(!i)return;if(e.setter)return void(i[e.property]=e.args[0]);const o=i[e.property],s=await Promise.all(e.args.map(Ti(r,i)));!function(e,t){if(!(null==t?void 0:t.constructor))return;const{name:n}=t.constructor;if(!Ai.includes(n))return;const r=Ri(e,n);r.includes(t)||r.push(t)}(i,o.apply(i,s))}catch(t){i(e,t)}}async function Di({event:e,mutation:t,target:n,imageMap:r,canvasEventMap:i,errorHandler:o}){try{const s=i.get(e)||t,a="commands"in s?s.commands:[s];if([ii.WebGL,ii.WebGL2].includes(t.type)){for(let e=0;e<a.length;e++){const i=a[e];await Ii({mutation:i,type:t.type,target:n,imageMap:r,errorHandler:o})}return}await async function({event:e,mutations:t,target:n,imageMap:r,errorHandler:i}){const o=n.getContext("2d");if(!o)return void i(t[0],new Error("Canvas context is null"));const s=t.map(async e=>Promise.all(e.args.map(Ti(r,o))));(await Promise.all(s)).forEach((n,s)=>{const a=t[s];try{if(a.setter)return void(o[a.property]=a.args[0]);const t=o[a.property];"drawImage"===a.property&&"string"==typeof a.args[0]?(r.get(e),t.apply(o,a.args)):t.apply(o,n)}catch(e){i(a,e)}})}({event:e,mutations:a,target:n,imageMap:r,errorHandler:o})}catch(e){o(t,e)}}class zi{constructor(e){o(this,"mediaMap",new Map),o(this,"warn"),o(this,"service"),o(this,"speedService"),o(this,"emitter"),o(this,"getCurrentTime"),o(this,"metadataCallbackMap",new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(si.Start,this.start.bind(this)),this.emitter.on(si.SkipStart,this.start.bind(this)),this.emitter.on(si.Pause,this.pause.bind(this)),this.emitter.on(si.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach((t,n)=>{this.syncTargetWithState(n),e.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:n}){if(n.isPlaying){const r=(e-n.lastInteractionTimeOffset)/1e3*n.playbackRate,i="duration"in t&&t.duration;if(Number.isNaN(i))return void this.waitForMetadata(t);let o=n.currentTimeAtLastInteraction+r;t.loop&&!1!==i&&(o%=i),t.currentTime=o}else t.pause(),t.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e))return;if(!("addEventListener"in e))return;const t=()=>{this.metadataCallbackMap.delete(e);const t=this.mediaMap.get(e);t&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t})};this.metadataCallbackMap.set(e,t),e.addEventListener("loadedmetadata",t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:n}){const r=this.mediaMap.get(e),{type:i,playbackRate:o,currentTime:s,muted:a,volume:l,loop:c}=n;return{isPlaying:i===oi.Play||i!==oi.Pause&&((null==r?void 0:r.isPlaying)||null!==e.getAttribute("autoplay")),currentTimeAtLastInteraction:s??(null==r?void 0:r.currentTimeAtLastInteraction)??0,lastInteractionTimeOffset:t,playbackRate:o??(null==r?void 0:r.playbackRate)??1,volume:l??(null==r?void 0:r.volume)??1,muted:a??(null==r?void 0:r.muted)??null===e.getAttribute("muted"),loop:c??(null==r?void 0:r.loop)??null===e.getAttribute("loop")}}syncTargetWithState(e){const t=this.mediaMap.get(e);if(!t)return;const{muted:n,loop:r,volume:i,isPlaying:o}=t,s=this.service.state.matches("paused"),a=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==i&&(e.volume=i),e.muted=n,e.loop=r,e.playbackRate!==a&&(e.playbackRate=a),o&&!s?e.play():e.pause()}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}}addMediaElements(e,t,n){if(!["AUDIO","VIDEO"].includes(e.nodeName))return;const r=e,i=n.getMeta(r);if(!i||!("attributes"in i))return;const o=this.service.state.matches("paused"),s=i.attributes;let a=!1;a=s.rr_mediaState?"played"===s.rr_mediaState:null!==r.getAttribute("autoplay"),a&&o&&r.pause();let l=1;"number"==typeof s.rr_mediaPlaybackRate&&(l=s.rr_mediaPlaybackRate);let c=!1;c="boolean"==typeof s.rr_mediaMuted?s.rr_mediaMuted:null!==r.getAttribute("muted");let u=!1;u="boolean"==typeof s.rr_mediaLoop?s.rr_mediaLoop:null!==r.getAttribute("loop");let d=1;"number"==typeof s.rr_mediaVolume&&(d=s.rr_mediaVolume);let h=0;"number"==typeof s.rr_mediaCurrentTime&&(h=s.rr_mediaCurrentTime),this.mediaMap.set(r,{isPlaying:a,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:t,playbackRate:l,volume:d,muted:c,loop:u}),this.syncTargetWithState(r)}mediaMutation({target:e,timeOffset:t,mutation:n}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:n})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return["AUDIO","VIDEO"].includes(e.nodeName)}reset(){this.mediaMap.clear()}}function Pi(e,t){if("DIALOG"!==e.nodeName||e instanceof Zn)return;const n=e,r=n.open,i=r&&n.matches("dialog:modal"),o=n.getAttribute("rr_open_mode"),s="string"==typeof(null==t?void 0:t.attributes.open)||"string"==typeof n.getAttribute("open"),a="modal"===o;r&&!(i&&"non-modal"===o||!i&&a)||(n.isConnected?(r&&n.close(),s&&(a?n.showModal():n.show())):console.warn("dialog is not attached to the dom",n))}function Li(e,t){if("DIALOG"!==e.nodeName||e instanceof Zn)return;const n=e;n.isConnected?null===t.attributes.open&&(n.removeAttribute("open"),n.removeAttribute("rr_open_mode")):console.warn("dialog is not attached to the dom",n)}const Fi=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get("*"))&&r.slice().map(function(e){e(t,n)})}}},ji="[replayer]",Bi={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Ui(e){return e.type==ti.IncrementalSnapshot&&(e.data.source==ni.TouchMove||e.data.source==ni.MouseInteraction&&e.data.type==ri.TouchStart)}class $i{constructor(e,t){if(o(this,"wrapper"),o(this,"iframe"),o(this,"UNSAFE_replayCanvas",!1),o(this,"service"),o(this,"speedService"),o(this,"config"),o(this,"usingVirtualDom",!1),o(this,"virtualDom",new br),o(this,"mouse"),o(this,"mouseTail",null),o(this,"tailPositions",[]),o(this,"emitter",Fi()),o(this,"nextUserInteractionEvent"),o(this,"legacy_missingNodeRetryMap",{}),o(this,"cache",Ze()),o(this,"imageMap",new Map),o(this,"canvasEventMap",new Map),o(this,"mirror",d()),o(this,"styleMirror",new ei),o(this,"mediaManager"),o(this,"firstFullSnapshot",null),o(this,"newDocumentQueue",[]),o(this,"mousePos",null),o(this,"touchActive",null),o(this,"lastMouseDownEvent",null),o(this,"lastHoveredRootNode"),o(this,"lastSelectionData",null),o(this,"constructedStyleMutations",[]),o(this,"adoptedStyleSheets",[]),o(this,"handleResize",e=>{this.iframe.style.display="inherit";for(const t of[this.mouseTail,this.iframe])t&&(t.setAttribute("width",String(e.width)),t.setAttribute("height",String(e.height)))}),o(this,"applyEventsSynchronously",e=>{for(const t of e){switch(t.type){case ti.DomContentLoaded:case ti.Load:case ti.Custom:continue;case ti.FullSnapshot:case ti.Meta:case ti.Plugin:case ti.IncrementalSnapshot:}this.getCastFn(t,!0)()}}),o(this,"getCastFn",(e,t=!1)=>{let n;switch(e.type){case ti.DomContentLoaded:case ti.Load:break;case ti.Custom:n=()=>{this.emitter.emit(si.CustomEvent,e)};break;case ti.Meta:n=()=>this.emitter.emit(si.Resize,{width:e.data.width,height:e.data.height});break;case ti.FullSnapshot:n=()=>{var n;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e)return void(this.firstFullSnapshot=!0)}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(e,t),null==(n=this.iframe.contentWindow)||n.scrollTo(e.data.initialOffset)};break;case ti.IncrementalSnapshot:n=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){const t=this.nextUserInteractionEvent.delay-e.delay,n={speed:Math.min(Math.round(t/5e3),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:n}),this.emitter.emit(si.SkipStart,n)}}}}return()=>{n&&n();for(const n of this.config.plugins||[])n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:e}});const r=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[r]){const t=()=>{r<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(si.Finish))};let n=50;e.type===ti.IncrementalSnapshot&&e.data.source===ni.MouseMove&&e.data.positions.length&&(n+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(t,n)}this.emitter.emit(si.EventCast,e)}}),!(null==t?void 0:t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");const n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:1e4,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Bi,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(si.Resize,this.handleResize),this.setupDom();for(const e of this.config.plugins||[])e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(si.Flush,()=>{if(this.usingVirtualDom){const e={mirror:this.mirror,applyCanvas:(e,t,n)=>{Di({event:e,mutation:t,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===ni.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===ni.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{mr(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){console.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const t in this.legacy_missingNodeRetryMap)try{const n=this.legacy_missingNodeRetryMap[t],r=gr(n.node,this.mirror,this.virtualDom.mirror);mr(r,n.node,e,this.virtualDom.mirror),n.node=r}catch(e){this.warn(e)}this.constructedStyleMutations.forEach(e=>{this.applyStyleSheetMutation(e)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(e=>{this.applyAdoptedStyleSheet(e)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(si.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});const r=new hi([],{speed:this.config.speed});this.service=Mi({events:e.map(e=>t&&t.unpackFn?t.unpackFn(e):e).sort((e,t)=>e.timestamp-t.timestamp),timer:r,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(e=>{this.emitter.emit(si.StateChange,{player:e})}),this.speedService=Ni(Si({id:"speed",context:{normalSpeed:-1,timer:r},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(e,t)=>{"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:bi({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe(e=>{this.emitter.emit(si.StateChange,{speed:e})}),this.mediaManager=new zi({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const i=this.service.state.context.events.find(e=>e.type===ti.Meta),s=this.service.state.context.events.find(e=>e.type===ti.FullSnapshot);if(i){const{width:e,height:t}=i.data;setTimeout(()=>{this.emitter.emit(si.Resize,{width:e,height:t})},0)}s&&setTimeout(()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=s,this.rebuildFullSnapshot(s),null==(e=this.iframe.contentWindow)||e.scrollTo(s.data.initialOffset))},1),this.service.state.context.events.find(Ui)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach(t=>{e[t],this.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.config.liveMode&&this.timer.updateLiveTime(),this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,n;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null==(n=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||n.classList.remove("rrweb-paused"),this.emitter.emit(si.Start)}pause(e){var t,n;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null==(n=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||n.classList.add("rrweb-paused"),this.emitter.emit(si.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(si.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(si.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;Ui(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:t}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Ze()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=function(e){var t;if(!e.root.isConnected)throw new Error(Ke);const n=e.root.ownerDocument.createElement("iframe");for(const[t,r]of Object.entries(e.iframeAttributes||{}))"sandbox"!==t&&n.setAttribute(t,r);n.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(n);const r=n.contentDocument;if(!r||!n.contentWindow)throw null==(t=n.parentNode)||t.removeChild(n),new Error(Ke);return Qe.add(r),n}({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(di(this.iframe.contentWindow,this.iframe.contentDocument),function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const n=[],r=new Set,i=(t,i)=>{if("DIALOG"===t.nodeName&&r.add(t),this.collectIframeAndAttachDocument(n,t),this.mediaManager.isSupportedMediaElement(t)){const{events:n}=this.service.state.context;this.mediaManager.addMediaElements(t,e.timestamp-n[0].timestamp,this.mirror)}for(const e of this.config.plugins||[])e.onBuild&&e.onBuild(t,{id:i,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),it(e.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),i(this.iframe.contentDocument,e.data.node.id);for(const{mutationInQueue:e,builtNode:t}of n)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter(t=>t!==e);const{documentElement:o,head:s}=this.iframe.contentDocument;this.insertStyleRules(o,s),r.forEach(e=>Pi(e)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(si.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var n;const r=(i=this.config.blockClass,[`.${i} { background: currentColor }`,"noscript { display: none !important; }"]).concat(this.config.insertStyleRules);var i;if(this.config.pauseAnimation&&r.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),r.length)if(this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,Ir(n,this.virtualDom.unserializedId)),e.insertBefore(n,t),n.rules.push({source:ni.StyleSheetRule,adds:r.map((e,t)=>({rule:e,index:t}))})}else{const i=document.createElement("style");e.insertBefore(i,t);for(let e=0;e<r.length;e++)null==(n=i.sheet)||n.insertRule(r[e],e)}}attachDocumentToIframe(e,t){const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],i=new Set,o=(e,o)=>{"DIALOG"===e.nodeName&&i.add(e),this.collectIframeAndAttachDocument(r,e);const s=n.getMeta(e);if((null==s?void 0:s.type)===ai.Element&&"HTML"===(null==s?void 0:s.tagName.toUpperCase())){const{documentElement:e,head:n}=t.contentDocument;this.insertStyleRules(e,n)}if(!this.usingVirtualDom)for(const t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:o,replayer:this})};rt(e.node,{doc:t.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(t.contentDocument,e.node.id);for(const{mutationInQueue:e,builtNode:t}of r)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter(t=>t!==e);i.forEach(e=>Pi(e))}collectIframeAndAttachDocument(e,t){if(qr(t,this.mirror)){const n=this.newDocumentQueue.find(e=>e.parentId===this.mirror.getId(t));n&&e.push({mutationInQueue:n,builtNode:t})}}waitForStylesheetLoad(){var e;const t=null==(e=this.iframe.contentDocument)?void 0:e.head;if(t){const e=new Set;let n,r=this.service.state;const i=()=>{r=this.service.state};this.emitter.on(si.Start,i),this.emitter.on(si.Pause,i);const o=()=>{this.emitter.off(si.Start,i),this.emitter.off(si.Pause,i)};t.querySelectorAll('link[rel="stylesheet"]').forEach(t=>{t.sheet||(e.add(t),t.addEventListener("load",()=>{e.delete(t),0===e.size&&-1!==n&&(r.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(si.LoadStylesheetEnd),n&&clearTimeout(n),o())}))}),e.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(si.LoadStylesheetStart),n=setTimeout(()=>{r.matches("playing")&&this.play(this.getCurrentTime()),n=-1,o()},this.config.loadTimeout))}}async preloadAllImages(){const e=[];for(const t of this.service.state.context.events)if(t.type===ti.IncrementalSnapshot&&t.data.source===ni.CanvasMutation){e.push(this.deserializeAndPreloadCanvasEvents(t.data,t));("commands"in t.data?t.data.commands:[t.data]).forEach(e=>{this.preloadImages(e,t)})}return Promise.all(e)}preloadImages(e,t){if("drawImage"===e.property&&"string"==typeof e.args[0]&&!this.imageMap.has(t)){const e=document.createElement("canvas"),t=e.getContext("2d"),n=null==t?void 0:t.createImageData(e.width,e.height);null==t||t.putImageData(n,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){const n={isUnchanged:!0};if("commands"in e){const r=await Promise.all(e.commands.map(async e=>{const t=await Promise.all(e.args.map(Ti(this.imageMap,null,n)));return{...e,args:t}}));!1===n.isUnchanged&&this.canvasEventMap.set(t,{...e,commands:r})}else{const r=await Promise.all(e.args.map(Ti(this.imageMap,null,n)));!1===n.isUnchanged&&this.canvasEventMap.set(t,{...e,args:r})}}}applyIncremental(e,t){var n,r,i;const{data:o}=e;switch(o.source){case ni.Mutation:try{this.applyMutation(o,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,o)}break;case ni.Drag:case ni.TouchMove:case ni.MouseMove:if(t){const e=o.positions[o.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:o}}else o.positions.forEach(n=>{const r={doAction:()=>{this.moveAndHover(n.x,n.y,n.id,t,o)},delay:n.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(r)}),this.timer.addAction({doAction(){},delay:e.delay-(null==(n=o.positions[0])?void 0:n.timeOffset)});break;case ni.MouseInteraction:{if(-1===o.id)break;const e=new Event(ri[o.type].toLowerCase()),n=this.mirror.getNode(o.id);if(!n)return this.debugNodeNotFound(o,o.id);this.emitter.emit(si.MouseInteraction,{type:o.type,target:n});const{triggerFocus:r}=this.config;switch(o.type){case ri.Blur:"blur"in n&&n.blur();break;case ri.Focus:r&&n.focus&&n.focus({preventScroll:!0});break;case ri.Click:case ri.TouchStart:case ri.TouchEnd:case ri.MouseDown:case ri.MouseUp:t?(o.type===ri.TouchStart?this.touchActive=!0:o.type===ri.TouchEnd&&(this.touchActive=!1),o.type===ri.MouseDown?this.lastMouseDownEvent=[n,e]:o.type===ri.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===ri.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,t,o),o.type===ri.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===ri.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===ri.TouchEnd?this.mouse.classList.remove("touch-active"):n.dispatchEvent(e));break;case ri.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:n.dispatchEvent(e)}break}case ni.Scroll:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.scrollData=o;break}this.applyScroll(o,t);break;case ni.ViewportResize:this.emitter.emit(si.Resize,{width:o.width,height:o.height});break;case ni.Input:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.inputData=o;break}this.applyInput(o);break;case ni.MediaInteraction:{const t=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);const n=t,{events:r}=this.service.state.context;this.mediaManager.mediaMutation({target:n,timeOffset:e.timestamp-r[0].timestamp,mutation:o});break}case ni.StyleSheetRule:case ni.StyleDeclaration:this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&(null==(r=this.virtualDom.mirror.getNode(o.id))||r.rules.push(o)):this.applyStyleSheetMutation(o);break;case ni.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const t=this.virtualDom.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);t.canvasMutations.push({event:e,mutation:o})}else{const t=this.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);Di({event:e,mutation:o,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case ni.Font:try{const e=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);null==(i=this.iframe.contentDocument)||i.fonts.add(e)}catch(e){this.warn(e)}break;case ni.Selection:if(t){this.lastSelectionData=o;break}this.applySelection(o);break;case ni.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,Tr(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const e in this.legacy_missingNodeRetryMap)try{const t=this.legacy_missingNodeRetryMap[e],n=Rr(t.node,this.virtualDom,this.mirror);n&&(t.node=n)}catch(e){this.warn(e)}const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(t=>!!n.getNode(t.id)||(this.warnNodeNotFound(e,t.id),!1)),e.removes.forEach(t=>{var r;const i=n.getNode(t.id);if(!i)return;let o=n.getNode(t.parentId);if(!o)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&Zr(o)&&(o=o.shadowRoot),n.removeNodeFromMap(i),o)try{o.removeChild(i),this.usingVirtualDom&&"#text"===i.nodeName&&"STYLE"===o.nodeName&&(null==(r=o.rules)?void 0:r.length)>0&&(o.rules=[])}catch(t){if(!(t instanceof DOMException))throw t;this.warn("parent could not remove child in mutation",o,i,e)}});const r={...this.legacy_missingNodeRetryMap},i=[],o=e=>{var t,o;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let s=n.getNode(e.parentId);if(!s)return e.node.type===ai.Document?this.newDocumentQueue.push(e):i.push(e);e.node.isShadow&&(Zr(s)||s.attachShadow({mode:"open"}),s=s.shadowRoot);let a=null,l=null;if(e.previousId&&(a=n.getNode(e.previousId)),e.nextId&&(l=n.getNode(e.nextId)),(e=>{let t=null;return e.nextId&&(t=n.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t})(e))return i.push(e);if(e.node.rootId&&!n.getNode(e.node.rootId))return;const c=e.node.rootId?n.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(qr(s,n))return void this.attachDocumentToIframe(e,s);const u=(e,t)=>{if(!this.usingVirtualDom){Pi(e);for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}},d=rt(e.node,{doc:c,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:u});if(-1===e.previousId||-1===e.nextId)return void(r[e.node.id]={node:d,mutation:e});const h=n.getMeta(s);if(h&&h.type===ai.Element&&e.node.type===ai.Text){const e=Array.isArray(s.childNodes)?s.childNodes:Array.from(s.childNodes);if("textarea"===h.tagName)for(const t of e)t.nodeType===s.TEXT_NODE&&s.removeChild(t);else if("style"===h.tagName&&1===e.length)for(const t of e)t.nodeType!==s.TEXT_NODE||n.hasNode(t)||(d.textContent=t.textContent,s.removeChild(t))}else if((null==h?void 0:h.type)===ai.Document){const n=s;e.node.type===ai.DocumentType&&(null==(t=n.childNodes[0])?void 0:t.nodeType)===Node.DOCUMENT_TYPE_NODE&&n.removeChild(n.childNodes[0]),"HTML"===d.nodeName&&n.documentElement&&n.removeChild(n.documentElement)}if(a&&a.nextSibling&&a.nextSibling.parentNode?s.insertBefore(d,a.nextSibling):l&&l.parentNode?s.contains(l)?s.insertBefore(d,l):s.insertBefore(d,null):s.appendChild(d),u(d,e.node.id),this.usingVirtualDom&&"#text"===d.nodeName&&"STYLE"===s.nodeName&&(null==(o=s.rules)?void 0:o.length)>0&&(s.rules=[]),qr(d,this.mirror)){const e=this.mirror.getId(d),t=this.newDocumentQueue.find(t=>t.parentId===e);t&&(this.attachDocumentToIframe(t,d),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==t))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(r,s,d,e)};e.adds.forEach(e=>{o(e)});const s=Date.now();for(;i.length;){const e=Gr(i);if(i.length=0,Date.now()-s>500){this.warn("Timeout in the loop, please check the resolve tree data:",e);break}for(const t of e){n.getNode(t.value.parentId)?Jr(t,e=>{o(e)}):this.debug("Drop resolve tree since there is no parent for the root node.",t)}}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),function(e){const t=new Set,n=[];for(let r=e.length;r--;){const i=e[r];t.has(i.id)||(n.push(i),t.add(i.id))}return n}(e.texts).forEach(t=>{var r;const i=n.getNode(t.id);if(!i){if(e.removes.find(e=>e.id===t.id))return;return this.warnNodeNotFound(e,t.id)}const o=i.parentElement;if(t.value&&o&&"STYLE"===o.tagName?i.textContent=Xe(t.value,this.cache):i.textContent=t.value,this.usingVirtualDom){const e=i.parentNode;(null==(r=null==e?void 0:e.rules)?void 0:r.length)>0&&(e.rules=[])}}),e.attributes.forEach(t=>{var r;const i=n.getNode(t.id);if(!i){if(e.removes.find(e=>e.id===t.id))return;return this.warnNodeNotFound(e,t.id)}for(const e in t.attributes)if("string"==typeof e){const o=t.attributes[e];if(null===o)i.removeAttribute(e),"open"===e&&Li(i,t);else if("string"==typeof o)try{if("_cssText"===e&&("LINK"===i.nodeName||"STYLE"===i.nodeName))try{const e=n.getMeta(i),r=rt({...e,attributes:{...e.attributes,...t.attributes}},{doc:i.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(e.attributes,t.attributes);const o=i.nextSibling,s=i.parentNode;if(r&&s){s.removeChild(i),s.insertBefore(r,o),n.replace(t.id,r);break}}catch(e){}if("value"===e&&"TEXTAREA"===i.nodeName){const e=i;e.childNodes.forEach(t=>e.removeChild(t));const t=null==(r=i.ownerDocument)?void 0:r.createTextNode(o);t&&e.appendChild(t)}else i.setAttribute(e,o);"rr_open_mode"===e&&"DIALOG"===i.nodeName&&Pi(i,t)}catch(e){this.warn("An error occurred may due to the checkout feature.",e)}else if("style"===e){const e=o,t=i;for(const n in e)if(!1===e[n])t.style.removeProperty(n);else if(e[n]instanceof Array){const r=e[n];t.style.setProperty(n,r[0],r[1])}else{const r=e[n];t.style.setProperty(n,r)}}}})}applyScroll(e,t){var n,r;const i=this.mirror.getNode(e.id);if(!i)return this.debugNodeNotFound(e,e.id);const o=this.mirror.getMeta(i);if(i===this.iframe.contentDocument)null==(n=this.iframe.contentWindow)||n.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((null==o?void 0:o.type)===ai.Document)null==(r=i.defaultView)||r.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{i.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch(e){}}applyInput(e){const t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}}applySelection(e){try{const t=new Set,n=e.ranges.map(({start:e,startOffset:n,end:r,endOffset:i})=>{const o=this.mirror.getNode(e),s=this.mirror.getNode(r);if(!o||!s)return;const a=new Range;a.setStart(o,n),a.setEnd(s,i);const l=o.ownerDocument,c=null==l?void 0:l.getSelection();return c&&t.add(c),{range:a,selection:c}});t.forEach(e=>e.removeAllRanges()),n.forEach(e=>{var t;return e&&(null==(t=e.selection)?void 0:t.addRange(e.range))})}catch(e){}}applyStyleSheetMutation(e){var t;let n=null;e.styleId?n=this.styleMirror.getStyle(e.styleId):e.id&&(n=(null==(t=this.mirror.getNode(e.id))?void 0:t.sheet)||null),n&&(e.source===ni.StyleSheetRule?this.applyStyleSheetRule(e,n):e.source===ni.StyleDeclaration&&this.applyStyleDeclaration(e,n))}applyStyleSheetRule(e,t){var n,r,i,o;if(null==(n=e.adds)||n.forEach(({rule:e,index:n})=>{try{if(Array.isArray(n)){const{positions:r,index:i}=Qr(n),o=Kr(t.cssRules,r);null==o||o.insertRule(e,i)}else{const r=void 0===n?void 0:Math.min(n,t.cssRules.length);null==t||t.insertRule(e,r)}}catch(e){}}),null==(r=e.removes)||r.forEach(({index:e})=>{try{if(Array.isArray(e)){const{positions:n,index:r}=Qr(e),i=Kr(t.cssRules,n);null==i||i.deleteRule(r||0)}else null==t||t.deleteRule(e)}catch(e){}}),"string"==typeof e.replace)try{null==(i=t.replace)||i.call(t,e.replace)}catch(e){}if("string"==typeof e.replaceSync)try{null==(o=t.replaceSync)||o.call(t,e.replaceSync)}catch(e){}}applyStyleDeclaration(e,t){if(e.set){const n=Kr(t.rules,e.index);(null==n?void 0:n.style)&&n.style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){const n=Kr(t.rules,e.index);(null==n?void 0:n.style)&&n.style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;const n=this.mirror.getNode(e.id);if(!n)return;null==(t=e.styles)||t.forEach(e=>{var t;let r=null,i=null;if(Zr(n)?i=(null==(t=n.ownerDocument)?void 0:t.defaultView)||null:"#document"===n.nodeName&&(i=n.defaultView),i)try{r=new i.CSSStyleSheet,this.styleMirror.add(r,e.styleId),this.applyStyleSheetRule({source:ni.StyleSheetRule,adds:e.rules},r)}catch(e){}});let r=0;const i=(e,t)=>{const n=t.map(e=>this.styleMirror.getStyle(e)).filter(e=>null!==e);Zr(e)?e.shadowRoot.adoptedStyleSheets=n:"#document"===e.nodeName&&(e.adoptedStyleSheets=n),n.length!==t.length&&r<10&&(setTimeout(()=>i(e,t),0+100*r),r++)};i(n,e.styleIds)}legacy_resolveMissingNode(e,t,n,r){const{previousId:i,nextId:o}=r,s=i&&e[i],a=o&&e[o];if(s){const{node:r,mutation:i}=s;t.insertBefore(r,n),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}if(a){const{node:r,mutation:i}=a;t.insertBefore(r,n.nextSibling),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}}moveAndHover(e,t,n,r,i){const o=this.mirror.getNode(n);if(!o)return this.debugNodeNotFound(i,n);const s=Xr(o,this.iframe),a=e*s.absoluteScale+s.x,l=t*s.absoluteScale+s.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${l}px`,r||this.drawMouseTail({x:a,y:l}),this.hoverElements(o)}drawMouseTail(e){if(!this.mouseTail)return;const{lineCap:t,lineWidth:n,strokeStyle:r,duration:i}=!0===this.config.mouseTail?Bi:Object.assign({},Bi,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const e=this.mouseTail.getContext("2d");e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=n,e.lineCap=t,e.strokeStyle=r,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(t=>e.lineTo(t.x,t.y)),e.stroke())};this.tailPositions.push(e),o(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(t=>t!==e),o()},i/this.speedService.state.context.timer.speed)}hoverElements(e){var t;null==(t=this.lastHoveredRootNode||this.iframe.contentDocument)||t.querySelectorAll(".\\:hover").forEach(e=>{e.classList.remove(":hover")}),this.lastHoveredRootNode=e.getRootNode();let n=e;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(e){return e.type===ti.IncrementalSnapshot&&(e.data.source>ni.Mutation&&e.data.source<=ni.Input)}backToNormal(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(si.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(ji,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(ji,...e)}}},37700(e,t,n){"use strict";n.d(t,{T:()=>_});var r=n(14041),i=n(43144);function o(e,t,n){let r,i=n.initialDeps??[];function o(){var o,s,a,l;let c;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(c=Date.now());const u=e();if(!(u.length!==i.length||u.some((e,t)=>i[t]!==e)))return r;let d;if(i=u,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(d=Date.now()),r=t(...u),n.key&&(null==(a=n.debug)?void 0:a.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-d))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}return o.updateDeps=e=>{i=e},o}function s(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const a=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}};const l=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},c=e=>e,u=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},d=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(l(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(l(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},h={passive:!0},p="undefined"==typeof window||"onscrollend"in window,m=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&p?()=>{}:a(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=r=>()=>{const{horizontal:s,isRtl:a}=e.options;i=s?n.scrollLeft*(a?-1:1):n.scrollTop,o(),t(i,r)},l=s(!0),c=s(!1);c(),n.addEventListener("scroll",l,h);const u=e.options.useScrollendEvent&&p;return u&&n.addEventListener("scrollend",c,h),()=>{n.removeEventListener("scroll",l),u&&n.removeEventListener("scrollend",c)}},f=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},g=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const s=e+t;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:n})};class v{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:c,rangeExtractor:u,onChange:()=>{},measureElement:f,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=o(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let i=t-1;i>=0;i--){const t=e[i];if(n.has(t.lane))continue;const o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=o(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i}),{key:!1}),this.getMeasurements=o(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const a=this.measurementsCache.slice(0,s);for(let i=s;i<e;i++){const e=r(i),s=1===this.options.lanes?a[i-1]:this.getFurthestMeasurement(a,i),l=s?s.end+this.options.gap:t+n,c=o.get(e),u="number"==typeof c?c:this.options.estimateSize(i),d=l+u,h=s?s.lane:i%this.options.lanes;a[i]={index:i,start:l,size:u,end:d,key:e,lane:h}}return this.measurementsCache=a,a},{key:!1,debug:()=>this.options.debug}),this.calculateRange=o(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,o=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:i};let s=y(0,i,o,n),a=s;if(1===r)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const o=Array(r).fill(0);for(;a<i&&o.some(e=>e<n+t);){const t=e[a];o[t.lane]=t.end,a++}const l=Array(r).fill(n+t);for(;s>=0&&l.some(e=>e>=n);){const t=e[s];l[t.lane]=t.start,s--}s=Math.max(0,s-s%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:s,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=o(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>null===r||null===i?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const i=r.key,o=this.elementsCache.get(i);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=o(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,i=e.length;r<i;r++){const i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return s(t[y(0,t.length-1,e=>s(t[e]).start,e)])},this.getOffsetForAlignment=(e,t,n=0)=>{const r=this.getSize(),i=this.getScrollOffset();"auto"===t&&(t=e>=i+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const o=this.getTotalSize()-r;return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),i=this.getScrollOffset();if("auto"===t)if(n.end>=i+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}const o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const r=this.getOffsetForIndex(e,t);if(!r)return;const[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{this.scrollToIndexTimeoutId=null;if(this.elementsCache.has(this.options.getItemKey(e))){const[i]=s(this.getOffsetForIndex(e,o)),a=this.getScrollOffset();t=i,r=a,Math.abs(t-r)<=1||this.scrollToIndex(e,{align:o,behavior:n})}else this.scrollToIndex(e,{align:o,behavior:n});var t,r}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const y=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0};const b="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function w(e){const t=r.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var o;r?(0,i.flushSync)(t):t(),null==(o=e.onChange)||o.call(e,n,r)}},[o]=r.useState(()=>new v(n));return o.setOptions(n),b(()=>o._didMount(),[]),b(()=>o._willUpdate()),o}function _(e){return w({observeElementRect:d,observeElementOffset:m,scrollToFn:g,...e})}},3461(e,t,n){"use strict";let r;n.d(t,{B6:()=>M,BV:()=>We,C5:()=>Be,I9:()=>Et,Zp:()=>be,g:()=>we,qh:()=>Ue,zy:()=>ge});var i=n(14041),o=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,s=/^[\\/]{2}/;function a(e,t){return t+e.replace(/\\/g,"/")}var l="popstate";function c(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u(e={}){return v(function(e,t){let{pathname:n="/",search:r="",hash:i=""}=g(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),m("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:f(t))},function(e,t){h("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function d(e,t){if(!1===e||null==e)throw new Error(t)}function h(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function m(e,t,n=null,r,i){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:i}}function f({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function g(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a="POP",u=null,d=h();function h(){return(s.state||{idx:null}).idx}function f(){a="POP";let e=h(),t=null==e?null:e-d;d=e,u&&u({action:a,location:v.location,delta:t})}function g(e){return y(i,e)}null==d&&(d=0,s.replaceState({...s.state,idx:d},""));let v={get action(){return a},get location(){return e(i,s)},listen(e){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(l,f),u=e,()=>{i.removeEventListener(l,f),u=null}},createHref:e=>t(i,e),createURL:g,encodeLocation(e){let t=g(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a="PUSH";let r=c(e)?e:m(v.location,e,t);n&&n(r,e),d=h()+1;let l=p(r,d),f=v.createHref(r.mask||r);try{s.pushState(l,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(f)}o&&u&&u({action:a,location:v.location,delta:1})},replace:function(e,t){a="REPLACE";let r=c(e)?e:m(v.location,e,t);n&&n(r,e),d=h();let i=p(r,d),l=v.createHref(r.mask||r);s.replaceState(i,"",l),o&&u&&u({action:a,location:v.location,delta:0})},go:e=>s.go(e)};return v}function y(e,t,n=!1){let r="http://localhost";e&&(r="null"!==e.location.origin?e.location.origin:e.location.href),d(r,"No window.location.(origin|href) available to create URL");let i="string"==typeof t?t:f(t);return i=i.replace(/ $/,"%20"),!n&&s.test(i)&&(i=r+i),new URL(i,r)}new WeakMap;function b(e,t,n="/"){return w(e,t,n,!1)}function w(e,t,n,r,i){let o=A(("string"==typeof t?g(t):t).pathname||"/",n);if(null==o)return null;let s=i??_(e),a=null,l=T(o);for(let e=0;null==a&&e<s.length;++e)a=N(s[e],l,r);return a}function _(e){let t=x(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function x(e,t=[],n=[],r="",i=!1){let o=(e,o,s=i,a)=>{let l={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&s)return;d(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let c=j([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(d(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),x(e.children,t,u,c,s)),(null!=e.path||e.index)&&t.push({path:c,score:k(c,e.index),routesMeta:u.map((e,t)=>{let[n,r]=R(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of E(e.path))o(e,t,!0,n);else o(e,t)}),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=E(r.join("/")),a=[];return a.push(...s.map(e=>""===e?o:[o,e].join("/"))),i&&a.push(...s),a.map(t=>e.startsWith("/")&&""===t?"/":t)}var C=/^:[\w-]+$/,S=e=>"*"===e;function k(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=-2),t&&(r+=2),n.filter(e=>!S(e)).reduce((e,t)=>e+(C.test(t)?3:""===t?1:10),r)}function N(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u={path:a.relativePath,caseSensitive:a.caseSensitive,end:l},d=a.matcher&&a.compiledParams?O(u,c,a.matcher,a.compiledParams):M(u,c),h=a.route;if(!d&&l&&n&&!r[r.length-1].route.index&&(d=M({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!d)return null;Object.assign(i,d.params),s.push({params:i,pathname:j([o,d.pathname]),pathnameBase:U(j([o,d.pathnameBase])),route:h}),"/"!==d.pathnameBase&&(o=j([o,d.pathnameBase]))}return s}function M(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=R(e.path,e.caseSensitive,e.end);return O(e,t,n,r)}function O(e,t,n,r){let i=t.match(n);if(!i)return null;let o=i[0],s=B(o,1),a=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=a[r]||"";s=B(o.slice(0,o.length-e.length),1)}const i=a[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:s,pattern:e}}function R(e,t=!1,n=!0){h("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(i+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function T(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return h(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function A(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function I(e,t){let n=B(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function D(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function z(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function P(e){let t=z(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function L(e,t,n,r=!1){let i;"string"==typeof e?i=g(e):(i={...e},d(!i.pathname||!i.pathname.includes("?"),D("?","pathname","search",i)),d(!i.pathname||!i.pathname.includes("#"),D("#","pathname","hash",i)),d(!i.search||!i.search.includes("#"),D("#","search","hash",i)));let o,s=""===e||""===i.pathname,a=s?"/":i.pathname;if(null==a)o=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t="/"){let n,{pathname:r,search:i="",hash:o=""}="string"==typeof e?g(e):e;return r?(r=F(r),n=r.startsWith("/")||r.startsWith("\\")?I(r.substring(1),"/"):I(r,t)):n=t,{pathname:n,search:$(i),hash:W(o)}}(i,o),c=a&&"/"!==a&&a.endsWith("/"),u=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var F=e=>e.replace(/[\\/]{2,}/g,"/"),j=e=>F(e.join("/"));function B(e,t=0){let n=e.length;for(;n>t&&47===e.charCodeAt(n-1);)n--;return n===e.length?e:e.slice(0,n)}var U=e=>B(e).replace(/^\/*/,"/"),$=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var H=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function V(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Y(e){let t=e.map(e=>e.route.path).filter(Boolean);return j(t)||"/"}var G="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function J(e,t){let n=e;if("string"!=typeof n||!o.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(G)try{let e=new URL(window.location.href),r=s.test(n)?new URL(a(n,e.protocol)):new URL(n),o=A(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:i=!0}catch(e){h(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var q=new URL("http://localhost");function X(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),q)}catch{return q}}function Z(e,t){return e.origin===t.origin&&("null"!==e.origin||e.protocol===t.protocol&&e.host===t.host)}function K(e,t,n,r){let i=null;try{i=null==e?null:new URL(e,n)}catch{}let o=new URL(t,n),s=null!=i&&!Z(i,n),a=!Z(o,n);if("reject"===r){if(s||a)throw new Error("External navigation is not allowed")}else if(a&&(null==i||!function(e,t){if(e.startsWith("//"))return!0;let n=t.protocol.toLowerCase();return!!e.toLowerCase().startsWith(n)&&(""===t.host||e.slice(n.length).startsWith("//"))}(e,i)||!Z(i,o)))throw new Error("External navigation is not allowed")}var Q=["POST","PUT","PATCH","DELETE"],ee=(new Set(Q),["GET",...Q]);new Set(ee),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var te=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function ne(e){try{return te.includes(new URL(e).protocol)}catch{return!1}}var re=i.createContext(null);re.displayName="DataRouter";var ie=i.createContext(null);ie.displayName="DataRouterState";var oe=i.createContext(!1);function se(){return i.useContext(oe)}var ae=i.createContext({isTransitioning:!1});ae.displayName="ViewTransition";var le=i.createContext(new Map);le.displayName="Fetchers";var ce=i.createContext(null);ce.displayName="Await";var ue=i.createContext(null);ue.displayName="Navigation";var de=i.createContext(null);de.displayName="Location";var he=i.createContext({outlet:null,matches:[],isDataRoute:!1});he.displayName="Route";var pe=i.createContext(null);pe.displayName="RouteError";var me="REACT_ROUTER_ERROR";function fe(){return null!=i.useContext(de)}function ge(){return d(fe(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(de).location}var ve="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ye(e){i.useContext(ue).static||i.useLayoutEffect(e)}function be(){let{isDataRoute:e}=i.useContext(he);return e?function(){let{router:e}=Te("useNavigate"),t=Ie("useNavigate"),n=i.useRef(!1);return ye(()=>{n.current=!0}),i.useCallback(async(r,i={})=>{h(n.current,ve),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}():function(){d(fe(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(re),{basename:t,navigator:n}=i.useContext(ue),{matches:r}=i.useContext(he),{pathname:o}=ge(),s=JSON.stringify(P(r)),a=i.useRef(!1);return ye(()=>{a.current=!0}),i.useCallback((r,i={})=>{if(h(a.current,ve),!a.current)return;if("number"==typeof r)return void n.go(r);let l=L(r,JSON.parse(s),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:j([t,l.pathname])),K("string"==typeof r?r:f(r),n.createHref(l),X(n),"reject"),(i.replace?n.replace:n.push)(l,i.state,i)},[t,n,s,o,e])}()}i.createContext(null);function we(){let{matches:e}=i.useContext(he),t=e[e.length-1];return t?.params??{}}function _e(e,{relative:t}={}){let{matches:n}=i.useContext(he),{pathname:r}=ge(),o=JSON.stringify(P(n));return i.useMemo(()=>L(e,JSON.parse(o),r,"path"===t),[e,o,r,t])}function xe(e,t,n){d(fe(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=i.useContext(ue),{matches:o}=i.useContext(he),s=o[o.length-1],a=s?s.params:{},l=s?s.pathname:"/",c=s?s.pathnameBase:"/",u=s&&s.route;{let e=u&&u.path||"";Pe(l,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,m=ge();if(t){let e="string"==typeof t?g(t):t;d("/"===c||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=m;let f=p.pathname||"/",v=f;if("/"!==c){let e=c.replace(/^\//,"").split("/");v="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):b(e,{pathname:v});h(u||null!=y,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),h(null==y||void 0!==y[y.length-1].route.element||void 0!==y[y.length-1].route.Component||void 0!==y[y.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=Oe(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:j([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:j([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),o,n);return t&&w?i.createElement(de.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},w):w}function Ee(){let e=De(),t=V(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:s},"ErrorBoundary")," or"," ",i.createElement("code",{style:s},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:o},n):null,a)}var Ce=i.createElement(Ee,null),Se=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${me}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new H(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?i.createElement(he.Provider,{value:this.props.routeContext},i.createElement(pe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement(Ne,{error:e},t):t}};Se.contextType=oe;var ke=new WeakMap;function Ne({children:e,error:t}){let{basename:n,navigator:r}=i.useContext(ue);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${me}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let o=ke.get(t);if(o)throw o;let s=J(e.location,n),a=s.absoluteURL||s.to;if(K(e.location,a,X(r),"allow-explicit"),ne(a))throw new Error("Invalid redirect location");if(G&&!ke.get(t)){if(!s.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:e.replace}));throw ke.set(t,n),n}window.location.href=a}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a}`})}}return e}function Me({routeContext:e,match:t,children:n}){let r=i.useContext(re);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement(he.Provider,{value:e},n)}function Oe(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let o=e,s=r?.errors;if(null!=s){let e=o.findIndex(e=>e.route.id&&void 0!==s?.[e.route.id]);d(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,e+1))}let a=!1,l=-1;if(n&&r){a=r.renderFallback;for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:i}=r,s=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!i||void 0===i[t.route.id]);if(t.route.lazy||s){n.isStatic&&(a=!0),o=l>=0?o.slice(0,l+1):[o[0]];break}}}}let c=n?.onError,u=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Y(r.matches),errorInfo:t})}:void 0;return o.reduceRight((e,n,c)=>{let d,h=!1,p=null,m=null;r&&(d=s&&n.route.id?s[n.route.id]:void 0,p=n.route.errorElement||Ce,a&&(l<0&&0===c?(Pe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,m=null):l===c&&(h=!0,m=n.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,c+1)),g=()=>{let t;return t=d?p:h?m:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(Me,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===c)?i.createElement(Se,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:u}):g()},null)}function Re(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Te(e){let t=i.useContext(re);return d(t,Re(e)),t}function Ae(e){let t=i.useContext(ie);return d(t,Re(e)),t}function Ie(e){let t=function(e){let t=i.useContext(he);return d(t,Re(e)),t}(e),n=t.matches[t.matches.length-1];return d(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function De(){let e=i.useContext(pe),t=Ae("useRouteError"),n=Ie("useRouteError");return void 0!==e?e:t.errors?.[n]}var ze={};function Pe(e,t,n){t||ze[e]||(ze[e]=!0,h(!1,n))}var Le={};function Fe(e,t){e||Le[t]||(Le[t]=!0,console.warn(t))}(r||(r=n.t(i,2))).useOptimistic;i.memo(je);function je({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:o}){return xe(e,void 0,{manifest:t,state:r,isStatic:i,onError:o,future:n})}function Be({to:e,replace:t,state:n,relative:r}){d(fe(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:s}=i.useContext(ue);h(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=i.useContext(he),{pathname:l}=ge(),c=be(),u=L(e,P(a),l,"path"===r);K("string"==typeof e?e:f(e),s.createHref(u),X(s),"reject");let p=JSON.stringify(u);return i.useEffect(()=>{c(JSON.parse(p),{replace:t,state:n,relative:r})},[c,p,r,t,n]),null}function Ue(e){d(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function $e({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:s=!1,useTransitions:a}){d(!fe(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=i.useMemo(()=>({basename:l,navigator:o,static:s,useTransitions:a,future:{}}),[l,o,s,a]);"string"==typeof n&&(n=g(n));let{pathname:u="/",search:p="",hash:m="",state:f=null,key:v="default",mask:y}=n,b=i.useMemo(()=>{let e=A(u,l);return null==e?null:{location:{pathname:e,search:p,hash:m,state:f,key:v,mask:y},navigationType:r}},[l,u,p,m,f,v,r,y]);return h(null!=b,`<Router basename="${l}"> is not able to match the URL "${u}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==b?null:i.createElement(ue.Provider,{value:c},i.createElement(de.Provider,{children:t,value:b}))}function We({children:e,location:t}){return xe(He(e),t)}i.Component;function He(e,t=[]){let n=[];return i.Children.forEach(e,(e,r)=>{if(!i.isValidElement(e))return;let o=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,He(e.props.children,o));d(e.type===Ue,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),d(!e.props.index||!e.props.children,"An index route cannot have child routes.");let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=He(e.props.children,o)),n.push(s)}),n}var Ve="get",Ye="application/x-www-form-urlencoded";function Ge(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Je=null;var qe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xe(e){return null==e||qe.has(e)?e:(h(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ye}"`),null)}function Ze(e,t){let n,r,i,o,s;if(Ge(a=e)&&"form"===a.tagName.toLowerCase()){let s=e.getAttribute("action");r=s?A(s,t):null,n=e.getAttribute("method")||Ve,i=Xe(e.getAttribute("enctype"))||Ye,o=new FormData(e)}else if(function(e){return Ge(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ge(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?A(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||Ve,i=Xe(e.getAttribute("formenctype"))||Xe(s.getAttribute("enctype"))||Ye,o=new FormData(s,e),!function(){if(null===Je)try{new FormData(document.createElement("form"),0),Je=!1}catch(e){Je=!0}return Je}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(Ge(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ve,r=null,i=Ye,s=e}var a;return o&&"text/plain"===i&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ke(e,t){if(!1===e||null==e)throw new Error(t)}Symbol("SingleFetchRedirect");function Qe(e,t,n,r){let i="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:"/"===i.pathname?i.pathname=`_root.${r}`:t&&"/"===A(i.pathname,t)?i.pathname=`${B(t)}/_root.${r}`:i.pathname=`${B(i.pathname)}.${r}`,i}async function et(e,t){if(e.id in t)return t[e.id];try{let n=await(import(e.module));return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tt(e){return null!=e&&"string"==typeof e.page}function nt(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function rt(e,t,n,r,i,o){let s=(e,t)=>!n[t]||e.route.id!==n[t].route.id,a=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>s(e,t)||a(e,t)):"data"===o?t.filter((t,o)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(s(t,o)||a(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function it(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1),[...new Set(r)];var r}function ot(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!tt(i)&&"script"===i.as&&i.href&&r.has(i.href))return e;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(i));return n.has(o)||(n.add(o),e.push({key:o,link:i})),e},[])}function st(e,t){return"lazy"===e.mode&&!0===t}function at(){let e=i.useContext(re);return Ke(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function lt(){let e=i.useContext(ie);return Ke(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ct=i.createContext(void 0);function ut(){let e=i.useContext(ct);return Ke(e,"You must render this element inside a <HydratedRouter> element"),e}function dt(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ht(e,t,n){if(n&&!vt)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}ct.displayName="FrameworkContext";function pt({page:e,...t}){let n=se(),{nonce:r}=ut(),{router:o}=at(),s=i.useMemo(()=>b(o.routes,e,o.basename),[o.routes,e,o.basename]);return s?(null==t.nonce&&r&&(t={...t,nonce:r}),n?i.createElement(ft,{page:e,matches:s,...t}):i.createElement(gt,{page:e,matches:s,...t})):null}function mt(e){let{manifest:t,routeModules:n}=ut(),[r,o]=i.useState([]);return i.useEffect(()=>{let r=!1;return async function(e,t,n){return ot((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await et(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(nt).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||o(e)}),()=>{r=!0}},[e,t,n]),r}function ft({page:e,matches:t,...n}){let r=ge(),{future:o}=ut(),{basename:s}=at(),a=i.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Qe(e,s,o.v8_trailingSlashAwareDataRequests,"rsc"),i=!1,a=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set("_routes",a.join(",")),[n.pathname+n.search]},[s,o.v8_trailingSlashAwareDataRequests,e,r,t]);return i.createElement(i.Fragment,null,a.map(e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function gt({page:e,matches:t,...n}){let r=ge(),{future:o,manifest:s,routeModules:a}=ut(),{basename:l}=at(),{loaderData:c,matches:u}=lt(),d=i.useMemo(()=>rt(e,t,u,s,r,"data"),[e,t,u,s,r]),h=i.useMemo(()=>rt(e,t,u,s,r,"assets"),[e,t,u,s,r]),p=i.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,i=!1;if(t.forEach(e=>{let t=s.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in c&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?i=!0:n.add(e.route.id))}),0===n.size)return[];let u=Qe(e,l,o.v8_trailingSlashAwareDataRequests,"data");return i&&n.size>0&&u.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[l,o.v8_trailingSlashAwareDataRequests,c,r,s,d,t,e,a]),m=i.useMemo(()=>it(h,s),[h,s]),f=mt(h);return i.createElement(i.Fragment,null,p.map(e=>i.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),m.map(e=>i.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),f.map(({key:e,link:t})=>i.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}var vt=!1;function yt(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:o,routeDiscovery:s,ssr:a,nonce:l}=ut(),{router:c,static:u,staticContext:d}=at(),{matches:h}=lt(),p=se(),m=st(s,a);null==e.nonce&&l&&(e={...e,nonce:l}),o&&(o.didRenderScripts=!0);let f=ht(h,null,r);i.useEffect(()=>{vt=!0},[]);let g=i.useMemo(()=>{if(p)return null;let r=d?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",o=u?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${m?"":`import ${JSON.stringify(t.url)}`};\n${f.map((e,n)=>{let r=`route${n}`,i=t.routes[e.route.id];Ke(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:o,clientLoaderModule:s,clientMiddlewareModule:a,hydrateFallbackModule:l,module:c}=i,u=[...o?[{module:o,varName:`${r}_clientAction`}]:[],...s?[{module:s,varName:`${r}_clientLoader`}]:[],...a?[{module:a,varName:`${r}_clientMiddleware`}]:[],...l?[{module:l,varName:`${r}_HydrateFallback`}]:[],{module:c,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(c)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${r} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n ${m?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),i=n.state.location.pathname.split("/").filter(Boolean),o=["/"];for(i.pop();i.length>0;)o.push(`/${i.join("/")}`),i.pop();o.forEach(e=>{let t=w(n.routes,e,n.basename||"/",!1,n.branches);t&&t.forEach(e=>r.add(e.route.id))});let s=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});return{...t,routes:s,sri:!!e||void 0}}(t,c),null,2)};`:""}\n window.__reactRouterRouteModules = {${f.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return i.createElement(i.Fragment,null,i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r},type:void 0}),i.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:"module",async:!0}))},[]),v=vt||p?[]:[...new Set(t.entry.imports.concat(it(f,t,{includeHydrateFallback:!0})))],y="object"==typeof t.sri?t.sri:{};return Fe(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),vt||p?null:i.createElement(i.Fragment,null,"object"==typeof t.sri?i.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}}):null,m?null:i.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:y[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),i.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:y[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),v.map(t=>i.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],nonce:e.nonce,suppressHydrationWarning:!0})),g)}function bt(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}i.Component;function wt({error:e,isOutsideRemixApp:t}){let{nonce:n}=ut();console.error(e);let r,o=i.createElement("script",{nonce:n,dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(V(e))return i.createElement(_t,{title:"Unhandled Thrown Response!"},i.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),o);if(e instanceof Error)r=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);r=new Error(t)}return i.createElement(_t,{title:"Application Error!",isOutsideRemixApp:t},i.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),i.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),o)}function _t({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:o}=ut();return o.root?.Layout&&!n?r:i.createElement("html",{lang:"en"},i.createElement("head",null,i.createElement("meta",{charSet:"utf-8"}),i.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),i.createElement("title",null,e)),i.createElement("body",null,i.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?i.createElement(yt,null):null)))}var xt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{xt&&(window.__reactRouterVersion="7.18.5")}catch(e){}function Et({basename:e,children:t,useTransitions:n,window:r}){let o=i.useRef();null==o.current&&(o.current=u({window:r,v5Compat:!0}));let s=o.current,[a,l]=i.useState({action:s.action,location:s.location}),c=i.useCallback(e=>{!1===n?l(e):i.startTransition(()=>l(e))},[n]);return i.useLayoutEffect(()=>s.listen(c),[s,c]),i.createElement($e,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:s,useTransitions:n})}var Ct=i.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:s,replace:a,mask:l,state:c,target:u,to:h,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:g,...v},y){let{basename:b,navigator:w,useTransitions:_}=i.useContext(ue),x="string"==typeof h&&o.test(h),E=J(h,b),C=function(e,{relative:t}={}){d(fe(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=i.useContext(ue),{hash:o,pathname:s,search:a}=_e(e,{relative:t}),l=s;return"/"!==n&&(l="/"===s?n:j([n,s])),r.createHref({pathname:l,search:a,hash:o})}(h=E.to,{relative:r}),S=ge(),k=null;if(l){let e=L(l,[],S.mask?S.mask.pathname:"/",!0);"/"!==b&&(e.pathname="/"===e.pathname?b:j([b,e.pathname])),k=w.createHref(e)}let[N,M,O]=function(e,t){let n=i.useContext(ct),[r,o]=i.useState(!1),[s,a]=i.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:h}=t,p=i.useRef(null);i.useEffect(()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{a(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),i.useEffect(()=>{if(r){let e=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{o(!0)},f=()=>{o(!1),a(!1)};return n?"intent"!==e?[s,p,{}]:[s,p,{onFocus:dt(l,m),onBlur:dt(c,f),onMouseEnter:dt(u,m),onMouseLeave:dt(d,f),onTouchStart:dt(h,m)}]:[!1,p,{}]}(n,v),R=function(e,{target:t,replace:n,mask:r,state:o,preventScrollReset:s,relative:a,viewTransition:l,defaultShouldRevalidate:c,useTransitions:u}={}){let d=be(),h=ge(),p=_e(e,{relative:a});return i.useCallback(m=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(m,t)){m.preventDefault();let t=void 0!==n?n:f(h)===f(p),g=()=>d(e,{replace:t,mask:r,state:o,preventScrollReset:s,relative:a,viewTransition:l,defaultShouldRevalidate:c});u?i.startTransition(()=>g()):g()}},[h,d,p,n,r,o,t,e,s,a,l,c,u])}(h,{replace:a,mask:l,state:c,target:u,preventScrollReset:p,relative:r,viewTransition:m,defaultShouldRevalidate:g,useTransitions:_});let T=!(E.isExternal||s),A=i.createElement("a",{...v,...O,href:(T?k:void 0)||E.absoluteURL||C,onClick:T?function(t){e&&e(t),t.defaultPrevented||R(t)}:e,ref:bt(y,M),target:u,"data-discover":x||"render"!==t?void 0:"true"});return N&&!x?i.createElement(i.Fragment,null,A,i.createElement(pt,{page:C})):A});Ct.displayName="Link",i.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:o,to:s,viewTransition:a,children:l,...c},u){let h=_e(s,{relative:c.relative}),p=ge(),m=i.useContext(ie),{navigator:f,basename:g}=i.useContext(ue),v=null!=m&&function(e,{relative:t}={}){let n=i.useContext(ae);d(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Nt("useViewTransitionState"),o=_e(e,{relative:t});if(!n.isTransitioning)return!1;let s=A(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=A(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=M(o.pathname,a)||null!=M(o.pathname,s)}(h)&&!0===a,y=f.encodeLocation?f.encodeLocation(h).pathname:h.pathname,b=p.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=A(w,g)||w);const _="/"!==y&&y.endsWith("/")?y.length-1:y.length;let x,E=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(_),C=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),S={isActive:E,isPending:C,isTransitioning:v},k=E?e:void 0;x="function"==typeof n?n(S):[n,E?"active":null,C?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let N="function"==typeof o?o(S):o;return i.createElement(Ct,{...c,"aria-current":k,className:x,ref:u,style:N,to:s,viewTransition:a},"function"==typeof l?l(S):l)}).displayName="NavLink";var St=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:a,method:l=Ve,action:c,onSubmit:u,relative:h,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:g,...v},y)=>{let{useTransitions:b}=i.useContext(ue),w=Ot(),_=function(e,{relative:t}={}){let{basename:n}=i.useContext(ue),r=i.useContext(he);d(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),s={..._e(e||".",{relative:t})},a=ge();if(null==e){s.search=a.search;let e=new URLSearchParams(s.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();s.search=n?`?${n}`:""}}e&&"."!==e||!o.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(s.pathname="/"===s.pathname?n:j([n,s.pathname]));return f(s)}(c,{relative:h}),x="get"===l.toLowerCase()?"get":"post",E="string"==typeof c&&o.test(c);return i.createElement("form",{ref:y,method:x,action:_,onSubmit:r?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,o=r?.getAttribute("formmethod")||l,c=()=>w(r||e.currentTarget,{fetcherKey:t,method:o,navigate:n,replace:s,state:a,relative:h,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:g});b&&!1!==n?i.startTransition(()=>c()):c()},...v,"data-discover":E||"render"!==e?void 0:"true"})});function kt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nt(e){let t=i.useContext(re);return d(t,kt(e)),t}St.displayName="Form";var Mt=0;function Ot(){let{router:e}=Nt("useSubmit"),{basename:t}=i.useContext(ue),n=Ie("useRouteId"),r=e.fetch,o=e.navigate;return i.useCallback(async(e,i={})=>{let{action:s,method:a,encType:l,formData:c,body:u}=Ze(e,t);if(!1===i.navigate){let e=i.fetcherKey||`__${String(++Mt)}__`;await r(e,n,i.action||s,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||a,formEncType:i.encType||l,flushSync:i.flushSync})}else await o(i.action||s,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||a,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[r,o,t,n])}}}]);
|