iobroker.javascript 8.7.1 → 8.7.2
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/README.md +3 -5
- package/admin/asset-manifest.json +7 -7
- package/admin/custom/customComponents.js +1 -1
- package/admin/custom/customComponents.js.map +1 -1
- package/admin/custom/static/js/{main.5a5a0e1f.js → main.3b6dfe79.js} +2 -2
- package/admin/custom/static/js/{main.5a5a0e1f.js.map → main.3b6dfe79.js.map} +1 -1
- package/admin/custom/static/js/{vendors-node_modules_leaflet_dist_leaflet_css-node_modules_iobroker_json-config_build_index_j-7fd384.bc816f65.chunk.js → vendors-node_modules_leaflet_dist_leaflet_css-node_modules_iobroker_json-config_build_index_j-7fd384.16779dc7.chunk.js} +79 -75
- package/admin/static/js/253.0b9f9730.chunk.js +2 -0
- package/admin/static/js/253.0b9f9730.chunk.js.map +1 -0
- package/admin/static/js/253.be85a342.chunk.js +2 -0
- package/admin/static/js/253.be85a342.chunk.js.map +1 -0
- package/admin/static/js/727.fb67d038.chunk.js +3 -0
- package/admin/static/js/727.fb67d038.chunk.js.LICENSE.txt +38 -0
- package/admin/static/js/727.fb67d038.chunk.js.map +1 -0
- package/admin/static/js/main.424f127c.js +2 -0
- package/admin/static/js/main.424f127c.js.map +1 -0
- package/admin/static/js/main.ad046a5e.js +2 -0
- package/admin/static/js/main.ad046a5e.js.map +1 -0
- package/admin/static/js/main.c238d860.js +2 -0
- package/admin/static/js/main.c238d860.js.map +1 -0
- package/admin/tab.html +1 -1
- package/io-package.json +14 -14
- package/lib/sandbox.js +2 -1
- package/lib/typescriptTools.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 727.fb67d038.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkjs=self.webpackChunkjs||[]).push([[727],{84470:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>w,m8:()=>g});var r=n(70579),o=n(28437),i=n.n(o),a=n(4567);function s(e,t){const n=getComputedStyle(t);if(!n)return;let r=e===g.Horizontal?t.clientWidth:t.clientHeight;return 0!==r?(e===g.Horizontal?r-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight):r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),r):void 0}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{condition:!0};const{condition:i}=r,a=function(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["condition"]);(0,o.useEffect)((()=>(i&&window.addEventListener(e,t,a),()=>{i&&window.removeEventListener(e,t)})),[e,t,i,...n])}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("/* === Main Container === */\n.__dbk__container {\n height: 100%;\n width: 100%;\n\n display: flex;\n overflow: hidden;\n}\n\n.__dbk__container.Horizontal {\n flex-direction: row;\n}\n\n.__dbk__container.Vertical {\n flex-direction: column;\n}\n/* ====== */\n\n/* === Wrapper for each child element === */\n.__dbk__child-wrapper {\n height: 100%;\n width: 100%;\n}\n/* ====== */\n\n/* === Gutter === */\n.__dbk__gutter {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n/* .__dbk__gutter > div {\n background: red;\n} */\n.__dbk__gutter.Horizontal {\n height: 100%;\n padding: 0 2px;\n flex-direction: column;\n}\n.__dbk__gutter.Horizontal:hover {\n cursor: col-resize;\n}\n\n.__dbk__gutter.Vertical {\n width: 100%;\n padding: 2px 0;\n flex-direction: row;\n}\n.__dbk__gutter.Vertical:hover {\n cursor: row-resize;\n}\n\n.__dbk__gutter.Light {\n background: #EDF0EF;\n}\n.__dbk__gutter.Light:hover > .__dbk__dragger {\n background: #76747B;\n}\n\n.__dbk__gutter.Dark {\n background: #020203;\n}\n.__dbk__gutter.Dark:hover > .__dbk__dragger {\n background: #9995A3;\n}\n/* ====== */\n\n/* === Gutter's Dragger === */\n.__dbk__dragger {\n border-radius: 2px;\n}\n\n.__dbk__dragger.Horizontal {\n width: 4px;\n height: 24px; \n}\n\n.__dbk__dragger.Vertical {\n width: 24px;\n height: 4px; \n}\n\n.__dbk__dragger.Light {\n background: #A6ACB5;\n}\n\n.__dbk__dragger.Dark {\n background: #434252;\n}\n/* ====== */");const u=i().forwardRef(((e,t)=>{let{className:n,theme:o,draggerClassName:i,direction:a=g.Vertical,onDragging:s}=e;const c="__dbk__gutter ".concat(a," ").concat(n||o),u="__dbk__dragger ".concat(a," ").concat(i||o);return(0,r.jsx)("div",Object.assign({className:c,ref:t,dir:a,onMouseDown:s,onTouchStart:m?s:void 0},{children:(0,r.jsx)("div",{className:u},void 0)}),void 0)}));var l;function d(e,t,n){let r,o;return t?(r=e/2,o=e):n?(r=e,o=e/2):(r=e,o=e),{aGutterSize:r,bGutterSize:o}}function f(e,t){switch(t.type){case l.SetIsReadyToCompute:return Object.assign(Object.assign({},e),{isReady:t.payload.isReady});case l.CreatePairs:{const{direction:n,children:r,gutters:o}=t.payload,i=r[0].parentNode;if(!i)throw new Error("Cannot create pairs - parent is undefined.");const a=s(n,i);if(void 0===a)throw new Error("Cannot create pairs - parent has undefined or zero size: ".concat(a,"."));const c=[];return r.forEach(((e,t)=>{if(t>0){const e=r[t-1],a=r[t],s=o[t-1],u=n===g.Horizontal?e.getBoundingClientRect().left:e.getBoundingClientRect().top,l=n===g.Horizontal?a.getBoundingClientRect().right:a.getBoundingClientRect().bottom,d=n===g.Horizontal?e.getBoundingClientRect().width+s.getBoundingClientRect().width+a.getBoundingClientRect().width:e.getBoundingClientRect().height+s.getBoundingClientRect().height+a.getBoundingClientRect().height,f=n===g.Horizontal?s.getBoundingClientRect().width:s.getBoundingClientRect().height,h={idx:t-1,a:e,b:a,gutter:s,parent:i,start:u,end:l,size:d,gutterSize:f,aSizePct:100/r.length,bSizePct:100/r.length};c.push(h)}})),Object.assign(Object.assign({},e),{pairs:c})}case l.StartDragging:{const{gutterIdx:n}=t.payload;return Object.assign(Object.assign({},e),{isDragging:!0,draggingIdx:n})}case l.StopDragging:return Object.assign(Object.assign({},e),{isDragging:!1});case l.CalculateSizes:{const{direction:n,gutterIdx:r}=t.payload,o=e.pairs[r],i=s(n,o.parent);if(!i)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const a=o.gutter[n===g.Horizontal?"clientWidth":"clientHeight"],c=0===r,u=r===e.pairs.length-1,{aGutterSize:l,bGutterSize:f}=d(a,c,u);let h,p,v,m,b;return n===g.Horizontal?(h=o.a.getBoundingClientRect().left,p=o.b.getBoundingClientRect().right,m=(o.a.getBoundingClientRect().width+l)/i*100,b=(o.b.getBoundingClientRect().width+f)/i*100,v=o.a.getBoundingClientRect().width+l+f+o.b.getBoundingClientRect().width):(h=o.a.getBoundingClientRect().top,p=o.b.getBoundingClientRect().bottom,m=(o.a.getBoundingClientRect().height+l)/i*100,b=(o.b.getBoundingClientRect().height+f)/i*100,v=o.a.getBoundingClientRect().height+l+f+o.b.getBoundingClientRect().height),e.pairs[r]=Object.assign(Object.assign({},o),{start:h,end:p,size:v,aSizePct:m,bSizePct:b,gutterSize:a}),Object.assign({},e)}default:return e}}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return o.Children.toArray(e).reduce(((e,r,i)=>((0,a.isFragment)(r)?e.push.apply(e,h(r.props.children,t+1,n.concat(r.key||i))):(0,o.isValidElement)(r)?e.push((0,o.cloneElement)(r,{key:n.concat(String(r.key)).join(".")})):"string"!=typeof r&&"number"!=typeof r||e.push(r),e)),[])}!function(e){e[e.SetIsReadyToCompute=0]="SetIsReadyToCompute",e[e.CreatePairs=1]="CreatePairs",e[e.CalculateSizes=2]="CalculateSizes",e[e.StartDragging=3]="StartDragging",e[e.StopDragging=4]="StopDragging"}(l||(l={}));const p=e=>"changedTouches"in e;var g,v;!function(e){e.Horizontal="Horizontal",e.Vertical="Vertical"}(g||(g={})),function(e){e.Light="Light",e.Dark="Dark"}(v||(v={}));const m="undefined"!=typeof window&&"ontouchstart"in window;function b(e){return e===g.Horizontal?"col-resize":"row-resize"}const y={isReady:!1,isDragging:!1,pairs:[]};function w(e){let{direction:t=g.Horizontal,minWidths:n=[],minHeights:a=[],initialSizes:w,gutterTheme:_=v.Dark,gutterClassName:S,draggerClassName:E,children:O,onResizeStarted:x,onResizeFinished:C,classes:R=[]}=e;const I=h(O),[T,A]=(0,o.useReducer)(f,y),k=(0,o.useRef)(null),P=(0,o.useRef)([]),N=(0,o.useRef)([]);P.current=[],N.current=[];const D=i().useCallback((e=>{A({type:l.SetIsReadyToCompute,payload:{isReady:e}})}),[]),j=i().useCallback(((e,t)=>{A({type:l.StartDragging,payload:{gutterIdx:t}});const n=T.pairs[t];null==x||x(n.idx),n.a.style.userSelect="none",n.b.style.userSelect="none",n.gutter.style.cursor=b(e),n.parent.style.cursor=b(e),document.body.style.cursor=b(e)}),[T.pairs]),M=i().useCallback((()=>{A({type:l.StopDragging});const e=[];for(let r=0;r<T.pairs.length;r++){const n=T.pairs[r],o=s(t,n.parent);if(void 0===o)throw new Error("Cannot call the 'onResizeFinished' callback - parentSize is undefined");if(void 0===n.gutterSize)throw new Error("Cannot call 'onResizeFinished' callback - gutterSize is undefined");const i=0===r,a=r===T.pairs.length-1,c=n.a.getBoundingClientRect()[t===g.Horizontal?"width":"height"],{aGutterSize:u,bGutterSize:l}=d(n.gutterSize,i,a),f=(c+u)/o*100;if(e.push(f),a){const r=(n.b.getBoundingClientRect()[t===g.Horizontal?"width":"height"]+l)/o*100;e.push(r)}}if(void 0===T.draggingIdx)throw new Error("Could not reset cursor and user-select because 'state.draggingIdx' is undefined");const n=T.pairs[T.draggingIdx];null==C||C(n.idx,e),n.a.style.userSelect="",n.b.style.userSelect="",n.gutter.style.cursor="",n.parent.style.cursor="",document.body.style.cursor=""}),[T.draggingIdx,T.pairs,t]),L=i().useCallback(((e,t)=>{A({type:l.CalculateSizes,payload:{direction:e,gutterIdx:t}})}),[]),B=i().useCallback(((e,t,n)=>{A({type:l.CreatePairs,payload:{direction:e,children:t,gutters:n}})}),[]),q=i().useCallback(((e,t,n,r)=>{const o=t[0].parentNode;if(!o)throw new Error("Cannot set initial sizes - parent is undefined");if(void 0===s(e,o))throw new Error("Cannot set initial sizes - parent has undefined size");t.forEach(((o,i)=>{const a=0===i,s=i===t.length-1;let c,u=0;t.length>1&&(u=n[s?i-1:i].getBoundingClientRect()[e===g.Horizontal?"width":"height"],u=a||s?u/2:u),c=r&&i<r.length?"calc(".concat(r[i],"% - ").concat(u,"px)"):"calc(".concat(100/t.length,"% - ").concat(u,"px)"),e===g.Horizontal?(o.style.width=c,o.style.height="100%"):(o.style.height=c,o.style.width="100%")}))}),[]),z=i().useCallback(((e,t)=>{if(void 0===T.draggingIdx)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const n=T.pairs[T.draggingIdx];if(void 0===n.size)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(void 0===n.gutterSize)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const r=n.aSizePct+n.bSizePct,o=t/n.size*r,i=r-t/n.size*r,a=0===T.draggingIdx,s=T.draggingIdx===T.pairs.length-1,{aGutterSize:c,bGutterSize:u}=d(n.gutterSize,a,s),l="calc(".concat(o,"% - ").concat(c,"px)"),f="calc(".concat(i,"% - ").concat(u,"px)");e===g.Horizontal?(n.a.style.width=l,n.b.style.width=f):(n.a.style.height=l,n.b.style.height=f)}),[T.draggingIdx,T.pairs,t]),F=i().useCallback(((e,t,n)=>{if(!T.isDragging)return;if(void 0===T.draggingIdx)throw new Error("Cannot drag - 'draggingIdx' is undefined");const r=T.pairs[T.draggingIdx];if(void 0===r.start)throw new Error("Cannot drag - 'pair.start' is undefined");if(void 0===r.size)throw new Error("Cannot drag - 'pair.size' is undefined");if(void 0===r.gutterSize)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let o=function(e,t){const n=p(t)?t.changedTouches[0]:t;return e===g.Horizontal?n.clientX:n.clientY}(t,e)-r.start,i=16,a=16;n.length>T.draggingIdx&&(i=n[T.draggingIdx]),n.length>=T.draggingIdx+1&&(a=n[T.draggingIdx+1]),o<r.gutterSize+i&&(o=r.gutterSize+i),o>=r.size-(r.gutterSize+a)&&(o=r.size-(r.gutterSize+a)),z(t,o)}),[T.isDragging,T.draggingIdx,T.pairs,z]),$=()=>{if(T.isDragging){if(void 0===T.draggingIdx)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");L(t,T.draggingIdx),M()}},H=e=>{T.isDragging&&(p(e)&&e.preventDefault(),F(e,t,t===g.Horizontal?n:a))};function U(e,t){if(!e.current)throw new Error("Can't add element to ref object - ref isn't initialized");t&&!e.current.includes(t)&&e.current.push(t)}return c("mouseup",$,[T.isDragging,M]),c("mousemove",H,[t,T.isDragging,F,n,a]),c("touchend",$,[T.isDragging,M],{condition:m}),c("touchmove",H,[t,T.isDragging,F,n,a],{condition:m,passive:!m}),(0,o.useEffect)((function(){if(!k.current)return;const e=k.current.parentElement;if(!e)return;const n=new ResizeObserver((()=>{const n=getComputedStyle(e),r=t===g.Horizontal?e.clientWidth:e.clientHeight;D(!!n&&!!r)}));return n.observe(e),()=>{n.disconnect()}}),[k.current,t]),(0,o.useEffect)((function(){if(T.isReady&&(!P.current||P.current[0].offsetParent)){if(!P.current||!N.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");I.length<=1?q(t,P.current,N.current,w):(q(t,P.current,N.current,w),B(t,P.current,N.current))}}),[O,T.isReady,t,q,B,w]),(0,r.jsx)("div",Object.assign({className:"__dbk__container ".concat(t),ref:k},{children:T.isReady&&I.map(((e,n)=>(0,r.jsxs)(i().Fragment,{children:[(0,r.jsx)("div",Object.assign({ref:e=>U(P,e),className:"__dbk__child-wrapper "+(n<R.length?R[n]:"")},{children:e}),void 0),n<I.length-1&&(0,r.jsx)(u,{ref:e=>U(N,e),className:S,theme:_,draggerClassName:E,direction:t,onDragging:()=>{return L(t,e=n),void j(t,e);var e}},void 0)]},n)))}),void 0)}},82627:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,c=60110,u=60112,l=60113,d=60120,f=60115,h=60116,p=60121,g=60122,v=60117,m=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),s=y("react.provider"),c=y("react.context"),u=y("react.forward_ref"),l=y("react.suspense"),d=y("react.suspense_list"),f=y("react.memo"),h=y("react.lazy"),p=y("react.block"),g=y("react.server.block"),v=y("react.fundamental"),m=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case l:case d:return e;default:switch(e=e&&e.$$typeof){case c:case u:case h:case f:case s:return e;default:return t}}case r:return t}}}t.isFragment=function(e){return w(e)===o}},4567:(e,t,n)=>{"use strict";e.exports=n(82627)},24031:(e,t)=>{"use strict";var n,r;(function(e){e.unknown="unknown",e.airCondition="airCondition",e.blind="blind",e.blindButtons="blindButtons",e.button="button",e.buttonSensor="buttonSensor",e.camera="camera",e.chart="chart",e.cie="cie",e.ct="ct",e.dimmer="dimmer",e.door="door",e.fireAlarm="fireAlarm",e.floodAlarm="floodAlarm",e.gate="gate",e.hue="hue",e.humidity="humidity",e.image="image",e.info="info",e.instance="instance",e.light="light",e.location="location",e.lock="lock",e.media="media",e.motion="motion",e.rgb="rgb",e.rgbSingle="rgbSingle",e.rgbwSingle="rgbwSingle",e.slider="slider",e.socket="socket",e.temperature="temperature",e.thermostat="thermostat",e.vacuumCleaner="vacuumCleaner",e.volume="volume",e.volumeGroup="volumeGroup",e.warning="warning",e.weatherCurrent="weatherCurrent",e.weatherForecast="weatherForecast",e.window="window",e.windowTilt="windowTilt"})(n||(n={})),function(e){e.Number="number",e.String="string",e.Boolean="boolean",e.File="file"}(r||(r={}));const o={working:{role:/^indicator\.working$/,indicator:!0,notSingle:!0,name:"WORKING",required:!1,defaultRole:"indicator.working",defaultType:r.Boolean},unreach:{role:/^indicator(\.maintenance)?\.unreach$/,indicator:!0,type:r.Boolean,notSingle:!0,name:"UNREACH",required:!1,defaultRole:"indicator.maintenance.unreach"},lowbat:{role:/^indicator(\.maintenance)?\.lowbat$|^indicator(\.maintenance)?\.battery$/,indicator:!0,type:r.Boolean,notSingle:!0,name:"LOWBAT",required:!1,defaultRole:"indicator.maintenance.lowbat"},maintain:{role:/^indicator\.maintenance$/,indicator:!0,type:r.Boolean,notSingle:!0,name:"MAINTAIN",required:!1,defaultRole:"indicator.maintenance"},error:{role:/^indicator\.error$/,indicator:!0,notSingle:!0,name:"ERROR",required:!1,defaultRole:"indicator.error",defaultType:r.String},direction:{role:/^indicator\.direction$/,indicator:!0,notSingle:!0,name:"DIRECTION",required:!1,defaultRole:"indicator.direction"},reachable:{role:/^indicator\.reachable$/,indicator:!0,type:r.Boolean,notSingle:!0,name:"CONNECTED",required:!1,defaultRole:"indicator.reachable",inverted:!0}};class i{constructor(){this.enums=null,this.cache={}}static checkEnum(e,t){let n=!1;return e&&e.forEach((e=>{const r=e.lastIndexOf(".");-1!==r&&(e=e.substring(r+1));for(const o in t)if(t.hasOwnProperty(o)&&t[o].find((t=>t.test(e))))return n=!0,!1})),n}static roleOrEnum(e,t,n,r){return!!(n&&e.common.role&&n.includes(e.common.role))||i.checkEnum(t,r)}static roleOrEnumLight(e,t){return i.roleOrEnum(e,t,i.lightRoles,i.lightWords)}static roleOrEnumBlind(e,t){return i.roleOrEnum(e,t,i.blindRoles,i.blindWords)}static roleOrEnumGate(e,t){return i.roleOrEnum(e,t,i.gateRoles,i.gateWords)}static roleOrEnumWindow(e,t){return i.roleOrEnum(e,t,i.windowRoles,i.blindWords)}static roleOrEnumDoor(e,t){return i.roleOrEnum(e,t,i.doorsRoles,i.doorsWords)}static getEnums(){return{door:{roles:i.doorsRoles,words:i.doorsWords},window:{roles:i.windowRoles,words:i.blindWords},blind:{roles:i.blindRoles,words:i.blindWords},gate:{roles:i.gateRoles,words:i.gateWords},light:{roles:i.lightRoles,words:i.lightWords}}}static getAllStatesInChannel(e,t){const n=[],r=new RegExp("^".concat(t.replace(/([$^.)([\]{}])/g,"\\$1"),"\\.[^.]+$"));return e.forEach((e=>r.test(e)&&n.push(e))),n}static getAllStatesInDevice(e,t){const n=[],r=new RegExp("^".concat(t.replace(/([$^.)([\]{}])/g,"\\$1"),"\\.[^.]+\\.[^.]+$"));return e.forEach((e=>r.test(e)&&n.push(e))),n}static getFunctionEnums(e){const t=[],n=/^enum\.functions\./;for(const r in e)e.hasOwnProperty(r)&&n.test(r)&&e[r]&&"enum"===e[r].type&&e[r].common&&e[r].common.members&&e[r].common.members.length&&t.push(r);return t}static getParentId(e){const t=e.lastIndexOf(".");return-1!==t?e.substring(0,t):e}_applyPattern(e,t,n){var o;if(e[t]&&e[t].common){let a=null;if(n.role&&(a=n.role.test(e[t].common.role||""),a&&n.channelRole)){const r=i.getParentId(t),s=(null===(o=e[r])||void 0===o?void 0:o.common.role)||"";a=!(!s||"channel"!==e[r].type&&"device"!==e[r].type)&&n.channelRole.test(s)}if(!1===a)return!1;if(n.objectType&&e[t].type!==n.objectType)return!1;if(n.stateName&&!n.stateName.test(t))return!1;if(n.unit&&n.unit!==e[t].common.unit)return!1;if(n.ignoreRole){const r=e[t].common.role||"";if(r&&n.ignoreRole.test(r))return!1}if(!1===n.indicator&&(e[t].common.role||"").match(/^indicator(\.[.\w]+)?$/))return!1;if(n.state){const e=t.split(".").pop()||"";if(e&&!n.state.test(e))return!1}if(void 0!==n.write&&n.write!==(e[t].common.write||!1))return!1;if(n.min===r.Number&&typeof e[t].common.min!==r.Number)return!1;if(n.max===r.Number&&typeof e[t].common.max!==r.Number)return!1;if(void 0!==n.read&&n.read!==(void 0===e[t].common.read||e[t].common.read))return!1;if(n.type)if(typeof n.type===r.String){if(n.type!==e[t].common.type)return!1}else{let r=!0;for(let o=0;o<n.type.length;o++)if(n.type[o]===e[t].common.type){r=!1;break}if(r)return!1}if(n.enums&&"function"===typeof n.enums){const r=this._getEnumsForId(e,t);if(!n.enums(e[t],r||[]))return!1}return!0}return!1}_getEnumsForId(e,t){this.enums=this.enums||i.getFunctionEnums(e);const n=[];if(this.enums.forEach((r=>{e[r].common.members.includes(t)&&n.push(r)})),!n.length&&e[t]&&"state"===e[t].type){let r=i.getParentId(t);!e[r]||"channel"!==e[r].type&&"device"!==e[r].type||this.enums.forEach((t=>{e[t].common.members.includes(r)&&n.push(t)}))}return n.length?n:null}static copyState(e,t){return(t=t||JSON.parse(JSON.stringify(e)))&&(t.original=e.original||e,"enums"in e&&e.enums&&(t.enums=e.enums),"role"in e&&e.role&&(t.role=e.role),"channelRole"in e&&e.channelRole&&(t.channelRole=e.channelRole)),t}_testOneState(e){const t=e.objects,n=e.pattern,r=e.state,o=e.channelStates,a=e.usedIds,s=e.usedInCurrentDevice,c=e.ignoreIndicators;let u=e.result,l=!1;return o.forEach((d=>{if("COVER"!==r.name||!(null===u||void 0===u?void 0:u.states.find((e=>e.id&&"COVER"===e.name)))){if(r.indicator&&c){const e=d.split(".").pop()||"";if(e&&c.includes(e))return void console.log("".concat(d," ignored"))}if((r.indicator||!s.includes(d)&&(r.notSingle||!a.includes(d)))&&this._applyPattern(t,d,r)&&(r.indicator||s.push(d),u||(u=JSON.parse(JSON.stringify(i.patterns[n])),e.result=u,null===u||void 0===u||u.states.forEach(((e,t)=>i.copyState(i.patterns[n].states[t],e)))),u)){if(!u.states.find((e=>e.id===d))){let e=!1;for(let t=0;t<u.states.length;t++)if(u.states[t].name===r.name){u.states[t].id=d,e=!0;break}e||console.error("Cannot find state for ".concat(d))}l=!0,r.multiple&&o.length>1&&o.forEach((e=>{if(e!==d&&(r.indicator||!s.includes(e)&&(r.notSingle||!a.includes(e)))&&this._applyPattern(t,e,r)&&(r.indicator||s.push(e),u))if(Array.isArray(r)){const t=i.copyState(r[0]);t.id=e,u.states.push(t)}else{const t=i.copyState(r);t.id=e,u.states.push(t)}}))}}})),l}static getChannelStates(e,t,n){switch(e[t].type){case"chart":case"state":return[t];case"device":const e=i.getAllStatesInDevice(n,t);return e.length?e:i.getAllStatesInChannel(n,t);default:return i.getAllStatesInChannel(n,t)}}static patternIsAllowed(e,t,n){if(!e)return!1;if(Array.isArray(e.type)){for(let r=0;r<e.type.length;r++){if(t&&!t.includes(e.type[r]))return!1;if(n&&n.includes(e.type[r]))return!1}return!0}return!(t&&!t.includes(e.type))&&(!n||!n.includes(e.type))}static allRequiredStatesFound(e){if(!e.result)return!1;const t=e.result.states;for(let n=0;n<t.length;n++)if(t[n].required&&!t[n].id)return!1;return!0}static cleanState(e,t){var n,r;const o=(null===(r=null===(n=t[e.id])||void 0===n?void 0:n.common)||void 0===r?void 0:r.role)||"";if(e.name.includes("%d")&&e.role&&e.id&&o){const t=e.role.exec(o);t&&(e.name=e.name.replace("%d",t[1]))}e.role&&delete e.role,e.enums&&delete e.enums,e.original&&delete e.original}_detectNext(e){const t=e.objects,r=e.id,o=e._keysOptional||[];let a=e._usedIdsOptional||[];const s=e.ignoreIndicators;if(a||(a=[],e._usedIdsOptional=a),!t[r]||!t[r].common)return null;const c={objects:t,channelStates:i.getChannelStates(t,r,o||[]),usedIds:a,ignoreIndicators:s||[],result:null,pattern:n.unknown,usedInCurrentDevice:[],state:{}};for(const n in i.patterns){if(!i.patternIsAllowed(i.patterns[n],e.allowedTypes,e.excludedTypes))continue;if(c.result=null,c.pattern=n,c.usedInCurrentDevice=[],i.patterns[n].states.forEach((e=>{let t=!1;if(c.state=e,this._testOneState(c)&&(t=!0),e.required&&!t)return c.result=null,!1})),!i.allRequiredStatesFound(c))continue;let s;if(c.usedInCurrentDevice.forEach((e=>a.push(e))),"device"!==t[r].type){let e=i.getParentId(r);!t[e]||"channel"!==t[e].type&&"device"!==t[e].type||(s=i.getAllStatesInDevice(o,e),null===s||void 0===s||s.forEach((e=>{var n;null===(n=c.result)||void 0===n||n.states.forEach(((n,r)=>{n.id||!n.indicator&&!n.searchInParent||n.noDeviceDetection||this._applyPattern(t,e,n.original)&&c.result&&(c.result.states[r].id=e)}))})))}if(c.result){const e=c.result;e&&e.states.forEach((e=>i.cleanState(e,c.objects)))}return c.result}return null}detect(e){const t=e.objects,n=e.id;let r=e._keysOptional,o=e._usedIdsOptional;if(void 0!==this.cache[n])return this.cache[n];r||(r=Object.keys(t),r.sort(),e._keysOptional=r),o&&(o=[],e._usedIdsOptional=o);const i=[];let a;for(;a=this._detectNext(e);)i.push(a);return this.cache[n]=i.length?i:null,this.cache[n]}static getPatterns(){const e={};return Object.keys(i.patterns).forEach((t=>{const n=JSON.parse(JSON.stringify(i.patterns[t]));n.states.forEach(((e,r)=>{let o=i.patterns[t].states[r];o.role&&(n.states[r].role=o.role.toString()),o.enums&&(n.states[r].enums=!0,n.states[r].enum=!0)})),e[t]=n})),e}}i.patterns={chart:{states:[{objectType:"chart",name:"CHART"}],type:n.chart},mediaPlayer:{states:[{role:/^media.state(\..*)?$/,indicator:!1,type:[r.Boolean,r.Number],name:"STATE",required:!0,defaultRole:"media.state"},{role:/^button.play(\..*)?$|^action.play(\..*)?$/,indicator:!1,write:!0,type:r.Boolean,name:"PLAY",required:!1,noSubscribe:!0,defaultRole:"button.play"},{role:/^button.pause(\..*)?$|^action.pause(\..*)?$/,indicator:!1,write:!0,type:r.Boolean,name:"PAUSE",required:!1,noSubscribe:!0,defaultRole:"button.pause"},{role:/^button.stop(\..*)?$|^action.stop(\..*)?$/,indicator:!1,write:!0,type:r.Boolean,name:"STOP",required:!1,noSubscribe:!0,defaultRole:"button.stop"},{role:/^button.next(\..*)?$|^action.next(\..*)?$/,indicator:!1,write:!0,type:r.Boolean,name:"NEXT",required:!1,noSubscribe:!0,defaultRole:"button.next"},{role:/^button.prev(\..*)?$|^action.prev(\..*)?$/,indicator:!1,write:!0,type:r.Boolean,name:"PREV",required:!1,noSubscribe:!0,defaultRole:"button.prev"},{role:/^media.mode.shuffle(\..*)?$/,indicator:!1,write:!0,type:r.Boolean,name:"SHUFFLE",required:!1,noSubscribe:!0,defaultRole:"media.mode.shuffle"},{role:/^media.mode.repeat(\..*)?$/,indicator:!1,write:!0,type:r.Number,name:"REPEAT",required:!1,noSubscribe:!0,defaultRole:"media.mode.repeat"},{role:/^media.artist(\..*)?$/,indicator:!1,write:!1,type:r.String,name:"ARTIST",required:!1,defaultRole:"media.artist"},{role:/^media.album(\..*)?$/,indicator:!1,write:!1,type:r.String,name:"ALBUM",required:!1,defaultRole:"media.album"},{role:/^media.title(\..*)?$/,indicator:!1,write:!1,type:r.String,name:"TITLE",required:!1,defaultRole:"media.title"},{role:/^media.cover$|^media.cover.big$/,indicator:!1,write:!1,type:r.String,name:"COVER",required:!1,notSingle:!0,defaultRole:"media.cover"},{role:/^media.cover(\..*)$/,indicator:!1,write:!1,type:r.String,name:"COVER",required:!1,notSingle:!0},{role:/^media.duration(\..*)?$/,indicator:!1,write:!1,type:r.Number,name:"DURATION",required:!1,noSubscribe:!0,defaultRole:"media.duration",defaultUnit:"sec"},{role:/^media.elapsed(\..*)?$/,indicator:!1,type:r.Number,name:"ELAPSED",required:!1,noSubscribe:!0,defaultRole:"media.elapsed",defaultUnit:"sec"},{role:/^media.seek(\..*)?$/,indicator:!1,write:!0,type:r.Number,name:"SEEK",required:!1,noSubscribe:!0,defaultRole:"media.seek"},{role:/^media.track(\..*)?$/,indicator:!1,type:r.String,name:"TRACK",required:!1,noSubscribe:!0,defaultRole:"media.track"},{role:/^media.episode(\..*)?$/,indicator:!1,type:r.String,name:"EPISODE",required:!1,noSubscribe:!0,defaultRole:"media.episode"},{role:/^media.season(\..*)?$/,indicator:!1,type:r.String,name:"SEASON",required:!1,noSubscribe:!0,defaultRole:"media.season"},{role:/^level.volume?$/,indicator:!1,type:r.Number,min:r.Number,max:r.Number,write:!0,name:"VOLUME",required:!1,notSingle:!0,noSubscribe:!0,defaultRole:"level.volume"},{role:/^value.volume?$/,indicator:!1,type:r.Number,min:r.Number,max:r.Number,write:!1,name:"VOLUME_ACTUAL",required:!1,notSingle:!0,noSubscribe:!0,defaultRole:"value.volume"},{role:/^media.mute?$/,indicator:!1,type:r.Boolean,write:!0,name:"MUTE",required:!1,notSingle:!0,noSubscribe:!0,defaultRole:"media.mute"},{stateName:/\.paused$|\.playerState$/,indicator:!1,name:"IGNORE",required:!1,multiple:!0,noSubscribe:!0},o.reachable,o.lowbat,o.maintain,o.error],type:n.media},weatherForecast:{states:[{role:/^weather.icon$|^weather.icon.forecast.0$/,indicator:!1,type:r.String,name:"ICON",required:!0,defaultRole:"weather.icon.forecast.0"},{role:/^value.temperature.min.forecast.0$/,indicator:!1,type:r.Number,name:"TEMP_MIN",required:!0,defaultRole:"value.temperature.min.forecast.0"},{role:/^value.temperature.max.forecast.0$/,indicator:!1,type:r.Number,name:"TEMP_MAX",required:!0,defaultRole:"value.temperature.max.forecast.0"},{role:/^value.precipitation$|^value.precipitation.forecast.0$/,indicator:!1,type:r.Number,name:"PRECIPITATION_CHANCE",unit:"%",required:!1,defaultRole:"value.precipitation.forecast.0"},{role:/^value.precipitation$|^value.precipitation.forecast.0$/,indicator:!1,type:r.Number,name:"PRECIPITATION",unit:"mm",required:!1,defaultRole:"value.precipitation.forecast.0"},{role:/^date$|^date.forecast.0$/,indicator:!1,type:r.String,name:"DATE",required:!1,defaultRole:"date.forecast.0"},{role:/^dayofweek$|^dayofweek.forecast.0$/,indicator:!1,type:r.String,name:"DOW",required:!1,defaultRole:"dayofweek.forecast.0"},{role:/^weather.state$|^weather.state.forecast.0$/,indicator:!1,type:r.String,name:"STATE",required:!1,defaultRole:"weather.state.forecast.0"},{role:/^value.temperature$|^value.temperature.forecast.0$/,indicator:!1,type:r.Number,name:"TEMP",required:!1,defaultRole:"value.temperature.forecast.0"},{role:/^value.pressure$/,indicator:!1,type:r.Number,name:"PRESSURE",required:!1,defaultRole:"weather.icon.forecast.0"},{role:/^value.humidity$|value.humidity.forecast.0$/,indicator:!1,type:r.Number,name:"HUMIDITY",required:!1,defaultRole:"value.humidity.forecast.0"},{role:/^(?:date|time).sunrise(?:.forecast\.0)?$/,indicator:!1,type:r.String,name:"TIME_SUNRISE",required:!1,defaultRole:"date.sunrise"},{role:/^(?:date|time).sunset(?:.forecast\.0)?$/,indicator:!1,type:r.String,name:"TIME_SUNSET",required:!1,defaultRole:"date.sunset"},{role:/^value.temperature.windchill$|^value.temperature.windchill.forecast.0$/,indicator:!1,type:r.Number,name:"WIND_CHILL",required:!1,defaultRole:"value.temperature.windchill.forecast.0"},{role:/^value.temperature.feelslike$|^value.temperature.feelslike.forecast.0$/,indicator:!1,type:r.Number,name:"FEELS_LIKE",required:!1,defaultRole:"value.temperature.feelslike.forecast.0"},{role:/^value.speed.wind$|^value.speed.wind.forecast.0$/,indicator:!1,type:r.Number,name:"WIND_SPEED",required:!1,defaultRole:"value.speed.wind.forecast.0"},{role:/^value.direction.wind$|^value.direction.wind.forecast.0$/,indicator:!1,type:r.Number,name:"WIND_DIRECTION",required:!1,defaultRole:"value.direction.wind.forecast.0"},{role:/^weather.direction.wind$|^weather.direction.wind.forecast.0$/,indicator:!1,type:r.String,name:"WIND_DIRECTION_STR",required:!1,defaultRole:"weather.direction.wind.forecast.0"},{role:/^weather.icon.wind$|^weather.icon.wind.forecast.0$/,indicator:!1,type:r.String,name:"WIND_ICON",required:!1,defaultRole:"weather.icon.wind.forecast.0"},{role:/^weather.chart.url$/,indicator:!1,type:r.String,name:"HISTORY_CHART",required:!1,noSubscribe:!0,defaultRole:"weather.chart.url"},{role:/^weather.chart.url.forecast$/,indicator:!1,type:r.String,name:"FORECAST_CHART",required:!1,noSubscribe:!0,defaultRole:"weather.chart.url.forecast"},{role:/^location$/,indicator:!1,type:r.String,name:"LOCATION",required:!1,defaultRole:"location"},{role:/^weather.icon.forecast.(\d)$/,indicator:!1,type:r.String,name:"ICON%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0,notSingle:!0},{role:/^value.temperature.min.forecast.(\d)$/,indicator:!1,type:r.Number,name:"TEMP_MIN%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value.temperature.max.forecast.(\d)$/,indicator:!1,type:r.Number,name:"TEMP_MAX%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^date.forecast.(\d)$/,indicator:!1,type:r.String,name:"DATE%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^dayofweek.forecast.(\d)$/,indicator:!1,type:r.String,name:"DOW%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^weather.state.forecast.(\d)$/,indicator:!1,type:r.String,name:"STATE%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value.temperature.forecast.(\d)$/,indicator:!1,type:r.Number,name:"TEMP%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value.humidity.forecast.(\d)$/,indicator:!1,type:r.Number,name:"HUMIDITY%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value.humidity.max.forecast.(\d)$/,indicator:!1,type:r.Number,name:"HUMIDITY_MAX%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value.precipitation.forecast.(\d)$/,indicator:!1,type:r.Number,unit:"%",name:"PRECIPITATION_CHANCE%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value.precipitation.forecast.(\d)$/,indicator:!1,type:r.Number,unit:"mm",name:"PRECIPITATION%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value.speed.wind.forecast.(\d)$/,indicator:!1,type:r.Number,name:"WIND_SPEED%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^value.direction.wind.forecast.(\d)$/,indicator:!1,type:r.Number,name:"WIND_DIRECTION%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^weather.direction.wind.forecast.(\d)$/,indicator:!1,type:r.String,name:"WIND_DIRECTION_STR%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0},{role:/^weather.icon.wind.forecast.(\d)$/,indicator:!1,type:r.String,name:"WIND_ICON%d",required:!1,searchInParent:!0,multiple:!0,noSubscribe:!0}],type:n.weatherForecast},rgb:{states:[{role:/^level\.color\.red$/,indicator:!1,type:r.Number,write:!0,name:"RED",required:!0,defaultRole:"level.color.red"},{role:/^level\.color\.green$/,indicator:!1,type:r.Number,write:!0,name:"GREEN",required:!0,defaultRole:"level.color.green"},{role:/^level\.color\.blue$/,indicator:!1,type:r.Number,write:!0,name:"BLUE",required:!0,defaultRole:"level.color.blue"},{role:/^level\.color\.white$/,indicator:!1,type:r.Number,write:!0,name:"WHITE",required:!1,defaultRole:"level.color.white"},{role:/^level\.dimmer$/,indicator:!1,type:r.Number,write:!0,name:"DIMMER",required:!1,defaultRole:"level.dimmer",defaultUnit:"%"},{role:/^level\.brightness$/,indicator:!1,type:r.Number,write:!0,name:"BRIGHTNESS",required:!1},{role:/^level\.color\.saturation$/,indicator:!1,type:r.Number,write:!0,name:"SATURATION",required:!1},{role:/^level\.color\.temperature$/,indicator:!1,type:r.Number,write:!0,name:"TEMPERATURE",required:!1,defaultRole:"level.color.temperature",defaultUnit:"\xb0K"},{role:/^switch\.light$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1,defaultRole:"switch.light"},{role:/^switch$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:r.Boolean,write:!1,name:"ON_ACTUAL",required:!1,defaultRole:"sensor.light"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.rgb},rgbwSingle:{states:[{role:/^level\.color\.rgbw$/,indicator:!1,type:r.String,write:!0,name:"RGBW",required:!0,defaultRole:"level.color.rgbw"},{role:/^level\.dimmer$/,indicator:!1,type:r.Number,write:!0,name:"DIMMER",required:!1,defaultRole:"level.dimmer",defaultUnit:"%"},{role:/^level\.brightness$/,indicator:!1,type:r.Number,write:!0,name:"BRIGHTNESS",required:!1,defaultUnit:"%"},{role:/^level\.color\.saturation$/,indicator:!1,type:r.Number,write:!0,name:"SATURATION",required:!1},{role:/^level\.color\.temperature$/,indicator:!1,type:r.Number,write:!0,name:"TEMPERATURE",required:!1,defaultRole:"level.color.temperature",defaultUnit:"\xb0K"},{role:/^switch\.light$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1,defaultRole:"switch.light"},{role:/^switch$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:r.Boolean,write:!1,name:"ON_ACTUAL",required:!1,defaultRole:"sensor.light"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.rgbwSingle},rgbSingle:{states:[{role:/^level\.color\.rgb$/,indicator:!1,type:r.String,write:!0,name:"RGB",required:!0,defaultRole:"level.color.rgb"},{role:/^level\.dimmer$/,indicator:!1,type:r.Number,write:!0,name:"DIMMER",required:!1,defaultRole:"level.dimmer",defaultUnit:"%"},{role:/^level\.brightness$/,indicator:!1,type:r.Number,write:!0,name:"BRIGHTNESS",required:!1,defaultUnit:"%"},{role:/^level\.color\.saturation$/,indicator:!1,type:r.Number,write:!0,name:"SATURATION",required:!1},{role:/^level\.color\.temperature$/,indicator:!1,type:r.Number,write:!0,name:"TEMPERATURE",required:!1,defaultRole:"level.color.temperature",defaultUnit:"\xb0K"},{role:/^switch\.light$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1,defaultRole:"switch.light"},{role:/^switch$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:r.Boolean,write:!1,name:"ON_ACTUAL",required:!1,defaultRole:"sensor.light"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.rgbSingle},cie:{states:[{role:/^level\.color\.cie$/,indicator:!1,type:r.String,write:!0,name:"CIE",required:!0,defaultRole:"level.color.cie"},{role:/^level\.dimmer$/,indicator:!1,type:r.Number,write:!0,name:"DIMMER",required:!1,defaultRole:"level.dimmer",defaultUnit:"%"},{role:/^level\.brightness$/,indicator:!1,type:r.Number,write:!0,name:"BRIGHTNESS",required:!1,defaultUnit:"%"},{role:/^level\.color\.saturation$/,indicator:!1,type:r.Number,write:!0,name:"SATURATION",required:!1},{role:/^level\.color\.temperature$/,indicator:!1,type:r.Number,write:!0,name:"TEMPERATURE",required:!1,defaultRole:"level.color.temperature",defaultUnit:"\xb0K"},{role:/^switch(\.light)?$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1,defaultRole:"switch.light"},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:r.Boolean,write:!1,name:"ON_ACTUAL",required:!1,defaultRole:"sensor.light"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.cie},hue:{states:[{role:/^level\.color\.hue$/,indicator:!1,type:r.Number,write:!0,name:"HUE",required:!0,defaultRole:"level.color.hue",defaultUnit:"\xb0"},{role:/^level\.dimmer$/,indicator:!1,type:r.Number,write:!0,name:"DIMMER",required:!1,searchInParent:!0,defaultRole:"level.dimmer",defaultUnit:"%"},{role:/^level\.brightness$/,indicator:!1,type:r.Number,write:!0,name:"BRIGHTNESS",required:!1},{role:/^level\.color\.saturation$/,indicator:!1,type:r.Number,write:!0,name:"SATURATION",required:!1},{role:/^level\.color\.temperature$/,indicator:!1,type:r.Number,write:!0,name:"TEMPERATURE",required:!1,defaultRole:"level.color.temperature",defaultUnit:"\xb0K"},{role:/^switch\.light$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1,defaultRole:"switch.light"},{role:/^switch$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:r.Boolean,write:!1,name:"ON_ACTUAL",required:!1,defaultRole:"sensor.light"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.hue},ct:{states:[{role:/^level\.color\.temperature$/,indicator:!1,type:r.Number,write:!0,name:"TEMPERATURE",required:!0,defaultRole:"level.color.temperature",defaultUnit:"\xb0K"},{role:/^level\.dimmer$/,indicator:!1,type:r.Number,write:!0,name:"DIMMER",required:!1,defaultRole:"level.dimmer",defaultUnit:"%"},{role:/^level\.brightness$/,indicator:!1,type:r.Number,write:!0,name:"BRIGHTNESS",required:!1},{role:/^level\.color\.saturation$/,indicator:!1,type:r.Number,write:!0,name:"SATURATION",required:!1},{role:/^switch\.light$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1,defaultRole:"switch.light"},{role:/^switch$/,indicator:!1,type:r.Boolean,write:!0,name:"ON",required:!1},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:r.Boolean,write:!1,name:"ON_ACTUAL",required:!1,defaultRole:"sensor.light"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.ct},warning:{states:[{role:/^value\.warning$/,indicator:!1,name:"LEVEL",required:!0,defaultRole:"value.warning"},{role:/^weather\.title\.short$/,indicator:!1,type:r.String,name:"TITLE",required:!1,defaultRole:"weather.title.short"},{role:/^weather\.title$/,indicator:!1,type:r.String,name:"INFO",required:!1,defaultRole:"weather.title"},{role:/^date\.start$/,indicator:!1,type:r.String,name:"START",required:!1,defaultRole:"date.start"},{role:/^date\.end$/,indicator:!1,type:r.String,name:"END",required:!1,defaultRole:"date.end"},{role:/^date$/,indicator:!1,type:r.String,name:"START",required:!1},{role:/^weather\.chart\.url/,indicator:!1,type:r.String,name:"ICON",required:!1,defaultRole:"weather.chart.url"},{role:/^weather\.state$/,indicator:!1,type:r.String,name:"DESC",required:!1,noSubscribe:!0,defaultRole:"weather.state"}],type:n.warning},airCondition:{states:[{role:/temperature(\..*)?$/,indicator:!1,write:!0,type:r.Number,name:"SET",required:!0,defaultRole:"level.temperature",defaultUnit:"\xb0C"},{role:/airconditioner$/,indicator:!1,write:!0,type:r.Number,searchInParent:!0,name:"MODE",required:!0,defaultRole:"level.mode.airconditioner",defaultStates:{0:"OFF",1:"AUTO",2:"COOL",3:"HEAT",4:"ECO",5:"FAN_ONLY",6:"DRY"}},{role:/(speed|mode)\.fan$/,indicator:!1,write:!0,type:r.Number,name:"SPEED",required:!1,defaultRole:"level.mode.fan",defaultStates:{0:"AUTO",1:"HIGH",2:"LOW",3:"MEDIUM",4:"QUIET",5:"TURBO"}},{role:/^switch\.power$/,indicator:!1,write:!0,type:[r.Boolean,r.Number],searchInParent:!0,name:"POWER",required:!1,defaultRole:"switch.power"},{role:/^switch$/,indicator:!1,write:!0,type:r.Boolean,searchInParent:!0,name:"POWER",required:!1},{role:/temperature(\..*)?$/,indicator:!1,write:!1,type:r.Number,searchInParent:!0,name:"ACTUAL",required:!1,defaultRole:"value.temperature",defaultUnit:"\xb0C"},{role:/humidity(\..*)?$/,indicator:!1,write:!1,type:r.Number,searchInParent:!0,name:"HUMIDITY",required:!1,defaultRole:"value.humidity",defaultUnit:"%"},{role:/^switch\.boost(\..*)?$/,indicator:!1,write:!0,type:[r.Boolean,r.Number],searchInParent:!0,name:"BOOST",required:!1,defaultRole:"switch.boost"},{role:/swing$/,indicator:!1,write:!0,type:r.Number,searchInParent:!0,name:"SWING",required:!1,defaultRole:"level.mode.swing",defaultStates:{0:"AUTO",1:"HORIZONTAL",2:"STATIONARY",3:"VERTICAL"}},{role:/swing$/,indicator:!1,write:!0,type:r.Boolean,searchInParent:!0,name:"SWING",required:!1,defaultRole:"switch.mode.swing"},o.unreach,o.maintain,o.error],type:n.airCondition},thermostat:{states:[{role:/temperature(\..*)?$/,indicator:!1,write:!0,type:r.Number,name:"SET",required:!0,defaultRole:"level.temperature",defaultUnit:"\xb0C"},{role:/temperature(\..*)?$/,indicator:!1,write:!1,type:r.Number,searchInParent:!0,name:"ACTUAL",required:!1,defaultRole:"value.temperature",defaultUnit:"\xb0C"},{role:/humidity(\..*)?$/,indicator:!1,write:!1,type:r.Number,searchInParent:!0,name:"HUMIDITY",required:!1,defaultRole:"value.humidity",defaultUnit:"%"},{role:/^switch(\.mode)?\.boost(\..*)?$/,indicator:!1,write:!0,type:[r.Boolean,r.Number],searchInParent:!0,name:"BOOST",required:!1,defaultRole:"switch.mode.boost"},{role:/^switch\.power$/,indicator:!1,write:!0,type:[r.Boolean,r.Number],searchInParent:!0,name:"POWER",required:!1,defaultRole:"switch.power"},{role:/^switch(\.mode)?\.party$/,indicator:!1,write:!0,type:[r.Boolean,r.Number],searchInParent:!0,name:"PARTY",required:!1,defaultRole:"switch.mode.party"},{role:/^switch$/,indicator:!1,write:!0,type:r.Boolean,searchInParent:!0,name:"POWER",required:!1},{role:/^level(\.mode)?\.thermostat$/,indicator:!1,write:!0,type:r.Number,searchInParent:!0,name:"MODE",required:!1,defaultRole:"level.mode.thermostat",defaultStates:{0:"AUTO",1:"MANUAL"}},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.thermostat},vacuumCleaner:{states:[{role:/^switch\.power$/,indicator:!1,write:!0,type:[r.Boolean,r.Number],searchInParent:!0,name:"POWER",required:!0,defaultRole:"switch.power"},{role:/mode\.cleanup$/,indicator:!1,write:!0,type:r.Number,searchInParent:!0,name:"MODE",required:!0,defaultRole:"level.mode.cleanup",defaultStates:{0:"AUTO",1:"NORMAL",2:"QUIET",3:"ECO",4:"EXPRESS"}},{role:/vacuum\.map\.base64$/,indicator:!1,write:!1,type:r.String,searchInParent:!0,name:"MAP_BASE64",required:!1,defaultRole:"vacuum.map.base64"},{role:/vacuum\.map\.url$/,indicator:!1,write:!1,type:r.String,searchInParent:!0,name:"MAP_URL",required:!1},{role:/mode\.work$/,indicator:!1,write:!0,type:r.Number,searchInParent:!0,name:"WORK_MODE",required:!1,defaultRole:"level.mode.work",defaultStates:{0:"AUTO",1:"FAST",2:"MEDIUM",3:"SLOW",4:"TURBO"}},{role:/^value\.water$/,indicator:!1,write:!1,type:r.Number,searchInParent:!0,unit:"%",name:"WATER",required:!1,defaultRole:"value.water",defaultUnit:"%"},{role:/^value\.waste$/,indicator:!1,write:!1,type:r.Number,searchInParent:!0,unit:"%",name:"WASTE",required:!1,defaultRole:"value.waste",defaultUnit:"%"},{role:/^value\.battery$/,indicator:!1,write:!1,type:r.Number,searchInParent:!0,unit:"%",name:"BATTERY",required:!1,defaultRole:"value.battery",defaultUnit:"%"},{role:/^value\.state$/,indicator:!1,write:!1,type:[r.Number,r.String],searchInParent:!0,name:"STATE",required:!1,defaultRole:"value.state"},{role:/^switch\.pause$/,indicator:!1,write:!0,type:r.Boolean,searchInParent:!0,name:"PAUSE",required:!1,defaultRole:"switch.pause"},{role:/^indicator(\.maintenance)?\.waste$|^indicator(\.alarm)?\.waste/,indicator:!0,type:r.Boolean,searchInParent:!0,name:"WASTE_ALARM",required:!1,defaultRole:"indicator.maintenance.waste"},{role:/^indicator(\.maintenance)?\.water$|^indicator(\.alarm)?\.water/,indicator:!0,type:r.Boolean,searchInParent:!0,name:"WATER_ALARM",required:!1,defaultRole:"indicator.maintenance.water"},{role:/^value(\.usage)?\.filter/,indicator:!0,type:r.Number,searchInParent:!0,name:"FILTER",required:!1,defaultRole:"value.usage.filter",defaultUnit:"%"},{role:/^value(\.usage)?\.brush/,indicator:!0,type:r.Number,searchInParent:!0,name:"BRUSH",required:!1,defaultRole:"value.usage.brush",defaultUnit:"%"},{role:/^value(\.usage)?\.sensors/,indicator:!0,type:r.Number,searchInParent:!0,name:"SENSORS",required:!1,defaultRole:"value.usage.sensors",defaultUnit:"%"},{role:/^value(\.usage)?\.brush\.side/,indicator:!0,type:r.Number,searchInParent:!0,name:"SIDE_BRUSH",required:!1,defaultRole:"value.usage.brush.side",defaultUnit:"%"},o.unreach,o.lowbat,o.maintain,o.error],type:n.vacuumCleaner},blinds:{states:[{role:/^level(\.blind)?$/,indicator:!1,type:r.Number,write:!0,enums:i.roleOrEnumBlind,name:"SET",required:!0,defaultRole:"level.blind",defaultUnit:"%"},{role:/^value(\.blind)?$/,indicator:!1,type:r.Number,enums:i.roleOrEnumBlind,name:"ACTUAL",required:!1,defaultRole:"value.blind",defaultUnit:"%"},{role:/^button\.stop(\.blind)?$|^action\.stop$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"STOP",required:!1,noSubscribe:!0,defaultRole:"button.stop.blind"},{role:/^button\.open(\.blind)?$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"OPEN",required:!1,noSubscribe:!0,defaultRole:"button.open.blind"},{role:/^button\.close(\.blind)?$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"CLOSE",required:!1,noSubscribe:!0,defaultRole:"button.close.blind"},{role:/^level(\.open)?\.tilt$/,indicator:!1,type:r.Number,write:!0,enums:i.roleOrEnumBlind,name:"TILT_SET",required:!1,defaultRole:"level.tilt"},{role:/^value(\.open)?\.tilt$/,indicator:!1,type:r.Number,enums:i.roleOrEnumBlind,name:"TILT_ACTUAL",required:!1,defaultRole:"value.tilt"},{role:/^button\.stop\.tilt$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"TILT_STOP",required:!1,noSubscribe:!0,defaultRole:"button.stop.tilt"},{role:/^button\.open\.tilt$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"TILT_OPEN",required:!1,noSubscribe:!0,defaultRole:"button.open.tilt"},{role:/^button\.close\.tilt$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"TILT_CLOSE",required:!1,noSubscribe:!0,defaultRole:"button.close.tilt"},o.direction,o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.blind},blindButtons:{states:[{role:/^button\.stop(\.blind)?$|^action\.stop$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"STOP",required:!0,noSubscribe:!0,defaultRole:"button.stop.blind"},{role:/^button\.open(\.blind)?$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"OPEN",required:!0,noSubscribe:!0,defaultRole:"button.open.blind"},{role:/^button\.close(\.blind)?$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"CLOSE",required:!0,noSubscribe:!0,defaultRole:"button.close.blind"},{role:/^level\.tilt$/,indicator:!1,type:r.Number,write:!0,enums:i.roleOrEnumBlind,name:"TILT_SET",required:!1,defaultRole:"level.tilt"},{role:/^value\.tilt$/,indicator:!1,type:r.Number,enums:i.roleOrEnumBlind,name:"TILT_ACTUAL",required:!1,defaultRole:"value.tilt"},{role:/^button\.stop\.tilt$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"TILT_STOP",required:!1,noSubscribe:!0,defaultRole:"button.stop.tilt"},{role:/^button\.open\.tilt$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"TILT_OPEN",required:!1,noSubscribe:!0,defaultRole:"button.open.tilt"},{role:/^button\.close\.tilt$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumBlind,name:"TILT_CLOSE",required:!1,noSubscribe:!0,defaultRole:"button.close.tilt"},o.direction,o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.blindButtons},gate:{states:[{role:/^switch(\.gate)?$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumGate,name:"SET",required:!0,defaultRole:"switch.gate"},{role:/^value(\.position)?|^value(\.gate)?$/,indicator:!1,type:r.Number,enums:i.roleOrEnumGate,name:"ACTUAL",required:!1,defaultRole:"value.blind",defaultUnit:"%"},{role:/^button\.stop$|^action\.stop$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumGate,name:"STOP",required:!1,noSubscribe:!0,defaultRole:"button.stop"},o.direction,o.working,o.unreach,o.maintain,o.error],type:n.gate},weatherCurrent:{states:[{role:/^value(\.temperature)?$/,indicator:!1,type:r.Number,name:"ACTUAL",required:!0,defaultRole:"value.temperature",defaultUnit:"\xb0C"},{role:/^weather\.icon$/,indicator:!1,name:"ICON",required:!0,defaultRole:"weather.icon"},{role:/^value\.precipitation\.chance$/,indicator:!1,type:r.Number,name:"PRECIPITATION_CHANCE",defaultRole:"value.precipitation.chance",defaultUnit:"%"},{role:/^value\.precipitation\.type$/,indicator:!1,type:r.Number,name:"PRECIPITATION_TYPE",defaultRole:"value.precipitation.type",defaultStates:{0:"NO",1:"RAIN",2:"SNOW",3:"HAIL"}},{role:/^value\.pressure$/,indicator:!1,type:r.Number,name:"PRESSURE",defaultRole:"value.pressure",defaultUnit:"mbar"},{role:/^value\.pressure\.tendency$/,indicator:!1,type:r.String,name:"PRESSURE_TENDENCY",defaultRole:"value.pressure.tendency"},{role:/^value\.temperature\.windchill$/,indicator:!1,type:r.Number,name:"REAL_FEEL_TEMPERATURE",defaultRole:"value.temperature.windchill",defaultUnit:"\xb0C"},{role:/^value.humidity$/,indicator:!1,type:r.Number,name:"HUMIDITY",defaultRole:"value.humidity",defaultUnit:"%"},{role:/^value.uv$/,indicator:!1,type:r.Number,name:"UV",defaultRole:"value.uv"},{role:/^weather\.state$/,indicator:!1,type:r.String,name:"WEATHER",defaultRole:"weather.state"},{role:/^value\.direction\.wind$/,indicator:!1,type:r.String,name:"WIND_DIRECTION",defaultRole:"value.direction.wind",defaultUnit:"\xb0"},{role:/^value\.speed\.wind\.gust$/,indicator:!1,type:r.Number,name:"WIND_GUST",defaultRole:"value.speed.wind.gust",defaultUnit:"km/h"},{role:/^value\.speed\.wind$/,indicator:!1,type:r.Number,name:"WIND_SPEED",defaultRole:"value.speed.wind$",defaultUnit:"km/h"},o.lowbat,o.unreach,o.maintain,o.error],type:n.weatherCurrent},camera:{states:[{role:/^camera(\.\w+)?$/,indicator:!1,type:r.File,name:"FILE",required:!0,defaultRole:"camera"},{role:/^switch(\.camera)?\.autofocus$/,indicator:!1,type:r.Boolean,write:!0,name:"AUTOFOCUS",required:!1,defaultRole:"switch.camera.autofocus"},{role:/^switch(\.camera)?\.autowhitebalance$/,indicator:!1,type:r.Boolean,write:!0,name:"AUTOWHITEBALANCE",required:!1,defaultRole:"switch.camera.autowhitebalance"},{role:/^switch(\.camera)?\.brightness$/,indicator:!1,type:r.Boolean,write:!0,name:"BRIGHTNESS",required:!1,defaultRole:"switch.camera.brightness"},{role:/^switch(\.camera)?\.nightmode$/,indicator:!1,type:r.Boolean,write:!0,name:"NIGHTMODE",required:!1,defaultRole:"switch.camera.nightmode"},{role:/^level(\.camera)?\.position$|^level(\.camera)?(\.ptz)$/,indicator:!1,type:r.Number,write:!0,name:"PTZ",required:!1,defaultRole:"level.camera.position"},o.unreach,o.lowbat,o.maintain,o.error],type:n.camera,enumRequired:!1},lock:{states:[{role:/^switch\.lock$/,indicator:!1,type:r.Boolean,write:!0,name:"SET",required:!0,defaultRole:"switch.lock"},{role:/^state$/,indicator:!1,type:r.Boolean,write:!1,name:"ACTUAL",required:!1,defaultRole:"state"},{indicator:!1,type:r.Boolean,write:!0,read:!1,name:"OPEN",required:!1,noSubscribe:!0,defaultRole:"button"},o.direction,o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.lock},motion:{states:[{role:/^state\.motion$|^sensor\.motion$/,indicator:!1,type:r.Boolean,name:"ACTUAL",required:!0,defaultRole:"sensor.motion"},{role:/brightness$/,indicator:!1,type:r.Number,name:"SECOND",required:!1,defaultRole:"value.brightness",defaultUnit:"lux"},o.unreach,o.lowbat,o.maintain,o.error],type:n.motion},window:{states:[{role:/^state(\.window)?$|^sensor(\.window)?/,indicator:!1,type:r.Boolean,enums:i.roleOrEnumWindow,name:"ACTUAL",required:!0,defaultRole:"sensor.window"},o.unreach,o.lowbat,o.maintain,o.error],type:n.window},windowTilt:{states:[{role:/^state?$|^value(\.window)?$/,indicator:!1,type:r.Number,enums:i.roleOrEnumWindow,name:"ACTUAL",required:!0,defaultRole:"value.window"},o.unreach,o.lowbat,o.maintain,o.error],type:n.windowTilt},fireAlarm:{states:[{role:/^(state|sensor|indicator)(\.alarm)?\.fire$/,indicator:!1,type:r.Boolean,name:"ACTUAL",required:!0,defaultRole:"sensor.alarm.fire",defaultChannelRole:"sensor.alarm.fire"},o.unreach,o.lowbat,o.maintain,o.error],type:n.fireAlarm,enumRequired:!1},floodAlarm:{states:[{role:/^(state|sensor|indicator)(\.alarm)?\.flood$/,indicator:!1,type:r.Boolean,name:"ACTUAL",required:!0,defaultRole:"sensor.alarm.flood",defaultChannelRole:"sensor.alarm.flood"},o.unreach,o.lowbat,o.maintain,o.error],type:n.floodAlarm},door:{states:[{role:/^state?$|^state(\.door)?$|^sensor(\.door)?/,indicator:!1,type:r.Boolean,write:!1,enums:i.roleOrEnumDoor,name:"ACTUAL",required:!0,defaultRole:"sensor.door"},o.unreach,o.lowbat,o.maintain,o.error],type:n.door},dimmer:{states:[{role:/^level(\.dimmer)?$|^level\.brightness$/,indicator:!1,type:r.Number,write:!0,enums:i.roleOrEnumLight,name:"SET",required:!0,defaultRole:"level.dimmer",ignoreRole:/^level\.dimspeed$/,defaultUnit:"%"},{role:/^value(\.dimmer)?$/,indicator:!1,type:r.Number,write:!1,enums:i.roleOrEnumLight,name:"ACTUAL",required:!1,defaultRole:"value.dimmer",defaultUnit:"%"},{role:/^switch(\.light)?$|^state$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumLight,name:"ON_SET",required:!1,defaultRole:"switch.light"},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:r.Boolean,write:!1,enums:i.roleOrEnumLight,name:"ON_ACTUAL",required:!1,defaultRole:"sensor.light"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.dimmer},light:{states:[{role:/^switch(\.light)?$|^state$/,indicator:!1,type:r.Boolean,write:!0,enums:i.roleOrEnumLight,name:"SET",required:!0,defaultRole:"switch.light"},{role:/^(state|switch|sensor)\.light|switch$/,indicator:!1,type:r.Boolean,write:!1,enums:i.roleOrEnumLight,name:"ON_ACTUAL",required:!1,defaultRole:"sensor.light"},{role:/^value\.power$/,indicator:!1,type:r.Number,write:!1,enums:i.roleOrEnumLight,name:"ELECTRIC_POWER",required:!1,defaultRole:"value.power",defaultUnit:"W"},{role:/^value\.current$/,indicator:!1,type:r.Number,write:!1,enums:i.roleOrEnumLight,name:"CURRENT",required:!1,defaultRole:"value.current",defaultUnit:"mA"},{role:/^value\.voltage$/,indicator:!1,type:r.Number,write:!1,enums:i.roleOrEnumLight,name:"VOLTAGE",required:!1,defaultRole:"value.voltage",defaultUnit:"V"},{role:/^value\.power\.consumption$/,indicator:!1,type:r.Number,write:!1,enums:i.roleOrEnumLight,name:"CONSUMPTION",required:!1,defaultRole:"value.power.consumption",defaultUnit:"Wh"},{role:/^value\.frequency$/,indicator:!1,type:r.Number,write:!1,enums:i.roleOrEnumLight,name:"FREQUENCY",required:!1,defaultRole:"value.frequency",defaultUnit:"Hz"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.light},volume:{states:[{role:/^level\.volume$/,indicator:!1,type:r.Number,min:r.Number,max:r.Number,write:!0,name:"SET",required:!0,defaultRole:"level.volume"},{role:/^value\.volume$/,indicator:!1,type:r.Number,min:r.Number,max:r.Number,write:!1,name:"ACTUAL",required:!1,defaultRole:"value.volume"},{role:/^media\.mute$/,indicator:!1,type:r.Boolean,write:!0,name:"MUTE",required:!1,defaultRole:"media.mute"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.volume},location_one:{states:[{role:/^value\.gps$/,indicator:!1,type:r.String,write:!1,name:"GPS",required:!0,defaultRole:"value.gps"},{role:/^value\.gps\.elevation$/,indicator:!1,type:r.Number,write:!1,name:"ELEVATION",required:!1,defaultRole:"value.gps.elevation"},{role:/^value\.radius$|value\.gps\.radius$/,indicator:!1,type:r.Number,write:!1,name:"RADIUS",required:!1,defaultRole:"value.gps.radius"},{role:/^value\.accuracy$|^value\.gps\.accuracy$/,indicator:!1,type:r.Number,write:!1,name:"ACCURACY",required:!1,defaultRole:"value.gps.accuracy"},o.unreach,o.lowbat,o.maintain,o.error],type:n.location},location:{states:[{role:/^value\.gps\.longitude$/,indicator:!1,type:r.Number,write:!1,name:"LONGITUDE",required:!0,defaultRole:"value.gps.longitude",defaultUnit:"\xb0"},{role:/^value\.gps\.latitude$/,indicator:!1,type:r.Number,write:!1,name:"LATITUDE",required:!0,defaultRole:"value.gps.latitude",defaultUnit:"\xb0"},{role:/^value\.gps\.elevation$/,indicator:!1,type:r.Number,write:!1,name:"ELEVATION",required:!1,defaultRole:"value.gps.elevation"},{role:/^value\.radius$|value\.gps\.radius$/,indicator:!1,type:r.Number,write:!1,name:"RADIUS",required:!1,defaultRole:"value.gps.radius"},{role:/^value\.accuracy$|^value\.gps\.accuracy$/,indicator:!1,type:r.Number,write:!1,name:"ACCURACY",required:!1,defaultRole:"value.gps.accuracy"},o.unreach,o.lowbat,o.maintain,o.error],type:n.location},volumeGroup:{states:[{role:/^level\.volume\.group?$/,indicator:!1,type:r.Number,min:r.Number,max:r.Number,write:!0,name:"SET",required:!0,defaultRole:"level.volume.group"},{role:/^value\.volume\.group$/,indicator:!1,type:r.Number,min:r.Number,max:r.Number,write:!1,name:"ACTUAL",required:!1,defaultRole:"value.volume.group"},{role:/^media\.mute\.group$/,indicator:!1,type:r.Boolean,write:!0,name:"MUTE",required:!1,defaultRole:"media.mute.group"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.volumeGroup},levelSlider:{states:[{role:/^level(\..*)?$/,indicator:!1,type:r.Number,min:r.Number,max:r.Number,write:!0,name:"SET",required:!0,defaultRole:"level",defaultUnit:"%"},{role:/^value(\..*)?$/,indicator:!1,type:r.Number,min:r.Number,max:r.Number,write:!1,name:"ACTUAL",required:!1,defaultRole:"value"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.slider},socket:{states:[{role:/^switch$|^state$|^switch\.active$/,indicator:!1,type:r.Boolean,write:!0,name:"SET",required:!0,defaultRole:"switch"},{role:/^state$|^state\.active$/,indicator:!1,type:r.Boolean,write:!1,name:"ACTUAL",required:!1,defaultRole:"switch"},{role:/^value\.power$/,indicator:!1,type:r.Number,write:!1,name:"ELECTRIC_POWER",required:!1,defaultRole:"value.power",defaultUnit:"W"},{role:/^value\.current$/,indicator:!1,type:r.Number,write:!1,name:"CURRENT",required:!1,defaultRole:"value.current",defaultUnit:"mA"},{role:/^value\.voltage$/,indicator:!1,type:r.Number,write:!1,name:"VOLTAGE",required:!1,defaultRole:"value.voltage",defaultUnit:"V"},{role:/^value\.power\.consumption$/,indicator:!1,type:r.Number,write:!1,name:"CONSUMPTION",required:!1,defaultRole:"value.power.consumption",defaultUnit:"Wh"},{role:/^value\.frequency$/,indicator:!1,type:r.Number,write:!1,name:"FREQUENCY",required:!1,defaultRole:"value.frequency",defaultUnit:"Hz"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.socket},button:{states:[{role:/^button(\.[.\w]+)?$|^action(\.[.\w]+)?$/,indicator:!1,type:r.Boolean,read:!1,write:!0,name:"SET",required:!0,noSubscribe:!0,defaultRole:"button"},o.unreach,o.lowbat,o.maintain,o.error],type:n.button},buttonSensor:{states:[{role:/^button(\.[.\w]+)?$/,indicator:!1,type:r.Boolean,read:!0,write:!1,name:"PRESS",required:!0,defaultRole:"button.press"},{role:/^button\.long/,indicator:!1,type:r.Boolean,read:!0,write:!1,name:"PRESS_LONG",required:!1,defaultRole:"button.long"},o.unreach,o.lowbat,o.maintain,o.error],type:n.buttonSensor},temperature:{states:[{role:/temperature$/,indicator:!1,write:!1,type:r.Number,name:"ACTUAL",required:!0,defaultRole:"value.temperature",defaultUnit:"\xb0C"},{role:/humidity$/,indicator:!1,write:!1,type:r.Number,name:"SECOND",required:!1,defaultRole:"value.humidity",defaultUnit:"%"},o.unreach,o.lowbat,o.maintain,o.error],type:n.temperature},humidity:{states:[{role:/humidity$/,indicator:!1,write:!1,type:r.Number,name:"ACTUAL",required:!0,defaultRole:"value.humidity",defaultUnit:"%"},o.unreach,o.lowbat,o.maintain,o.error],type:n.humidity},image:{states:[{role:/\.icon$|^icon$|^icon\.|\.icon\.|\.chart\.url\.|\.chart\.url$|^url.icon$/,indicator:!1,write:!1,type:r.String,name:"URL",required:!0},o.unreach,o.lowbat,o.maintain,o.error],type:n.image},info:{states:[{indicator:!1,name:"ACTUAL",required:!0,multiple:!0,noDeviceDetection:!0,ignoreRole:/\.inhibit$/,defaultRole:"state"},o.working,o.unreach,o.lowbat,o.maintain,o.error],type:n.info}},i.lightWords={en:[/lights?/i,/lamps?/i,/ceilings?/i],de:[/licht(er)?/i,/lampen?/i,/beleuchtung(en)?/i],ru:[/\u0441\u0432\u0435\u0442/i,/\u043b\u0430\u043c\u043f[\u0430\u044b]/i,/\u0442\u043e\u0440\u0448\u0435\u0440\u044b?/,/\u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a[\u0430\u0438]/i,/\u043b\u0430\u043c\u043f\u043e\u0447\u043a[\u0430\u0438]/i,/\u0441\u0432\u0435\u0442\u0438\u043b\u044c\u043d\u0438\u043a\u0438?/i]},i.lightRoles=["switch.light","dimmer","value.dimmer","level.dimmer","sensor.light","state.light"],i.blindWords={en:[/blinds?/i,/windows?/i,/shutters?/i],de:[/rollladen?/i,/fenstern?/i,/beschattung(en)?/i,/jalousien?/i],ru:[/\u0441\u0442\u0430\u0432\u043d\u0438/i,/\u0440\u043e\u043b\u044c\u0441\u0442\u0430\u0432\u043d\u0438/i,/\u043e\u043a\u043d\u0430|\u043e\u043a\u043d\u043e/,/\u0436\u0430\u043b\u044e\u0437\u0438/i]},i.blindRoles=["blind","level.blind","value.blind","action.stop","button.stop","button.stop.blind","button.open.blind","button.close.blind","level.tilt","value.tilt","button.tilt.open","button.tilt.close","button.tilt.stop"],i.gateWords={en:[/gates?/i],de:[/^toren$/i,/^tor$/i],ru:[/\u0432\u043e\u0440\u043e\u0442\u0430/i]},i.gateRoles=["gate","value.gate","switch.gate","action.stop","button.stop"],i.windowRoles=["window","state.window","sensor.window","value.window"],i.doorsWords={en:[/doors?/i,/gates?/i,/wickets?/i,/entry|entries/i],de:[/^t\xfcre?/i,/^tuere?/i,/^tore?$/i,/einfahrt(en)?/i,/pforten?/i],ru:[/\u0434\u0432\u0435\u0440\u0438|\u0434\u0432\u0435\u0440\u044c/i,/\u0432\u043e\u0440\u043e\u0442\u0430/i,/\u043a\u0430\u043b\u0438\u0442\u043a\u0430|\u043a\u0430\u043b\u0438\u0442\u043a\u0438/,/\u0432\u044a\u0435\u0437\u0434\u044b?/i,/\u0432\u0445\u043e\u0434\u044b?/i]},i.doorsRoles=["door","state.door","sensor.door"],t.Ay=i},64600:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},122:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},33e3:()=>{var e="focus-outline-hidden";function t(){var e=this;document.addEventListener("keydown",(function(t){e.focusByKeyboard=!0}),!0),document.addEventListener("mousedown",(function(t){e.focusByKeyboard=!1}),!0),document.addEventListener("focus",(function(t){e.updateVisibility()}),!0),document.addEventListener("focusout",(function(t){window.setTimeout((function(){document.hasFocus()||(e.focusByKeyboard=!0,e.updateVisibility())}),0)})),this.updateVisibility()}t.prototype={focusByKeyboard:!0,updateVisibility:function(){this.hidden=!this.focusByKeyboard},set hidden(t){document.documentElement.classList.toggle(e,t)},get hidden(){return document.documentElement.classList.contains(e)}},new t},10446:(e,t,n)=>{var r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=l||d||Function("return this")(),h=Object.prototype.toString,p=Math.max,g=Math.min,v=function(){return f.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,o,i,a,s,c,u=0,l=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function y(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-u>=i}function w(){var e=v();if(y(e))return _(e);s=setTimeout(w,function(e){var n=t-(e-c);return d?g(n,i-(e-u)):n}(e))}function _(e){return s=void 0,f&&r?h(e):(r=o=void 0,a)}function S(){var e=v(),n=y(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(w,t),l?h(e):a}(c);if(d)return s=setTimeout(w,t),h(c)}return void 0===s&&(s=setTimeout(w,t)),a}return t=b(t)||0,m(n)&&(l=!!n.leading,i=(d="maxWait"in n)?p(b(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=o=s=void 0},S.flush=function(){return void 0===s?a:_(v())},S}},53536:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",c=16,u=32,l=64,d=128,f=256,h=1/0,p=9007199254740991,g=NaN,v=4294967295,m=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",f]],b="[object Arguments]",y="[object Array]",w="[object Boolean]",_="[object Date]",S="[object Error]",E="[object Function]",O="[object GeneratorFunction]",x="[object Map]",C="[object Number]",R="[object Object]",I="[object Promise]",T="[object RegExp]",A="[object Set]",k="[object String]",P="[object Symbol]",N="[object WeakMap]",D="[object ArrayBuffer]",j="[object DataView]",M="[object Float32Array]",L="[object Float64Array]",B="[object Int8Array]",q="[object Int16Array]",z="[object Int32Array]",F="[object Uint8Array]",$="[object Uint8ClampedArray]",H="[object Uint16Array]",U="[object Uint32Array]",W=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,Y=RegExp(G.source),J=RegExp(X.source),Q=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Oe="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Re="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Ae="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="['\u2019]",Pe="["+Oe+"]",Ne="["+Ae+"]",De="["+xe+"]",je="\\d+",Me="["+Ce+"]",Le="["+Re+"]",Be="[^"+Oe+Ae+je+Ce+Re+Ie+"]",qe="\\ud83c[\\udffb-\\udfff]",ze="[^"+Oe+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",$e="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Ie+"]",Ue="\\u200d",We="(?:"+Le+"|"+Be+")",Ve="(?:"+He+"|"+Be+")",Ke="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Xe="(?:"+De+"|"+qe+")"+"?",Ye="["+Te+"]?",Je=Ye+Xe+("(?:"+Ue+"(?:"+[ze,Fe,$e].join("|")+")"+Ye+Xe+")*"),Qe="(?:"+[Me,Fe,$e].join("|")+")"+Je,Ze="(?:"+[ze+De+"?",De,Fe,$e,Pe].join("|")+")",et=RegExp(ke,"g"),tt=RegExp(De,"g"),nt=RegExp(qe+"(?="+qe+")|"+Ze+Je,"g"),rt=RegExp([He+"?"+Le+"+"+Ke+"(?="+[Ne,He,"$"].join("|")+")",Ve+"+"+Ge+"(?="+[Ne,He+We,"$"].join("|")+")",He+"?"+We+"+"+Ke,He+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Qe].join("|"),"g"),ot=RegExp("["+Ue+Oe+xe+Te+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ct={};ct[M]=ct[L]=ct[B]=ct[q]=ct[z]=ct[F]=ct[$]=ct[H]=ct[U]=!0,ct[b]=ct[y]=ct[D]=ct[w]=ct[j]=ct[_]=ct[S]=ct[E]=ct[x]=ct[C]=ct[R]=ct[T]=ct[A]=ct[k]=ct[N]=!1;var ut={};ut[b]=ut[y]=ut[D]=ut[j]=ut[w]=ut[_]=ut[M]=ut[L]=ut[B]=ut[q]=ut[z]=ut[x]=ut[C]=ut[R]=ut[T]=ut[A]=ut[k]=ut[P]=ut[F]=ut[$]=ut[H]=ut[U]=!0,ut[S]=ut[E]=ut[N]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=ht||pt||Function("return this")(),vt=t&&!t.nodeType&&t,mt=vt&&e&&!e.nodeType&&e,bt=mt&&mt.exports===vt,yt=bt&&ht.process,wt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(t){}}(),_t=wt&&wt.isArrayBuffer,St=wt&&wt.isDate,Et=wt&&wt.isMap,Ot=wt&&wt.isRegExp,xt=wt&&wt.isSet,Ct=wt&&wt.isTypedArray;function Rt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Nt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Dt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function jt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Mt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Lt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Bt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function qt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Kt("length");function Ft(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function $t(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,n){return t===t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):$t(e,Wt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Wt(e){return e!==e}function Vt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:g}function Kt(e){return function(t){return null==t?o:t[e]}}function Gt(e){return function(t){return null==e?o:e[t]}}function Xt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Jt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,vn(e)+1).replace(ae,""):e}function Zt(e){return function(t){return e(t)}}function en(e,t){return jt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Ht(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}var on=Gt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+lt[e]}function cn(e){return ot.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return cn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):zt(e)}function gn(e){return cn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function vn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var mn=Gt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var bn=function e(t){var n=(t=null==t?gt:bn.defaults(gt.Object(),t,bn.pick(gt,at))).Array,r=t.Date,se=t.Error,Oe=t.Function,xe=t.Math,Ce=t.Object,Re=t.RegExp,Ie=t.String,Te=t.TypeError,Ae=n.prototype,ke=Oe.prototype,Pe=Ce.prototype,Ne=t["__core-js_shared__"],De=ke.toString,je=Pe.hasOwnProperty,Me=0,Le=function(){var e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Be=Pe.toString,qe=De.call(Ce),ze=gt._,Fe=Re("^"+De.call(je).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=bt?t.Buffer:o,He=t.Symbol,Ue=t.Uint8Array,We=$e?$e.allocUnsafe:o,Ve=ln(Ce.getPrototypeOf,Ce),Ke=Ce.create,Ge=Pe.propertyIsEnumerable,Xe=Ae.splice,Ye=He?He.isConcatSpreadable:o,Je=He?He.iterator:o,Qe=He?He.toStringTag:o,Ze=function(){try{var e=fi(Ce,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,ot=r&&r.now!==gt.Date.now&&r.now,lt=t.setTimeout!==gt.setTimeout&&t.setTimeout,ht=xe.ceil,pt=xe.floor,vt=Ce.getOwnPropertySymbols,mt=$e?$e.isBuffer:o,yt=t.isFinite,wt=Ae.join,zt=ln(Ce.keys,Ce),Gt=xe.max,yn=xe.min,wn=r.now,_n=t.parseInt,Sn=xe.random,En=Ae.reverse,On=fi(t,"DataView"),xn=fi(t,"Map"),Cn=fi(t,"Promise"),Rn=fi(t,"Set"),In=fi(t,"WeakMap"),Tn=fi(Ce,"create"),An=In&&new In,kn={},Pn=Bi(On),Nn=Bi(xn),Dn=Bi(Cn),jn=Bi(Rn),Mn=Bi(In),Ln=He?He.prototype:o,Bn=Ln?Ln.valueOf:o,qn=Ln?Ln.toString:o;function zn(e){if(ts(e)&&!Ua(e)&&!(e instanceof Un)){if(e instanceof Hn)return e;if(je.call(e,"__wrapped__"))return qi(e)}return new Hn(e)}var Fn=function(){function e(){}return function(t){if(!es(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function $n(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Yn(e,t){var n=Ua(e),r=!n&&Ha(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&us(e),a=n||r||o||i,s=a?Jt(e.length,Ie):[],c=s.length;for(var u in e)!t&&!je.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||yi(u,c))||s.push(u);return s}function Jn(e){var t=e.length;return t?e[Gr(0,t-1)]:o}function Qn(e,t){return ji(Ao(e),sr(t,0,e.length))}function Zn(e){return ji(Ao(e))}function er(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&ir(e,t,n)}function tr(e,t,n){var r=e[t];je.call(e,t)&&za(r,n)&&(n!==o||t in e)||ir(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function rr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function or(e,t){return e&&ko(t,ks(t),e)}function ir(e,t,n){"__proto__"==t&&Ze?Ze(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,i=t.length,a=n(i),s=null==e;++r<i;)a[r]=s?o:Cs(e,t[r]);return a}function sr(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,a){var s,c=1&t,u=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!es(e))return e;var d=Ua(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Ao(e,s)}else{var f=gi(e),h=f==E||f==O;if(Ga(e))return Oo(e,c);if(f==R||f==b||h&&!i){if(s=u||h?{}:mi(e),!c)return u?function(e,t){return ko(e,pi(e),t)}(e,function(e,t){return e&&ko(t,Ps(t),e)}(s,e)):function(e,t){return ko(e,hi(e),t)}(e,or(s,e))}else{if(!ut[f])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case D:return xo(e);case w:case _:return new r(+e);case j:return function(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case M:case L:case B:case q:case z:case F:case $:case H:case U:return Co(e,n);case x:return new r;case C:case k:return new r(e);case T:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new r;case P:return o=e,Bn?Ce(Bn.call(o)):{}}var o}(e,f,c)}}a||(a=new Xn);var p=a.get(e);if(p)return p;a.set(e,s),as(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,a))})):ns(e)&&e.forEach((function(r,o){s.set(o,cr(r,t,n,o,e,a))}));var g=d?o:(l?u?ii:oi:u?Ps:ks)(e);return Tt(g||e,(function(r,o){g&&(r=e[o=r]),tr(s,o,cr(r,t,n,o,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Te(i);return ki((function(){e.apply(o,n)}),t)}function dr(e,t,n,r){var o=-1,i=Nt,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=jt(t,Zt(n))),r?(i=Dt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Gn(t));e:for(;++o<s;){var l=e[o],d=null==n?l:n(l);if(l=r||0!==l?l:0,a&&d===d){for(var f=u;f--;)if(t[f]===d)continue e;c.push(l)}else i(t,d,r)||c.push(l)}return c}zn.templateSettings={escape:Q,evaluate:Z,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=$n.prototype,zn.prototype.constructor=zn,Hn.prototype=Fn($n.prototype),Hn.prototype.constructor=Hn,Un.prototype=Fn($n.prototype),Un.prototype.constructor=Un,Wn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===a?o:n}return je.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==o:je.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===o?a:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Vn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?o:t[n][1]},Vn.prototype.has=function(e){return nr(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(xn||Vn),string:new Wn}},Kn.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return li(this,e).get(e)},Kn.prototype.has=function(e){return li(this,e).has(e)},Kn.prototype.set=function(e,t){var n=li(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,a),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var fr=Do(wr),hr=Do(_r,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(c===o?s===s&&!cs(s):n(s,c)))var c=s,u=a}return u}function vr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=bi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,o):Mt(o,s):r||(o[o.length]=s)}return o}var br=jo(),yr=jo(!0);function wr(e,t){return e&&br(e,t,ks)}function _r(e,t){return e&&yr(e,t,ks)}function Sr(e,t){return Pt(t,(function(t){return Ja(e[t])}))}function Er(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[Li(t[n++])];return n&&n==r?e:o}function Or(e,t,n){var r=t(e);return Ua(e)?r:Mt(r,n(e))}function xr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in Ce(e)?function(e){var t=je.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(a){}var i=Be.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return Be.call(e)}(e)}function Cr(e,t){return e>t}function Rr(e,t){return null!=e&&je.call(e,t)}function Ir(e,t){return null!=e&&t in Ce(e)}function Tr(e,t,r){for(var i=r?Dt:Nt,a=e[0].length,s=e.length,c=s,u=n(s),l=1/0,d=[];c--;){var f=e[c];c&&t&&(f=jt(f,Zt(t))),l=yn(f.length,l),u[c]=!r&&(t||a>=120&&f.length>=120)?new Gn(c&&f):o}f=e[0];var h=-1,p=u[0];e:for(;++h<a&&d.length<l;){var g=f[h],v=t?t(g):g;if(g=r||0!==g?g:0,!(p?tn(p,v):i(d,v,r))){for(c=s;--c;){var m=u[c];if(!(m?tn(m,v):i(e[c],v,r)))continue e}p&&p.push(v),d.push(g)}}return d}function Ar(e,t,n){var r=null==(e=Ii(e,t=wo(t,e)))?e:e[Li(Yi(t))];return null==r?o:Rt(r,e,n)}function kr(e){return ts(e)&&xr(e)==b}function Pr(e,t,n,r,i){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!==e&&t!==t:function(e,t,n,r,i,a){var s=Ua(e),c=Ua(t),u=s?y:gi(e),l=c?y:gi(t),d=(u=u==b?R:u)==R,f=(l=l==b?R:l)==R,h=u==l;if(h&&Ga(e)){if(!Ga(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Xn),s||us(e)?ni(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!i(new Ue(e),new Ue(t)));case w:case _:case C:return za(+e,+t);case S:return e.name==t.name&&e.message==t.message;case T:case k:return e==t+"";case x:var s=un;case A:var c=1&r;if(s||(s=fn),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var l=ni(s(e),s(t),r,o,i,a);return a.delete(e),l;case P:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var p=d&&je.call(e,"__wrapped__"),g=f&&je.call(t,"__wrapped__");if(p||g){var v=p?e.value():e,m=g?t.value():t;return a||(a=new Xn),i(v,m,n,r,a)}}if(!h)return!1;return a||(a=new Xn),function(e,t,n,r,i,a){var s=1&n,c=oi(e),u=c.length,l=oi(t),d=l.length;if(u!=d&&!s)return!1;var f=u;for(;f--;){var h=c[f];if(!(s?h in t:je.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);var m=s;for(;++f<u;){var b=e[h=c[f]],y=t[h];if(r)var w=s?r(y,b,h,t,e,a):r(b,y,h,e,t,a);if(!(w===o?b===y||i(b,y,n,r,a):w)){v=!1;break}m||(m="constructor"==h)}if(v&&!m){var _=e.constructor,S=t.constructor;_==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof S&&S instanceof S||(v=!1)}return a.delete(e),a.delete(t),v}(e,t,n,r,i,a)}(e,t,n,r,Pr,i))}function Nr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ce(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var u=(c=n[i])[0],l=e[u],d=c[1];if(s&&c[2]){if(l===o&&!(u in e))return!1}else{var f=new Xn;if(r)var h=r(l,d,u,e,t,f);if(!(h===o?Pr(d,l,3,r,f):h))return!1}}return!0}function Dr(e){return!(!es(e)||(t=e,Le&&Le in t))&&(Ja(e)?Fe:be).test(Bi(e));var t}function jr(e){return"function"==typeof e?e:null==e?rc:"object"==typeof e?Ua(e)?Fr(e[0],e[1]):zr(e):fc(e)}function Mr(e){if(!Oi(e))return zt(e);var t=[];for(var n in Ce(e))je.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Oi(e),n=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&n.push(r);return n}function Br(e,t){return e<t}function qr(e,t){var r=-1,o=Va(e)?n(e.length):[];return fr(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function zr(e){var t=di(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Fr(e,t){return _i(e)&&xi(t)?Ci(Li(e),t):function(n){var r=Cs(n,e);return r===o&&r===t?Rs(n,e):Pr(t,r,3)}}function $r(e,t,n,r,i){e!==t&&br(t,(function(a,s){if(i||(i=new Xn),es(a))!function(e,t,n,r,i,a,s){var c=Ti(e,n),u=Ti(t,n),l=s.get(u);if(l)return void er(e,n,l);var d=a?a(c,u,n+"",e,t,s):o,f=d===o;if(f){var h=Ua(u),p=!h&&Ga(u),g=!h&&!p&&us(u);d=u,h||p||g?Ua(c)?d=c:Ka(c)?d=Ao(c):p?(f=!1,d=Oo(u,!0)):g?(f=!1,d=Co(u,!0)):d=[]:os(u)||Ha(u)?(d=c,Ha(c)?d=ms(c):es(c)&&!Ja(c)||(d=mi(u))):f=!1}f&&(s.set(u,d),i(d,u,r,a,s),s.delete(u));er(e,n,d)}(e,t,s,n,$r,r,i);else{var c=r?r(Ti(e,s),a,s+"",e,t,i):o;c===o&&(c=a),er(e,s,c)}}),Ps)}function Hr(e,t){var n=e.length;if(n)return yi(t+=t<0?n:0,n)?e[t]:o}function Ur(e,t,n){t=t.length?jt(t,(function(e){return Ua(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[rc];var r=-1;t=jt(t,Zt(ui()));var o=qr(e,(function(e,n,o){var i=jt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var c=Ro(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Er(e,a);n(s,a)&&Zr(i,wo(a,e),s)}return i}function Vr(e,t,n,r){var o=r?Ut:Ht,i=-1,a=t.length,s=e;for(e===t&&(t=Ao(t)),n&&(s=jt(e,Zt(n)));++i<a;)for(var c=0,u=t[i],l=n?n(u):u;(c=o(s,l,c,r))>-1;)s!==e&&Xe.call(s,c,1),Xe.call(e,c,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;yi(o)?Xe.call(e,o,1):fo(e,o)}}return e}function Gr(e,t){return e+pt(Sn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return Pi(Ri(e,t,rc),e+"")}function Jr(e){return Jn(zs(e))}function Qr(e,t){var n=zs(e);return ji(n,sr(t,0,n.length))}function Zr(e,t,n,r){if(!es(e))return e;for(var i=-1,a=(t=wo(t,e)).length,s=a-1,c=e;null!=c&&++i<a;){var u=Li(t[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var d=c[u];(l=r?r(d,u,c):o)===o&&(l=es(d)?d:yi(t[i+1])?[]:{})}tr(c,u,l),c=c[u]}return e}var eo=An?function(e,t){return An.set(e,t),e}:rc,to=Ze?function(e,t){return Ze(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:rc;function no(e){return ji(zs(e))}function ro(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function oo(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function io(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ao(e,t,rc,n)}function ao(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,c=null===t,u=cs(t),l=t===o;i<a;){var d=pt((i+a)/2),f=n(e[d]),h=f!==o,p=null===f,g=f===f,v=cs(f);if(s)var m=r||g;else m=l?g&&(r||h):c?g&&h&&(r||!p):u?g&&h&&!p&&(r||!v):!p&&!v&&(r?f<=t:f<t);m?i=d+1:a=d}return yn(a,4294967294)}function so(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!za(s,c)){var c=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?g:+e}function uo(e){if("string"==typeof e)return e;if(Ua(e))return jt(e,uo)+"";if(cs(e))return qn?qn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,n){var r=-1,o=Nt,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=Dt;else if(i>=200){var u=t?null:Yo(e);if(u)return fn(u);a=!1,o=tn,c=new Gn}else c=t?[]:s;e:for(;++r<i;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,a&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(l)}else o(c,d,n)||(c!==s&&c.push(d),s.push(l))}return s}function fo(e,t){return null==(e=Ii(e,t=wo(t,e)))||delete e[Li(Yi(t))]}function ho(e,t,n,r){return Zr(e,t,n(Er(e,t)),r)}function po(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ro(e,r?0:i,r?i+1:o):ro(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Un&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))}),n)}function vo(e,t,r){var o=e.length;if(o<2)return o?lo(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var s=e[i],c=-1;++c<o;)c!=i&&(a[i]=dr(a[i]||s,e[c],t,r));return lo(mr(a,1),t,r)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var c=r<a?t[r]:o;n(s,e[r],c)}return s}function bo(e){return Ka(e)?e:[]}function yo(e){return"function"==typeof e?e:rc}function wo(e,t){return Ua(e)?e:_i(e,t)?[e]:Mi(bs(e))}var _o=Yr;function So(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:ro(e,t,n)}var Eo=nt||function(e){return gt.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function xo(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Co(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ro(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=cs(e),s=t!==o,c=null===t,u=t===t,l=cs(t);if(!c&&!l&&!a&&e>t||a&&s&&u&&!c&&!l||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||c&&n&&i||!s&&i||!u)return-1}return 0}function Io(e,t,r,o){for(var i=-1,a=e.length,s=r.length,c=-1,u=t.length,l=Gt(a-s,0),d=n(u+l),f=!o;++c<u;)d[c]=t[c];for(;++i<s;)(f||i<a)&&(d[r[i]]=e[i]);for(;l--;)d[c++]=e[i++];return d}function To(e,t,r,o){for(var i=-1,a=e.length,s=-1,c=r.length,u=-1,l=t.length,d=Gt(a-c,0),f=n(d+l),h=!o;++i<d;)f[i]=e[i];for(var p=i;++u<l;)f[p+u]=t[u];for(;++s<c;)(h||i<a)&&(f[p+r[s]]=e[i++]);return f}function Ao(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function ko(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var c=t[a],u=r?r(n[c],e[c],c,n,e):o;u===o&&(u=e[c]),i?ir(n,c,u):tr(n,c,u)}return n}function Po(e,t){return function(n,r){var o=Ua(n)?It:rr,i=t?t():{};return o(n,e,ui(r,2),i)}}function No(e){return Yr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&wi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ce(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}function Do(e,t){return function(n,r){if(null==n)return n;if(!Va(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function jo(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}function Mo(e){return function(t){var n=cn(t=bs(t))?gn(t):o,r=n?n[0]:t.charAt(0),i=n?So(n,1).join(""):t.slice(1);return r[e]()+i}}function Lo(e){return function(t){return Lt(Js(Hs(t).replace(et,"")),e,"")}}function Bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function qo(e){return function(t,n,r){var i=Ce(t);if(!Va(t)){var a=ui(n,3);t=ks(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function zo(e){return ri((function(t){var n=t.length,r=n,a=Hn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Te(i);if(a&&!c&&"wrapper"==si(s))var c=new Hn([],!0)}for(r=c?r:n;++r<n;){var u=si(s=t[r]),l="wrapper"==u?ai(s):o;c=l&&Si(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[si(l[0])].apply(c,l[3]):1==s.length&&Si(s)?c[u]():c.thru(s)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Ua(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,r,i,a,s,c,u,l,f){var h=t&d,p=1&t,g=2&t,v=24&t,m=512&t,b=g?o:Bo(e);return function d(){for(var y=arguments.length,w=n(y),_=y;_--;)w[_]=arguments[_];if(v)var S=ci(d),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(i&&(w=Io(w,i,a,v)),s&&(w=To(w,s,c,v)),y-=E,v&&y<f){var O=dn(w,S);return Go(e,t,Fo,d.placeholder,r,w,O,u,l,f-y)}var x=p?r:this,C=g?x[e]:e;return y=w.length,u?w=function(e,t){var n=e.length,r=yn(t.length,n),i=Ao(e);for(;r--;){var a=t[r];e[r]=yi(a,n)?i[a]:o}return e}(w,u):m&&y>1&&w.reverse(),h&&l<y&&(w.length=l),this&&this!==gt&&this instanceof d&&(C=b||Bo(C)),C.apply(x,w)}}function $o(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Ho(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=co(n),r=co(r)),i=e(n,r)}return i}}function Uo(e){return ri((function(t){return t=jt(t,Zt(ui())),Yr((function(n){var r=this;return e(t,(function(e){return Rt(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Xr(t,e):t;var r=Xr(t,ht(e/pn(t)));return cn(t)?So(gn(r),0,e).join(""):r.slice(0,e)}function Vo(e){return function(t,r,i){return i&&"number"!=typeof i&&wi(t,r,i)&&(r=i=o),t=hs(t),r===o?(r=t,t=0):r=hs(r),function(e,t,r,o){for(var i=-1,a=Gt(ht((t-e)/(r||1)),0),s=n(a);a--;)s[o?a:++i]=e,e+=r;return s}(t,r,i=i===o?t<r?1:-1:hs(i),e)}}function Ko(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Go(e,t,n,r,i,a,s,c,d,f){var h=8&t;t|=h?u:l,4&(t&=~(h?l:u))||(t&=-4);var p=[e,t,i,h?a:o,h?s:o,h?o:a,h?o:s,c,d,f],g=n.apply(o,p);return Si(e)&&Ai(g,p),g.placeholder=r,Ni(g,e,t)}function Xo(e){var t=xe[e];return function(e,n){if(e=vs(e),(n=null==n?0:yn(ps(n),292))&&yt(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Yo=Rn&&1/fn(new Rn([,-0]))[1]==h?function(e){return new Rn(e)}:cc;function Jo(e){return function(t){var n=gi(t);return n==x?un(t):n==A?hn(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,r,a,h,p,g,v){var m=2&t;if(!m&&"function"!=typeof e)throw new Te(i);var b=a?a.length:0;if(b||(t&=-97,a=h=o),g=g===o?g:Gt(ps(g),0),v=v===o?v:ps(v),b-=h?h.length:0,t&l){var y=a,w=h;a=h=o}var _=m?o:ai(e),S=[e,t,r,a,h,y,w,p,g,v];if(_&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Io(u,c,t[4]):c,e[4]=u?dn(e[3],s):t[4]}(c=t[5])&&(u=e[5],e[5]=u?To(u,c,t[6]):c,e[6]=u?dn(e[5],s):t[6]);(c=t[7])&&(e[7]=c);r&d&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,_),e=S[0],t=S[1],r=S[2],a=S[3],h=S[4],!(v=S[9]=S[9]===o?m?0:e.length:Gt(S[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==c?function(e,t,r){var i=Bo(e);return function a(){for(var s=arguments.length,c=n(s),u=s,l=ci(a);u--;)c[u]=arguments[u];var d=s<3&&c[0]!==l&&c[s-1]!==l?[]:dn(c,l);return(s-=d.length)<r?Go(e,t,Fo,a.placeholder,o,c,d,o,o,r-s):Rt(this&&this!==gt&&this instanceof a?i:e,this,c)}}(e,t,v):t!=u&&33!=t||h.length?Fo.apply(o,S):function(e,t,r,o){var i=1&t,a=Bo(e);return function t(){for(var s=-1,c=arguments.length,u=-1,l=o.length,d=n(l+c),f=this&&this!==gt&&this instanceof t?a:e;++u<l;)d[u]=o[u];for(;c--;)d[u++]=arguments[++s];return Rt(f,i?r:this,d)}}(e,t,r,a);else var E=function(e,t,n){var r=1&t,o=Bo(e);return function t(){return(this&&this!==gt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return Ni((_?eo:Ai)(E,S),e,t)}function Zo(e,t,n,r){return e===o||za(e,Pe[n])&&!je.call(r,n)?t:e}function ei(e,t,n,r,i,a){return es(e)&&es(t)&&(a.set(t,e),$r(e,t,o,ei,a),a.delete(t)),e}function ti(e){return os(e)?o:e}function ni(e,t,n,r,i,a){var s=1&n,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,h=!0,p=2&n?new Gn:o;for(a.set(e,t),a.set(t,e);++f<c;){var g=e[f],v=t[f];if(r)var m=s?r(v,g,f,t,e,a):r(g,v,f,e,t,a);if(m!==o){if(m)continue;h=!1;break}if(p){if(!qt(t,(function(e,t){if(!tn(p,t)&&(g===e||i(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==v&&!i(g,v,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ri(e){return Pi(Ri(e,o,Wi),e+"")}function oi(e){return Or(e,ks,hi)}function ii(e){return Or(e,Ps,pi)}var ai=An?function(e){return An.get(e)}:cc;function si(e){for(var t=e.name+"",n=kn[t],r=je.call(kn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(je.call(zn,"placeholder")?zn:e).placeholder}function ui(){var e=zn.iteratee||oc;return e=e===oc?jr:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function di(e){for(var t=ks(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,xi(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Dr(n)?n:o}var hi=vt?function(e){return null==e?[]:(e=Ce(e),Pt(vt(e),(function(t){return Ge.call(e,t)})))}:gc,pi=vt?function(e){for(var t=[];e;)Mt(t,hi(e)),e=Ve(e);return t}:gc,gi=xr;function vi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Za(o)&&yi(a,o)&&(Ua(e)||Ha(e))}function mi(e){return"function"!=typeof e.constructor||Oi(e)?{}:Fn(Ve(e))}function bi(e){return Ua(e)||Ha(e)||!!(Ye&&e&&e[Ye])}function yi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Va(n)&&yi(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function _i(e,t){if(Ua(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function Si(e){var t=si(e),n=zn[t];if("function"!=typeof n||!(t in Un.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(On&&gi(new On(new ArrayBuffer(1)))!=j||xn&&gi(new xn)!=x||Cn&&gi(Cn.resolve())!=I||Rn&&gi(new Rn)!=A||In&&gi(new In)!=N)&&(gi=function(e){var t=xr(e),n=t==R?e.constructor:o,r=n?Bi(n):"";if(r)switch(r){case Pn:return j;case Nn:return x;case Dn:return I;case jn:return A;case Mn:return N}return t});var Ei=Ne?Ja:vc;function Oi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function xi(e){return e===e&&!es(e)}function Ci(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ce(n)))}}function Ri(e,t,r){return t=Gt(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Gt(o.length-t,0),s=n(a);++i<a;)s[i]=o[t+i];i=-1;for(var c=n(t+1);++i<t;)c[i]=o[i];return c[t]=r(s),Rt(e,this,c)}}function Ii(e,t){return t.length<2?e:Er(e,ro(t,0,-1))}function Ti(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ai=Di(eo),ki=lt||function(e,t){return gt.setTimeout(e,t)},Pi=Di(to);function Ni(e,t,n){var r=t+"";return Pi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(m,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(le):[]}(r),n)))}function Di(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ji(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Gr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Mi=function(e){var t=Da(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(he,"$1"):n||e)})),t}));function Li(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Bi(e){if(null!=e){try{return De.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function qi(e){if(e instanceof Un)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Ao(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Yr((function(e,t){return Ka(e)?dr(e,mr(t,1,Ka,!0)):[]})),Fi=Yr((function(e,t){var n=Yi(t);return Ka(n)&&(n=o),Ka(e)?dr(e,mr(t,1,Ka,!0),ui(n,2)):[]})),$i=Yr((function(e,t){var n=Yi(t);return Ka(n)&&(n=o),Ka(e)?dr(e,mr(t,1,Ka,!0),o,n):[]}));function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ps(n);return o<0&&(o=Gt(r+o,0)),$t(e,ui(t,3),o)}function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ps(n),i=n<0?Gt(r+i,0):yn(i,r-1)),$t(e,ui(t,3),i,!0)}function Wi(e){return(null==e?0:e.length)?mr(e,1):[]}function Vi(e){return e&&e.length?e[0]:o}var Ki=Yr((function(e){var t=jt(e,bo);return t.length&&t[0]===e[0]?Tr(t):[]})),Gi=Yr((function(e){var t=Yi(e),n=jt(e,bo);return t===Yi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Tr(n,ui(t,2)):[]})),Xi=Yr((function(e){var t=Yi(e),n=jt(e,bo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,o,t):[]}));function Yi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ji=Yr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var Zi=ri((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Kr(e,jt(t,(function(e){return yi(e,n)?+e:e})).sort(Ro)),r}));function ea(e){return null==e?e:En.call(e)}var ta=Yr((function(e){return lo(mr(e,1,Ka,!0))})),na=Yr((function(e){var t=Yi(e);return Ka(t)&&(t=o),lo(mr(e,1,Ka,!0),ui(t,2))})),ra=Yr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,lo(mr(e,1,Ka,!0),o,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Ka(e))return t=Gt(e.length,t),!0})),Jt(t,(function(t){return jt(e,Kt(t))}))}function ia(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:jt(n,(function(e){return Rt(t,o,e)}))}var aa=Yr((function(e,t){return Ka(e)?dr(e,t):[]})),sa=Yr((function(e){return vo(Pt(e,Ka))})),ca=Yr((function(e){var t=Yi(e);return Ka(t)&&(t=o),vo(Pt(e,Ka),ui(t,2))})),ua=Yr((function(e){var t=Yi(e);return t="function"==typeof t?t:o,vo(Pt(e,Ka),o,t)})),la=Yr(oa);var da=Yr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ia(e,n)}));function fa(e){var t=zn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var pa=ri((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ga=Po((function(e,t,n){je.call(e,n)?++e[n]:ir(e,n,1)}));var va=qo(Hi),ma=qo(Ui);function ba(e,t){return(Ua(e)?Tt:fr)(e,ui(t,3))}function ya(e,t){return(Ua(e)?At:hr)(e,ui(t,3))}var wa=Po((function(e,t,n){je.call(e,n)?e[n].push(t):ir(e,n,[t])}));var _a=Yr((function(e,t,r){var o=-1,i="function"==typeof t,a=Va(e)?n(e.length):[];return fr(e,(function(e){a[++o]=i?Rt(t,e,r):Ar(e,t,r)})),a})),Sa=Po((function(e,t,n){ir(e,n,t)}));function Ea(e,t){return(Ua(e)?jt:qr)(e,ui(t,3))}var Oa=Po((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var xa=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,mr(t,1),[])})),Ca=ot||function(){return gt.Date.now()};function Ra(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,d,o,o,o,o,t)}function Ia(e,t){var n;if("function"!=typeof t)throw new Te(i);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ta=Yr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Ta));r|=u}return Qo(e,r,t,n,o)})),Aa=Yr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Aa));r|=u}return Qo(t,r,e,n,o)}));function ka(e,t,n){var r,a,s,c,u,l,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Te(i);function g(t){var n=r,i=a;return r=a=o,d=t,c=e.apply(i,n)}function v(e){var n=e-l;return l===o||n>=t||n<0||h&&e-d>=s}function m(){var e=Ca();if(v(e))return b(e);u=ki(m,function(e){var n=t-(e-l);return h?yn(n,s-(e-d)):n}(e))}function b(e){return u=o,p&&r?g(e):(r=a=o,c)}function y(){var e=Ca(),n=v(e);if(r=arguments,a=this,l=e,n){if(u===o)return function(e){return d=e,u=ki(m,t),f?g(e):c}(l);if(h)return Eo(u),u=ki(m,t),g(l)}return u===o&&(u=ki(m,t)),c}return t=vs(t)||0,es(n)&&(f=!!n.leading,s=(h="maxWait"in n)?Gt(vs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){u!==o&&Eo(u),d=0,r=l=a=u=o},y.flush=function(){return u===o?c:b(Ca())},y}var Pa=Yr((function(e,t){return lr(e,1,t)})),Na=Yr((function(e,t,n){return lr(e,vs(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Kn),n}function ja(e){if("function"!=typeof e)throw new Te(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Kn;var Ma=_o((function(e,t){var n=(t=1==t.length&&Ua(t[0])?jt(t[0],Zt(ui())):jt(mr(t,1),Zt(ui()))).length;return Yr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Rt(e,this,r)}))})),La=Yr((function(e,t){var n=dn(t,ci(La));return Qo(e,u,o,t,n)})),Ba=Yr((function(e,t){var n=dn(t,ci(Ba));return Qo(e,l,o,t,n)})),qa=ri((function(e,t){return Qo(e,f,o,o,o,t)}));function za(e,t){return e===t||e!==e&&t!==t}var Fa=Ko(Cr),$a=Ko((function(e,t){return e>=t})),Ha=kr(function(){return arguments}())?kr:function(e){return ts(e)&&je.call(e,"callee")&&!Ge.call(e,"callee")},Ua=n.isArray,Wa=_t?Zt(_t):function(e){return ts(e)&&xr(e)==D};function Va(e){return null!=e&&Za(e.length)&&!Ja(e)}function Ka(e){return ts(e)&&Va(e)}var Ga=mt||vc,Xa=St?Zt(St):function(e){return ts(e)&&xr(e)==_};function Ya(e){if(!ts(e))return!1;var t=xr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Ja(e){if(!es(e))return!1;var t=xr(e);return t==E||t==O||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ps(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=Et?Zt(Et):function(e){return ts(e)&&gi(e)==x};function rs(e){return"number"==typeof e||ts(e)&&xr(e)==C}function os(e){if(!ts(e)||xr(e)!=R)return!1;var t=Ve(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==qe}var is=Ot?Zt(Ot):function(e){return ts(e)&&xr(e)==T};var as=xt?Zt(xt):function(e){return ts(e)&&gi(e)==A};function ss(e){return"string"==typeof e||!Ua(e)&&ts(e)&&xr(e)==k}function cs(e){return"symbol"==typeof e||ts(e)&&xr(e)==P}var us=Ct?Zt(Ct):function(e){return ts(e)&&Za(e.length)&&!!ct[xr(e)]};var ls=Ko(Br),ds=Ko((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Va(e))return ss(e)?gn(e):Ao(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=gi(e);return(t==x?un:t==A?fn:zs)(e)}function hs(e){return e?(e=vs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ps(e){var t=hs(e),n=t%1;return t===t?n?t-n:t:0}function gs(e){return e?sr(ps(e),0,v):0}function vs(e){if("number"==typeof e)return e;if(cs(e))return g;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=me.test(e);return n||ye.test(e)?ft(e.slice(2),n?2:8):ve.test(e)?g:+e}function ms(e){return ko(e,Ps(e))}function bs(e){return null==e?"":uo(e)}var ys=No((function(e,t){if(Oi(t)||Va(t))ko(t,ks(t),e);else for(var n in t)je.call(t,n)&&tr(e,n,t[n])})),ws=No((function(e,t){ko(t,Ps(t),e)})),_s=No((function(e,t,n,r){ko(t,Ps(t),e,r)})),Ss=No((function(e,t,n,r){ko(t,ks(t),e,r)})),Es=ri(ar);var Os=Yr((function(e,t){e=Ce(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),c=-1,u=s.length;++c<u;){var l=s[c],d=e[l];(d===o||za(d,Pe[l])&&!je.call(e,l))&&(e[l]=a[l])}return e})),xs=Yr((function(e){return e.push(o,ei),Rt(Ds,o,e)}));function Cs(e,t,n){var r=null==e?o:Er(e,t);return r===o?n:r}function Rs(e,t){return null!=e&&vi(e,t,Ir)}var Is=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),e[t]=n}),ec(rc)),Ts=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Be.call(t)),je.call(e,t)?e[t].push(n):e[t]=[n]}),ui),As=Yr(Ar);function ks(e){return Va(e)?Yn(e):Mr(e)}function Ps(e){return Va(e)?Yn(e,!0):Lr(e)}var Ns=No((function(e,t,n){$r(e,t,n)})),Ds=No((function(e,t,n,r){$r(e,t,n,r)})),js=ri((function(e,t){var n={};if(null==e)return n;var r=!1;t=jt(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),ko(e,ii(e),n),r&&(n=cr(n,7,ti));for(var o=t.length;o--;)fo(n,t[o]);return n}));var Ms=ri((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Rs(e,n)}))}(e,t)}));function Ls(e,t){if(null==e)return{};var n=jt(ii(e),(function(e){return[e]}));return t=ui(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Bs=Jo(ks),qs=Jo(Ps);function zs(e){return null==e?[]:en(e,ks(e))}var Fs=Lo((function(e,t,n){return t=t.toLowerCase(),e+(n?$s(t):t)}));function $s(e){return Ys(bs(e).toLowerCase())}function Hs(e){return(e=bs(e))&&e.replace(_e,on).replace(tt,"")}var Us=Lo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Lo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Vs=Mo("toLowerCase");var Ks=Lo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Gs=Lo((function(e,t,n){return e+(n?" ":"")+Ys(t)}));var Xs=Lo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=Mo("toUpperCase");function Js(e,t,n){return e=bs(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qs=Yr((function(e,t){try{return Rt(e,o,t)}catch(n){return Ya(n)?n:new se(n)}})),Zs=ri((function(e,t){return Tt(t,(function(t){t=Li(t),ir(e,t,Ta(e[t],e))})),e}));function ec(e){return function(){return e}}var tc=zo(),nc=zo(!0);function rc(e){return e}function oc(e){return jr("function"==typeof e?e:cr(e,1))}var ic=Yr((function(e,t){return function(n){return Ar(n,e,t)}})),ac=Yr((function(e,t){return function(n){return Ar(e,n,t)}}));function sc(e,t,n){var r=ks(t),o=Sr(t,r);null!=n||es(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Sr(t,ks(t)));var i=!(es(n)&&"chain"in n)||!!n.chain,a=Ja(e);return Tt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ao(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function cc(){}var uc=Uo(jt),lc=Uo(kt),dc=Uo(qt);function fc(e){return _i(e)?Kt(Li(e)):function(e){return function(t){return Er(t,e)}}(e)}var hc=Vo(),pc=Vo(!0);function gc(){return[]}function vc(){return!1}var mc=Ho((function(e,t){return e+t}),0),bc=Xo("ceil"),yc=Ho((function(e,t){return e/t}),1),wc=Xo("floor");var _c=Ho((function(e,t){return e*t}),1),Sc=Xo("round"),Ec=Ho((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ra,zn.assign=ys,zn.assignIn=ws,zn.assignInWith=_s,zn.assignWith=Ss,zn.at=Es,zn.before=Ia,zn.bind=Ta,zn.bindAll=Zs,zn.bindKey=Aa,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},zn.chain=fa,zn.chunk=function(e,t,r){t=(r?wi(e,t,r):t===o)?1:Gt(ps(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,c=n(ht(i/t));a<i;)c[s++]=ro(e,a,a+=t);return c},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Mt(Ua(r)?Ao(r):[r],mr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ui();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Te(i);return[n(e[0]),e[1]]})):[],Yr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Rt(o[0],this,n))return Rt(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=ks(e);return function(n){return ur(n,e,t)}}(cr(e,1))},zn.constant=ec,zn.countBy=ga,zn.create=function(e,t){var n=Fn(e);return null==t?n:or(n,t)},zn.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,n,r){var i=Qo(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},zn.debounce=ka,zn.defaults=Os,zn.defaultsDeep=xs,zn.defer=Pa,zn.delay=Na,zn.difference=zi,zn.differenceBy=Fi,zn.differenceWith=$i,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=n||t===o?1:ps(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,0,(t=r-(t=n||t===o?1:ps(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?po(e,ui(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?po(e,ui(t,3),!0):[]},zn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ps(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ps(r))<0&&(r+=i),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(Ua(e)?Pt:vr)(e,ui(t,3))},zn.flatMap=function(e,t){return mr(Ea(e,t),1)},zn.flatMapDeep=function(e,t){return mr(Ea(e,t),h)},zn.flatMapDepth=function(e,t,n){return n=n===o?1:ps(n),mr(Ea(e,t),n)},zn.flatten=Wi,zn.flattenDeep=function(e){return(null==e?0:e.length)?mr(e,h):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?mr(e,t=t===o?1:ps(t)):[]},zn.flip=function(e){return Qo(e,512)},zn.flow=tc,zn.flowRight=nc,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:Sr(e,ks(e))},zn.functionsIn=function(e){return null==e?[]:Sr(e,Ps(e))},zn.groupBy=wa,zn.initial=function(e){return(null==e?0:e.length)?ro(e,0,-1):[]},zn.intersection=Ki,zn.intersectionBy=Gi,zn.intersectionWith=Xi,zn.invert=Is,zn.invertBy=Ts,zn.invokeMap=_a,zn.iteratee=oc,zn.keyBy=Sa,zn.keys=ks,zn.keysIn=Ps,zn.map=Ea,zn.mapKeys=function(e,t){var n={};return t=ui(t,3),wr(e,(function(e,r,o){ir(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=ui(t,3),wr(e,(function(e,r,o){ir(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(cr(e,1))},zn.matchesProperty=function(e,t){return Fr(e,cr(t,1))},zn.memoize=Da,zn.merge=Ns,zn.mergeWith=Ds,zn.method=ic,zn.methodOf=ac,zn.mixin=sc,zn.negate=ja,zn.nthArg=function(e){return e=ps(e),Yr((function(t){return Hr(t,e)}))},zn.omit=js,zn.omitBy=function(e,t){return Ls(e,ja(ui(t)))},zn.once=function(e){return Ia(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(Ua(t)||(t=null==t?[]:[t]),Ua(n=r?o:n)||(n=null==n?[]:[n]),Ur(e,t,n))},zn.over=uc,zn.overArgs=Ma,zn.overEvery=lc,zn.overSome=dc,zn.partial=La,zn.partialRight=Ba,zn.partition=Oa,zn.pick=Ms,zn.pickBy=Ls,zn.property=fc,zn.propertyOf=function(e){return function(t){return null==e?o:Er(e,t)}},zn.pull=Ji,zn.pullAll=Qi,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,ui(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,o,n):e},zn.pullAt=Zi,zn.range=hc,zn.rangeRight=pc,zn.rearg=qa,zn.reject=function(e,t){return(Ua(e)?Pt:vr)(e,ja(ui(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ui(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Kr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Te(i);return Yr(e,t=t===o?t:ps(t))},zn.reverse=ea,zn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:ps(t),(Ua(e)?Qn:Qr)(e,t)},zn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},zn.shuffle=function(e){return(Ua(e)?Zn:no)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:ps(t),n=n===o?r:ps(n)),ro(e,t,n)):[]},zn.sortBy=xa,zn.sortedUniq=function(e){return e&&e.length?so(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?so(e,ui(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?v:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=uo(t))&&cn(e)?So(gn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:Gt(ps(t),0),Yr((function(n){var r=n[t],o=So(n,0,t);return r&&Mt(o,r),Rt(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===o?1:ps(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=r-(t=n||t===o?1:ps(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?po(e,ui(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?po(e,ui(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return es(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ka(e,t,{leading:r,maxWait:t,trailing:o})},zn.thru=ha,zn.toArray=fs,zn.toPairs=Bs,zn.toPairsIn=qs,zn.toPath=function(e){return Ua(e)?jt(e,Li):cs(e)?[e]:Ao(Mi(bs(e)))},zn.toPlainObject=ms,zn.transform=function(e,t,n){var r=Ua(e),o=r||Ga(e)||us(e);if(t=ui(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:es(e)&&Ja(i)?Fn(Ve(e)):{}}return(o?Tt:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Ra(e,1)},zn.union=ta,zn.unionBy=na,zn.unionWith=ra,zn.uniq=function(e){return e&&e.length?lo(e):[]},zn.uniqBy=function(e,t){return e&&e.length?lo(e,ui(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?lo(e,o,t):[]},zn.unset=function(e,t){return null==e||fo(e,t)},zn.unzip=oa,zn.unzipWith=ia,zn.update=function(e,t,n){return null==e?e:ho(e,t,yo(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,yo(n),r)},zn.values=zs,zn.valuesIn=function(e){return null==e?[]:en(e,Ps(e))},zn.without=aa,zn.words=Js,zn.wrap=function(e,t){return La(yo(t),e)},zn.xor=sa,zn.xorBy=ca,zn.xorWith=ua,zn.zip=la,zn.zipObject=function(e,t){return mo(e||[],t||[],tr)},zn.zipObjectDeep=function(e,t){return mo(e||[],t||[],Zr)},zn.zipWith=da,zn.entries=Bs,zn.entriesIn=qs,zn.extend=ws,zn.extendWith=_s,sc(zn,zn),zn.add=mc,zn.attempt=Qs,zn.camelCase=Fs,zn.capitalize=$s,zn.ceil=bc,zn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))===n?n:0),t!==o&&(t=(t=vs(t))===t?t:0),sr(vs(e),t,n)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},zn.conformsTo=function(e,t){return null==t||ur(e,t,ks(t))},zn.deburr=Hs,zn.defaultTo=function(e,t){return null==e||e!==e?t:e},zn.divide=yc,zn.endsWith=function(e,t,n){e=bs(e),t=uo(t);var r=e.length,i=n=n===o?r:sr(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=za,zn.escape=function(e){return(e=bs(e))&&J.test(e)?e.replace(X,an):e},zn.escapeRegExp=function(e){return(e=bs(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,n){var r=Ua(e)?kt:pr;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},zn.find=va,zn.findIndex=Hi,zn.findKey=function(e,t){return Ft(e,ui(t,3),wr)},zn.findLast=ma,zn.findLastIndex=Ui,zn.findLastKey=function(e,t){return Ft(e,ui(t,3),_r)},zn.floor=wc,zn.forEach=ba,zn.forEachRight=ya,zn.forIn=function(e,t){return null==e?e:br(e,ui(t,3),Ps)},zn.forInRight=function(e,t){return null==e?e:yr(e,ui(t,3),Ps)},zn.forOwn=function(e,t){return e&&wr(e,ui(t,3))},zn.forOwnRight=function(e,t){return e&&_r(e,ui(t,3))},zn.get=Cs,zn.gt=Fa,zn.gte=$a,zn.has=function(e,t){return null!=e&&vi(e,t,Rr)},zn.hasIn=Rs,zn.head=Vi,zn.identity=rc,zn.includes=function(e,t,n,r){e=Va(e)?e:zs(e),n=n&&!r?ps(n):0;var o=e.length;return n<0&&(n=Gt(o+n,0)),ss(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ht(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ps(n);return o<0&&(o=Gt(r+o,0)),Ht(e,t,o)},zn.inRange=function(e,t,n){return t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n){return e>=yn(t,n)&&e<Gt(t,n)}(e=vs(e),t,n)},zn.invoke=As,zn.isArguments=Ha,zn.isArray=Ua,zn.isArrayBuffer=Wa,zn.isArrayLike=Va,zn.isArrayLikeObject=Ka,zn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&xr(e)==w},zn.isBuffer=Ga,zn.isDate=Xa,zn.isElement=function(e){return ts(e)&&1===e.nodeType&&!os(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Va(e)&&(Ua(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||us(e)||Ha(e)))return!e.length;var t=gi(e);if(t==x||t==A)return!e.size;if(Oi(e))return!Mr(e).length;for(var n in e)if(je.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Pr(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Pr(e,t,o,n):!!r},zn.isError=Ya,zn.isFinite=function(e){return"number"==typeof e&&yt(e)},zn.isFunction=Ja,zn.isInteger=Qa,zn.isLength=Za,zn.isMap=ns,zn.isMatch=function(e,t){return e===t||Nr(e,t,di(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Nr(e,t,di(t),n)},zn.isNaN=function(e){return rs(e)&&e!=+e},zn.isNative=function(e){if(Ei(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=rs,zn.isObject=es,zn.isObjectLike=ts,zn.isPlainObject=os,zn.isRegExp=is,zn.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=p},zn.isSet=as,zn.isString=ss,zn.isSymbol=cs,zn.isTypedArray=us,zn.isUndefined=function(e){return e===o},zn.isWeakMap=function(e){return ts(e)&&gi(e)==N},zn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==xr(e)},zn.join=function(e,t){return null==e?"":wt.call(e,t)},zn.kebabCase=Us,zn.last=Yi,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ps(n))<0?Gt(r+i,0):yn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):$t(e,Wt,i,!0)},zn.lowerCase=Ws,zn.lowerFirst=Vs,zn.lt=ls,zn.lte=ds,zn.max=function(e){return e&&e.length?gr(e,rc,Cr):o},zn.maxBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Cr):o},zn.mean=function(e){return Vt(e,rc)},zn.meanBy=function(e,t){return Vt(e,ui(t,2))},zn.min=function(e){return e&&e.length?gr(e,rc,Br):o},zn.minBy=function(e,t){return e&&e.length?gr(e,ui(t,2),Br):o},zn.stubArray=gc,zn.stubFalse=vc,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=_c,zn.nth=function(e,t){return e&&e.length?Hr(e,ps(t)):o},zn.noConflict=function(){return gt._===this&&(gt._=ze),this},zn.noop=cc,zn.now=Ca,zn.pad=function(e,t,n){e=bs(e);var r=(t=ps(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(pt(o),n)+e+Wo(ht(o),n)},zn.padEnd=function(e,t,n){e=bs(e);var r=(t=ps(t))?pn(e):0;return t&&r<t?e+Wo(t-r,n):e},zn.padStart=function(e,t,n){e=bs(e);var r=(t=ps(t))?pn(e):0;return t&&r<t?Wo(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(bs(e).replace(ae,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hs(e),t===o?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Sn();return yn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Gr(e,t)},zn.reduce=function(e,t,n){var r=Ua(e)?Lt:Xt,o=arguments.length<3;return r(e,ui(t,4),n,o,fr)},zn.reduceRight=function(e,t,n){var r=Ua(e)?Bt:Xt,o=arguments.length<3;return r(e,ui(t,4),n,o,hr)},zn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:ps(t),Xr(bs(e),t)},zn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Li(t[r])];a===o&&(r=i,a=n),e=Ja(a)?a.call(e):a}return e},zn.round=Sc,zn.runInContext=e,zn.sample=function(e){return(Ua(e)?Jn:Jr)(e)},zn.size=function(e){if(null==e)return 0;if(Va(e))return ss(e)?pn(e):e.length;var t=gi(e);return t==x||t==A?e.size:Mr(e).length},zn.snakeCase=Ks,zn.some=function(e,t,n){var r=Ua(e)?qt:oo;return n&&wi(e,t,n)&&(t=o),r(e,ui(t,3))},zn.sortedIndex=function(e,t){return io(e,t)},zn.sortedIndexBy=function(e,t,n){return ao(e,t,ui(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=io(e,t);if(r<n&&za(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return io(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return ao(e,t,ui(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=io(e,t,!0)-1;if(za(e[n],t))return n}return-1},zn.startCase=Gs,zn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:sr(ps(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},zn.subtract=Ec,zn.sum=function(e){return e&&e.length?Yt(e,rc):0},zn.sumBy=function(e,t){return e&&e.length?Yt(e,ui(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&wi(e,t,n)&&(t=o),e=bs(e),t=_s({},t,r,Zo);var i,a,s=_s({},t.imports,r.imports,Zo),c=ks(s),u=en(s,c),l=0,d=t.interpolate||Se,f="__p += '",h=Re((t.escape||Se).source+"|"+d.source+"|"+(d===ee?pe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),p="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(h,(function(t,n,r,o,s,c){return r||(r=o),f+=e.slice(l,c).replace(Ee,sn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),f+="';\n";var g=je.call(t,"variable")&&t.variable;if(g){if(fe.test(g))throw new se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(W,""):f).replace(V,"$1").replace(K,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Qs((function(){return Oe(c,p+"return "+f).apply(o,u)}));if(v.source=f,Ya(v))throw v;return v},zn.times=function(e,t){if((e=ps(e))<1||e>p)return[];var n=v,r=yn(e,v);t=ui(t),e-=v;for(var o=Jt(r,t);++n<e;)t(n);return o},zn.toFinite=hs,zn.toInteger=ps,zn.toLength=gs,zn.toLower=function(e){return bs(e).toLowerCase()},zn.toNumber=vs,zn.toSafeInteger=function(e){return e?sr(ps(e),-9007199254740991,p):0===e?e:0},zn.toString=bs,zn.toUpper=function(e){return bs(e).toUpperCase()},zn.trim=function(e,t,n){if((e=bs(e))&&(n||t===o))return Qt(e);if(!e||!(t=uo(t)))return e;var r=gn(e),i=gn(t);return So(r,nn(r,i),rn(r,i)+1).join("")},zn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.slice(0,vn(e)+1);if(!e||!(t=uo(t)))return e;var r=gn(e);return So(r,0,rn(r,gn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=uo(t)))return e;var r=gn(e);return So(r,nn(r,gn(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(es(t)){var i="separator"in t?t.separator:i;n="length"in t?ps(t.length):n,r="omission"in t?uo(t.omission):r}var a=(e=bs(e)).length;if(cn(e)){var s=gn(e);a=s.length}if(n>=a)return e;var c=n-pn(r);if(c<1)return r;var u=s?So(s,0,c).join(""):e.slice(0,c);if(i===o)return u+r;if(s&&(c+=u.length-c),is(i)){if(e.slice(c).search(i)){var l,d=u;for(i.global||(i=Re(i.source,bs(ge.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var f=l.index;u=u.slice(0,f===o?c:f)}}else if(e.indexOf(uo(i),c)!=c){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},zn.unescape=function(e){return(e=bs(e))&&Y.test(e)?e.replace(G,mn):e},zn.uniqueId=function(e){var t=++Me;return bs(e)+t},zn.upperCase=Xs,zn.upperFirst=Ys,zn.each=ba,zn.eachRight=ya,zn.first=Vi,sc(zn,function(){var e={};return wr(zn,(function(t,n){je.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Tt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===o?1:Gt(ps(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ui(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(rc)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Ar(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(ja(ui(e)))},Un.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(v)},wr(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Un,u=s[0],l=c||Ua(t),d=function(e){var t=i.apply(zn,Mt([e],s));return r&&f?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=c&&!h;if(!a&&l){t=g?t:new Un(this);var v=e.apply(t,s);return v.__actions__.push({func:ha,args:[d],thisArg:o}),new Hn(v,f)}return p&&g?e.apply(this,s):(v=this.thru(d),p?r?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ua(o)?o:[],e)}return this[n]((function(n){return t.apply(Ua(n)?n:[],e)}))}})),wr(Un.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";je.call(kn,r)||(kn[r]=[]),kn[r].push({name:t,func:n})}})),kn[Fo(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ao(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ao(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ao(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ua(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=Gt(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,c=s-a,u=r?s:a-1,l=this.__iteratees__,d=l.length,f=0,h=yn(c,this.__takeCount__);if(!n||!r&&o==c&&h==c)return go(e,this.__actions__);var p=[];e:for(;c--&&f<h;){for(var g=-1,v=e[u+=t];++g<d;){var m=l[g],b=m.iteratee,y=m.type,w=b(v);if(2==y)v=w;else if(!w){if(1==y)continue e;break e}}p[f++]=v}return p},zn.prototype.at=pa,zn.prototype.chain=function(){return fa(this)},zn.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof $n;){var r=qi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ea],thisArg:o}),new Hn(t,this.__chain__)}return this.thru(ea)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Je&&(zn.prototype[Je]=function(){return this}),zn}();gt._=bn,(r=function(){return bn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},84391:(e,t,n)=>{"use strict";var r=n(23479);t.H=r.createRoot,r.hydrateRoot},94526:function(e,t,n){e.exports=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=48)}([function(t,n){t.exports=e},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(26)("wks"),o=n(17),i=n(3).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(7),o=n(16);e.exports=n(4)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(10),o=n(35),i=n(23),a=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(40),o=n(22);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t,n){var r=n(39),o=n(27);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!0},function(e,t,n){var r=n(3),o=n(1),i=n(53),a=n(6),s=n(5),c=function(e,t,n){var u,l,d,f=e&c.F,h=e&c.G,p=e&c.S,g=e&c.P,v=e&c.B,m=e&c.W,b=h?o:o[t]||(o[t]={}),y=b.prototype,w=h?r:p?r[t]:(r[t]||{}).prototype;for(u in h&&(n=t),n)(l=!f&&w&&void 0!==w[u])&&s(b,u)||(d=l?w[u]:n[u],b[u]=h&&"function"!=typeof w[u]?n[u]:v&&l?i(d,r):m&&w[u]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):g&&"function"==typeof d?i(Function.call,d):d,g&&((b.virtual||(b.virtual={}))[u]=d,e&c.R&&y&&!y[u]&&a(y,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=function(e){return Object(r(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var r=n(52)(!0);n(34)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(11);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(26)("keys"),o=n(17);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(1),o=n(3),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(14)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(7).f,o=n(5),i=n(2)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){n(62);for(var r=n(3),o=n(6),i=n(12),a=n(2)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],d=l&&l.prototype;d&&!d[a]&&o(d,a,u),i[u]=i.Array}},function(e,t,n){t.f=n(2)},function(e,t,n){var r=n(3),o=n(1),i=n(14),a=n(30),s=n(7).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=function(e,t,n){return Math.min(Math.max(e,t),n)}},function(e,t,n){"use strict";var r=n(14),o=n(15),i=n(37),a=n(6),s=n(12),c=n(55),u=n(28),l=n(61),d=n(2)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,g,v,m){c(n,t,p);var b,y,w,_=function(e){if(!f&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",E="values"==g,O=!1,x=e.prototype,C=x[d]||x["@@iterator"]||g&&x[g],R=C||_(g),I=g?E?_("entries"):R:void 0,T="Array"==t&&x.entries||C;if(T&&(w=l(T.call(new e)))!==Object.prototype&&w.next&&(u(w,S,!0),r||"function"==typeof w[d]||a(w,d,h)),E&&C&&"values"!==C.name&&(O=!0,R=function(){return C.call(this)}),r&&!m||!f&&!O&&x[d]||a(x,d,R),s[t]=R,s[S]=h,g)if(b={values:E?R:_("values"),keys:v?R:_("keys"),entries:I},m)for(y in b)y in x||i(x,y,b[y]);else o(o.P+o.F*(f||O),t,b);return b}},function(e,t,n){e.exports=!n(4)&&!n(8)((function(){return 7!=Object.defineProperty(n(36)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(11),o=n(3).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){e.exports=n(6)},function(e,t,n){var r=n(10),o=n(56),i=n(27),a=n(25)("IE_PROTO"),s=function(){},c=function(){var e,t=n(36)("iframe"),r=i.length;for(t.style.display="none",n(60).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(5),o=n(9),i=n(57)(!1),a=n(25)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(24);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(39),o=n(27).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(24),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=/-?\d+(\.\d+)?%?/g;e.exports=function(e){return e.match(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBase16Theme=t.createStyling=t.invertTheme=void 0;var r=h(n(49)),o=h(n(76)),i=h(n(81)),a=h(n(89)),s=h(n(93)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(94)),u=h(n(132)),l=h(n(133)),d=h(n(138)),f=n(139);function h(e){return e&&e.__esModule?e:{default:e}}var p=c.default,g=(0,a.default)(p),v=(0,d.default)(l.default,f.rgb2yuv,(function(e){var t,n=(0,i.default)(e,3);return[(t=n[0],t<.25?1:t<.5?.9-t:1.1-t),n[1],n[2]]}),f.yuv2rgb,u.default),m=function(e){return function(t){return{className:[t.className,e.className].filter(Boolean).join(" "),style:(0,o.default)({},t.style||{},e.style||{})}}},b=function(e,t){var n=(0,a.default)(t);for(var i in e)-1===n.indexOf(i)&&n.push(i);return n.reduce((function(n,i){return n[i]=function(e,t){if(void 0===e)return t;if(void 0===t)return e;var n=void 0===e?"undefined":(0,r.default)(e),i=void 0===t?"undefined":(0,r.default)(t);switch(n){case"string":switch(i){case"string":return[t,e].filter(Boolean).join(" ");case"object":return m({className:e,style:t});case"function":return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return m({className:e})(t.apply(void 0,[n].concat(o)))}}case"object":switch(i){case"string":return m({className:t,style:e});case"object":return(0,o.default)({},t,e);case"function":return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return m({style:e})(t.apply(void 0,[n].concat(o)))}}case"function":switch(i){case"string":return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.apply(void 0,[m(n)({className:t})].concat(o))};case"object":return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.apply(void 0,[m(n)({style:t})].concat(o))};case"function":return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e.apply(void 0,[t.apply(void 0,[n].concat(o))].concat(o))}}}}(e[i],t[i]),n}),{})},y=function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];if(null===t)return e;Array.isArray(t)||(t=[t]);var c=t.map((function(t){return e[t]})).filter(Boolean).reduce((function(e,t){return"string"==typeof t?e.className=[e.className,t].filter(Boolean).join(" "):"object"===(void 0===t?"undefined":(0,r.default)(t))?e.style=(0,o.default)({},e.style,t):"function"==typeof t&&(e=(0,o.default)({},e,t.apply(void 0,[e].concat(i)))),e}),{className:"",style:{}});return c.className||delete c.className,0===(0,a.default)(c.style).length&&delete c.style,c},w=t.invertTheme=function(e){return(0,a.default)(e).reduce((function(t,n){return t[n]=/^base/.test(n)?v(e[n]):"scheme"===n?e[n]+":inverted":e[n],t}),{})},_=(t.createStyling=(0,s.default)((function(e){for(var t=arguments.length,n=Array(t>3?t-3:0),r=3;r<t;r++)n[r-3]=arguments[r];var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=i.defaultBase16,l=void 0===u?p:u,d=i.base16Themes,f=_(c,void 0===d?null:d);f&&(c=(0,o.default)({},f,c));var h=g.reduce((function(e,t){return e[t]=c[t]||l[t],e}),{}),v=(0,a.default)(c).reduce((function(e,t){return-1===g.indexOf(t)?(e[t]=c[t],e):e}),{}),m=e(h),w=b(v,m);return(0,s.default)(y,2).apply(void 0,[w].concat(n))}),3),t.getBase16Theme=function(e,t){if(e&&e.extend&&(e=e.extend),"string"==typeof e){var n=e.split(":"),r=(0,i.default)(n,2),o=r[0],a=r[1];e=(t||{})[o]||c[o],"inverted"===a&&(e=w(e))}return e&&e.hasOwnProperty("base00")?e:void 0})},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function o(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,o),r(n)},e.once("error",i)),e.once(t,o)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var o,i,a,s;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):v(o,o.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var u=c.length,l=v(c,u);for(n=0;n<u;++n)i(l[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports.Dispatcher=n(140)},function(e,t,n){e.exports=n(142)},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(50)),o=a(n(65)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){e.exports={default:n(51),__esModule:!0}},function(e,t,n){n(20),n(29),e.exports=n(30).f("iterator")},function(e,t,n){var r=n(21),o=n(22);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){var r=n(54);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(38),o=n(16),i=n(28),a={};n(6)(a,n(2)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(7),o=n(10),i=n(13);e.exports=n(4)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var r=n(9),o=n(58),i=n(59);e.exports=function(e){return function(t,n,a){var s,c=r(t),u=o(c.length),l=i(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(21),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(21),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(3).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(5),o=n(18),i=n(25)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(63),o=n(64),i=n(12),a=n(9);e.exports=n(34)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(66),__esModule:!0}},function(e,t,n){n(67),n(73),n(74),n(75),e.exports=n(1).Symbol},function(e,t,n){"use strict";var r=n(3),o=n(5),i=n(4),a=n(15),s=n(37),c=n(68).KEY,u=n(8),l=n(26),d=n(28),f=n(17),h=n(2),p=n(30),g=n(31),v=n(69),m=n(70),b=n(10),y=n(11),w=n(18),_=n(9),S=n(23),E=n(16),O=n(38),x=n(71),C=n(72),R=n(32),I=n(7),T=n(13),A=C.f,k=I.f,P=x.f,N=r.Symbol,D=r.JSON,j=D&&D.stringify,M=h("_hidden"),L=h("toPrimitive"),B={}.propertyIsEnumerable,q=l("symbol-registry"),z=l("symbols"),F=l("op-symbols"),$=Object.prototype,H="function"==typeof N&&!!R.f,U=r.QObject,W=!U||!U.prototype||!U.prototype.findChild,V=i&&u((function(){return 7!=O(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=A($,t);r&&delete $[t],k(e,t,n),r&&e!==$&&k($,t,r)}:k,K=function(e){var t=z[e]=O(N.prototype);return t._k=e,t},G=H&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},X=function(e,t,n){return e===$&&X(F,t,n),b(e),t=S(t,!0),b(n),o(z,t)?(n.enumerable?(o(e,M)&&e[M][t]&&(e[M][t]=!1),n=O(n,{enumerable:E(0,!1)})):(o(e,M)||k(e,M,E(1,{})),e[M][t]=!0),V(e,t,n)):k(e,t,n)},Y=function(e,t){b(e);for(var n,r=v(t=_(t)),o=0,i=r.length;i>o;)X(e,n=r[o++],t[n]);return e},J=function(e){var t=B.call(this,e=S(e,!0));return!(this===$&&o(z,e)&&!o(F,e))&&(!(t||!o(this,e)||!o(z,e)||o(this,M)&&this[M][e])||t)},Q=function(e,t){if(e=_(e),t=S(t,!0),e!==$||!o(z,t)||o(F,t)){var n=A(e,t);return!n||!o(z,t)||o(e,M)&&e[M][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=P(_(e)),r=[],i=0;n.length>i;)o(z,t=n[i++])||t==M||t==c||r.push(t);return r},ee=function(e){for(var t,n=e===$,r=P(n?F:_(e)),i=[],a=0;r.length>a;)!o(z,t=r[a++])||n&&!o($,t)||i.push(z[t]);return i};H||(s((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===$&&t.call(F,n),o(this,M)&&o(this[M],e)&&(this[M][e]=!1),V(this,e,E(1,n))};return i&&W&&V($,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",(function(){return this._k})),C.f=Q,I.f=X,n(41).f=x.f=Z,n(19).f=J,R.f=ee,i&&!n(14)&&s($,"propertyIsEnumerable",J,!0),p.f=function(e){return K(h(e))}),a(a.G+a.W+a.F*!H,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var re=T(h.store),oe=0;re.length>oe;)g(re[oe++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return o(q,e+="")?q[e]:q[e]=N(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in q)if(q[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!H,"Object",{create:function(e,t){return void 0===t?O(e):Y(O(e),t)},defineProperty:X,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ie=u((function(){R.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return R.f(w(e))}}),D&&a(a.S+a.F*(!H||u((function(){var e=N();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(y(t)||void 0!==e)&&!G(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,j.apply(D,r)}}),N.prototype[L]||n(6)(N.prototype,L,N.prototype.valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(e,t,n){var r=n(17)("meta"),o=n(11),i=n(5),a=n(7).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(8)((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return u&&d.NEED&&c(e)&&!i(e,r)&&l(e),e}}},function(e,t,n){var r=n(13),o=n(32),i=n(19);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),c=i.f,u=0;s.length>u;)c.call(e,a=s[u++])&&t.push(a);return t}},function(e,t,n){var r=n(24);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(9),o=n(41).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){var r=n(19),o=n(16),i=n(9),a=n(23),s=n(5),c=n(35),u=Object.getOwnPropertyDescriptor;t.f=n(4)?u:function(e,t){if(e=i(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(31)("asyncIterator")},function(e,t,n){n(31)("observable")},function(e,t,n){"use strict";t.__esModule=!0;var r,o=(r=n(77))&&r.__esModule?r:{default:r};t.default=o.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){e.exports={default:n(78),__esModule:!0}},function(e,t,n){n(79),e.exports=n(1).Object.assign},function(e,t,n){var r=n(15);r(r.S+r.F,"Object",{assign:n(80)})},function(e,t,n){"use strict";var r=n(4),o=n(13),i=n(32),a=n(19),s=n(18),c=n(40),u=Object.assign;e.exports=!u||n(8)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){for(var n=s(e),u=arguments.length,l=1,d=i.f,f=a.f;u>l;)for(var h,p=c(arguments[l++]),g=d?o(p).concat(d(p)):o(p),v=g.length,m=0;v>m;)h=g[m++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:u},function(e,t,n){"use strict";t.__esModule=!0;var r=i(n(82)),o=i(n(85));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(Array.isArray(e))return e;if((0,r.default)(Object(e)))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var s,c=(0,o.default)(e);!(r=(s=c.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){e.exports={default:n(83),__esModule:!0}},function(e,t,n){n(29),n(20),e.exports=n(84)},function(e,t,n){var r=n(42),o=n(2)("iterator"),i=n(12);e.exports=n(1).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t,n){e.exports={default:n(86),__esModule:!0}},function(e,t,n){n(29),n(20),e.exports=n(87)},function(e,t,n){var r=n(10),o=n(88);e.exports=n(1).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(42),o=n(2)("iterator"),i=n(12);e.exports=n(1).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){e.exports={default:n(90),__esModule:!0}},function(e,t,n){n(91),e.exports=n(1).Object.keys},function(e,t,n){var r=n(18),o=n(13);n(92)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){var r=n(15),o=n(1),i=n(8);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",a)}},function(e,t,n){(function(t){var n=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],r=/^\s+|\s+$/g,o=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,i=/\{\n\/\* \[wrapped with (.+)\] \*/,a=/,? & /,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^\[object .+?Constructor\]$/,l=/^0o[0-7]+$/i,d=/^(?:0|[1-9]\d*)$/,f=parseInt,h="object"==typeof t&&t&&t.Object===Object&&t,p="object"==typeof self&&self&&self.Object===Object&&self,g=h||p||Function("return this")();function v(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function m(e,t){return!(!e||!e.length)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}(e,b,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function b(e){return e!=e}function y(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}function w(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&"__lodash_placeholder__"!==a||(e[n]="__lodash_placeholder__",i[o++]=n)}return i}var _,S,E,O=Function.prototype,x=Object.prototype,C=g["__core-js_shared__"],R=(_=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",I=O.toString,T=x.hasOwnProperty,A=x.toString,k=RegExp("^"+I.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=Object.create,N=Math.max,D=Math.min,j=(S=W(Object,"defineProperty"),(E=W.name)&&E.length>2?S:void 0);function M(e){return Z(e)?P(e):{}}function L(e){return!(!Z(e)||function(e){return!!R&&R in e}(e))&&(function(e){var t=Z(e)?A.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?k:u).test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function B(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,c=t.length,u=N(i-a,0),l=Array(c+u),d=!r;++s<c;)l[s]=t[s];for(;++o<a;)(d||o<i)&&(l[n[o]]=e[o]);for(;u--;)l[s++]=e[o++];return l}function q(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,c=-1,u=t.length,l=N(i-s,0),d=Array(l+u),f=!r;++o<l;)d[o]=e[o];for(var h=o;++c<u;)d[h+c]=t[c];for(;++a<s;)(f||o<i)&&(d[h+n[a]]=e[o++]);return d}function z(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=M(e.prototype),r=e.apply(n,t);return Z(r)?r:n}}function F(e,t,n,r,o,i,a,s,c,u){var l=128&t,d=1&t,f=2&t,h=24&t,p=512&t,v=f?void 0:z(e);return function m(){for(var b=arguments.length,_=Array(b),S=b;S--;)_[S]=arguments[S];if(h)var E=U(m),O=y(_,E);if(r&&(_=B(_,r,o,h)),i&&(_=q(_,i,a,h)),b-=O,h&&b<u){var x=w(_,E);return $(e,t,F,m.placeholder,n,_,x,s,c,u-b)}var C=d?n:this,R=f?C[e]:e;return b=_.length,s?_=X(_,s):p&&b>1&&_.reverse(),l&&c<b&&(_.length=c),this&&this!==g&&this instanceof m&&(R=v||z(R)),R.apply(C,_)}}function $(e,t,n,r,o,i,a,s,c,u){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var d=n(e,t,o,l?i:void 0,l?a:void 0,l?void 0:i,l?void 0:a,s,c,u);return d.placeholder=r,Y(d,e,t)}function H(e,t,n,r,o,i,a,s){var c=2&t;if(!c&&"function"!=typeof e)throw new TypeError("Expected a function");var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=void 0===a?a:N(te(a),0),s=void 0===s?s:te(s),u-=o?o.length:0,64&t){var l=r,d=o;r=o=void 0}var f=[e,t,n,r,o,l,d,i,a,s];if(e=f[0],t=f[1],n=f[2],r=f[3],o=f[4],!(s=f[9]=null==f[9]?c?0:e.length:N(f[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?function(e,t,n){var r=z(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,c=U(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==c&&a[i-1]!==c?[]:w(a,c);return(i-=u.length)<n?$(e,t,F,o.placeholder,void 0,a,u,void 0,void 0,n-i):v(this&&this!==g&&this instanceof o?r:e,this,a)}}(e,t,s):32!=t&&33!=t||o.length?F.apply(void 0,f):function(e,t,n,r){var o=1&t,i=z(e);return function t(){for(var a=-1,s=arguments.length,c=-1,u=r.length,l=Array(u+s),d=this&&this!==g&&this instanceof t?i:e;++c<u;)l[c]=r[c];for(;s--;)l[c++]=arguments[++a];return v(d,o?n:this,l)}}(e,t,n,r);else var h=function(e,t,n){var r=1&t,o=z(e);return function t(){return(this&&this!==g&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Y(h,e,t)}function U(e){return e.placeholder}function W(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return L(n)?n:void 0}function V(e){var t=e.match(i);return t?t[1].split(a):[]}function K(e,t){var n=t.length,r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(o,"{\n/* [wrapped with "+t+"] */\n")}function G(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||d.test(e))&&e>-1&&e%1==0&&e<t}function X(e,t){for(var n=e.length,r=D(t.length,n),o=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);r--;){var i=t[r];e[r]=G(i,n)?o[i]:void 0}return e}var Y=j?function(e,t,n){var r,o=t+"";return j(e,"toString",{configurable:!0,enumerable:!1,value:(r=K(o,J(V(o),n)),function(){return r})})}:function(e){return e};function J(e,t){return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(n,(function(n){var r="_."+n[0];t&n[1]&&!m(e,r)&&e.push(r)})),e.sort()}function Q(e,t,n){var r=H(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=Q.placeholder,r}function Z(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ee(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==A.call(e)}(e))return NaN;if(Z(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Z(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=c.test(e);return n||l.test(e)?f(e.slice(2),n?2:8):s.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function te(e){var t=ee(e),n=t%1;return t==t?n?t-n:t:0}Q.placeholder={},e.exports=Q}).call(this,n(43))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var o=n(95);t.threezerotwofour=r(o);var i=n(96);t.apathy=r(i);var a=n(97);t.ashes=r(a);var s=n(98);t.atelierDune=r(s);var c=n(99);t.atelierForest=r(c);var u=n(100);t.atelierHeath=r(u);var l=n(101);t.atelierLakeside=r(l);var d=n(102);t.atelierSeaside=r(d);var f=n(103);t.bespin=r(f);var h=n(104);t.brewer=r(h);var p=n(105);t.bright=r(p);var g=n(106);t.chalk=r(g);var v=n(107);t.codeschool=r(v);var m=n(108);t.colors=r(m);var b=n(109);t.default=r(b);var y=n(110);t.eighties=r(y);var w=n(111);t.embers=r(w);var _=n(112);t.flat=r(_);var S=n(113);t.google=r(S);var E=n(114);t.grayscale=r(E);var O=n(115);t.greenscreen=r(O);var x=n(116);t.harmonic=r(x);var C=n(117);t.hopscotch=r(C);var R=n(118);t.isotope=r(R);var I=n(119);t.marrakesh=r(I);var T=n(120);t.mocha=r(T);var A=n(121);t.monokai=r(A);var k=n(122);t.ocean=r(k);var P=n(123);t.paraiso=r(P);var N=n(124);t.pop=r(N);var D=n(125);t.railscasts=r(D);var j=n(126);t.shapeshifter=r(j);var M=n(127);t.solarized=r(M);var L=n(128);t.summerfruit=r(L);var B=n(129);t.tomorrow=r(B);var q=n(130);t.tube=r(q);var z=n(131);t.twilight=r(z)},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timoth\xe9e poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},function(e,t,n){var r=n(33);function o(e){var t=Math.round(r(e,0,255)).toString(16);return 1==t.length?"0"+t:t}e.exports=function(e){var t=4===e.length?o(255*e[3]):"";return"#"+o(e[0])+o(e[1])+o(e[2])+t}},function(e,t,n){var r=n(134),o=n(135),i=n(136),a=n(137),s={"#":o,hsl:function(e){var t=r(e),n=a(t);return 4===t.length&&n.push(t[3]),n},rgb:i};function c(e){for(var t in s)if(0===e.indexOf(t))return s[t](e)}c.rgb=i,c.hsl=r,c.hex=o,e.exports=c},function(e,t,n){var r=n(44),o=n(33);function i(e,t){switch(e=parseFloat(e),t){case 0:return o(e,0,360);case 1:case 2:return o(e,0,100);case 3:return o(e,0,1)}}e.exports=function(e){return r(e).map(i)}},function(e,t){e.exports=function(e){4!==e.length&&5!==e.length||(e=function(e){for(var t="#",n=1;n<e.length;n++){var r=e.charAt(n);t+=r+r}return t}(e));var t=[parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)];if(9===e.length){var n=parseFloat((parseInt(e.substring(7,9),16)/255).toFixed(2));t.push(n)}return t}},function(e,t,n){var r=n(44),o=n(33);function i(e,t){return t<3?-1!=e.indexOf("%")?Math.round(255*o(parseInt(e,10),0,100)/100):o(parseInt(e,10),0,255):o(parseFloat(e),0,1)}e.exports=function(e){return r(e).map(i)}},function(e,t){e.exports=function(e){var t,n,r,o,i,a=e[0]/360,s=e[1]/100,c=e[2]/100;if(0==s)return[i=255*c,i,i];t=2*c-(n=c<.5?c*(1+s):c+s-c*s),o=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,o[u]=255*i;return o}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t,r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();function i(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function a(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var s=Object.prototype,c=s.hasOwnProperty,u=s.toString,l=o.Symbol,d=s.propertyIsEnumerable,f=l?l.isConcatSpreadable:void 0,h=Math.max;function p(e){return b(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?u.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}(e)}(e)&&c.call(e,"callee")&&(!d.call(e,"callee")||"[object Arguments]"==u.call(e))}(e)||!!(f&&e&&e[f])}var g,v,m,b=Array.isArray,y=(v=function(e){var t=(e=function e(t,n,r,o,i){var s=-1,c=t.length;for(r||(r=p),i||(i=[]);++s<c;){var u=t[s];n>0&&r(u)?n>1?e(u,n-1,r,o,i):a(i,u):o||(i[i.length]=u)}return i}(e,1)).length,n=t;for(g&&e.reverse();n--;)if("function"!=typeof e[n])throw new TypeError("Expected a function");return function(){for(var n=0,r=t?e[n].apply(this,arguments):arguments[0];++n<t;)r=e[n].call(this,r);return r}},m=h(void 0===m?v.length-1:m,0),function(){for(var e=arguments,t=-1,n=h(e.length-m,0),r=Array(n);++t<n;)r[t]=e[m+t];t=-1;for(var o=Array(m+1);++t<m;)o[t]=e[t];return o[m]=r,i(v,this,o)});e.exports=y}).call(this,n(43))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yuv2rgb=function(e){var t,n,r,o=e[0],i=e[1],a=e[2];return t=1*o+0*i+1.13983*a,n=1*o+-.39465*i+-.5806*a,r=1*o+2.02311*i+0*a,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},t.rgb2yuv=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[.299*t+.587*n+.114*r,-.14713*t+-.28886*n+.436*r,.615*t+-.51499*n+-.10001*r]}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(141),i=function(){function e(){r(this,"_callbacks",void 0),r(this,"_isDispatching",void 0),r(this,"_isHandled",void 0),r(this,"_isPending",void 0),r(this,"_lastID",void 0),r(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=e.prototype;return t.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},t.unregister=function(e){this._callbacks[e]||o(!1),delete this._callbacks[e]},t.waitFor=function(e){this._isDispatching||o(!1);for(var t=0;t<e.length;t++){var n=e[t];this._isPending[n]?this._isHandled[n]||o(!1):(this._callbacks[n]||o(!1),this._invokeCallback(n))}},t.dispatch=function(e){this._isDispatching&&o(!1),this._startDispatching(e);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},t.isDispatching=function(){return this._isDispatching},t._invokeCallback=function(e){this._isPending[e]=!0,this._callbacks[e](this._pendingPayload),this._isHandled[e]=!0},t._startDispatching=function(e){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=e,this._isDispatching=!0},t._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},e}();e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(r(t),!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;(a=new Error(t.replace(/%s/g,(function(){return String(o[s++])})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?h(e):t}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}n.r(t);var v=n(0),m=n.n(v);function b(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function y(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function w(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function _(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var i=e.displayName||e.name,a="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+i+" uses "+a+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=b,t.componentWillReceiveProps=y),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=w;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}function S(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function E(e){var t=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e);return"number"===t&&(t=isNaN(e)?"nan":(0|e)!=e?"float":"integer"),t}b.__suppressDeprecationWarning=!0,y.__suppressDeprecationWarning=!0,w.__suppressDeprecationWarning=!0;var O={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},x={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},C={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px"},R=n(45),I=function(e){var t=function(e){return{backgroundColor:e.base00,ellipsisColor:e.base09,braceColor:e.base07,expandedIcon:e.base0D,collapsedIcon:e.base0E,keyColor:e.base07,arrayKeyColor:e.base0C,objectSize:e.base04,copyToClipboard:e.base0F,copyToClipboardCheck:e.base0D,objectBorder:e.base02,dataTypes:{boolean:e.base0E,date:e.base0D,float:e.base0B,function:e.base0D,integer:e.base0F,string:e.base09,nan:e.base08,null:e.base0A,undefined:e.base05,regexp:e.base0A,background:e.base02},editVariable:{editIcon:e.base0E,cancelIcon:e.base09,removeIcon:e.base09,addIcon:e.base0E,checkIcon:e.base0E,background:e.base01,color:e.base0A,border:e.base07},addKeyModal:{background:e.base05,border:e.base04,color:e.base0A,labelColor:e.base01},validationFailure:{background:e.base09,iconColor:e.base01,fontColor:e.base01}}}(e);return{"app-container":{fontFamily:C.globalFontFamily,cursor:C.globalCursor,backgroundColor:t.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:t.ellipsisColor,fontSize:C.ellipsisFontSize,lineHeight:C.ellipsisLineHeight,cursor:C.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:C.braceCursor,fontWeight:C.braceFontWeight,color:t.braceColor},"expanded-icon":{color:t.expandedIcon},"collapsed-icon":{color:t.collapsedIcon},colon:{display:"inline-block",margin:C.keyMargin,color:t.keyColor,verticalAlign:"top"},objectKeyVal:function(e,n){return{style:i({paddingTop:C.keyValPaddingTop,paddingRight:C.keyValPaddingRight,paddingBottom:C.keyValPaddingBottom,borderLeft:C.keyValBorderLeft+" "+t.objectBorder,":hover":{paddingLeft:n.paddingLeft-1+"px",borderLeft:C.keyValBorderHover+" "+t.objectBorder}},n)}},"object-key-val-no-border":{padding:C.keyValPadding},"pushed-content":{marginLeft:C.pushedContentMarginLeft},variableValue:function(e,t){return{style:i({display:"inline-block",paddingRight:C.variableValuePaddingRight,position:"relative"},t)}},"object-name":{display:"inline-block",color:t.keyColor,letterSpacing:C.keyLetterSpacing,fontStyle:C.keyFontStyle,verticalAlign:C.keyVerticalAlign,opacity:C.keyOpacity,":hover":{opacity:C.keyOpacityHover}},"array-key":{display:"inline-block",color:t.arrayKeyColor,letterSpacing:C.keyLetterSpacing,fontStyle:C.keyFontStyle,verticalAlign:C.keyVerticalAlign,opacity:C.keyOpacity,":hover":{opacity:C.keyOpacityHover}},"object-size":{color:t.objectSize,borderRadius:C.objectSizeBorderRadius,fontStyle:C.objectSizeFontStyle,margin:C.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:C.dataTypeFontSize,marginRight:C.dataTypeMarginRight,opacity:C.datatypeOpacity},boolean:{display:"inline-block",color:t.dataTypes.boolean},date:{display:"inline-block",color:t.dataTypes.date},"date-value":{marginLeft:C.dateValueMarginLeft},float:{display:"inline-block",color:t.dataTypes.float},function:{display:"inline-block",color:t.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:t.dataTypes.integer},string:{display:"inline-block",color:t.dataTypes.string},nan:{display:"inline-block",color:t.dataTypes.nan,fontSize:C.nanFontSize,fontWeight:C.nanFontWeight,backgroundColor:t.dataTypes.background,padding:C.nanPadding,borderRadius:C.nanBorderRadius},null:{display:"inline-block",color:t.dataTypes.null,fontSize:C.nullFontSize,fontWeight:C.nullFontWeight,backgroundColor:t.dataTypes.background,padding:C.nullPadding,borderRadius:C.nullBorderRadius},undefined:{display:"inline-block",color:t.dataTypes.undefined,fontSize:C.undefinedFontSize,padding:C.undefinedPadding,borderRadius:C.undefinedBorderRadius,backgroundColor:t.dataTypes.background},regexp:{display:"inline-block",color:t.dataTypes.regexp},"copy-to-clipboard":{cursor:C.clipboardCursor},"copy-icon":{color:t.copyToClipboard,fontSize:C.iconFontSize,marginRight:C.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:t.copyToClipboardCheck,marginLeft:C.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:C.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:C.metaDataPadding},"icon-container":{display:"inline-block",width:C.iconContainerWidth},tooltip:{padding:C.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.removeIcon,cursor:C.iconCursor,fontSize:C.iconFontSize,marginRight:C.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.addIcon,cursor:C.iconCursor,fontSize:C.iconFontSize,marginRight:C.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.editIcon,cursor:C.iconCursor,fontSize:C.iconFontSize,marginRight:C.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:C.iconCursor,color:t.editVariable.checkIcon,fontSize:C.iconFontSize,paddingRight:C.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:C.iconCursor,color:t.editVariable.cancelIcon,fontSize:C.iconFontSize,paddingRight:C.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:C.editInputMinWidth,borderRadius:C.editInputBorderRadius,backgroundColor:t.editVariable.background,color:t.editVariable.color,padding:C.editInputPadding,marginRight:C.editInputMarginRight,fontFamily:C.editInputFontFamily},"detected-row":{paddingTop:C.detectedRowPaddingTop},"key-modal-request":{position:C.addKeyCoverPosition,top:C.addKeyCoverPositionPx,left:C.addKeyCoverPositionPx,right:C.addKeyCoverPositionPx,bottom:C.addKeyCoverPositionPx,backgroundColor:C.addKeyCoverBackground},"key-modal":{width:C.addKeyModalWidth,backgroundColor:t.addKeyModal.background,marginLeft:C.addKeyModalMargin,marginRight:C.addKeyModalMargin,padding:C.addKeyModalPadding,borderRadius:C.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:t.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:t.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:t.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:t.addKeyModal.labelColor,fontSize:C.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:t.editVariable.addIcon,fontSize:C.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:t.ellipsisColor,fontSize:C.ellipsisFontSize,lineHeight:C.ellipsisLineHeight,cursor:C.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:t.validationFailure.fontColor,backgroundColor:t.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:t.validationFailure.iconColor,fontSize:C.iconFontSize,transform:"rotate(45deg)"}}};function T(e,t,n){return e||console.error("theme has not been set"),function(e){var t=O;return!1!==e&&"none"!==e||(t=x),Object(R.createStyling)(I,{defaultBase16:t})(e)}(e)(t,n)}var A=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=(e.rjvId,e.type_name),n=e.displayDataTypes,r=e.theme;return n?m.a.createElement("span",Object.assign({className:"data-type-label"},T(r,"data-type-label")),t):null}}]),n}(m.a.PureComponent),k=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props;return m.a.createElement("div",T(e.theme,"boolean"),m.a.createElement(A,Object.assign({type_name:"bool"},e)),e.value?"true":"false")}}]),n}(m.a.PureComponent),P=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props;return m.a.createElement("div",T(e.theme,"date"),m.a.createElement(A,Object.assign({type_name:"date"},e)),m.a.createElement("span",Object.assign({className:"date-value"},T(e.theme,"date-value")),e.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),n}(m.a.PureComponent),N=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props;return m.a.createElement("div",T(e.theme,"float"),m.a.createElement(A,Object.assign({type_name:"float"},e)),this.props.value)}}]),n}(m.a.PureComponent);function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}function M(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=j(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function L(e){return function(e){if(Array.isArray(e))return D(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var B=n(46),q=new(n(47).Dispatcher),z=new(function(e){l(n,e);var t=g(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=t.call.apply(t,[this].concat(o))).objects={},e.set=function(t,n,r,o){void 0===e.objects[t]&&(e.objects[t]={}),void 0===e.objects[t][n]&&(e.objects[t][n]={}),e.objects[t][n][r]=o},e.get=function(t,n,r,o){return void 0===e.objects[t]||void 0===e.objects[t][n]||null==e.objects[t][n][r]?o:e.objects[t][n][r]},e.handleAction=function(t){var n=t.rjvId,r=t.data;switch(t.name){case"RESET":e.emit("reset-"+n);break;case"VARIABLE_UPDATED":t.data.updated_src=e.updateSrc(n,r),e.set(n,"action","variable-update",i(i({},r),{},{type:"variable-edited"})),e.emit("variable-update-"+n);break;case"VARIABLE_REMOVED":t.data.updated_src=e.updateSrc(n,r),e.set(n,"action","variable-update",i(i({},r),{},{type:"variable-removed"})),e.emit("variable-update-"+n);break;case"VARIABLE_ADDED":t.data.updated_src=e.updateSrc(n,r),e.set(n,"action","variable-update",i(i({},r),{},{type:"variable-added"})),e.emit("variable-update-"+n);break;case"ADD_VARIABLE_KEY_REQUEST":e.set(n,"action","new-key-request",r),e.emit("add-key-request-"+n)}},e.updateSrc=function(t,n){var r=n.name,o=n.namespace,i=n.new_value,a=(n.existing_value,n.variable_removed);o.shift();var s,c=e.get(t,"global","src"),u=e.deepCopy(c,L(o)),l=u,d=M(o);try{for(d.s();!(s=d.n()).done;)l=l[s.value]}catch(e){d.e(e)}finally{d.f()}return a?"array"==E(l)?l.splice(r,1):delete l[r]:null!==r?l[r]=i:u=i,e.set(t,"global","src",u),u},e.deepCopy=function(t,n){var r,o=E(t),a=n.shift();return"array"==o?r=L(t):"object"==o&&(r=i({},t)),void 0!==a&&(r[a]=e.deepCopy(t[a],n)),r},e}return n}(B.EventEmitter));q.register(z.handleAction.bind(z));var F=z,$=function(e){l(n,e);var t=g(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).toggleCollapsed=function(){r.setState({collapsed:!r.state.collapsed},(function(){F.set(r.props.rjvId,r.props.namespace,"collapsed",r.state.collapsed)}))},r.getFunctionDisplay=function(e){var t=h(r).props;return e?m.a.createElement("span",null,r.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),m.a.createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},m.a.createElement("span",null,"{"),m.a.createElement("span",T(t.theme,"ellipsis"),"..."),m.a.createElement("span",null,"}"))):r.props.value.toString().slice(9,-1)},r.state={collapsed:F.get(e.rjvId,e.namespace,"collapsed",!0)},r}return c(n,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return m.a.createElement("div",T(e.theme,"function"),m.a.createElement(A,Object.assign({type_name:"function"},e)),m.a.createElement("span",Object.assign({},T(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}]),n}(m.a.PureComponent),H=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){return m.a.createElement("div",T(this.props.theme,"nan"),"NaN")}}]),n}(m.a.PureComponent),U=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){return m.a.createElement("div",T(this.props.theme,"null"),"NULL")}}]),n}(m.a.PureComponent),W=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props;return m.a.createElement("div",T(e.theme,"integer"),m.a.createElement(A,Object.assign({type_name:"int"},e)),this.props.value)}}]),n}(m.a.PureComponent),V=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props;return m.a.createElement("div",T(e.theme,"regexp"),m.a.createElement(A,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}]),n}(m.a.PureComponent),K=function(e){l(n,e);var t=g(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).toggleCollapsed=function(){r.setState({collapsed:!r.state.collapsed},(function(){F.set(r.props.rjvId,r.props.namespace,"collapsed",r.state.collapsed)}))},r.state={collapsed:F.get(e.rjvId,e.namespace,"collapsed",!0)},r}return c(n,[{key:"render",value:function(){this.state.collapsed;var e=this.props,t=e.collapseStringsAfterLength,n=e.theme,r=e.value,o={style:{cursor:"default"}};return"integer"===E(t)&&r.length>t&&(o.style.cursor="pointer",this.state.collapsed&&(r=m.a.createElement("span",null,r.substring(0,t),m.a.createElement("span",T(n,"ellipsis")," ...")))),m.a.createElement("div",T(n,"string"),m.a.createElement(A,Object.assign({type_name:"string"},e)),m.a.createElement("span",Object.assign({className:"string-value"},o,{onClick:this.toggleCollapsed}),'"',r,'"'))}}]),n}(m.a.PureComponent),G=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){return m.a.createElement("div",T(this.props.theme,"undefined"),"undefined")}}]),n}(m.a.PureComponent);function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Y=v.useLayoutEffect,J=function(e){var t=Object(v.useRef)(e);return Y((function(){t.current=e})),t},Q=function(e,t){"function"!=typeof e?e.current=t:e(t)},Z=function(e,t){var n=Object(v.useRef)();return Object(v.useCallback)((function(r){e.current=r,n.current&&Q(n.current,null),n.current=t,t&&Q(t,r)}),[t])},ee={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},te=function(e){Object.keys(ee).forEach((function(t){e.style.setProperty(t,ee[t],"important")}))},ne=null,re=function(){},oe=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],ie=!!document.documentElement.currentStyle,ae=function(e,t){var n,r=e.cacheMeasurements,o=e.maxRows,i=e.minRows,a=e.onChange,s=void 0===a?re:a,c=e.onHeightChange,u=void 0===c?re:c,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]),d=void 0!==l.value,f=Object(v.useRef)(null),h=Z(f,t),p=Object(v.useRef)(0),g=Object(v.useRef)(),m=function(){var e=f.current,t=r&&g.current?g.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n,r=(n=t,oe.reduce((function(e,t){return e[t]=n[t],e}),{})),o=r.boxSizing;return""===o?null:(ie&&"border-box"===o&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px"),{sizingStyle:r,paddingSize:parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),borderSize:parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth)})}(e);if(t){g.current=t;var n=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1/0),ne||((ne=document.createElement("textarea")).setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),te(ne)),null===ne.parentNode&&document.body.appendChild(ne);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;ne.style[t]=a[t]})),te(ne),ne.value=t;var c=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(ne,e);ne.value="x";var u=ne.scrollHeight-o,l=u*n;"border-box"===s&&(l=l+o+i),c=Math.max(l,c);var d=u*r;return"border-box"===s&&(d=d+o+i),[c=Math.min(d,c),u]}(t,e.value||e.placeholder||"x",i,o),a=n[0],s=n[1];p.current!==a&&(p.current=a,e.style.setProperty("height",a+"px","important"),u(a,{rowHeight:s}))}};return Object(v.useLayoutEffect)(m),n=J(m),Object(v.useLayoutEffect)((function(){var e=function(e){n.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),Object(v.createElement)("textarea",X({},l,{onChange:function(e){d||m(),s(e)},ref:h}))},se=Object(v.forwardRef)(ae);function ce(e){e=e.trim();try{if("["===(e=JSON.stringify(JSON.parse(e)))[0])return ue("array",JSON.parse(e));if("{"===e[0])return ue("object",JSON.parse(e));if(e.match(/\-?\d+\.\d+/)&&e.match(/\-?\d+\.\d+/)[0]===e)return ue("float",parseFloat(e));if(e.match(/\-?\d+e-\d+/)&&e.match(/\-?\d+e-\d+/)[0]===e)return ue("float",Number(e));if(e.match(/\-?\d+/)&&e.match(/\-?\d+/)[0]===e)return ue("integer",parseInt(e));if(e.match(/\-?\d+e\+\d+/)&&e.match(/\-?\d+e\+\d+/)[0]===e)return ue("integer",Number(e))}catch(e){}switch(e=e.toLowerCase()){case"undefined":return ue("undefined",void 0);case"nan":return ue("nan",NaN);case"null":return ue("null",null);case"true":return ue("boolean",!0);case"false":return ue("boolean",!1);default:if(e=Date.parse(e))return ue("date",new Date(e))}return ue(!1,null)}function ue(e,t){return{type:e,value:t}}var le=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",Object.assign({},Se(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),m.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),n}(m.a.PureComponent),de=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",Object.assign({},Se(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),m.a.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),n}(m.a.PureComponent),fe=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]),r=Se(t).style;return m.a.createElement("span",n,m.a.createElement("svg",{fill:r.color,width:r.height,height:r.width,style:r,viewBox:"0 0 1792 1792"},m.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),n}(m.a.PureComponent),he=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]),r=Se(t).style;return m.a.createElement("span",n,m.a.createElement("svg",{fill:r.color,width:r.height,height:r.width,style:r,viewBox:"0 0 1792 1792"},m.a.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),n}(m.a.PureComponent),pe=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",{style:i(i({},Se(t).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},m.a.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),n}(m.a.PureComponent),ge=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",{style:i(i({},Se(t).style),{},{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},m.a.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),n}(m.a.PureComponent),ve=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",Object.assign({},Se(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),m.a.createElement("g",null,m.a.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),n}(m.a.PureComponent),me=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",Object.assign({},Se(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),m.a.createElement("g",null,m.a.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(m.a.PureComponent),be=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",Object.assign({},Se(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),m.a.createElement("g",null,m.a.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(m.a.PureComponent),ye=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",Object.assign({},Se(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),m.a.createElement("g",null,m.a.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),n}(m.a.PureComponent),we=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",Object.assign({},Se(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),m.a.createElement("g",null,m.a.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),n}(m.a.PureComponent),_e=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=S(e,["style"]);return m.a.createElement("span",n,m.a.createElement("svg",Object.assign({},Se(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),m.a.createElement("g",null,m.a.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),n}(m.a.PureComponent);function Se(e){return e||(e={}),{style:i(i({verticalAlign:"middle"},e),{},{color:e.color?e.color:"#000000",height:"1em",width:"1em"})}}var Ee=function(e){l(n,e);var t=g(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).copiedTimer=null,r.handleCopy=function(){var e=document.createElement("textarea"),t=r.props,n=t.clickCallback,o=t.src,i=t.namespace;e.innerHTML=JSON.stringify(r.clipboardValue(o),null," "),document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),r.copiedTimer=setTimeout((function(){r.setState({copied:!1})}),5500),r.setState({copied:!0},(function(){"function"==typeof n&&n({src:o,namespace:i,name:i[i.length-1]})}))},r.getClippyIcon=function(){var e=r.props.theme;return r.state.copied?m.a.createElement("span",null,m.a.createElement(ve,Object.assign({className:"copy-icon"},T(e,"copy-icon"))),m.a.createElement("span",T(e,"copy-icon-copied"),"\u2714")):m.a.createElement(ve,Object.assign({className:"copy-icon"},T(e,"copy-icon")))},r.clipboardValue=function(e){switch(E(e)){case"function":case"regexp":return e.toString();default:return e}},r.state={copied:!1},r}return c(n,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var e=this.props,t=(e.src,e.theme),n=e.hidden,r=e.rowHovered,o=T(t,"copy-to-clipboard").style,a="inline";return n&&(a="none"),m.a.createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:r?"inline-block":"none"}},m.a.createElement("span",{style:i(i({},o),{},{display:a}),onClick:this.handleCopy},this.getClippyIcon()))}}]),n}(m.a.PureComponent),Oe=function(e){l(n,e);var t=g(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).getEditIcon=function(){var e=r.props,t=e.variable,n=e.theme;return m.a.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:r.state.hovered?"inline-block":"none"}},m.a.createElement(we,Object.assign({className:"click-to-edit-icon"},T(n,"editVarIcon"),{onClick:function(){r.prepopInput(t)}})))},r.prepopInput=function(e){if(!1!==r.props.onEdit){var t=function(e){var t;switch(E(e)){case"undefined":t="undefined";break;case"nan":t="NaN";break;case"string":t=e;break;case"date":case"function":case"regexp":t=e.toString();break;default:try{t=JSON.stringify(e,null," ")}catch(e){t=""}}return t}(e.value),n=ce(t);r.setState({editMode:!0,editValue:t,parsedInput:{type:n.type,value:n.value}})}},r.getRemoveIcon=function(){var e=r.props,t=e.variable,n=e.namespace,o=e.theme,i=e.rjvId;return m.a.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:r.state.hovered?"inline-block":"none"}},m.a.createElement(me,Object.assign({className:"click-to-remove-icon"},T(o,"removeVarIcon"),{onClick:function(){q.dispatch({name:"VARIABLE_REMOVED",rjvId:i,data:{name:t.name,namespace:n,existing_value:t.value,variable_removed:!0}})}})))},r.getValue=function(e,t){var n=!t&&e.type,o=h(r).props;switch(n){case!1:return r.getEditInput();case"string":return m.a.createElement(K,Object.assign({value:e.value},o));case"integer":return m.a.createElement(W,Object.assign({value:e.value},o));case"float":return m.a.createElement(N,Object.assign({value:e.value},o));case"boolean":return m.a.createElement(k,Object.assign({value:e.value},o));case"function":return m.a.createElement($,Object.assign({value:e.value},o));case"null":return m.a.createElement(U,o);case"nan":return m.a.createElement(H,o);case"undefined":return m.a.createElement(G,o);case"date":return m.a.createElement(P,Object.assign({value:e.value},o));case"regexp":return m.a.createElement(V,Object.assign({value:e.value},o));default:return m.a.createElement("div",{className:"object-value"},JSON.stringify(e.value))}},r.getEditInput=function(){var e=r.props.theme,t=r.state.editValue;return m.a.createElement("div",null,m.a.createElement(se,Object.assign({type:"text",inputRef:function(e){return e&&e.focus()},value:t,className:"variable-editor",onChange:function(e){var t=e.target.value,n=ce(t);r.setState({editValue:t,parsedInput:{type:n.type,value:n.value}})},onKeyDown:function(e){switch(e.key){case"Escape":r.setState({editMode:!1,editValue:""});break;case"Enter":(e.ctrlKey||e.metaKey)&&r.submitEdit(!0)}e.stopPropagation()},placeholder:"update this value",minRows:2},T(e,"edit-input"))),m.a.createElement("div",T(e,"edit-icon-container"),m.a.createElement(me,Object.assign({className:"edit-cancel"},T(e,"cancel-icon"),{onClick:function(){r.setState({editMode:!1,editValue:""})}})),m.a.createElement(_e,Object.assign({className:"edit-check string-value"},T(e,"check-icon"),{onClick:function(){r.submitEdit()}})),m.a.createElement("div",null,r.showDetected())))},r.submitEdit=function(e){var t=r.props,n=t.variable,o=t.namespace,i=t.rjvId,a=r.state,s=a.editValue,c=a.parsedInput,u=s;e&&c.type&&(u=c.value),r.setState({editMode:!1}),q.dispatch({name:"VARIABLE_UPDATED",rjvId:i,data:{name:n.name,namespace:o,existing_value:n.value,new_value:u,variable_removed:!1}})},r.showDetected=function(){var e=r.props,t=e.theme,n=(e.variable,e.namespace,e.rjvId,r.state.parsedInput),o=(n.type,n.value,r.getDetectedInput());if(o)return m.a.createElement("div",null,m.a.createElement("div",T(t,"detected-row"),o,m.a.createElement(_e,{className:"edit-check detected",style:i({verticalAlign:"top",paddingLeft:"3px"},T(t,"check-icon").style),onClick:function(){r.submitEdit(!0)}})))},r.getDetectedInput=function(){var e=r.state.parsedInput,t=e.type,n=e.value,o=h(r).props,a=o.theme;if(!1!==t)switch(t.toLowerCase()){case"object":return m.a.createElement("span",null,m.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{cursor:"default"})},"{"),m.a.createElement("span",{style:i(i({},T(a,"ellipsis").style),{},{cursor:"default"})},"..."),m.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{cursor:"default"})},"}"));case"array":return m.a.createElement("span",null,m.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{cursor:"default"})},"["),m.a.createElement("span",{style:i(i({},T(a,"ellipsis").style),{},{cursor:"default"})},"..."),m.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{cursor:"default"})},"]"));case"string":return m.a.createElement(K,Object.assign({value:n},o));case"integer":return m.a.createElement(W,Object.assign({value:n},o));case"float":return m.a.createElement(N,Object.assign({value:n},o));case"boolean":return m.a.createElement(k,Object.assign({value:n},o));case"function":return m.a.createElement($,Object.assign({value:n},o));case"null":return m.a.createElement(U,o);case"nan":return m.a.createElement(H,o);case"undefined":return m.a.createElement(G,o);case"date":return m.a.createElement(P,Object.assign({value:new Date(n)},o))}},r.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}},r}return c(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.variable,r=t.singleIndent,o=t.type,a=t.theme,s=t.namespace,c=t.indentWidth,u=t.enableClipboard,l=t.onEdit,d=t.onDelete,f=t.onSelect,h=t.displayArrayKey,p=t.quotesOnKeys,g=this.state.editMode;return m.a.createElement("div",Object.assign({},T(a,"objectKeyVal",{paddingLeft:c*r}),{onMouseEnter:function(){return e.setState(i(i({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(i(i({},e.state),{},{hovered:!1}))},className:"variable-row",key:n.name}),"array"==o?h?m.a.createElement("span",Object.assign({},T(a,"array-key"),{key:n.name+"_"+s}),n.name,m.a.createElement("div",T(a,"colon"),":")):null:m.a.createElement("span",null,m.a.createElement("span",Object.assign({},T(a,"object-name"),{className:"object-key",key:n.name+"_"+s}),!!p&&m.a.createElement("span",{style:{verticalAlign:"top"}},'"'),m.a.createElement("span",{style:{display:"inline-block"}},n.name),!!p&&m.a.createElement("span",{style:{verticalAlign:"top"}},'"')),m.a.createElement("span",T(a,"colon"),":")),m.a.createElement("div",Object.assign({className:"variable-value",onClick:!1===f&&!1===l?null:function(t){var r=L(s);(t.ctrlKey||t.metaKey)&&!1!==l?e.prepopInput(n):!1!==f&&(r.shift(),f(i(i({},n),{},{namespace:r})))}},T(a,"variableValue",{cursor:!1===f?"default":"pointer"})),this.getValue(n,g)),u?m.a.createElement(Ee,{rowHovered:this.state.hovered,hidden:g,src:n.value,clickCallback:u,theme:a,namespace:[].concat(L(s),[n.name])}):null,!1!==l&&0==g?this.getEditIcon():null,!1!==d&&0==g?this.getRemoveIcon():null)}}]),n}(m.a.PureComponent),xe=function(e){l(n,e);var t=g(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=t.call.apply(t,[this].concat(o))).getObjectSize=function(){var t=e.props,n=t.size,r=t.theme;if(t.displayObjectSize)return m.a.createElement("span",Object.assign({className:"object-size"},T(r,"object-size")),n," item",1===n?"":"s")},e.getAddAttribute=function(t){var n=e.props,r=n.theme,o=n.namespace,a=n.name,s=n.src,c=n.rjvId,u=n.depth;return m.a.createElement("span",{className:"click-to-add",style:{verticalAlign:"top",display:t?"inline-block":"none"}},m.a.createElement(be,Object.assign({className:"click-to-add-icon"},T(r,"addVarIcon"),{onClick:function(){var e={name:u>0?a:null,namespace:o.splice(0,o.length-1),existing_value:s,variable_removed:!1,key_name:null};"object"===E(s)?q.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:c,data:e}):q.dispatch({name:"VARIABLE_ADDED",rjvId:c,data:i(i({},e),{},{new_value:[].concat(L(s),[null])})})}})))},e.getRemoveObject=function(t){var n=e.props,r=n.theme,o=(n.hover,n.namespace),i=n.name,a=n.src,s=n.rjvId;if(1!==o.length)return m.a.createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},m.a.createElement(me,Object.assign({className:"click-to-remove-icon"},T(r,"removeVarIcon"),{onClick:function(){q.dispatch({name:"VARIABLE_REMOVED",rjvId:s,data:{name:i,namespace:o.splice(0,o.length-1),existing_value:a,variable_removed:!0}})}})))},e.render=function(){var t=e.props,n=t.theme,r=t.onDelete,o=t.onAdd,i=t.enableClipboard,a=t.src,s=t.namespace,c=t.rowHovered;return m.a.createElement("div",Object.assign({},T(n,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),i?m.a.createElement(Ee,{rowHovered:c,clickCallback:i,src:a,theme:n,namespace:s}):null,!1!==o?e.getAddAttribute(c):null,!1!==r?e.getRemoveObject(c):null)},e}return n}(m.a.PureComponent);function Ce(e){var t=e.parent_type,n=e.namespace,r=e.quotesOnKeys,o=e.theme,i=e.jsvRoot,a=e.name,s=e.displayArrayKey,c=e.name?e.name:"";return!i||!1!==a&&null!==a?"array"==t?s?m.a.createElement("span",Object.assign({},T(o,"array-key"),{key:n}),m.a.createElement("span",{className:"array-key"},c),m.a.createElement("span",T(o,"colon"),":")):m.a.createElement("span",null):m.a.createElement("span",Object.assign({},T(o,"object-name"),{key:n}),m.a.createElement("span",{className:"object-key"},r&&m.a.createElement("span",{style:{verticalAlign:"top"}},'"'),m.a.createElement("span",null,c),r&&m.a.createElement("span",{style:{verticalAlign:"top"}},'"')),m.a.createElement("span",T(o,"colon"),":")):m.a.createElement("span",null)}function Re(e){var t=e.theme;switch(e.iconStyle){case"triangle":return m.a.createElement(ge,Object.assign({},T(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return m.a.createElement(fe,Object.assign({},T(t,"expanded-icon"),{className:"expanded-icon"}));default:return m.a.createElement(le,Object.assign({},T(t,"expanded-icon"),{className:"expanded-icon"}))}}function Ie(e){var t=e.theme;switch(e.iconStyle){case"triangle":return m.a.createElement(pe,Object.assign({},T(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return m.a.createElement(he,Object.assign({},T(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return m.a.createElement(de,Object.assign({},T(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var Te=function(e){l(n,e);var t=g(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).toggleCollapsed=function(e){var t=[];for(var n in r.state.expanded)t.push(r.state.expanded[n]);t[e]=!t[e],r.setState({expanded:t})},r.state={expanded:[]},r}return c(n,[{key:"getExpandedIcon",value:function(e){var t=this.props,n=t.theme,r=t.iconStyle;return this.state.expanded[e]?m.a.createElement(Re,{theme:n,iconStyle:r}):m.a.createElement(Ie,{theme:n,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,r=t.groupArraysAfterLength,o=(t.depth,t.name),i=t.theme,a=t.jsvRoot,s=t.namespace,c=(t.parent_type,S(t,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),u=0,l=5*this.props.indentWidth;a||(u=5*this.props.indentWidth);var d=r,f=Math.ceil(n.length/d);return m.a.createElement("div",Object.assign({className:"object-key-val"},T(i,a?"jsv-root":"objectKeyVal",{paddingLeft:u})),m.a.createElement(Ce,this.props),m.a.createElement("span",null,m.a.createElement(xe,Object.assign({size:n.length},this.props))),L(Array(f)).map((function(t,r){return m.a.createElement("div",Object.assign({key:r,className:"object-key-val array-group"},T(i,"objectKeyVal",{marginLeft:6,paddingLeft:l})),m.a.createElement("span",T(i,"brace-row"),m.a.createElement("div",Object.assign({className:"icon-container"},T(i,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?m.a.createElement(Pe,Object.assign({key:o+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:d,index_offset:r*d,src:n.slice(r*d,r*d+d),namespace:s,type:"array",parent_type:"array_group",theme:i},c)):m.a.createElement("span",Object.assign({},T(i,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",m.a.createElement("div",Object.assign({},T(i,"array-group-meta-data"),{className:"array-group-meta-data"}),m.a.createElement("span",Object.assign({className:"object-size"},T(i,"object-size")),r*d," - ",r*d+d>n.length?n.length:r*d+d)),"]")))})))}}]),n}(m.a.PureComponent),Ae=function(e){l(n,e);var t=g(n);function n(e){var r;a(this,n),(r=t.call(this,e)).toggleCollapsed=function(){r.setState({expanded:!r.state.expanded},(function(){F.set(r.props.rjvId,r.props.namespace,"expanded",r.state.expanded)}))},r.getObjectContent=function(e,t,n){return m.a.createElement("div",{className:"pushed-content object-container"},m.a.createElement("div",Object.assign({className:"object-content"},T(r.props.theme,"pushed-content")),r.renderObjectContents(t,n)))},r.getEllipsis=function(){return 0===r.state.size?null:m.a.createElement("div",Object.assign({},T(r.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:r.toggleCollapsed}),"...")},r.getObjectMetaData=function(e){var t=r.props,n=(t.rjvId,t.theme,r.state),o=n.size,i=n.hovered;return m.a.createElement(xe,Object.assign({rowHovered:i,size:o},r.props))},r.renderObjectContents=function(e,t){var n,o=r.props,i=o.depth,a=o.parent_type,s=o.index_offset,c=o.groupArraysAfterLength,u=o.namespace,l=r.state.object_type,d=[],f=Object.keys(e||{});return r.props.sortKeys&&"array"!==l&&(f=f.sort()),f.forEach((function(o){if(n=new ke(o,e[o]),"array_group"===a&&s&&(n.name=parseInt(n.name)+s),e.hasOwnProperty(o))if("object"===n.type)d.push(m.a.createElement(Pe,Object.assign({key:n.name,depth:i+1,name:n.name,src:n.value,namespace:u.concat(n.name),parent_type:l},t)));else if("array"===n.type){var f=Pe;c&&n.value.length>c&&(f=Te),d.push(m.a.createElement(f,Object.assign({key:n.name,depth:i+1,name:n.name,src:n.value,namespace:u.concat(n.name),type:"array",parent_type:l},t)))}else d.push(m.a.createElement(Oe,Object.assign({key:n.name+"_"+u,variable:n,singleIndent:5,namespace:u,type:r.props.type},t)))})),d};var o=n.getState(e);return r.state=i(i({},o),{},{prevProps:{}}),r}return c(n,[{key:"getBraceStart",value:function(e,t){var n=this,r=this.props,o=r.src,i=r.theme,a=r.iconStyle;if("array_group"===r.parent_type)return m.a.createElement("span",null,m.a.createElement("span",T(i,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(o):null);var s=t?Re:Ie;return m.a.createElement("span",null,m.a.createElement("span",Object.assign({onClick:function(e){n.toggleCollapsed()}},T(i,"brace-row")),m.a.createElement("div",Object.assign({className:"icon-container"},T(i,"icon-container")),m.a.createElement(s,{theme:i,iconStyle:a})),m.a.createElement(Ce,this.props),m.a.createElement("span",T(i,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(o):null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.depth,r=t.src,o=(t.namespace,t.name,t.type,t.parent_type),a=t.theme,s=t.jsvRoot,c=t.iconStyle,u=S(t,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),l=this.state,d=l.object_type,f=l.expanded,h={};return s||"array_group"===o?"array_group"===o&&(h.borderLeft=0,h.display="inline"):h.paddingLeft=5*this.props.indentWidth,m.a.createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(i(i({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(i(i({},e.state),{},{hovered:!1}))}},T(a,s?"jsv-root":"objectKeyVal",h)),this.getBraceStart(d,f),f?this.getObjectContent(n,r,i({theme:a,iconStyle:c},u)):this.getEllipsis(),m.a.createElement("span",{className:"brace-row"},m.a.createElement("span",{style:i(i({},T(a,"brace").style),{},{paddingLeft:f?"3px":"0px"})},"array"===d?"]":"}"),f?null:this.getObjectMetaData(r)))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps;return e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId?i(i({},n.getState(e)),{},{prevProps:e}):null}}]),n}(m.a.PureComponent);Ae.getState=function(e){var t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:E(e.src),namespace:e.namespace}))&&0!==t;return{expanded:F.get(e.rjvId,e.namespace,"expanded",n),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var ke=function e(t,n){a(this,e),this.name=t,this.value=n,this.type=E(n)};_(Ae);var Pe=Ae,Ne=function(e){l(n,e);var t=g(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).render=function(){var t=h(e).props,n=[t.name],r=Pe;return Array.isArray(t.src)&&t.groupArraysAfterLength&&t.src.length>t.groupArraysAfterLength&&(r=Te),m.a.createElement("div",{className:"pretty-json-container object-container"},m.a.createElement("div",{className:"object-content"},m.a.createElement(r,Object.assign({namespace:n,depth:0,jsvRoot:!0},t))))},e}return n}(m.a.PureComponent),De=function(e){l(n,e);var t=g(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).closeModal=function(){q.dispatch({rjvId:r.props.rjvId,name:"RESET"})},r.submit=function(){r.props.submit(r.state.input)},r.state={input:e.input?e.input:""},r}return c(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.theme,r=t.rjvId,o=t.isValid,i=this.state.input,a=o(i);return m.a.createElement("div",Object.assign({className:"key-modal-request"},T(n,"key-modal-request"),{onClick:this.closeModal}),m.a.createElement("div",Object.assign({},T(n,"key-modal"),{onClick:function(e){e.stopPropagation()}}),m.a.createElement("div",T(n,"key-modal-label"),"Key Name:"),m.a.createElement("div",{style:{position:"relative"}},m.a.createElement("input",Object.assign({},T(n,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:i,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){a&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),a?m.a.createElement(_e,Object.assign({},T(n,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),m.a.createElement("span",T(n,"key-modal-cancel"),m.a.createElement(ye,Object.assign({},T(n,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){q.dispatch({rjvId:r,name:"RESET"})}})))))}}]),n}(m.a.PureComponent),je=function(e){l(n,e);var t=g(n);function n(){var e;a(this,n);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=t.call.apply(t,[this].concat(o))).isValid=function(t){var n=e.props.rjvId,r=F.get(n,"action","new-key-request");return""!=t&&-1===Object.keys(r.existing_value).indexOf(t)},e.submit=function(t){var n=e.props.rjvId,r=F.get(n,"action","new-key-request");r.new_value=i({},r.existing_value),r.new_value[t]=e.props.defaultValue,q.dispatch({name:"VARIABLE_ADDED",rjvId:n,data:r})},e}return c(n,[{key:"render",value:function(){var e=this.props,t=e.active,n=e.theme,r=e.rjvId;return t?m.a.createElement(De,{rjvId:r,theme:n,isValid:this.isValid,submit:this.submit}):null}}]),n}(m.a.PureComponent),Me=function(e){l(n,e);var t=g(n);function n(){return a(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props,t=e.message,n=e.active,r=e.theme,o=e.rjvId;return n?m.a.createElement("div",Object.assign({className:"validation-failure"},T(r,"validation-failure"),{onClick:function(){q.dispatch({rjvId:o,name:"RESET"})}}),m.a.createElement("span",T(r,"validation-failure-label"),t),m.a.createElement(ye,T(r,"validation-failure-clear"))):null}}]),n}(m.a.PureComponent),Le=function(e){l(n,e);var t=g(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).rjvId=Date.now().toString(),r.getListeners=function(){return{reset:r.resetState,"variable-update":r.updateSrc,"add-key-request":r.addKeyRequest}},r.updateSrc=function(){var e,t=F.get(r.rjvId,"action","variable-update"),n=t.name,o=t.namespace,i=t.new_value,a=t.existing_value,s=(t.variable_removed,t.updated_src),c=t.type,u=r.props,l=u.onEdit,d=u.onDelete,f=u.onAdd,h={existing_src:r.state.src,new_value:i,updated_src:s,name:n,namespace:o,existing_value:a};switch(c){case"variable-added":e=f(h);break;case"variable-edited":e=l(h);break;case"variable-removed":e=d(h)}!1!==e?(F.set(r.rjvId,"global","src",s),r.setState({src:s})):r.setState({validationFailure:!0})},r.addKeyRequest=function(){r.setState({addKeyRequest:!0})},r.resetState=function(){r.setState({validationFailure:!1,addKeyRequest:!1})},r.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:n.defaultProps.src,name:n.defaultProps.name,theme:n.defaultProps.theme,validationMessage:n.defaultProps.validationMessage,prevSrc:n.defaultProps.src,prevName:n.defaultProps.name,prevTheme:n.defaultProps.theme},r}return c(n,[{key:"componentDidMount",value:function(){F.set(this.rjvId,"global","src",this.state.src);var e=this.getListeners();for(var t in e)F.on(t+"-"+this.rjvId,e[t]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}},{key:"componentDidUpdate",value:function(e,t){!1!==t.addKeyRequest&&this.setState({addKeyRequest:!1}),!1!==t.editKeyRequest&&this.setState({editKeyRequest:!1}),e.src!==this.state.src&&F.set(this.rjvId,"global","src",this.state.src)}},{key:"componentWillUnmount",value:function(){var e=this.getListeners();for(var t in e)F.removeListener(t+"-"+this.rjvId,e[t])}},{key:"render",value:function(){var e=this.state,t=e.validationFailure,n=e.validationMessage,r=e.addKeyRequest,o=e.theme,a=e.src,s=e.name,c=this.props,u=c.style,l=c.defaultValue;return m.a.createElement("div",{className:"react-json-view",style:i(i({},T(o,"app-container").style),u)},m.a.createElement(Me,{message:n,active:t,theme:o,rjvId:this.rjvId}),m.a.createElement(Ne,Object.assign({},this.props,{src:a,name:s,theme:o,type:E(a),rjvId:this.rjvId})),m.a.createElement(je,{active:r,theme:o,rjvId:this.rjvId,defaultValue:l}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(e.src!==t.prevSrc||e.name!==t.prevName||e.theme!==t.prevTheme){var r={src:e.src,name:e.name,theme:e.theme,validationMessage:e.validationMessage,prevSrc:e.src,prevName:e.name,prevTheme:e.theme};return n.validateState(r)}return null}}]),n}(m.a.PureComponent);Le.defaultProps={src:{},name:"root",theme:"rjv-default",collapsed:!1,collapseStringsAfterLength:!1,shouldCollapse:!1,sortKeys:!1,quotesOnKeys:!0,groupArraysAfterLength:100,indentWidth:4,enableClipboard:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onDelete:!1,onAdd:!1,onSelect:!1,iconStyle:"triangle",style:{},validationMessage:"Validation Error",defaultValue:null,displayArrayKey:!0},Le.validateState=function(e){var t={};return"object"!==E(e.theme)||function(e){var t=["base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F"];if("object"===E(e)){for(var n=0;n<t.length;n++)if(!(t[n]in e))return!1;return!0}return!1}(e.theme)||(console.error("react-json-view error:","theme prop must be a theme name or valid base-16 theme object.",'defaulting to "rjv-default" theme'),t.theme="rjv-default"),"object"!==E(e.src)&&"array"!==E(e.src)&&(console.error("react-json-view error:","src property must be a valid json object"),t.name="ERROR",t.src={message:"src property must be a valid json object"}),i(i({},e),t)},_(Le),t.default=Le}])}(n(28437))},70770:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>Qo});n(33e3);var r=n(28437),o=n.n(r),i=n(64600),a=n.n(i),s=n(26299),c=n.n(s),u=n(89496),l=n.n(u),d=n(10446),f=n.n(d),h=n(98587),p=n(58168),g=(n(95973),"data-focus-lock"),v="data-focus-lock-disabled";function m(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var b="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,y=new WeakMap;function w(e,t){var n=function(e,t){var n=(0,r.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return m(e,t)}))}));return b((function(){var t=y.get(n);if(t){var r=new Set(t),o=new Set(e),i=n.current;r.forEach((function(e){o.has(e)||m(e,null)})),o.forEach((function(e){r.has(e)||m(e,i)}))}y.set(n,e)}),[e]),n}var _={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},S=function(e){var t=e.children,n=void 0===t?null:t;return r.createElement(r.Fragment,null,r.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:_}),n,n&&r.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:_}))};S.propTypes={};var E=n(6326);function O(e){return e}function x(e,t){void 0===t&&(t=O);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}function C(e,t){return void 0===t&&(t=O),x(e,t)}var R=C({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),I=C(),T=C(),A=function(e){void 0===e&&(e={});var t=x(null);return t.options=(0,E.Cl)({async:!0,ssr:!1},e),t}({async:!0,ssr:"undefined"!==typeof document}),k=(0,r.createContext)(void 0),P=[],N=r.forwardRef((function(e,t){var n,o=r.useState(),i=o[0],a=o[1],s=r.useRef(),c=r.useRef(!1),u=r.useRef(null),l=r.useState({})[1],d=e.children,f=e.disabled,h=void 0!==f&&f,m=e.noFocusGuards,b=void 0!==m&&m,y=e.persistentFocus,S=void 0!==y&&y,E=e.crossFrame,O=void 0===E||E,x=e.autoFocus,C=void 0===x||x,T=(e.allowTextSelection,e.group),N=e.className,D=e.whiteList,j=e.hasPositiveIndices,M=e.shards,L=void 0===M?P:M,B=e.as,q=void 0===B?"div":B,z=e.lockProps,F=void 0===z?{}:z,$=e.sideCar,H=e.returnFocus,U=void 0!==H&&H,W=e.focusOptions,V=e.onActivation,K=e.onDeactivation,G=r.useState({})[0],X=r.useCallback((function(e){var t=e.captureFocusRestore;if(!u.current){var n,r=null==(n=document)?void 0:n.activeElement;u.current=r,r!==document.body&&(u.current=t(r))}s.current&&V&&V(s.current),c.current=!0,l()}),[V]),Y=r.useCallback((function(){c.current=!1,K&&K(s.current),l()}),[K]),J=r.useCallback((function(e){var t=u.current;if(t){var n=("function"===typeof t?t():t)||document.body,r="function"===typeof U?U(n):U;if(r){var o="object"===typeof r?r:void 0;u.current=null,e?Promise.resolve().then((function(){return n.focus(o)})):n.focus(o)}}}),[U]),Q=r.useCallback((function(e){c.current&&R.useMedium(e)}),[]),Z=I.useMedium,ee=r.useCallback((function(e){s.current!==e&&(s.current=e,a(e))}),[]);var te=(0,p.A)(((n={})[v]=h&&"disabled",n[g]=T,n),F),ne=!0!==b,re=ne&&"tail"!==b,oe=w([t,ee]),ie=r.useMemo((function(){return{observed:s,shards:L,enabled:!h,active:c.current}}),[h,c.current,L,i]);return r.createElement(r.Fragment,null,ne&&[r.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:_}),j?r.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:_}):null],!h&&r.createElement($,{id:G,sideCar:A,observed:i,disabled:h,persistentFocus:S,crossFrame:O,autoFocus:C,whiteList:D,shards:L,onActivation:X,onDeactivation:Y,returnFocus:J,focusOptions:W}),r.createElement(q,(0,p.A)({ref:oe},te,{className:N,onBlur:Z,onFocus:Q}),r.createElement(k.Provider,{value:ie},d)),re&&r.createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:_}))}));N.propTypes={};const D=N;var j=n(25540),M=n(59526);const L=function(e,t){return function(n){var i,a=[];function s(){i=e(a.map((function(e){return e.props}))),t(i)}var c=function(e){function t(){return e.apply(this,arguments)||this}(0,j.A)(t,e),t.peek=function(){return i};var r=t.prototype;return r.componentDidMount=function(){a.push(this),s()},r.componentDidUpdate=function(){s()},r.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),s()},r.render=function(){return o().createElement(n,this.props)},t}(r.PureComponent);return function(e,t,n){(t=(0,M.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(c,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),c}};var B=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},q=function(e){return Array.isArray(e)?e:[e]},z=function(e){return Array.isArray(e)?e[0]:e},F=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},$=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},H=function(e,t){return!e||$(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue)&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(F(e))},U=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=H(t,U.bind(void 0,e));return e.set(t,r),r},W=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!$(e))||!!X(e)&&t(F(e))}(t,W.bind(void 0,e));return e.set(t,r),r},V=function(e){return e.dataset},K=function(e){return"INPUT"===e.tagName},G=function(e){return K(e)&&"radio"===e.type},X=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},Y=function(e){var t;return Boolean(e&&(null===(t=V(e))||void 0===t?void 0:t.focusGuard))},J=function(e){return!Y(e)},Q=function(e){return Boolean(e)},Z=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),o=n-r,i=e.index-t.index;if(o){if(!n)return 1;if(!r)return-1}return o||i},ee=function(e,t,n){return B(e).map((function(e,t){var r=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}})).filter((function(e){return!t||e.tabIndex>=0})).sort(Z)},te=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),ne="".concat(te,", [data-focus-guard]"),re=function(e,t){return B((e.shadowRoot||e).children).reduce((function(e,n){return e.concat(n.matches(t?ne:te)?[n]:[],re(n))}),[])},oe=function(e,t){return e.reduce((function(e,n){var r,o=re(n,t),i=(r=[]).concat.apply(r,o.map((function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?oe([e.contentDocument.body],t):[e]}(e,t)})));return e.concat(i,n.parentNode?B(n.parentNode.querySelectorAll(te)).filter((function(e){return e===n})):[])}),[])},ie=function(e,t){return B(e).filter((function(e){return U(t,e)})).filter((function(e){return function(e){return!((K(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},ae=function(e,t){return void 0===t&&(t=new Map),B(e).filter((function(e){return W(t,e)}))},se=function(e,t,n){return ee(ie(oe(e,n),t),!0,n)},ce=function(e,t){return ee(ie(oe(e),t),!1)},ue=function(e,t){return ie(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return B(t).map((function(e){return oe([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},le=function(e,t){return e.shadowRoot?le(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||B(e.children).some((function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&le(r,t)}return le(e,t)}))},de=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?de(t.shadowRoot):t instanceof HTMLIFrameElement&&function(e){try{return e()}catch(t){return}}((function(){return t.contentWindow.document}))?de(t.contentWindow.document):t}},fe=function(e){return e.parentNode?fe(e.parentNode):e},he=function(e){return q(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(g);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(B(fe(t).querySelectorAll("[".concat(g,'="').concat(n,'"]:not([').concat(v,'="disabled"])')))):[t]),e}),[])},pe=function(e,t){return void 0===t&&(t=de(z(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&he(e).some((function(e){return le(e,t)||function(e,t){return Boolean(B(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},ge=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},ve=function(e,t){return G(e)&&e.name?function(e,t){return t.filter(G).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},me=function(e){return e[0]&&e.length>1?ve(e[0],e):e[0]},be=function(e,t){return e.indexOf(ve(t,e))},ye="NEW_FOCUS",we=function(e,t,n,r,o){var i=e.length,a=e[0],s=e[i-1],c=Y(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,l=o?n.indexOf(o):u,d=o?e.indexOf(o):-1;if(-1===u)return-1!==d?d:ye;if(-1===d)return ye;var f=u-l,h=n.indexOf(a),p=n.indexOf(s),g=function(e){var t=new Set;return e.forEach((function(n){return t.add(ve(n,e))})),e.filter((function(e){return t.has(e)}))}(n),v=(void 0!==r?g.indexOf(r):-1)-(o?g.indexOf(o):u);if(!f&&d>=0)return d;if(0===t.length)return d;var m=be(e,t[0]),b=be(e,t[t.length-1]);return u<=h&&c&&Math.abs(f)>1?b:u>=p&&c&&Math.abs(f)>1?m:f&&Math.abs(v)>1?d:u<=h?b:u>p?m:f?Math.abs(f)>1?d:(i+d+f)%i:void 0}},_e=function(e,t,n){var r,o=e.map((function(e){return e.node})),i=ae(o.filter((r=n,function(e){var t,n=null===(t=V(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?me(i):me(ae(t))},Se=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Se(e.parentNode.host||e.parentNode,t),t},Ee=function(e,t){for(var n=Se(e),r=Se(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},Oe=function(e,t,n){var r=q(e),o=q(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=Ee(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Ee(i,e);t&&(a=!a||le(t,a)?t:Ee(t,a))}))})),a},xe=function(e,t){return e.reduce((function(e,n){return e.concat(ue(n,t))}),[])},Ce=function(e,t){var n=de(q(e).length>0?document:z(e).ownerDocument),r=he(e).filter(J),o=Oe(n||e,e,r),i=new Map,a=ce(r,i),s=a.filter((function(e){var t=e.node;return J(t)}));if(s[0]){var c=ce([o],i).map((function(e){return e.node})),u=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(Q)}(c,s),l=u.map((function(e){return e.node})),d=u.filter((function(e){return e.tabIndex>=0})).map((function(e){return e.node})),f=we(l,d,c,n,t);if(f===ye){var h=_e(a,d,xe(r,i))||_e(a,l,xe(r,i));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:u[f]}},Re=0,Ie=!1,Te=function(e,t,n){void 0===n&&(n={});var r=Ce(e,t);if(!Ie&&r){if(Re>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Ie=!0,void setTimeout((function(){Ie=!1}),1);Re++,ge(r.node,n.focusOptions),Re--}},Ae=function(e,t,n){void 0===t&&(t={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),o=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=q(t);if(r.every((function(t){return!le(t,e)})))return console.error("Active element is not contained in the scope"),{};var o=n?se(r,new Map):ce(r,new Map),i=o.findIndex((function(t){return t.node===e}));return-1!==i?{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(o){var i=n(o,r.cycle);i&&ge(i.node,r.focusOptions)}},ke=function(e,t,n){var r,o=function(e,t){var n=t?se(q(e),new Map):ce(q(e),new Map);return{first:n[0],last:n[n.length-1]}}(e,null===(r=t.onlyTabbable)||void 0===r||r)[n];o&&ge(o.node,t.focusOptions)};function Pe(e){if(!e)return null;if("undefined"===typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null===t||void 0===t?void 0:t.deref())||null}}function Ne(e){setTimeout(e,1)}var De=function(e){return e&&"current"in e?e.current:e},je=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=de(e);return!!t&&B(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return le(e,t)}))}()},Me=null,Le=null,Be=null,qe=!1,ze=function(){return!0};function Fe(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var $e=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},He=function(){var e,t=!1;if(Me){var n=Me,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,s=n.crossFrame,c=n.focusOptions,u=r||Be&&Be.portaledElement,l=document&&document.activeElement;if(u){var d=[u].concat(a.map(De).filter(Boolean));if(l&&!function(e){return(Me.whiteList||ze)(e)}(l)||(o||(s?Boolean(qe):"meanwhile"===qe)||!je()||!Le&&i)&&(u&&!(pe(d)||l&&function(e,t){return t.some((function(t){return $e(e,t,t)}))}(l,d)||(e=l,Be&&Be.portaledElement===e))&&(document&&!Le&&l&&!i?(l.blur&&l.blur(),document.body.focus()):(t=Te(d,Le,{focusOptions:c}),Be={})),qe=!1,Le=document&&document.activeElement),document&&l!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var f=document&&document.activeElement,h=function(e){var t=he(e).filter(J),n=Oe(e,e,t),r=ee(oe([n],!0),!0,!0),o=oe(t,!1);return r.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:Y(t)}}))}(d),p=h.map((function(e){return e.node})).indexOf(f);p>-1&&(h.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Fe(p,h.length,1,h),Fe(p,-1,-1,h))}}}return t},Ue=function(e){He()&&e&&(e.stopPropagation(),e.preventDefault())},We=function(){return Ne(He)},Ve=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Be={observerNode:n,portaledElement:t})},Ke=function(){qe="just",Ne((function(){qe="meanwhile"}))};var Ge={moveFocusInside:Te,focusInside:pe,focusNextElement:function(e,t){void 0===t&&(t={}),Ae(e,t,(function(e,t){var n=e.next,r=e.first;return n||t&&r}))},focusPrevElement:function(e,t){void 0===t&&(t={}),Ae(e,t,(function(e,t){var n=e.prev,r=e.last;return n||t&&r}))},focusFirstElement:function(e,t){void 0===t&&(t={}),ke(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),ke(e,t,"last")},captureFocusRestore:function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:Pe(n),parent:Pe(n.parentElement),left:Pe(n.previousElementSibling),right:Pe(n.nextElementSibling)}),n=n.parentElement;return{element:Pe(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,n,r,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,c=new Map,u=0,l=a;u<l.length;u++){var d=l[u],f=null===(t=d.parent)||void 0===t?void 0:t.call(d);if(f&&s.contains(f)){for(var h=null===(n=d.left)||void 0===n?void 0:n.call(d),p=d.current(),g=f.contains(p)?p:void 0,v=null===(r=d.right)||void 0===r?void 0:r.call(d),m=se([f],c),b=null!==(i=null!==(o=null!==g&&void 0!==g?g:null===h||void 0===h?void 0:h.nextElementSibling)&&void 0!==o?o:v)&&void 0!==i?i:h;b;){for(var y=0,w=m;y<w.length;y++){var _=w[y];if(null===b||void 0===b?void 0:b.contains(_.node))return _.node}b=b.nextElementSibling}if(m.length)return m[0].node}}}(t)}}};R.assignSyncMedium(Ve),I.assignMedium(We),T.assignMedium((function(e){return e(Ge)}));const Xe=L((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!Me&&(document.addEventListener("focusin",Ue),document.addEventListener("focusout",We),window.addEventListener("blur",Ke));var n=Me,r=n&&t&&t.id===n.id;Me=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Le=null,r&&n.observed===t.observed||t.onActivation(Ge),He(),Ne(He)):(document.removeEventListener("focusin",Ue),document.removeEventListener("focusout",We),window.removeEventListener("blur",Ke),Le=null)}))((function(){return null}));var Ye=r.forwardRef((function(e,t){return r.createElement(D,(0,p.A)({sideCar:Xe,ref:t},e))})),Je=D.propTypes||{};Je.sideCar,(0,h.A)(Je,["sideCar"]);Ye.propTypes={};const Qe=Ye;var Ze=function(){return Ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ze.apply(this,arguments)};Object.create;function et(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var tt=n(17324),nt=n.n(tt),rt="-ms-",ot="-moz-",it="-webkit-",at="comm",st="rule",ct="decl",ut="@import",lt="@keyframes",dt="@layer",ft=Math.abs,ht=String.fromCharCode,pt=Object.assign;function gt(e){return e.trim()}function vt(e,t){return(e=t.exec(e))?e[0]:e}function mt(e,t,n){return e.replace(t,n)}function bt(e,t,n){return e.indexOf(t,n)}function yt(e,t){return 0|e.charCodeAt(t)}function wt(e,t,n){return e.slice(t,n)}function _t(e){return e.length}function St(e){return e.length}function Et(e,t){return t.push(e),e}function Ot(e,t){return e.filter((function(e){return!vt(e,t)}))}var xt=1,Ct=1,Rt=0,It=0,Tt=0,At="";function kt(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:xt,column:Ct,length:a,return:"",siblings:s}}function Pt(e,t){return pt(kt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Nt(e){for(;e.root;)e=Pt(e.root,{children:[e]});Et(e,e.siblings)}function Dt(){return Tt=It>0?yt(At,--It):0,Ct--,10===Tt&&(Ct=1,xt--),Tt}function jt(){return Tt=It<Rt?yt(At,It++):0,Ct++,10===Tt&&(Ct=1,xt++),Tt}function Mt(){return yt(At,It)}function Lt(){return It}function Bt(e,t){return wt(At,e,t)}function qt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zt(e){return xt=Ct=1,Rt=_t(At=e),It=0,[]}function Ft(e){return At="",e}function $t(e){return gt(Bt(It-1,Wt(91===e?e+2:40===e?e+1:e)))}function Ht(e){for(;(Tt=Mt())&&Tt<33;)jt();return qt(e)>2||qt(Tt)>3?"":" "}function Ut(e,t){for(;--t&&jt()&&!(Tt<48||Tt>102||Tt>57&&Tt<65||Tt>70&&Tt<97););return Bt(e,Lt()+(t<6&&32==Mt()&&32==jt()))}function Wt(e){for(;jt();)switch(Tt){case e:return It;case 34:case 39:34!==e&&39!==e&&Wt(Tt);break;case 40:41===e&&Wt(e);break;case 92:jt()}return It}function Vt(e,t){for(;jt()&&e+Tt!==57&&(e+Tt!==84||47!==Mt()););return"/*"+Bt(t,It-1)+"*"+ht(47===e?e:jt())}function Kt(e){for(;!qt(Mt());)jt();return Bt(e,It)}function Gt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Xt(e,t,n,r){switch(e.type){case dt:if(e.children.length)break;case ut:case ct:return e.return=e.return||e.value;case at:return"";case lt:return e.return=e.value+"{"+Gt(e.children,r)+"}";case st:if(!_t(e.value=e.props.join(",")))return""}return _t(n=Gt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Yt(e,t,n){switch(function(e,t){return 45^yt(e,0)?(((t<<2^yt(e,0))<<2^yt(e,1))<<2^yt(e,2))<<2^yt(e,3):0}(e,t)){case 5103:return it+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return it+e+e;case 4789:return ot+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return it+e+ot+e+rt+e+e;case 5936:switch(yt(e,t+11)){case 114:return it+e+rt+mt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return it+e+rt+mt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return it+e+rt+mt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return it+e+rt+e+e;case 6165:return it+e+rt+"flex-"+e+e;case 5187:return it+e+mt(e,/(\w+).+(:[^]+)/,it+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return it+e+rt+"flex-item-"+mt(e,/flex-|-self/g,"")+(vt(e,/flex-|baseline/)?"":rt+"grid-row-"+mt(e,/flex-|-self/g,""))+e;case 4675:return it+e+rt+"flex-line-pack"+mt(e,/align-content|flex-|-self/g,"")+e;case 5548:return it+e+rt+mt(e,"shrink","negative")+e;case 5292:return it+e+rt+mt(e,"basis","preferred-size")+e;case 6060:return it+"box-"+mt(e,"-grow","")+it+e+rt+mt(e,"grow","positive")+e;case 4554:return it+mt(e,/([^-])(transform)/g,"$1"+it+"$2")+e;case 6187:return mt(mt(mt(e,/(zoom-|grab)/,it+"$1"),/(image-set)/,it+"$1"),e,"")+e;case 5495:case 3959:return mt(e,/(image-set\([^]*)/,it+"$1$`$1");case 4968:return mt(mt(e,/(.+:)(flex-)?(.*)/,it+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+it+e+e;case 4200:if(!vt(e,/flex-|baseline/))return rt+"grid-column-align"+wt(e,t)+e;break;case 2592:case 3360:return rt+mt(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,vt(e.props,/grid-\w+-end/)}))?~bt(e+(n=n[t].value),"span",0)?e:rt+mt(e,"-start","")+e+rt+"grid-row-span:"+(~bt(n,"span",0)?vt(n,/\d+/):+vt(n,/\d+/)-+vt(e,/\d+/))+";":rt+mt(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return vt(e.props,/grid-\w+-start/)}))?e:rt+mt(mt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return mt(e,/(.+)-inline(.+)/,it+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_t(e)-1-t>6)switch(yt(e,t+1)){case 109:if(45!==yt(e,t+4))break;case 102:return mt(e,/(.+:)(.+)-([^]+)/,"$1"+it+"$2-$3$1"+ot+(108==yt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bt(e,"stretch",0)?Yt(mt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return mt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return rt+n+":"+r+s+(o?rt+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===yt(e,t+6))return mt(e,":",":"+it)+e;break;case 6444:switch(yt(e,45===yt(e,14)?18:11)){case 120:return mt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+it+(45===yt(e,14)?"inline-":"")+"box$3$1"+it+"$2$3$1"+rt+"$2box$3")+e;case 100:return mt(e,":",":"+rt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return mt(e,"scroll-","scroll-snap-")+e}return e}function Jt(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ct:return void(e.return=Yt(e.value,e.length,n));case lt:return Gt([Pt(e,{value:mt(e.value,"@","@"+it)})],r);case st:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(vt(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Nt(Pt(e,{props:[mt(t,/:(read-\w+)/,":"+ot+"$1")]})),Nt(Pt(e,{props:[t]})),pt(e,{props:Ot(n,r)});break;case"::placeholder":Nt(Pt(e,{props:[mt(t,/:(plac\w+)/,":"+it+"input-$1")]})),Nt(Pt(e,{props:[mt(t,/:(plac\w+)/,":"+ot+"$1")]})),Nt(Pt(e,{props:[mt(t,/:(plac\w+)/,rt+"input-$1")]})),Nt(Pt(e,{props:[t]})),pt(e,{props:Ot(n,r)})}return""}))}}function Qt(e){return Ft(Zt("",null,null,null,[""],e=zt(e),0,[0],e))}function Zt(e,t,n,r,o,i,a,s,c){for(var u=0,l=0,d=a,f=0,h=0,p=0,g=1,v=1,m=1,b=0,y="",w=o,_=i,S=r,E=y;v;)switch(p=b,b=jt()){case 40:if(108!=p&&58==yt(E,d-1)){-1!=bt(E+=mt($t(b),"&","&\f"),"&\f",ft(u?s[u-1]:0))&&(m=-1);break}case 34:case 39:case 91:E+=$t(b);break;case 9:case 10:case 13:case 32:E+=Ht(p);break;case 92:E+=Ut(Lt()-1,7);continue;case 47:switch(Mt()){case 42:case 47:Et(tn(Vt(jt(),Lt()),t,n,c),c);break;default:E+="/"}break;case 123*g:s[u++]=_t(E)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+l:-1==m&&(E=mt(E,/\f/g,"")),h>0&&_t(E)-d&&Et(h>32?nn(E+";",r,n,d-1,c):nn(mt(E," ","")+";",r,n,d-2,c),c);break;case 59:E+=";";default:if(Et(S=en(E,t,n,u,l,o,s,y,w=[],_=[],d,i),i),123===b)if(0===l)Zt(E,t,S,S,w,i,d,s,_);else switch(99===f&&110===yt(E,3)?100:f){case 100:case 108:case 109:case 115:Zt(e,S,S,r&&Et(en(e,S,S,0,0,o,s,y,o,w=[],d,_),_),o,_,d,s,r?w:_);break;default:Zt(E,S,S,S,[""],_,0,s,_)}}u=l=h=0,g=m=1,y=E="",d=a;break;case 58:d=1+_t(E),h=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Dt())continue;switch(E+=ht(b),b*g){case 38:m=l>0?1:(E+="\f",-1);break;case 44:s[u++]=(_t(E)-1)*m,m=1;break;case 64:45===Mt()&&(E+=$t(jt())),f=Mt(),l=d=_t(y=E+=Kt(Lt())),b++;break;case 45:45===p&&2==_t(E)&&(g=0)}}return i}function en(e,t,n,r,o,i,a,s,c,u,l,d){for(var f=o-1,h=0===o?i:[""],p=St(h),g=0,v=0,m=0;g<r;++g)for(var b=0,y=wt(e,f+1,f=ft(v=a[g])),w=e;b<p;++b)(w=gt(v>0?h[b]+" "+y:mt(y,/&\f/g,h[b])))&&(c[m++]=w);return kt(e,t,n,0===o?st:s,c,u,l,d)}function tn(e,t,n,r){return kt(e,t,n,at,ht(Tt),wt(e,2,-2),0,r)}function nn(e,t,n,r,o){return kt(e,t,n,ct,wt(e,0,r),wt(e,r+1,-1),r,o)}var rn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},on="undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",an="active",sn="data-styled-version",cn="6.1.12",un="/*!sc*/\n",ln="undefined"!=typeof window&&"HTMLElement"in window,dn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)),fn={},hn=(new Set,Object.freeze([])),pn=Object.freeze({});function gn(e,t,n){return void 0===n&&(n=pn),e.theme!==n.theme&&e.theme||t||n.theme}var vn=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),mn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,bn=/(^-|-$)/g;function yn(e){return e.replace(mn,"-").replace(bn,"")}var wn=/(a)(d)/gi,_n=52,Sn=function(e){return String.fromCharCode(e+(e>25?39:97))};function En(e){var t,n="";for(t=Math.abs(e);t>_n;t=t/_n|0)n=Sn(t%_n)+n;return(Sn(t%_n)+n).replace(wn,"$1-$2")}var On,xn=5381,Cn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Rn=function(e){return Cn(xn,e)};function In(e){return En(Rn(e)>>>0)}function Tn(e){return e.displayName||e.name||"Component"}function An(e){return"string"==typeof e&&!0}var kn="function"==typeof Symbol&&Symbol.for,Pn=kn?Symbol.for("react.memo"):60115,Nn=kn?Symbol.for("react.forward_ref"):60112,Dn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},jn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Mn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ln=((On={})[Nn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},On[Pn]=Mn,On);function Bn(e){return("type"in(t=e)&&t.type.$$typeof)===Pn?Mn:"$$typeof"in e?Ln[e.$$typeof]:Dn;var t}var qn=Object.defineProperty,zn=Object.getOwnPropertyNames,Fn=Object.getOwnPropertySymbols,$n=Object.getOwnPropertyDescriptor,Hn=Object.getPrototypeOf,Un=Object.prototype;function Wn(e,t,n){if("string"!=typeof t){if(Un){var r=Hn(t);r&&r!==Un&&Wn(e,r,n)}var o=zn(t);Fn&&(o=o.concat(Fn(t)));for(var i=Bn(e),a=Bn(t),s=0;s<o.length;++s){var c=o[s];if(!(c in jn||n&&n[c]||a&&c in a||i&&c in i)){var u=$n(t,c);try{qn(e,c,u)}catch(e){}}}}return e}function Vn(e){return"function"==typeof e}function Kn(e){return"object"==typeof e&&"styledComponentId"in e}function Gn(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Xn(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Yn(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Jn(e,t,n){if(void 0===n&&(n=!1),!n&&!Yn(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Jn(e[r],t[r]);else if(Yn(t))for(var r in t)e[r]=Jn(e[r],t[r]);return e}function Qn(e,t){Object.defineProperty(e,"toString",{value:t})}function Zn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var er=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Zn(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(un);return t},e}(),tr=new Map,nr=new Map,rr=1,or=function(e){if(tr.has(e))return tr.get(e);for(;nr.has(rr);)rr++;var t=rr++;return tr.set(e,t),nr.set(t,e),t},ir=function(e,t){rr=t+1,tr.set(e,t),nr.set(t,e)},ar="style[".concat(on,"][").concat(sn,'="').concat(cn,'"]'),sr=new RegExp("^".concat(on,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),cr=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},ur=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(un),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var c=s.match(sr);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(ir(l,u),cr(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},lr=function(e){for(var t=document.querySelectorAll(ar),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(on)!==an&&(ur(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function dr(){return n.nc}var fr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(on,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(on,an),r.setAttribute(sn,cn);var a=dr();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},hr=function(){function e(e){this.element=fr(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Zn(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),pr=function(){function e(e){this.element=fr(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),gr=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),vr=ln,mr={isServer:!ln,useCSSOMInjection:!dn},br=function(){function e(e,t,n){void 0===e&&(e=pn),void 0===t&&(t={});var r=this;this.options=Ze(Ze({},mr),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ln&&vr&&(vr=!1,lr(this)),Qn(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return nr.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(on,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach((function(e){e.length>0&&(c+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(c,'"}').concat(un)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return or(e)},e.prototype.rehydrate=function(){!this.server&&ln&&lr(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ze(Ze({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new gr(n):t?new hr(n):new pr(n)}(this.options),new er(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(or(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(or(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(or(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),yr=/&/g,wr=/^\s*\/\/.*$/gm;function _r(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=_r(e.children,t)),e}))}function Sr(e){var t,n,r,o=void 0===e?pn:e,i=o.options,a=void 0===i?pn:i,s=o.plugins,c=void 0===s?hn:s,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},l=c.slice();l.push((function(e){e.type===st&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(yr,n).replace(r,u))})),a.prefix&&l.push(Jt),l.push(Xt);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(wr,""),u=Qt(i||o?"".concat(i," ").concat(o," { ").concat(c," }"):c);a.namespace&&(u=_r(u,a.namespace));var d,f=[];return Gt(u,function(e){var t=St(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(l.concat((d=function(e){return f.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),f};return d.hash=c.length?c.reduce((function(e,t){return t.name||Zn(15),Cn(e,t.name)}),xn).toString():"",d}var Er=new br,Or=Sr(),xr=o().createContext({shouldForwardProp:void 0,styleSheet:Er,stylis:Or}),Cr=(xr.Consumer,o().createContext(void 0));function Rr(){return(0,r.useContext)(xr)}function Ir(e){var t=(0,r.useState)(e.stylisPlugins),n=t[0],i=t[1],a=Rr().styleSheet,s=(0,r.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,a]),c=(0,r.useMemo)((function(){return Sr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,r.useEffect)((function(){nt()(n,e.stylisPlugins)||i(e.stylisPlugins)}),[e.stylisPlugins]);var u=(0,r.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}}),[e.shouldForwardProp,s,c]);return o().createElement(xr.Provider,{value:u},o().createElement(Cr.Provider,{value:c},e.children))}var Tr=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Or);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Qn(this,(function(){throw Zn(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Or),this.name+e.hash},e}(),Ar=function(e){return e>="A"&&e<="Z"};function kr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ar(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Pr=function(e){return null==e||!1===e||""===e},Nr=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Pr(i)&&(Array.isArray(i)&&i.isCss||Vn(i)?r.push("".concat(kr(o),":"),i,";"):Yn(i)?r.push.apply(r,et(et(["".concat(o," {")],Nr(i),!1),["}"],!1)):r.push("".concat(kr(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in rn||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Dr(e,t,n,r){return Pr(e)?[]:Kn(e)?[".".concat(e.styledComponentId)]:Vn(e)?!Vn(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Dr(e(t),t,n,r):e instanceof Tr?n?(e.inject(n,r),[e.getName(r)]):[e]:Yn(e)?Nr(e):Array.isArray(e)?Array.prototype.concat.apply(hn,e.map((function(e){return Dr(e,t,n,r)}))):[e.toString()];var o}function jr(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Vn(n)&&!Kn(n))return!1}return!0}var Mr=Rn(cn),Lr=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&jr(e),this.componentId=t,this.baseHash=Cn(Mr,t),this.baseStyle=n,br.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Gn(r,this.staticRulesId);else{var o=Xn(Dr(this.rules,e,t,n)),i=En(Cn(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Gn(r,i),this.staticRulesId=i}else{for(var s=Cn(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var d=Xn(Dr(l,e,t,n));s=Cn(s,d+u),c+=d}}if(c){var f=En(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(c,".".concat(f),void 0,this.componentId)),r=Gn(r,f)}}return r},e}(),Br=o().createContext(void 0);Br.Consumer;var qr={};new Set;function zr(e,t,n){var i=Kn(e),a=e,s=!An(e),c=t.attrs,u=void 0===c?hn:c,l=t.componentId,d=void 0===l?function(e,t){var n="string"!=typeof e?"sc":yn(e);qr[n]=(qr[n]||0)+1;var r="".concat(n,"-").concat(In(cn+n+qr[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,f=t.displayName,h=void 0===f?function(e){return An(e)?"styled.".concat(e):"Styled(".concat(Tn(e),")")}(e):f,p=t.displayName&&t.componentId?"".concat(yn(t.displayName),"-").concat(t.componentId):t.componentId||d,g=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,v=t.shouldForwardProp;if(i&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;v=function(e,t){return m(e,t)&&b(e,t)}}else v=m}var y=new Lr(n,p,i?a.componentStyle:void 0);function w(e,t){return function(e,t,n){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,l=e.target,d=o().useContext(Br),f=Rr(),h=e.shouldForwardProp||f.shouldForwardProp,p=gn(t,d,s)||pn,g=function(e,t,n){for(var r,o=Ze(Ze({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Vn(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?Gn(o[s],a[s]):"style"===s?Ze(Ze({},o[s]),a[s]):a[s]}return t.className&&(o.className=Gn(o.className,t.className)),o}(i,t,p),v=g.as||l,m={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===p||("forwardedAs"===b?m.as=g.forwardedAs:h&&!h(b,v)||(m[b]=g[b]));var y=function(e,t){var n=Rr();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(a,g),w=Gn(c,u);return y&&(w+=" "+y),g.className&&(w+=" "+g.className),m[An(v)&&!vn.has(v)?"class":"className"]=w,m.ref=n,(0,r.createElement)(v,m)}(_,e,t)}w.displayName=h;var _=o().forwardRef(w);return _.attrs=g,_.componentStyle=y,_.displayName=h,_.shouldForwardProp=v,_.foldedComponentIds=i?Gn(a.foldedComponentIds,a.styledComponentId):"",_.styledComponentId=p,_.target=i?a.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Jn(e,o[r],!0);return e}({},a.defaultProps,e):e}}),Qn(_,(function(){return".".concat(_.styledComponentId)})),s&&Wn(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function Fr(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var $r=function(e){return Object.assign(e,{isCss:!0})};function Hr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Vn(e)||Yn(e))return $r(Dr(Fr(hn,et([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Dr(r):$r(Dr(Fr(r,t)))}function Ur(e,t,n){if(void 0===n&&(n=pn),!t)throw Zn(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Hr.apply(void 0,et([r],o,!1)))};return r.attrs=function(r){return Ur(e,t,Ze(Ze({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Ur(e,t,Ze(Ze({},n),r))},r}var Wr=function(e){return Ur(zr,e)},Vr=Wr;vn.forEach((function(e){Vr[e]=Wr(e)}));var Kr=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=jr(e),br.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Xn(Dr(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&br.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=dr(),r=Xn([n&&'nonce="'.concat(n,'"'),"".concat(on,'="true"'),"".concat(sn,'="').concat(cn,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Zn(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Zn(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[on]="",t[sn]=cn,t.dangerouslySetInnerHTML={__html:n},t),i=dr();return i&&(r.nonce=i),[o().createElement("style",Ze({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new br({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Zn(2);return o().createElement(Ir,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Zn(3)}})(),"__sc-".concat(on,"__");var Gr,Xr=n(16372),Yr=n.n(Xr),Jr=n(23479);function Qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zr(e,t,n){return t=ro(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oo()?Reflect.construct(t,n||[],ro(e).constructor):t.apply(e,n))}function eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lo(r.key),r)}}function to(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=fo(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function no(e,t,n){return(t=lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ro(e)}function oo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oo=function(){return!!e})()}function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach((function(t){no(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function so(e,t){return so=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},so(e,t)}function co(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||fo(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function lo(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function fo(e,t){if(e){if("string"==typeof e)return Qr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qr(e,t):void 0}}var ho,po,go,vo=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Hr.apply(void 0,et([e],t,!1)),i="sc-global-".concat(In(JSON.stringify(r))),a=new Kr(r,i),s=function(e){var t=Rr(),n=o().useContext(Br),r=o().useRef(t.styleSheet.allocateGSInstance(i)).current;return t.styleSheet.server&&c(r,e,t.styleSheet,n,t.stylis),o().useLayoutEffect((function(){if(!t.styleSheet.server)return c(r,e,t.styleSheet,n,t.stylis),function(){return a.removeStyles(r,t.styleSheet)}}),[r,e,t.styleSheet,n,t.stylis]),null};function c(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,fn,n,o);else{var i=Ze(Ze({},t),{theme:gn(t,r,s.defaultProps)});a.renderStyles(e,i,n,o)}}return o().memo(s)}(Gr||(Gr=uo(["\n .focus-outline-hidden :focus {\n outline: none;\n }\n"]))),mo=Vr.button(ho||(ho=uo(["\n display: block;\n padding: 0;\n border: 0;\n background: none;\n font-size: 0;\n cursor: ",";\n"])),(function(e){return e.disabled?"not-allowed":"pointer"})),bo=Vr.span(po||(po=uo(["\n font-size: 12px;\n line-height: 1;\n"])));function yo(e){var t=e.className,n=e.onClick,r=e.inverted,i=e.label,a=e.disabled;return o().createElement(mo,{className:t,onClick:n,"data-tour-elem":"".concat(r?"right":"left","-arrow"),disabled:a},i?o().createElement(bo,null,i):o().createElement("svg",{viewBox:"0 0 18.4 14.4"},o().createElement("path",{d:r?"M17 7.2H1M10.8 1L17 7.2l-6.2 6.2":"M1.4 7.2h16M7.6 1L1.4 7.2l6.2 6.2",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeMiterlimit:"10"})))}yo.propTypes={className:Yr().string.isRequired,onClick:Yr().func.isRequired,inverted:Yr().bool,label:Yr().node,disabled:Yr().bool};var wo,_o=Vr(yo)(go||(go=uo(["\n color: ",";\n\n ",";\n ",";\n\n &:hover {\n color: ",";\n }\n"])),(function(e){return e.disabled?"#caccce":"#646464"}),(function(e){return e.inverted?"margin-left: 24px;":"margin-right: 24px;"}),(function(e){return!e.label&&"\n width: 16px;\n height: 12px;\n flex: 0 0 16px;\n "}),(function(e){return e.disabled?"#caccce":"#000"}));function So(e){var t=e.className,n=e.onClick,r=e.ariaLabel;return o().createElement(mo,{className:t,onClick:n,"aria-label":r},o().createElement("svg",{viewBox:"0 0 9.1 9.1","aria-hidden":!0,role:"presentation"},o().createElement("path",{fill:"currentColor",d:"M5.9 4.5l2.8-2.8c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L4.5 3.1 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4l2.8 2.8L.3 7.4c-.4.4-.4 1 0 1.4.2.2.4.3.7.3s.5-.1.7-.3L4.5 6l2.8 2.8c.3.2.5.3.8.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L5.9 4.5z"})))}So.propTypes={className:Yr().string.isRequired,onClick:Yr().func.isRequired,ariaLabel:Yr().string};var Eo=Vr(So)(wo||(wo=uo(["\n position: absolute;\n top: 22px;\n right: 22px;\n width: 9px;\n height: 9px;\n color: #5e5e5e;\n &:hover {\n color: #000;\n }\n"])));function Oo(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function xo(e,t){if(!t.highlightedSelectors)return Oo(e);var n,r=Oo(e),o=to(t.highlightedSelectors);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=document.querySelector(i);if(a&&"none"!==a.style.display&&"hidden"!==a.style.visibility){var s=Oo(a);s.top<r.top&&(r.top=s.top),s.right>r.right&&(r.right=s.right),s.bottom>r.bottom&&(r.bottom=s.bottom),s.left<r.left&&(r.left=s.left)}}}catch(c){o.e(c)}finally{o.f()}return r.width=r.right-r.left,r.height=r.bottom-r.top,r}function Co(e){return e===document.querySelector("body")||e===document.querySelector("html")}var Ro,Io=function(e,t){return e>t},To=function(e,t){return e>t},Ao=function(e){return e<0?0:e};var ko,Po,No,Do,jo,Mo=Vr.div(Ro||(Ro=uo(["\n --reactour-accent: ",";\n ","\n position: fixed;\n transition: transform 0.3s;\n top: 0;\n left: 0;\n z-index: 1000000;\n\n transform: ",";\n"])),(function(e){return e.accentColor}),(function(e){return e.defaultStyles?"\n max-width: 331px;\n min-width: 150px;\n padding-right: 40px;\n border-radius: ".concat(e.rounded,"px;\n background-color: #fff;\n padding: 24px 30px;\n box-shadow: 0 0.5em 3em rgba(0, 0, 0, 0.3);\n color: inherit;\n "):""}),(function(e){var t=e.targetTop,n=e.targetRight,r=e.targetBottom,o=e.targetLeft,i=e.windowWidth,a=e.windowHeight,s=e.helperWidth,c=e.helperHeight,u=e.helperPosition,l=e.padding,d={left:o,right:i-n,top:t,bottom:a-r},f=function(e){return d[e]>(function(e){return/(left|right)/.test(e)}(e)?s+2*l:c+2*l)},h=function(e){for(var t,n=(t=d,Object.keys(t).map((function(e){return{position:e,value:t[e]}})).sort((function(e,t){return t.value-e.value})).map((function(e){return e.position}))),r=0;r<n.length;r++)if(f(n[r]))return e[n[r]];return e.center},p=function(e){if(Array.isArray(e)){var u=Io(e[0],i),d=To(e[1],a),p=function(e,t){console.warn("".concat(e,":").concat(t," is outside window, falling back to center"))};return u&&p("x",e[0]),d&&p("y",e[1]),[u?i/2-s/2:e[0],d?a/2-c/2:e[1]]}var g=Io(o+s,i)?Io(n+l,i)?n-s:n-s+l:o-l,v=g>l?g:l,m=To(t+c,a)?To(r+l,a)?r-c:r-c+l:t-l,b=m>l?m:l,y={top:[v,t-c-2*l],right:[n+2*l,b],bottom:[v,r+2*l],left:[o-s-2*l,b],center:[i/2-s/2,a/2-c/2]};return"center"===e||f(e)?y[e]:h(y)}(u);return"translate(".concat(Math.round(p[0]),"px, ").concat(Math.round(p[1]),"px)")})),Lo=Vr.span(ko||(ko=uo(["\n position: absolute;\n font-family: monospace;\n background: var(--reactour-accent);\n background: ",";\n height: 1.875em;\n line-height: 2;\n padding-left: 0.8125em;\n padding-right: 0.8125em;\n font-size: 1em;\n border-radius: 1.625em;\n color: white;\n text-align: center;\n box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.3);\n top: -0.8125em;\n left: -0.8125em;\n"])),(function(e){return e.accentColor})),Bo=Vr.div(Po||(Po=uo(["\n display: flex;\n margin-top: 24px;\n align-items: center;\n justify-content: center;\n"]))),qo=Vr.nav(No||(No=uo(["\n counter-reset: dot;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-wrap: wrap;\n"]))),zo=Vr.button(Do||(Do=uo(["\n counter-increment: dot;\n width: 8px;\n height: 8px;\n border: ",";\n\n border-radius: 100%;\n padding: 0;\n display: block;\n margin: 4px;\n transition: opacity 0.3s, transform 0.3s;\n cursor: ",";\n transform: scale(",");\n\n color: ",";\n background: ",";\n\n color: ",";\n background: ",";\n\n &:before {\n content: counter(dot);\n position: absolute;\n bottom: calc(100% + 0.25em);\n left: 50%;\n opacity: 0;\n transform: translate(-50%, 1em);\n transition: 0.3s;\n display: ",";\n }\n\n &:hover {\n background-color: currentColor;\n\n &:before {\n opacity: 0.5;\n transform: translate(-50%, -2px);\n }\n }\n"])),(function(e){return e.current===e.index?"0":"1px solid #caccce"}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.current===e.index?1.25:1}),(function(e){return e.current===e.index?"var(--reactour-accent)":"#caccce"}),(function(e){return e.current===e.index?"var(--reactour-accent)":"none"}),(function(e){return e.current===e.index?e.accentColor:"#caccce"}),(function(e){return e.current===e.index?e.accentColor:"none"}),(function(e){return e.showNumber?"block":"none"})),Fo=Vr.div(jo||(jo=uo(["\n opacity: ",";\n color: ",";\n width: 100%;\n left: 0;\n top: 0;\n height: 100%;\n position: fixed;\n z-index: 99999;\n pointer-events: none;\n"])),(function(e){return!e.maskClassName&&.7}),(function(e){return!e.maskClassName&&"#000"}));function $o(e){var t=e.windowWidth,n=e.windowHeight,r=e.targetWidth,i=e.targetHeight,a=e.targetTop,s=e.targetLeft,c=e.padding,u=e.rounded,l=e.roundedStep,d=e.disableInteraction,f=e.disableInteractionClassName,h=e.className,p=e.onClick,g=e.highlightedBorder,v=Ao(r+2*c),m=Ao(i+2*c),b=Ao(a-c),y=Ao(s-c),w=l?Math.min(v/2,m/2):u;return o().createElement(Fo,{onClick:p,maskClassName:h},o().createElement("svg",{width:t,height:n,xmlns:"http://www.w3.org/2000/svg",className:h},o().createElement("defs",null,o().createElement("mask",{id:"mask-main"},o().createElement("rect",{x:0,y:0,width:t,height:n,fill:"white"}),o().createElement("rect",{x:y,y:b,width:v,height:m,fill:"black"}),o().createElement("rect",{x:y-1,y:b-1,width:w,height:w,fill:"white"}),o().createElement("circle",{cx:y+w,cy:b+w,r:w,fill:"black"}),o().createElement("rect",{x:y+v-w+1,y:b-1,width:w,height:w,fill:"white"}),o().createElement("circle",{cx:y+v-w,cy:b+w,r:w,fill:"black"}),o().createElement("rect",{x:y-1,y:b+m-w+1,width:w,height:w,fill:"white"}),o().createElement("circle",{cx:y+w,cy:b+m-w,r:w,fill:"black"}),o().createElement("rect",{x:y+v-w+1,y:b+m-w+1,width:w,height:w,fill:"white"}),o().createElement("circle",{cx:y+v-w,cy:b+m-w,r:w,fill:"black "})),o().createElement("clipPath",{id:"clip-path"},o().createElement("rect",{x:0,y:0,width:t,height:b}),o().createElement("rect",{x:0,y:b,width:y,height:m}),o().createElement("rect",{x:s+r+c,y:b,width:Ao(t-r-y),height:m}),o().createElement("rect",{x:0,y:a+i+c,width:t,height:Ao(n-i-b)}))),o().createElement("rect",{x:0,y:0,width:t,height:n,fill:"currentColor",mask:"url(#mask-main)"}),o().createElement("rect",{x:0,y:0,width:t,height:n,fill:"currentColor",clipPath:"url(#clip-path)",pointerEvents:"auto"}),o().createElement("rect",{x:y,y:b,width:v,height:m,pointerEvents:"auto",fill:"transparent",display:d?"block":"none",className:f}),g&&o().createElement("rect",{x:Ao(y+g.width/2),y:Ao(b+g.width/2),width:Ao(v-g.width),height:Ao(m-g.width),pointerEvents:"auto",fill:"none",strokeWidth:g.width,stroke:g.color,rx:w-2})))}$o.propTypes={windowWidth:Yr().number.isRequired,windowHeight:Yr().number.isRequired,targetWidth:Yr().number.isRequired,targetHeight:Yr().number.isRequired,targetTop:Yr().number.isRequired,targetLeft:Yr().number.isRequired,padding:Yr().number.isRequired,rounded:Yr().number.isRequired,roundedStep:Yr().bool,disableInteraction:Yr().bool.isRequired,disableInteractionClassName:Yr().string.isRequired,highlightedBorder:Yr().shape({color:Yr().string.isRequired,width:Yr().number.isRequired})};var Ho=function(e){var t=e.step,n=e.refresh,o=co((0,r.useState)(0),2),i=o[0],a=o[1];return(0,r.useEffect)((function(){if(t.resizeObservables){var e=function(e){var n,r=to(e);try{var o=function(){var e=n.value;if(!e.attributes)return 1;var r=t.resizeObservables.find((function(t){return e.matches(t)||null!=e.querySelector(t)}));r&&a(i+1)};for(r.s();!(n=r.n()).done;)o()}catch(s){r.e(s)}finally{r.f()}},n=new MutationObserver((function(t){var n,r=to(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;0!==o.addedNodes.length&&e(o.addedNodes),0!==o.removedNodes.length&&e(o.removedNodes)}}catch(i){r.e(i)}finally{r.f()}})),r=document.documentElement||document.body;return n.observe(r,{childList:!0,subtree:!0}),function(){n.disconnect()}}}),[t,i]),(0,r.useEffect)((function(){if(t.resizeObservables){var e,r=new ResizeObserver((function(e){n()})),o=to(t.resizeObservables);try{for(o.s();!(e=o.n()).done;){var i=e.value,a=document.querySelector(i);a&&r.observe(a)}}catch(s){o.e(s)}finally{o.f()}return function(){r.disconnect()}}}),[t,i]),null},Uo=function(e){var t=e.step,n=e.refresh;return(0,r.useEffect)((function(){if(t.mutationObservables){var e=function(e){var r,o=to(e);try{var i=function(){var e=r.value;if(!e.attributes)return 1;var o=t.mutationObservables.find((function(t){return e.matches(t)||null!=e.querySelector(t)}));o&&n()};for(o.s();!(r=o.n()).done;)i()}catch(a){o.e(a)}finally{o.f()}},r=new MutationObserver((function(t){var n,r=to(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;0!==o.addedNodes.length&&e(o.addedNodes),0!==o.removedNodes.length&&e(o.removedNodes)}}catch(i){r.e(i)}finally{r.f()}})),o=document.documentElement||document.body;return r.observe(o,{childList:!0,subtree:!0}),function(){r.disconnect()}}}),[t]),null};function Wo(e){var t=e.children,n=(0,r.useRef)(null);return null===n.current&&(n.current=document.createElement("div"),n.current.setAttribute("id","___reactour")),(0,r.useEffect)((function(){return document.body.appendChild(n.current),function(){document.body.removeChild(n.current)}}),[n]),(0,Jr.createPortal)(t,n.current)}var Vo={disableFocusLock:Yr().bool,badgeContent:Yr().func,highlightedMaskClassName:Yr().string,children:Yr().oneOfType([Yr().node,Yr().element]),className:Yr().string,closeButtonAriaLabel:Yr().string,closeWithMask:Yr().bool,inViewThreshold:Yr().number,isOpen:Yr().bool.isRequired,lastStepNextButton:Yr().node,maskClassName:Yr().string,maskSpace:Yr().number,nextButton:Yr().node,onAfterOpen:Yr().func,onBeforeClose:Yr().func,onRequestClose:Yr().func,prevButton:Yr().node,scrollDuration:Yr().number,scrollOffset:Yr().number,showButtons:Yr().bool,showCloseButton:Yr().bool,showNavigation:Yr().bool,showNavigationNumber:Yr().bool,showNumber:Yr().bool,startAt:Yr().number,goToStep:Yr().number,getCurrentStep:Yr().func,nextStep:Yr().func,prevStep:Yr().func,steps:Yr().arrayOf(Yr().shape({selector:Yr().string,content:Yr().oneOfType([Yr().node,Yr().element,Yr().func]).isRequired,position:Yr().oneOfType([Yr().arrayOf(Yr().number),Yr().oneOf(["top","right","bottom","left","center"])]),action:Yr().func,style:Yr().object,stepInteraction:Yr().bool,navDotAriaLabel:Yr().string,roundedStep:Yr().bool})),update:Yr().string,updateDelay:Yr().number,disableInteraction:Yr().bool,disableDotsNavigation:Yr().bool,disableKeyboardNavigation:Yr().oneOfType([Yr().arrayOf(Yr().oneOf(["esc","right","left"])),Yr().bool]),rounded:Yr().number,accentColor:Yr().string,highlightedBorder:Yr().shape({color:Yr().string.isRequired,width:Yr().number.isRequired})},Ko={base:"reactour__mask",isOpen:"reactour__mask--is-open",disableInteraction:"reactour__mask--disable-interaction"},Go={base:"reactour__helper",isOpen:"reactour__helper--is-open"},Xo={base:"reactour__dot",active:"reactour__dot--is-active"},Yo=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),no(e=Zr(this,t),"unlockFocus",(function(t){e.setState({focusUnlocked:!0},t())})),no(e,"showStep",(function(){if(e.helper&&e.helper.current){var t=e.props.steps,n=e.state,r=n.current;n.focusUnlocked&&e.setState({focusUnlocked:!1});var o=t[r],i=o.selector?document.querySelector(o.selector):null,a=function(t){o.action&&"function"===typeof o.action&&e.unlockFocus((function(){return o.action(t)}))};if(o.observe){var s=document.querySelector(o.observe),c={attributes:!0,childList:!0,characterData:!0};e.setState((function(t){return t.observer&&setTimeout((function(){t.observer.disconnect()}),0),{observer:new MutationObserver((function(t){t.forEach((function(t){if("childList"===t.type&&t.addedNodes.length>0){var n=function(){return a(t.addedNodes[0])};setTimeout((function(){return e.calculateNode(t.addedNodes[0],o,n)}),100)}else if("childList"===t.type&&t.removedNodes.length>0){e.calculateNode(i,o,(function(){return a(i)}))}}))}))}}),(function(){return e.state.observer.observe(s,c)}))}else e.state.observer&&(e.state.observer.disconnect(),e.setState({observer:null}));if(i){e.calculateNode(i,o,(function(){return a(i)}))}else e.setState(Jo(null,o,e.helper.current),a),o.selector&&console.warn("Doesn't find a DOM node '".concat(o.selector,"'. Please check the 'steps' Tour prop Array at position ").concat(r,"."))}})),no(e,"calculateNode",(function(t,n,r){var o=e.props,i=o.scrollDuration,a=o.inViewThreshold,s=o.scrollOffset,u=xo(t,n),d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left,i=e.w,a=e.h,s=e.threshold,c=void 0===s?0:s;return t>=0+c&&o>=0+c&&r<=a-c&&n<=i-c}(ao(ao({},u),{},{w:d,h:f,threshold:a})))e.setState(Jo(t,n,e.helper.current),r);else{var h=l()(t),p=s||(u.height>f?-25:-f/2+u.height/2);c().to(t,{context:Co(h)?window:h,duration:i,offset:p,callback:function(t){e.setState(Jo(t,n,e.helper.current),r)}})}})),no(e,"recalculateNode",(function(t){var n=document.querySelector(t.selector);e.calculateNode(n,t,(function(){return function(n){t.action&&"function"===typeof t.action&&e.unlockFocus((function(){return t.action(n)}))}(n)}))})),no(e,"maskClickHandler",(function(t){var n=e.props,r=n.closeWithMask,o=n.onRequestClose;r&&!t.target.classList.contains(Ko.disableInteraction)&&o(t)})),no(e,"nextStep",(function(){var t=e.props,n=t.steps,r=t.getCurrentStep;e.setState((function(e){var t=e.current<n.length-1?e.current+1:e.current;return"function"===typeof r&&r(t),{current:t}}),e.showStep)})),no(e,"prevStep",(function(){var t=e.props.getCurrentStep;e.setState((function(e){var n=e.current>0?e.current-1:e.current;return"function"===typeof t&&t(n),{current:n}}),e.showStep)})),no(e,"gotoStep",(function(t){var n=e.props,r=n.steps,o=n.getCurrentStep;e.setState((function(e){var n=r[t]?t:e.current;return"function"===typeof o&&o(n),{current:n}}),e.showStep)})),no(e,"keyDownHandler",(function(t){var n,r,o,i=e.props,a=i.onRequestClose,s=i.nextStep,c=i.prevStep,u=i.disableKeyboardNavigation;(t.stopPropagation(),!0!==u)&&(u&&(n=u.includes("esc"),r=u.includes("right"),o=u.includes("left")),27!==t.keyCode||n||(t.preventDefault(),a()),39!==t.keyCode||r||(t.preventDefault(),"function"===typeof s?s():e.nextStep()),37!==t.keyCode||o||(t.preventDefault(),"function"===typeof c?c():e.prevStep()))})),e.state={isOpen:!1,current:0,top:0,right:0,bottom:0,left:0,width:0,height:0,w:0,h:0,inDOM:!1,observer:null,focusUnlocked:!1},e.helper=(0,r.createRef)(),e.helperElement=null,e.debouncedShowStep=f()(e.showStep,70),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&so(e,t)}(t,e),function(e,t,n){return t&&eo(e.prototype,t),n&&eo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isOpen,n=e.startAt;t&&this.open(n)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.isOpen,r=t.update,o=t.updateDelay;!n&&e.isOpen?this.open(e.startAt):n&&!e.isOpen&&this.close(),n&&r!==e.update&&(e.steps[this.state.current]?setTimeout(this.showStep,o):this.props.onRequestClose()),n&&e.isOpen&&this.state.current!==e.goToStep&&this.gotoStep(e.goToStep)}},{key:"componentWillUnmount",value:function(){this.props.isOpen&&this.close(),this.state.observer&&this.state.observer.disconnect()}},{key:"open",value:function(e){var t=this,n=this.props.onAfterOpen;this.setState((function(t){return{isOpen:!0,current:void 0!==e?e:t.current}}),(function(){setTimeout(t.showStep,1),t.helperElement=t.helper.current,t.props.disableFocusLock||t.helper.current.focus(),n&&n(t.helperElement)})),window.addEventListener("resize",this.debouncedShowStep,!1),window.addEventListener("keydown",this.keyDownHandler,!1)}},{key:"close",value:function(){this.setState((function(e){return e.observer&&e.observer.disconnect(),{isOpen:!1,observer:null}}),this.onBeforeClose),window.removeEventListener("resize",this.debouncedShowStep),window.removeEventListener("keydown",this.keyDownHandler)}},{key:"onBeforeClose",value:function(){var e=this.props.onBeforeClose;e&&e(this.helperElement)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.steps,i=t.maskClassName,s=t.showButtons,c=t.showCloseButton,u=t.closeButtonAriaLabel,l=t.showNavigation,d=t.showNavigationNumber,f=t.showNumber,h=t.onRequestClose,p=t.maskSpace,g=t.lastStepNextButton,v=t.nextButton,m=t.prevButton,b=t.badgeContent,y=t.highlightedMaskClassName,w=t.disableInteraction,_=t.disableDotsNavigation,S=t.nextStep,E=t.prevStep,O=t.rounded,x=t.accentColor,C=t.CustomHelper,R=t.disableFocusLock,I=t.highlightedBorder,T=this.state,A=T.isOpen,k=T.current,P=T.inDOM,N=T.top,D=T.right,j=T.bottom,M=T.left,L=T.width,B=T.height,q=T.w,z=T.h,F=T.helperWidth,$=T.helperHeight,H=T.helperPosition;return A?o().createElement(Wo,null,o().createElement(vo,null),o().createElement(Ho,{step:r[k],refresh:function(){return e.recalculateNode(r[k])}}),o().createElement(Uo,{step:r[k],refresh:function(){return e.recalculateNode(r[k])}}),o().createElement($o,{onClick:this.maskClickHandler,forwardRef:function(t){return e.mask=t},windowWidth:q,windowHeight:z,targetWidth:L,targetHeight:B,targetTop:N,targetLeft:M,padding:p,rounded:O,roundedStep:r[k].roundedStep,className:i,disableInteraction:!1===r[k].stepInteraction||w?!r[k].stepInteraction:w,disableInteractionClassName:"".concat(Ko.disableInteraction," ").concat(y),highlightedBorder:I}),o().createElement(Qe,{disabled:R,autoFocus:!1},o().createElement(Mo,{ref:this.helper,targetHeight:B,targetWidth:L,targetTop:N,targetRight:D,targetBottom:j,targetLeft:M,windowWidth:q,windowHeight:z,helperWidth:F,helperHeight:$,helperPosition:H,padding:p,tabIndex:-1,current:k,style:r[k].style?r[k].style:{},rounded:O,className:a()(Go.base,n,no({},Go.isOpen,A)),accentColor:x,defaultStyles:!C,role:"dialog"},C?o().createElement(C,{current:k,totalSteps:r.length,gotoStep:this.gotoStep,close:h,content:r[k]&&("function"===typeof r[k].content?r[k].content({close:h,goTo:this.gotoStep,inDOM:P,step:k+1}):r[k].content)},this.props.children):o().createElement(o().Fragment,null,this.props.children,r[k]&&("function"===typeof r[k].content?r[k].content({close:h,goTo:this.gotoStep,inDOM:P,step:k+1}):r[k].content),f&&o().createElement(Lo,{"data-tour-elem":"badge",accentColor:x},"function"===typeof b?b(k+1,r.length):k+1),(s||l)&&o().createElement(Bo,{"data-tour-elem":"controls"},s&&o().createElement(_o,{onClick:"function"===typeof E?E:this.prevStep,disabled:0===k,label:m||null}),l&&o().createElement(qo,{"data-tour-elem":"navigation"},r.map((function(t,n){return o().createElement(zo,{key:"".concat(t.selector?t.selector:"undef","_").concat(n),onClick:function(){return e.gotoStep(n)},current:k,index:n,accentColor:x,disabled:k===n||_,showNumber:d,"data-tour-elem":"dot",className:a()(Xo.base,no({},Xo.active,k===n)),"aria-label":t.navDotAriaLabel})}))),s&&o().createElement(_o,{onClick:k===r.length-1?g?h:function(){}:"function"===typeof S?S:this.nextStep,disabled:!g&&k===r.length-1,inverted:!0,label:g&&k===r.length-1?g:v||null})),c&&o().createElement(Eo,{onClick:h,className:"reactour__close",ariaLabel:u}))))):null}}])}(r.Component),Jo=function(e,t,n){if(n){var r=Math.max(document.documentElement.clientWidth,window.innerWidth||0),o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),i=Oo(n),a=i.width,s=i.height,c={top:o+10,right:r/2+9,bottom:o/2+9,left:r/2-a/2,width:0,height:0,w:r,h:o,helperPosition:"center"};return e&&(c=xo(e,t)),function(){return ao(ao({w:r,h:o,helperWidth:a,helperHeight:s,helperPosition:t.position},c),{},{inDOM:!!e})}}};Yo.propTypes=Vo,Yo.defaultProps={disableFocusLock:!1,showNavigation:!0,showNavigationNumber:!0,showButtons:!0,showCloseButton:!0,closeButtonAriaLabel:"Close",showNumber:!0,scrollDuration:1,maskSpace:10,updateDelay:1,disableInteraction:!1,rounded:0,accentColor:"#007aff",closeWithMask:!0};const Qo=Yo},83967:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(56576),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=void 0===t?'[href^="#"]:not([href="#"]':t,r=e.match,i=void 0===r?function(e){return document.getElementById(e.hash.substring(1))}:r,s=e.hashChange,c=void 0===s||s,u=e.scrollSmoothConfig,l=document.querySelectorAll(n),d=function(e){e.preventDefault();var t=i(e.target);t&&(c&&history.replaceState(null,null,"#"+t.id),(0,a.default)(t,o({},u)))};Array.from(l).map((function(e){e.addEventListener("click",d,!1)}))},e.exports=t.default},26299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(56576)),o=n(13696),i=s(n(83967)),a=s(n(61155));function s(e){return e&&e.__esModule?e:{default:e}}t.default={to:r.default,calcEndPoint:o.calcEndPoint,anchorScroll:i.default,observe:a.default},e.exports=t.default},61155:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.activeClass,n=void 0===t?"active":t,r=e.query,o=void 0===r?'[href^="#"]:not([href="#"]):not([href="#0"])':r,i=e.threshold,a=void 0===i?[.25,.5,.75]:i,s=e.detectType,c=void 0===s?"max":s,u={threshold:a},l=function(e){return e.classList.remove(n)},d=function(e){document.querySelectorAll("."+n).forEach(l),document.querySelector('a[href="#'+e.id+'"]').classList.add(n)},f=document.querySelectorAll(o),h=new IntersectionObserver((function(e){e.forEach((function(e){e.intersectionRatio>=Math[c].apply(Math,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(a))&&d(e.target)}))}),u);f.forEach((function(e){var t=document.querySelector("#"+e.hash.slice(1));h.observe(t)}))},e.exports=t.default},56576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(13696);t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,i=void 0===n?500:n,a=t.context,s=void 0===a?window:a,c=t.offset,u=void 0===c?0:c,l=t.ease,d=void 0===l?"easeInOutCubic":l,f=t.callback;if("object"===("undefined"===typeof window?"undefined":r(window))){var h=null!==s.scrollTop&&void 0!==s.scrollTop?s.scrollTop:window.pageYOffset,p=(0,o.calcEndPoint)(e,s,u),g=performance.now(),v=window.requestAnimationFrame;!function t(){var n=performance.now()-g,r=(0,o.setPosition)(h,p,n,i,d);s!==window?s.scrollTop=r:window.scroll(0,r),n>i?"function"===typeof f&&f(e):v(t)}()}},e.exports=t.default},13696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=t.easeFunctions={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},r=t.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.setPosition=function(e,t,r,o){return r>o?t:e+(t-e)*n[arguments.length>4&&void 0!==arguments[4]?arguments[4]:"easeInOutCubic"](r/o)},t.calcEndPoint=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r(e))return parseInt(e)+n;var o=t===window||t===document.documentElement?window.pageYOffset:t.scrollTop-t.getBoundingClientRect().top;return("html"===e.nodeName.toLowerCase()?-o:e.getBoundingClientRect().top+o)+n}},89496:function(e,t){var n,r,o;r=[],void 0===(o="function"===typeof(n=function(){var e=/(auto|scroll)/,t=function(e,n){return null===e.parentNode?n:t(e.parentNode,n.concat([e]))},n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")},o=function(t){return e.test(r(t))};return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=t(e.parentNode,[]),r=0;r<n.length;r+=1)if(o(n[r]))return n[r];return document.scrollingElement||document.documentElement}}})?n.apply(t,r):n)||(e.exports=o)},17324:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=e[u],d=t[u];if(!1===(o=n?n.call(r,l,d,u):void 0)||void 0===o&&l!==d)return!1}return!0}},41124:e=>{!function(){"use strict";var t=Math.PI,n=Math.sin,r=Math.cos,o=Math.tan,i=Math.asin,a=Math.atan2,s=Math.acos,c=t/180,u=864e5,l=2440588,d=2451545;function f(e){return new Date((e+.5-l)*u)}function h(e){return function(e){return e.valueOf()/u-.5+l}(e)-d}var p=23.4397*c;function g(e,t){return a(n(e)*r(p)-o(t)*n(p),r(e))}function v(e,t){return i(n(t)*r(p)+r(t)*n(p)*n(e))}function m(e,t,i){return a(n(e),r(e)*n(t)-o(i)*r(t))}function b(e,t,o){return i(n(t)*n(o)+r(t)*r(o)*r(e))}function y(e,t){return c*(280.16+360.9856235*e)-t}function w(e){return c*(357.5291+.98560028*e)}function _(e){return e+c*(1.9148*n(e)+.02*n(2*e)+3e-4*n(3*e))+102.9372*c+t}function S(e){var t=_(w(e));return{dec:v(t,0),ra:g(t,0)}}var E={getPosition:function(e,t,n){var r=c*-n,o=c*t,i=h(e),a=S(i),s=y(i,r)-a.ra;return{azimuth:m(s,o,a.dec),altitude:b(s,o,a.dec)}}},O=E.times=[[-.833,"sunrise","sunset"],[-.3,"sunriseEnd","sunsetStart"],[-6,"dawn","dusk"],[-12,"nauticalDawn","nauticalDusk"],[-18,"nightEnd","night"],[6,"goldenHourEnd","goldenHour"]];E.addTime=function(e,t,n){O.push([e,t,n])};var x=9e-4;function C(e,n,r){return x+(e+n)/(2*t)+r}function R(e,t,r){return d+e+.0053*n(t)-.0069*n(2*r)}function I(e,t,o,i,a,c,u){var l=function(e,t,o){return s((n(e)-n(t)*n(o))/(r(t)*r(o)))}(e,o,i);return R(C(l,t,a),c,u)}function T(e){var t=c*(134.963+13.064993*e),o=c*(93.272+13.22935*e),i=c*(218.316+13.176396*e)+6.289*c*n(t),a=5.128*c*n(o),s=385001-20905*r(t);return{ra:g(i,a),dec:v(i,a),dist:s}}function A(e,t){return new Date(e.valueOf()+t*u/24)}E.getTimes=function(e,n,r){var o,i,a,s,u,l=c*-r,d=c*n,p=function(e,n){return Math.round(e-x-n/(2*t))}(h(e),l),g=C(0,l,p),m=w(g),b=_(m),y=v(b,0),S=R(g,m,b),E={solarNoon:f(S),nadir:f(S+.5)};for(o=0,i=O.length;o<i;o+=1)u=S-((s=I((a=O[o])[0]*c,l,d,y,p,m,b))-S),E[a[1]]=f(u),E[a[2]]=f(s);return E},E.getMoonPosition=function(e,t,i){var s=c*-i,u=c*t,l=h(e),d=T(l),f=y(l,s)-d.ra,p=b(f,u,d.dec),g=a(n(f),o(u)*r(d.dec)-n(d.dec)*r(f));return p+=function(e){return e<0&&(e=0),2967e-7/Math.tan(e+.00312536/(e+.08901179))}(p),{azimuth:m(f,u,d.dec),altitude:p,distance:d.dist,parallacticAngle:g}},E.getMoonIllumination=function(e){var t=h(e||new Date),o=S(t),i=T(t),c=149598e3,u=s(n(o.dec)*n(i.dec)+r(o.dec)*r(i.dec)*r(o.ra-i.ra)),l=a(c*n(u),i.dist-c*r(u)),d=a(r(o.dec)*n(o.ra-i.ra),n(o.dec)*r(i.dec)-r(o.dec)*n(i.dec)*r(o.ra-i.ra));return{fraction:(1+r(l))/2,phase:.5+.5*l*(d<0?-1:1)/Math.PI,angle:d}},E.getMoonTimes=function(e,t,n,r){var o=new Date(e);r?o.setUTCHours(0,0,0,0):o.setHours(0,0,0,0);for(var i,a,s,u,l,d,f,h,p,g,v,m,b,y=.133*c,w=E.getMoonPosition(o,t,n).altitude-y,_=1;_<=24&&(i=E.getMoonPosition(A(o,_),t,n).altitude-y,h=((l=(w+(a=E.getMoonPosition(A(o,_+1),t,n).altitude-y))/2-i)*(f=-(d=(a-w)/2)/(2*l))+d)*f+i,g=0,(p=d*d-4*l*i)>=0&&(v=f-(b=Math.sqrt(p)/(2*Math.abs(l))),m=f+b,Math.abs(v)<=1&&g++,Math.abs(m)<=1&&g++,v<-1&&(v=m)),1===g?w<0?s=_+v:u=_+v:2===g&&(s=_+(h<0?m:v),u=_+(h<0?v:m)),!s||!u);_+=2)w=a;var S={};return s&&(S.rise=A(o,s)),u&&(S.set=A(o,u)),s||u||(S[h>0?"alwaysUp":"alwaysDown"]=!0),S},e.exports=E}()},25540:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{A:()=>o})},92027:(e,t,n)=>{"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("undefined"!==typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,(function(){return r[n++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}n.d(t,{V:()=>r})},74271:(e,t,n)=>{"use strict";function r(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const a=i[c];if(!s(a))return!1;const u=e[a],l=t[a];if(o=n?n.call(r,u,l,a):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}n.d(t,{b:()=>r})},23783:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>nr});var r={};n.r(r),n.d(r,{xX:()=>pe,qA:()=>ge,LG:()=>fe,cH:()=>he,v3:()=>me,v7:()=>ve,fK:()=>we,PO:()=>Ee,m_:()=>ye,vc:()=>de,Ll:()=>be,OE:()=>Se,Is:()=>_e});const o="4.53.0";let i,a,s,c,u,l,d,f,h,p=!1,g=null,v=null,m=null,b=null;class y{constructor(e){this.body=e}get[Symbol.toStringTag](){return"MultipartBody"}}i||function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{auto:!1};if(p)throw new Error("you must `import 'openai/shims/".concat(e.kind,"'` before importing anything else from openai"));if(i)throw new Error("can't `import 'openai/shims/".concat(e.kind,"'` after `import 'openai/shims/").concat(i,"'`"));p=t.auto,i=e.kind,a=e.fetch,g=e.Request,v=e.Response,m=e.Headers,s=e.FormData,b=e.Blob,c=e.File,u=e.ReadableStream,l=e.getMultipartRequestOptions,d=e.getDefaultAgent,f=e.fileFromPath,h=e.isFsReadStream}(function(){let{manuallyImported:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e?"You may need to use polyfills":"Add one of these imports before your first `import \u2026 from 'openai'`:\n- `import 'openai/shims/node'` (if you're running on Node)\n- `import 'openai/shims/web'` (otherwise)\n";let n,r,o,i;try{n=fetch,r=Request,o=Response,i=Headers}catch(a){throw new Error("this environment is missing the following Web Fetch API type: ".concat(a.message,". ").concat(t))}return{kind:"web",fetch:n,Request:r,Response:o,Headers:i,FormData:"undefined"!==typeof FormData?FormData:class{constructor(){throw new Error("file uploads aren't supported in this environment yet as 'FormData' is undefined. ".concat(t))}},Blob:"undefined"!==typeof Blob?Blob:class{constructor(){throw new Error("file uploads aren't supported in this environment yet as 'Blob' is undefined. ".concat(t))}},File:"undefined"!==typeof File?File:class{constructor(){throw new Error("file uploads aren't supported in this environment yet as 'File' is undefined. ".concat(t))}},ReadableStream:"undefined"!==typeof ReadableStream?ReadableStream:class{constructor(){throw new Error("streaming isn't supported in this environment yet as 'ReadableStream' is undefined. ".concat(t))}},getMultipartRequestOptions:async(e,t)=>({...t,body:new y(e)}),getDefaultAgent:e=>{},fileFromPath:()=>{throw new Error("The `fileFromPath` function is only supported in Node. See the README for more details: https://www.github.com/openai/openai-node#file-uploads")},isFsReadStream:e=>!1}}(),{auto:!0});class w{constructor(e,t){this.iterator=e,this.controller=t}static fromSSEResponse(e,t){let n=!1;return new w((async function*(){if(n)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let r=!1;try{for await(const n of async function*(e,t){if(!e.body)throw t.abort(),new de("Attempted to iterate over a response with no body");const n=new S,r=new E,o=O(e.body);for await(const i of async function*(e){let t=new Uint8Array;for await(const n of e){if(null==n)continue;const e=n instanceof ArrayBuffer?new Uint8Array(n):"string"===typeof n?(new TextEncoder).encode(n):n;let r,o=new Uint8Array(t.length+e.length);for(o.set(t),o.set(e,t.length),t=o;-1!==(r=_(t));)yield t.slice(0,r),t=t.slice(r)}t.length>0&&(yield t)}(o))for(const e of r.decode(i)){const t=n.decode(e);t&&(yield t)}for(const i of r.flush()){const e=n.decode(i);e&&(yield e)}}(e,t))if(!r)if(n.data.startsWith("[DONE]"))r=!0;else if(null===n.event){let e;try{e=JSON.parse(n.data)}catch(o){throw console.error("Could not parse message into JSON:",n.data),console.error("From chunk:",n.raw),o}if(e&&e.error)throw new fe(void 0,e.error,void 0,void 0);yield e}else{let e;try{e=JSON.parse(n.data)}catch(o){throw console.error("Could not parse message into JSON:",n.data),console.error("From chunk:",n.raw),o}if("error"==n.event)throw new fe(void 0,e.error,e.message,void 0);yield{event:n.event,data:e}}r=!0}catch(o){if(o instanceof Error&&"AbortError"===o.name)return;throw o}finally{r||t.abort()}}),t)}static fromReadableStream(e,t){let n=!1;return new w((async function*(){if(n)throw new Error("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");n=!0;let r=!1;try{for await(const t of async function*(){const t=new E,n=O(e);for await(const e of n)for(const n of t.decode(e))yield n;for(const e of t.flush())yield e}())r||t&&(yield JSON.parse(t));r=!0}catch(o){if(o instanceof Error&&"AbortError"===o.name)return;throw o}finally{r||t.abort()}}),t)}[Symbol.asyncIterator](){return this.iterator()}tee(){const e=[],t=[],n=this.iterator(),r=r=>({next:()=>{if(0===r.length){const r=n.next();e.push(r),t.push(r)}return r.shift()}});return[new w((()=>r(e)),this.controller),new w((()=>r(t)),this.controller)]}toReadableStream(){const e=this;let t;const n=new TextEncoder;return new u({async start(){t=e[Symbol.asyncIterator]()},async pull(e){try{const{value:r,done:o}=await t.next();if(o)return e.close();const i=n.encode(JSON.stringify(r)+"\n");e.enqueue(i)}catch(r){e.error(r)}},async cancel(){var e,n;await(null===(e=(n=t).return)||void 0===e?void 0:e.call(n))}})}}function _(e){for(let t=0;t<e.length-2;t++){if(10===e[t]&&10===e[t+1])return t+2;if(13===e[t]&&13===e[t+1])return t+2;if(13===e[t]&&10===e[t+1]&&t+3<e.length&&13===e[t+2]&&10===e[t+3])return t+4}return-1}class S{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(e){if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;const e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[t,n,r]=function(e,t){const n=e.indexOf(t);if(-1!==n)return[e.substring(0,n),t,e.substring(n+t.length)];return[e,"",""]}(e,":");return r.startsWith(" ")&&(r=r.substring(1)),"event"===t?this.event=r:"data"===t&&this.data.push(r),null}}class E{constructor(){this.buffer=[],this.trailingCR=!1}decode(e){let t=this.decodeText(e);if(this.trailingCR&&(t="\r"+t,this.trailingCR=!1),t.endsWith("\r")&&(this.trailingCR=!0,t=t.slice(0,-1)),!t)return[];const n=E.NEWLINE_CHARS.has(t[t.length-1]||"");let r=t.split(E.NEWLINE_REGEXP);return n&&r.pop(),1!==r.length||n?(this.buffer.length>0&&(r=[this.buffer.join("")+r[0],...r.slice(1)],this.buffer=[]),n||(this.buffer=[r.pop()||""]),r):(this.buffer.push(r[0]),[])}decodeText(e){if(null==e)return"";if("string"===typeof e)return e;if("undefined"!==typeof Buffer){if(e instanceof Buffer)return e.toString();if(e instanceof Uint8Array)return Buffer.from(e).toString();throw new de("Unexpected: received non-Uint8Array (".concat(e.constructor.name,') stream chunk in an environment with a global "Buffer" defined, which this library assumes to be Node. Please report this error.'))}if("undefined"!==typeof TextDecoder){var t;if(e instanceof Uint8Array||e instanceof ArrayBuffer)return null!==(t=this.textDecoder)&&void 0!==t||(this.textDecoder=new TextDecoder("utf8")),this.textDecoder.decode(e);throw new de("Unexpected: received non-Uint8Array/ArrayBuffer (".concat(e.constructor.name,") in a web platform. Please report this error."))}throw new de("Unexpected: neither Buffer nor TextDecoder are available as globals. Please report this error.")}flush(){if(!this.buffer.length&&!this.trailingCR)return[];const e=[this.buffer.join("")];return this.buffer=[],this.trailingCR=!1,e}}function O(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{async next(){try{const e=await t.read();return null!==e&&void 0!==e&&e.done&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){const e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}E.NEWLINE_CHARS=new Set(["\n","\r"]),E.NEWLINE_REGEXP=/\r\n|[\n\r]/g;const x=e=>null!=e&&"object"===typeof e&&"string"===typeof e.url&&"function"===typeof e.blob,C=e=>null!=e&&"object"===typeof e&&"string"===typeof e.name&&"number"===typeof e.lastModified&&R(e),R=e=>null!=e&&"object"===typeof e&&"number"===typeof e.size&&"string"===typeof e.type&&"function"===typeof e.text&&"function"===typeof e.slice&&"function"===typeof e.arrayBuffer,I=e=>C(e)||x(e)||h(e);async function T(e,t,n){var r,o;if(e=await e,null!==(r=n)&&void 0!==r||(n=C(e)?{lastModified:e.lastModified,type:e.type}:{}),x(e)){var i;const r=await e.blob();return t||(t=null!==(i=new URL(e.url).pathname.split(/[\\/]/).pop())&&void 0!==i?i:"unknown_file"),new c([r],t,n)}const a=await async function(e){let t=[];if("string"===typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(R(e))t.push(await e.arrayBuffer());else{var n;if(!k(e))throw new Error("Unexpected data type: ".concat(typeof e,"; constructor: ").concat(null===e||void 0===e||null===(n=e.constructor)||void 0===n?void 0:n.name,"; props: ").concat(function(e){const t=Object.getOwnPropertyNames(e);return"[".concat(t.map((e=>'"'.concat(e,'"'))).join(", "),"]")}(e)));for await(const n of e)t.push(n)}return t}(e);if(t||(t=null!==(o=function(e){var t;return A(e.name)||A(e.filename)||(null===(t=A(e.path))||void 0===t?void 0:t.split(/[\\/]/).pop())}(e))&&void 0!==o?o:"unknown_file"),!n.type){var s;const e=null===(s=a[0])||void 0===s?void 0:s.type;"string"===typeof e&&(n={...n,type:e})}return new c(a,t,n)}const A=e=>"string"===typeof e?e:"undefined"!==typeof Buffer&&e instanceof Buffer?String(e):void 0,k=e=>null!=e&&"object"===typeof e&&"function"===typeof e[Symbol.asyncIterator],P=e=>e&&"object"===typeof e&&e.body&&"MultipartBody"===e[Symbol.toStringTag],N=async e=>{const t=await D(e.body);return l(t,e)},D=async e=>{const t=new s;return await Promise.all(Object.entries(e||{}).map((e=>{let[n,r]=e;return j(t,n,r)}))),t},j=async(e,t,n)=>{if(void 0!==n){if(null==n)throw new TypeError('Received null for "'.concat(t,"\"; to pass null in FormData, you must use the string 'null'"));if("string"===typeof n||"number"===typeof n||"boolean"===typeof n)e.append(t,String(n));else if(I(n)){const r=await T(n);e.append(t,r)}else if(Array.isArray(n))await Promise.all(n.map((n=>j(e,t+"[]",n))));else{if("object"!==typeof n)throw new TypeError("Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ".concat(n," instead"));await Promise.all(Object.entries(n).map((n=>{let[r,o]=n;return j(e,"".concat(t,"[").concat(r,"]"),o)})))}}};var M,L=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},B=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};async function q(e){const{response:t}=e;if(e.options.stream)return ce("response",t.status,t.url,t.headers,t.body),e.options.__streamClass?e.options.__streamClass.fromSSEResponse(t,e.controller):w.fromSSEResponse(t,e.controller);if(204===t.status)return null;if(e.options.__binaryResponse)return t;const n=t.headers.get("content-type");if((null===n||void 0===n?void 0:n.includes("application/json"))||(null===n||void 0===n?void 0:n.includes("application/vnd.api+json"))){const e=await t.json();return ce("response",t.status,t.url,t.headers,e),e}const r=await t.text();return ce("response",t.status,t.url,t.headers,r),r}class z extends Promise{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;super((e=>{e(null)})),this.responsePromise=e,this.parseResponse=t}_thenUnwrap(e){return new z(this.responsePromise,(async t=>e(await this.parseResponse(t))))}asResponse(){return this.responsePromise.then((e=>e.response))}async withResponse(){const[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(this.parseResponse)),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}}class F{constructor(e){let{baseURL:t,maxRetries:n=2,timeout:r=6e5,httpAgent:o,fetch:i}=e;this.baseURL=t,this.maxRetries=ne("maxRetries",n),this.timeout=ne("timeout",r),this.httpAgent=o,this.fetch=null!==i&&void 0!==i?i:a}authHeaders(e){return{}}defaultHeaders(e){return{Accept:"application/json","Content-Type":"application/json","User-Agent":this.getUserAgent(),...J(),...this.authHeaders(e)}}validateHeaders(e,t){}defaultIdempotencyKey(){return"stainless-node-retry-".concat(ue())}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,n){return this.request(Promise.resolve(n).then((async n=>{const r=n&&R(null===n||void 0===n?void 0:n.body)?new DataView(await n.body.arrayBuffer()):(null===n||void 0===n?void 0:n.body)instanceof DataView?n.body:(null===n||void 0===n?void 0:n.body)instanceof ArrayBuffer?new DataView(n.body):n&&ArrayBuffer.isView(null===n||void 0===n?void 0:n.body)?new DataView(n.body.buffer):null===n||void 0===n?void 0:n.body;return{method:e,path:t,...n,body:r}})))}getAPIList(e,t,n){return this.requestAPIList(t,{method:"get",path:e,...n})}calculateContentLength(e){if("string"===typeof e){if("undefined"!==typeof Buffer)return Buffer.byteLength(e,"utf8").toString();if("undefined"!==typeof TextEncoder){return(new TextEncoder).encode(e).length.toString()}}else if(ArrayBuffer.isView(e))return e.byteLength.toString();return null}buildRequest(e){var t,n,r,o,i,a;const{method:s,path:c,query:u,headers:l={}}=e,f=ArrayBuffer.isView(e.body)||e.__binaryRequest&&"string"===typeof e.body?e.body:P(e.body)?e.body.body:e.body?JSON.stringify(e.body,null,2):null,h=this.calculateContentLength(f),p=this.buildURL(c,u);"timeout"in e&&ne("timeout",e.timeout);const g=null!==(t=e.timeout)&&void 0!==t?t:this.timeout,v=null!==(n=null!==(r=e.httpAgent)&&void 0!==r?r:this.httpAgent)&&void 0!==n?n:d(p),m=g+1e3;"number"===typeof(null===v||void 0===v||null===(o=v.options)||void 0===o?void 0:o.timeout)&&m>(null!==(i=v.options.timeout)&&void 0!==i?i:0)&&(v.options.timeout=m),this.idempotencyHeader&&"get"!==s&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),l[this.idempotencyHeader]=e.idempotencyKey);return{req:{method:s,...f&&{body:f},headers:this.buildHeaders({options:e,headers:l,contentLength:h}),...v&&{agent:v},signal:null!==(a=e.signal)&&void 0!==a?a:null},url:p,timeout:g}}buildHeaders(e){let{options:t,headers:n,contentLength:r}=e;const o={};r&&(o["content-length"]=r);return se(o,this.defaultHeaders(t)),se(o,n),P(t.body)&&"node"!==i&&delete o["content-type"],this.validateHeaders(o,n),o}async prepareOptions(e){}async prepareRequest(e,t){let{url:n,options:r}=t}parseHeaders(e){return e?Symbol.iterator in e?Object.fromEntries(Array.from(e).map((e=>[...e]))):{...e}:{}}makeStatusError(e,t,n,r){return fe.generate(e,t,n,r)}request(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new z(this.makeRequest(e,t))}async makeRequest(e,t){var n;const r=await e;var o;null==t&&(t=null!==(o=r.maxRetries)&&void 0!==o?o:this.maxRetries);await this.prepareOptions(r);const{req:i,url:a,timeout:s}=this.buildRequest(r);if(await this.prepareRequest(i,{url:a,options:r}),ce("request",a,r,i.headers),null!==(n=r.signal)&&void 0!==n&&n.aborted)throw new he;const c=new AbortController,u=await this.fetchWithTimeout(a,i,s,c).catch(re);if(u instanceof Error){var l;if(null!==(l=r.signal)&&void 0!==l&&l.aborted)throw new he;if(t)return this.retryRequest(r,t);if("AbortError"===u.name)throw new ge;throw new pe({cause:u})}const d=U(u.headers);if(!u.ok){if(t&&this.shouldRetry(u)){const e="retrying, ".concat(t," attempts remaining");return ce("response (error; ".concat(e,")"),u.status,a,d),this.retryRequest(r,t,d)}const e=await u.text().catch((e=>re(e).message)),n=Q(e),o=n?void 0:e;ce("response (error; ".concat(t?"(error; no more retries left)":"(error; not retryable)",")"),u.status,a,d,o);throw this.makeStatusError(u.status,n,o,d)}return{response:u,options:r,controller:c}}requestAPIList(e,t){const n=this.makeRequest(t,null);return new H(this,n,e)}buildURL(e,t){const n=ee(e)?new URL(e):new URL(this.baseURL+(this.baseURL.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),r=this.defaultQuery();return ie(r)||(t={...r,...t}),"object"===typeof t&&t&&!Array.isArray(t)&&(n.search=this.stringifyQuery(t)),n.toString()}stringifyQuery(e){return Object.entries(e).filter((e=>{let[t,n]=e;return"undefined"!==typeof n})).map((e=>{let[t,n]=e;if("string"===typeof n||"number"===typeof n||"boolean"===typeof n)return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n));if(null===n)return"".concat(encodeURIComponent(t),"=");throw new de("Cannot stringify type ".concat(typeof n,"; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case."))})).join("&")}async fetchWithTimeout(e,t,n,r){const{signal:o,...i}=t||{};o&&o.addEventListener("abort",(()=>r.abort()));const a=setTimeout((()=>r.abort()),n);return this.getRequestClient().fetch.call(void 0,e,{signal:r.signal,...i}).finally((()=>{clearTimeout(a)}))}getRequestClient(){return{fetch:this.fetch}}shouldRetry(e){const t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||(409===e.status||(429===e.status||e.status>=500)))}async retryRequest(e,t,n){let r;const o=null===n||void 0===n?void 0:n["retry-after-ms"];if(o){const e=parseFloat(o);Number.isNaN(e)||(r=e)}const i=null===n||void 0===n?void 0:n["retry-after"];if(i&&!r){const e=parseFloat(i);r=Number.isNaN(e)?Date.parse(i)-Date.now():1e3*e}if(!(r&&0<=r&&r<6e4)){var a;const n=null!==(a=e.maxRetries)&&void 0!==a?a:this.maxRetries;r=this.calculateDefaultRetryTimeoutMillis(t,n)}return await te(r),this.makeRequest(e,t-1)}calculateDefaultRetryTimeoutMillis(e,t){const n=t-e;return Math.min(.5*Math.pow(2,n),8)*(1-.25*Math.random())*1e3}getUserAgent(){return"".concat(this.constructor.name,"/JS ").concat(o)}}class ${constructor(e,t,n,r){M.set(this,void 0),L(this,M,e,"f"),this.options=r,this.response=t,this.body=n}hasNextPage(){return!!this.getPaginatedItems().length&&null!=this.nextPageInfo()}async getNextPage(){const e=this.nextPageInfo();if(!e)throw new de("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");const t={...this.options};if("params"in e&&"object"===typeof t.query)t.query={...t.query,...e.params};else if("url"in e){const n=[...Object.entries(t.query||{}),...e.url.searchParams.entries()];for(const[t,r]of n)e.url.searchParams.set(t,r);t.query=void 0,t.path=e.url.toString()}return await B(this,M,"f").requestAPIList(this.constructor,t)}async*iterPages(){let e=this;for(yield e;e.hasNextPage();)e=await e.getNextPage(),yield e}async*[(M=new WeakMap,Symbol.asyncIterator)](){for await(const e of this.iterPages())for(const t of e.getPaginatedItems())yield t}}class H extends z{constructor(e,t,n){super(t,(async t=>new n(e,t.response,await q(t),t.options)))}async*[Symbol.asyncIterator](){const e=await(this);for await(const t of e)yield t}}const U=e=>new Proxy(Object.fromEntries(e.entries()),{get(e,t){const n=t.toString();return e[n.toLowerCase()]||e[n]}}),W={method:!0,path:!0,query:!0,body:!0,headers:!0,maxRetries:!0,stream:!0,timeout:!0,httpAgent:!0,signal:!0,idempotencyKey:!0,__binaryRequest:!0,__binaryResponse:!0,__streamClass:!0},V=e=>"object"===typeof e&&null!==e&&!ie(e)&&Object.keys(e).every((e=>ae(W,e))),K=()=>{var e,t;if("undefined"!==typeof Deno&&null!=Deno.build)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":o,"X-Stainless-OS":X(Deno.build.os),"X-Stainless-Arch":G(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":"string"===typeof Deno.version?Deno.version:null!==(e=null===(t=Deno.version)||void 0===t?void 0:t.deno)&&void 0!==e?e:"unknown"};if("undefined"!==typeof EdgeRuntime)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":o,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"other:".concat(EdgeRuntime),"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":process.version};if("[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0))return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":o,"X-Stainless-OS":X(process.platform),"X-Stainless-Arch":G(process.arch),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":process.version};const n=function(){if("undefined"===typeof navigator||!navigator)return null;const e=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const{key:t,pattern:n}of e){const e=n.exec(navigator.userAgent);if(e){const n=e[1]||0,r=e[2]||0,o=e[3]||0;return{browser:t,version:"".concat(n,".").concat(r,".").concat(o)}}}return null}();return n?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":o,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"browser:".concat(n.browser),"X-Stainless-Runtime-Version":n.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":o,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};const G=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?"other:".concat(e):"unknown",X=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?"Other:".concat(e):"Unknown";let Y;const J=()=>{var e;return null!==(e=Y)&&void 0!==e?e:Y=K()},Q=e=>{try{return JSON.parse(e)}catch(t){return}},Z=new RegExp("^(?:[a-z]+:)?//","i"),ee=e=>Z.test(e),te=e=>new Promise((t=>setTimeout(t,e))),ne=(e,t)=>{if("number"!==typeof t||!Number.isInteger(t))throw new de("".concat(e," must be an integer"));if(t<0)throw new de("".concat(e," must be a positive integer"));return t},re=e=>e instanceof Error?e:new Error(e),oe=e=>{var t,n,r,o;return"undefined"!==typeof process?null!==(t=null===(n={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})||void 0===n||null===(n=n[e])||void 0===n?void 0:n.trim())&&void 0!==t?t:void 0:"undefined"!==typeof Deno?null===(r=Deno.env)||void 0===r||null===(o=r.get)||void 0===o||null===(o=o.call(r,e))||void 0===o?void 0:o.trim():void 0};function ie(e){if(!e)return!0;for(const t in e)return!1;return!0}function ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function se(e,t){for(const n in t){if(!ae(t,n))continue;const r=n.toLowerCase();if(!r)continue;const o=t[n];null===o?delete e[r]:void 0!==o&&(e[r]=o)}}function ce(e){var t;if("undefined"!==typeof process&&"true"===(null===(t=process)||void 0===t||null===(t={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})||void 0===t?void 0:t.DEBUG)){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];console.log("OpenAI:DEBUG:".concat(e),...r)}}const ue=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));function le(e){return null!=e&&"object"===typeof e&&!Array.isArray(e)}class de extends Error{}class fe extends de{constructor(e,t,n,r){super("".concat(fe.makeMessage(e,t,n))),this.status=e,this.headers=r,this.request_id=null===r||void 0===r?void 0:r["x-request-id"];const o=t;this.error=o,this.code=null===o||void 0===o?void 0:o.code,this.param=null===o||void 0===o?void 0:o.param,this.type=null===o||void 0===o?void 0:o.type}static makeMessage(e,t,n){const r=null!==t&&void 0!==t&&t.message?"string"===typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):n;return e&&r?"".concat(e," ").concat(r):e?"".concat(e," status code (no body)"):r||"(no status code or body)"}static generate(e,t,n,r){if(!e)return new pe({cause:re(t)});const o=null===t||void 0===t?void 0:t.error;return 400===e?new ve(e,o,n,r):401===e?new me(e,o,n,r):403===e?new be(e,o,n,r):404===e?new ye(e,o,n,r):409===e?new we(e,o,n,r):422===e?new _e(e,o,n,r):429===e?new Se(e,o,n,r):e>=500?new Ee(e,o,n,r):new fe(e,o,n,r)}}class he extends fe{constructor(){let{message:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(void 0,void 0,e||"Request was aborted.",void 0),this.status=void 0}}class pe extends fe{constructor(e){let{message:t,cause:n}=e;super(void 0,void 0,t||"Connection error.",void 0),this.status=void 0,n&&(this.cause=n)}}class ge extends pe{constructor(){let{message:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({message:null!==e&&void 0!==e?e:"Request timed out."})}}class ve extends fe{constructor(){super(...arguments),this.status=400}}class me extends fe{constructor(){super(...arguments),this.status=401}}class be extends fe{constructor(){super(...arguments),this.status=403}}class ye extends fe{constructor(){super(...arguments),this.status=404}}class we extends fe{constructor(){super(...arguments),this.status=409}}class _e extends fe{constructor(){super(...arguments),this.status=422}}class Se extends fe{constructor(){super(...arguments),this.status=429}}class Ee extends fe{}class Oe extends ${constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[],this.object=n.object}getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){return null}nextPageInfo(){return null}}class xe extends ${constructor(e,t,n,r){super(e,t,n,r),this.data=n.data||[]}getPaginatedItems(){var e;return null!==(e=this.data)&&void 0!==e?e:[]}nextPageParams(){const e=this.nextPageInfo();if(!e)return null;if("params"in e)return e.params;const t=Object.fromEntries(e.url.searchParams);return Object.keys(t).length?t:null}nextPageInfo(){var e;const t=this.getPaginatedItems();if(!t.length)return null;const n=null===(e=t[t.length-1])||void 0===e?void 0:e.id;return n?{params:{after:n}}:null}}class Ce{constructor(e){this._client=e}}class Re extends Ce{create(e,t){var n;return this._client.post("/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}Re||(Re={});class Ie extends Ce{create(e,t){var n;return this._client.post("/chat/completions",{body:e,...t,stream:null!==(n=e.stream)&&void 0!==n&&n})}}Ie||(Ie={});class Te extends Ce{constructor(){super(...arguments),this.completions=new Ie(this._client)}}!function(e){e.Completions=Ie}(Te||(Te={}));class Ae extends Ce{create(e,t){return this._client.post("/embeddings",{body:e,...t})}}Ae||(Ae={});class ke extends Ce{create(e,t){return this._client.post("/files",N({body:e,...t}))}retrieve(e,t){return this._client.get("/files/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return V(e)?this.list({},e):this._client.getAPIList("/files",Pe,{query:e,...t})}del(e,t){return this._client.delete("/files/".concat(e),t)}content(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,__binaryResponse:!0})}retrieveContent(e,t){return this._client.get("/files/".concat(e,"/content"),{...t,headers:{Accept:"application/json",...null===t||void 0===t?void 0:t.headers}})}async waitForProcessing(e){let{pollInterval:t=5e3,maxWait:n=18e5}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new Set(["processed","error","deleted"]),o=Date.now();let i=await this.retrieve(e);for(;!i.status||!r.has(i.status);)if(await te(t),i=await this.retrieve(e),Date.now()-o>n)throw new ge({message:"Giving up on waiting for file ".concat(e," to finish processing after ").concat(n," milliseconds.")});return i}}class Pe extends Oe{}!function(e){e.FileObjectsPage=Pe}(ke||(ke={}));class Ne extends Ce{createVariation(e,t){return this._client.post("/images/variations",N({body:e,...t}))}edit(e,t){return this._client.post("/images/edits",N({body:e,...t}))}generate(e,t){return this._client.post("/images/generations",{body:e,...t})}}Ne||(Ne={});class De extends Ce{create(e,t){return this._client.post("/audio/speech",{body:e,...t,__binaryResponse:!0})}}De||(De={});class je extends Ce{create(e,t){return this._client.post("/audio/transcriptions",N({body:e,...t}))}}je||(je={});class Me extends Ce{create(e,t){return this._client.post("/audio/translations",N({body:e,...t}))}}Me||(Me={});class Le extends Ce{constructor(){super(...arguments),this.transcriptions=new je(this._client),this.translations=new Me(this._client),this.speech=new De(this._client)}}!function(e){e.Transcriptions=je,e.Translations=Me,e.Speech=De}(Le||(Le={}));class Be extends Ce{create(e,t){return this._client.post("/moderations",{body:e,...t})}}Be||(Be={});class qe extends Ce{retrieve(e,t){return this._client.get("/models/".concat(e),t)}list(e){return this._client.getAPIList("/models",ze,e)}del(e,t){return this._client.delete("/models/".concat(e),t)}}class ze extends Oe{}!function(e){e.ModelsPage=ze}(qe||(qe={}));class Fe extends Ce{list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return V(t)?this.list(e,{},t):this._client.getAPIList("/fine_tuning/jobs/".concat(e,"/checkpoints"),$e,{query:t,...n})}}class $e extends xe{}!function(e){e.FineTuningJobCheckpointsPage=$e}(Fe||(Fe={}));class He extends Ce{constructor(){super(...arguments),this.checkpoints=new Fe(this._client)}create(e,t){return this._client.post("/fine_tuning/jobs",{body:e,...t})}retrieve(e,t){return this._client.get("/fine_tuning/jobs/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return V(e)?this.list({},e):this._client.getAPIList("/fine_tuning/jobs",Ue,{query:e,...t})}cancel(e,t){return this._client.post("/fine_tuning/jobs/".concat(e,"/cancel"),t)}listEvents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return V(t)?this.listEvents(e,{},t):this._client.getAPIList("/fine_tuning/jobs/".concat(e,"/events"),We,{query:t,...n})}}class Ue extends xe{}class We extends xe{}!function(e){e.FineTuningJobsPage=Ue,e.FineTuningJobEventsPage=We,e.Checkpoints=Fe,e.FineTuningJobCheckpointsPage=$e}(He||(He={}));class Ve extends Ce{constructor(){super(...arguments),this.jobs=new He(this._client)}}!function(e){e.Jobs=He,e.FineTuningJobsPage=Ue,e.FineTuningJobEventsPage=We}(Ve||(Ve={}));class Ke extends Ce{create(e,t){return this._client.post("/assistants",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}update(e,t,n){return this._client.post("/assistants/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return V(e)?this.list({},e):this._client.getAPIList("/assistants",Ge,{query:e,...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}del(e,t){return this._client.delete("/assistants/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}}class Ge extends xe{}function Xe(e){return"function"===typeof e.parse}!function(e){e.AssistantsPage=Ge}(Ke||(Ke={}));const Ye=e=>"assistant"===(null===e||void 0===e?void 0:e.role),Je=e=>"function"===(null===e||void 0===e?void 0:e.role),Qe=e=>"tool"===(null===e||void 0===e?void 0:e.role);var Ze,et,tt,nt,rt,ot,it,at,st,ct,ut,lt,dt,ft,ht,pt,gt,vt,mt,bt,yt=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},wt=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const _t=10;class St{constructor(){Ze.add(this),this.controller=new AbortController,et.set(this,void 0),tt.set(this,(()=>{})),nt.set(this,(()=>{})),rt.set(this,void 0),ot.set(this,(()=>{})),it.set(this,(()=>{})),at.set(this,{}),this._chatCompletions=[],this.messages=[],st.set(this,!1),ct.set(this,!1),ut.set(this,!1),lt.set(this,!1),vt.set(this,(e=>{if(yt(this,ct,!0,"f"),e instanceof Error&&"AbortError"===e.name&&(e=new he),e instanceof he)return yt(this,ut,!0,"f"),this._emit("abort",e);if(e instanceof de)return this._emit("error",e);if(e instanceof Error){const t=new de(e.message);return t.cause=e,this._emit("error",t)}return this._emit("error",new de(String(e)))})),yt(this,et,new Promise(((e,t)=>{yt(this,tt,e,"f"),yt(this,nt,t,"f")})),"f"),yt(this,rt,new Promise(((e,t)=>{yt(this,ot,e,"f"),yt(this,it,t,"f")})),"f"),wt(this,et,"f").catch((()=>{})),wt(this,rt,"f").catch((()=>{}))}_run(e){setTimeout((()=>{e().then((()=>{this._emitFinal(),this._emit("end")}),wt(this,vt,"f"))}),0)}_addChatCompletion(e){var t;this._chatCompletions.push(e),this._emit("chatCompletion",e);const n=null===(t=e.choices[0])||void 0===t?void 0:t.message;return n&&this._addMessage(n),e}_addMessage(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("content"in e||(e.content=null),this.messages.push(e),t)if(this._emit("message",e),(Je(e)||Qe(e))&&e.content)this._emit("functionCallResult",e.content);else if(Ye(e)&&e.function_call)this._emit("functionCall",e.function_call);else if(Ye(e)&&e.tool_calls)for(const n of e.tool_calls)"function"===n.type&&this._emit("functionCall",n.function)}_connected(){this.ended||(wt(this,tt,"f").call(this),this._emit("connect"))}get ended(){return wt(this,st,"f")}get errored(){return wt(this,ct,"f")}get aborted(){return wt(this,ut,"f")}abort(){this.controller.abort()}on(e,t){return(wt(this,at,"f")[e]||(wt(this,at,"f")[e]=[])).push({listener:t}),this}off(e,t){const n=wt(this,at,"f")[e];if(!n)return this;const r=n.findIndex((e=>e.listener===t));return r>=0&&n.splice(r,1),this}once(e,t){return(wt(this,at,"f")[e]||(wt(this,at,"f")[e]=[])).push({listener:t,once:!0}),this}emitted(e){return new Promise(((t,n)=>{yt(this,lt,!0,"f"),"error"!==e&&this.once("error",n),this.once(e,t)}))}async done(){yt(this,lt,!0,"f"),await wt(this,rt,"f")}async finalChatCompletion(){await this.done();const e=this._chatCompletions[this._chatCompletions.length-1];if(!e)throw new de("stream ended without producing a ChatCompletion");return e}async finalContent(){return await this.done(),wt(this,Ze,"m",dt).call(this)}async finalMessage(){return await this.done(),wt(this,Ze,"m",ft).call(this)}async finalFunctionCall(){return await this.done(),wt(this,Ze,"m",ht).call(this)}async finalFunctionCallResult(){return await this.done(),wt(this,Ze,"m",pt).call(this)}async totalUsage(){return await this.done(),wt(this,Ze,"m",gt).call(this)}allChatCompletions(){return[...this._chatCompletions]}_emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(wt(this,st,"f"))return;"end"===e&&(yt(this,st,!0,"f"),wt(this,ot,"f").call(this));const o=wt(this,at,"f")[e];if(o&&(wt(this,at,"f")[e]=o.filter((e=>!e.once)),o.forEach((e=>{let{listener:t}=e;return t(...n)}))),"abort"===e){const e=n[0];return wt(this,lt,"f")||null!==o&&void 0!==o&&o.length||Promise.reject(e),wt(this,nt,"f").call(this,e),wt(this,it,"f").call(this,e),void this._emit("end")}if("error"===e){const e=n[0];wt(this,lt,"f")||null!==o&&void 0!==o&&o.length||Promise.reject(e),wt(this,nt,"f").call(this,e),wt(this,it,"f").call(this,e),this._emit("end")}}_emitFinal(){const e=this._chatCompletions[this._chatCompletions.length-1];e&&this._emit("finalChatCompletion",e);const t=wt(this,Ze,"m",ft).call(this);t&&this._emit("finalMessage",t);const n=wt(this,Ze,"m",dt).call(this);n&&this._emit("finalContent",n);const r=wt(this,Ze,"m",ht).call(this);r&&this._emit("finalFunctionCall",r);const o=wt(this,Ze,"m",pt).call(this);null!=o&&this._emit("finalFunctionCallResult",o),this._chatCompletions.some((e=>e.usage))&&this._emit("totalUsage",wt(this,Ze,"m",gt).call(this))}async _createChatCompletion(e,t,n){const r=null===n||void 0===n?void 0:n.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",(()=>this.controller.abort()))),wt(this,Ze,"m",mt).call(this,t);const o=await e.create({...t,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addChatCompletion(o)}async _runChatCompletion(e,t,n){for(const r of t.messages)this._addMessage(r,!1);return await this._createChatCompletion(e,t,n)}async _runFunctions(e,t,n){const r="function",{function_call:o="auto",stream:i,...a}=t,s="string"!==typeof o&&(null===o||void 0===o?void 0:o.name),{maxChatCompletions:c=_t}=n||{},u={};for(const h of t.functions)u[h.name||h.function.name]=h;const l=t.functions.map((e=>({name:e.name||e.function.name,parameters:e.parameters,description:e.description})));for(const h of t.messages)this._addMessage(h,!1);for(let h=0;h<c;++h){var d;const t=null===(d=(await this._createChatCompletion(e,{...a,function_call:o,functions:l,messages:[...this.messages]},n)).choices[0])||void 0===d?void 0:d.message;if(!t)throw new de("missing message in ChatCompletion response");if(!t.function_call)return;const{name:i,arguments:c}=t.function_call,h=u[i];if(!h){const e="Invalid function_call: ".concat(JSON.stringify(i),". Available options are: ").concat(l.map((e=>JSON.stringify(e.name))).join(", "),". Please try again");this._addMessage({role:r,name:i,content:e});continue}if(s&&s!==i){const e="Invalid function_call: ".concat(JSON.stringify(i),". ").concat(JSON.stringify(s)," requested. Please try again");this._addMessage({role:r,name:i,content:e});continue}let p;try{p=Xe(h)?await h.parse(c):c}catch(f){this._addMessage({role:r,name:i,content:f instanceof Error?f.message:String(f)});continue}const g=await h.function(p,this),v=wt(this,Ze,"m",bt).call(this,g);if(this._addMessage({role:r,name:i,content:v}),s)return}}async _runTools(e,t,n){var r;const o="tool",{tool_choice:i="auto",stream:a,...s}=t,c="string"!==typeof i&&(null===i||void 0===i||null===(r=i.function)||void 0===r?void 0:r.name),{maxChatCompletions:u=_t}=n||{},l={};for(const p of t.tools)"function"===p.type&&(l[p.function.name||p.function.function.name]=p.function);const d="tools"in t?t.tools.map((e=>"function"===e.type?{type:"function",function:{name:e.function.name||e.function.function.name,parameters:e.function.parameters,description:e.function.description}}:e)):void 0;for(const p of t.messages)this._addMessage(p,!1);for(let p=0;p<u;++p){var f;const t=null===(f=(await this._createChatCompletion(e,{...s,tool_choice:i,tools:d,messages:[...this.messages]},n)).choices[0])||void 0===f?void 0:f.message;if(!t)throw new de("missing message in ChatCompletion response");if(!t.tool_calls)return;for(const e of t.tool_calls){if("function"!==e.type)continue;const t=e.id,{name:n,arguments:r}=e.function,i=l[n];if(!i){const e="Invalid tool_call: ".concat(JSON.stringify(n),". Available options are: ").concat(d.map((e=>JSON.stringify(e.function.name))).join(", "),". Please try again");this._addMessage({role:o,tool_call_id:t,content:e});continue}if(c&&c!==n){const e="Invalid tool_call: ".concat(JSON.stringify(n),". ").concat(JSON.stringify(c)," requested. Please try again");this._addMessage({role:o,tool_call_id:t,content:e});continue}let a;try{a=Xe(i)?await i.parse(r):r}catch(h){const e=h instanceof Error?h.message:String(h);this._addMessage({role:o,tool_call_id:t,content:e});continue}const s=await i.function(a,this),u=wt(this,Ze,"m",bt).call(this,s);if(this._addMessage({role:o,tool_call_id:t,content:u}),c)return}}}}et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,at=new WeakMap,st=new WeakMap,ct=new WeakMap,ut=new WeakMap,lt=new WeakMap,vt=new WeakMap,Ze=new WeakSet,dt=function(){var e;return null!==(e=wt(this,Ze,"m",ft).call(this).content)&&void 0!==e?e:null},ft=function(){let e=this.messages.length;for(;e-- >0;){const n=this.messages[e];if(Ye(n)){var t;const{function_call:e,...r}=n,o={...r,content:null!==(t=n.content)&&void 0!==t?t:null};return e&&(o.function_call=e),o}}throw new de("stream ended without producing a ChatCompletionMessage with role=assistant")},ht=function(){for(let n=this.messages.length-1;n>=0;n--){var e;const r=this.messages[n];if(Ye(r)&&null!==r&&void 0!==r&&r.function_call)return r.function_call;var t;if(Ye(r)&&null!==r&&void 0!==r&&null!==(e=r.tool_calls)&&void 0!==e&&e.length)return null===(t=r.tool_calls.at(-1))||void 0===t?void 0:t.function}},pt=function(){for(let e=this.messages.length-1;e>=0;e--){const t=this.messages[e];if(Je(t)&&null!=t.content)return t.content;if(Qe(t)&&null!=t.content&&this.messages.some((e=>{var n;return"assistant"===e.role&&(null===(n=e.tool_calls)||void 0===n?void 0:n.some((e=>"function"===e.type&&e.id===t.tool_call_id)))})))return t.content}},gt=function(){const e={completion_tokens:0,prompt_tokens:0,total_tokens:0};for(const{usage:t}of this._chatCompletions)t&&(e.completion_tokens+=t.completion_tokens,e.prompt_tokens+=t.prompt_tokens,e.total_tokens+=t.total_tokens);return e},mt=function(e){if(null!=e.n&&e.n>1)throw new de("ChatCompletion convenience helpers only support n=1 at this time. To use n>1, please use chat.completions.create() directly.")},bt=function(e){return"string"===typeof e?e:void 0===e?"undefined":JSON.stringify(e)};class Et extends St{static runFunctions(e,t,n){const r=new Et,o={...n,headers:{...null===n||void 0===n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run((()=>r._runFunctions(e,t,o))),r}static runTools(e,t,n){const r=new Et,o={...n,headers:{...null===n||void 0===n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run((()=>r._runTools(e,t,o))),r}_addMessage(e){super._addMessage(e),Ye(e)&&e.content&&this._emit("content",e.content)}}var Ot,xt,Ct,Rt,It,Tt,At=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},kt=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};class Pt extends St{constructor(){super(...arguments),Ot.add(this),xt.set(this,void 0)}get currentChatCompletionSnapshot(){return At(this,xt,"f")}static fromReadableStream(e){const t=new Pt;return t._run((()=>t._fromReadableStream(e))),t}static createChatCompletion(e,t,n){const r=new Pt;return r._run((()=>r._runChatCompletion(e,{...t,stream:!0},{...n,headers:{...null===n||void 0===n?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}}))),r}async _createChatCompletion(e,t,n){var r;const o=null===n||void 0===n?void 0:n.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",(()=>this.controller.abort()))),At(this,Ot,"m",Ct).call(this);const i=await e.create({...t,stream:!0},{...n,signal:this.controller.signal});this._connected();for await(const a of i)At(this,Ot,"m",Rt).call(this,a);if(null!==(r=i.controller.signal)&&void 0!==r&&r.aborted)throw new he;return this._addChatCompletion(At(this,Ot,"m",It).call(this))}async _fromReadableStream(e,t){var n;const r=null===t||void 0===t?void 0:t.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",(()=>this.controller.abort()))),At(this,Ot,"m",Ct).call(this),this._connected();const o=w.fromReadableStream(e,this.controller);let i;for await(const a of o)i&&i!==a.id&&this._addChatCompletion(At(this,Ot,"m",It).call(this)),At(this,Ot,"m",Rt).call(this,a),i=a.id;if(null!==(n=o.controller.signal)&&void 0!==n&&n.aborted)throw new he;return this._addChatCompletion(At(this,Ot,"m",It).call(this))}[(xt=new WeakMap,Ot=new WeakSet,Ct=function(){this.ended||kt(this,xt,void 0,"f")},Rt=function(e){var t,n;if(this.ended)return;const r=At(this,Ot,"m",Tt).call(this,e);this._emit("chunk",e,r);const o=null===(t=e.choices[0])||void 0===t||null===(t=t.delta)||void 0===t?void 0:t.content,i=null===(n=r.choices[0])||void 0===n?void 0:n.message;null!=o&&"assistant"===(null===i||void 0===i?void 0:i.role)&&null!==i&&void 0!==i&&i.content&&this._emit("content",o,i.content)},It=function(){if(this.ended)throw new de("stream has ended, this shouldn't happen");const e=At(this,xt,"f");if(!e)throw new de("request ended without sending any chunks");return kt(this,xt,void 0,"f"),function(e){const{id:t,choices:n,created:r,model:o,system_fingerprint:i,...a}=e;return{...a,id:t,choices:n.map((t=>{let{message:n,finish_reason:r,index:o,logprobs:i,...a}=t;if(!r)throw new de("missing finish_reason for choice ".concat(o));const{content:s=null,function_call:c,tool_calls:u,...l}=n,d=n.role;if(!d)throw new de("missing role for choice ".concat(o));if(c){const{arguments:e,name:t}=c;if(null==e)throw new de("missing function_call.arguments for choice ".concat(o));if(!t)throw new de("missing function_call.name for choice ".concat(o));return{...a,message:{content:s,function_call:{arguments:e,name:t},role:d},finish_reason:r,index:o,logprobs:i}}return u?{...a,index:o,finish_reason:r,logprobs:i,message:{...l,role:d,content:s,tool_calls:u.map(((t,n)=>{const{function:r,type:i,id:a,...s}=t,{arguments:c,name:u,...l}=r||{};if(null==a)throw new de("missing choices[".concat(o,"].tool_calls[").concat(n,"].id\n").concat(Nt(e)));if(null==i)throw new de("missing choices[".concat(o,"].tool_calls[").concat(n,"].type\n").concat(Nt(e)));if(null==u)throw new de("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.name\n").concat(Nt(e)));if(null==c)throw new de("missing choices[".concat(o,"].tool_calls[").concat(n,"].function.arguments\n").concat(Nt(e)));return{...s,id:a,type:i,function:{...l,name:u,arguments:c}}}))}}:{...a,message:{...l,content:s,role:d},finish_reason:r,index:o,logprobs:i}})),created:r,model:o,object:"chat.completion",...i?{system_fingerprint:i}:{}}}(e)},Tt=function(e){var t,n,r;let o=At(this,xt,"f");const{choices:i,...a}=e;o?Object.assign(o,a):o=kt(this,xt,{...a,choices:[]},"f");for(const{delta:d,finish_reason:f,index:h,logprobs:p=null,...g}of e.choices){let e=o.choices[h];if(e||(e=o.choices[h]={finish_reason:f,index:h,message:{},logprobs:p,...g}),p)if(e.logprobs){const{content:n,...r}=p;var s;if(Object.assign(e.logprobs,r),n)null!==(s=(t=e.logprobs).content)&&void 0!==s||(t.content=[]),e.logprobs.content.push(...n)}else e.logprobs=Object.assign({},p);if(f&&(e.finish_reason=f),Object.assign(e,g),!d)continue;const{content:i,function_call:a,role:v,tool_calls:m,...b}=d;var c;if(Object.assign(e.message,b),i&&(e.message.content=(e.message.content||"")+i),v&&(e.message.role=v),a)if(e.message.function_call){if(a.name&&(e.message.function_call.name=a.name),a.arguments)null!==(c=(n=e.message.function_call).arguments)&&void 0!==c||(n.arguments=""),e.message.function_call.arguments+=a.arguments}else e.message.function_call=a;if(m){e.message.tool_calls||(e.message.tool_calls=[]);for(const{index:t,id:n,type:o,function:i,...a}of m){var u,l;const s=null!==(u=(r=e.message.tool_calls)[t])&&void 0!==u?u:r[t]={};Object.assign(s,a),n&&(s.id=n),o&&(s.type=o),i&&(null!==(l=s.function)&&void 0!==l||(s.function={arguments:""})),null!==i&&void 0!==i&&i.name&&(s.function.name=i.name),null!==i&&void 0!==i&&i.arguments&&(s.function.arguments+=i.arguments)}}}return o},Symbol.asyncIterator)](){const e=[],t=[];let n=!1;return this.on("chunk",(n=>{const r=t.shift();r?r.resolve(n):e.push(n)})),this.on("end",(()=>{n=!0;for(const e of t)e.resolve(void 0);t.length=0})),this.on("abort",(e=>{n=!0;for(const n of t)n.reject(e);t.length=0})),this.on("error",(e=>{n=!0;for(const n of t)n.reject(e);t.length=0})),{next:async()=>{if(!e.length)return n?{value:void 0,done:!0}:new Promise(((e,n)=>t.push({resolve:e,reject:n}))).then((e=>e?{value:e,done:!1}:{value:void 0,done:!0}));return{value:e.shift(),done:!1}},return:async()=>(this.abort(),{value:void 0,done:!0})}}toReadableStream(){return new w(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}function Nt(e){return JSON.stringify(e)}class Dt extends Pt{static fromReadableStream(e){const t=new Dt;return t._run((()=>t._fromReadableStream(e))),t}static runFunctions(e,t,n){const r=new Dt,o={...n,headers:{...null===n||void 0===n?void 0:n.headers,"X-Stainless-Helper-Method":"runFunctions"}};return r._run((()=>r._runFunctions(e,t,o))),r}static runTools(e,t,n){const r=new Dt,o={...n,headers:{...null===n||void 0===n?void 0:n.headers,"X-Stainless-Helper-Method":"runTools"}};return r._run((()=>r._runTools(e,t,o))),r}}class jt extends Ce{runFunctions(e,t){return e.stream?Dt.runFunctions(this._client.chat.completions,e,t):Et.runFunctions(this._client.chat.completions,e,t)}runTools(e,t){return e.stream?Dt.runTools(this._client.chat.completions,e,t):Et.runTools(this._client.chat.completions,e,t)}stream(e,t){return Pt.createChatCompletion(this._client.chat.completions,e,t)}}class Mt extends Ce{constructor(){super(...arguments),this.completions=new jt(this._client)}}!function(e){e.Completions=jt}(Mt||(Mt={}));var Lt,Bt,qt,zt,Ft,$t,Ht,Ut,Wt,Vt,Kt,Gt,Xt=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Yt=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Jt{constructor(){this.controller=new AbortController,Lt.set(this,void 0),Bt.set(this,(()=>{})),qt.set(this,(()=>{})),zt.set(this,void 0),Ft.set(this,(()=>{})),$t.set(this,(()=>{})),Ht.set(this,{}),Ut.set(this,!1),Wt.set(this,!1),Vt.set(this,!1),Kt.set(this,!1),Gt.set(this,(e=>{if(Xt(this,Wt,!0,"f"),e instanceof Error&&"AbortError"===e.name&&(e=new he),e instanceof he)return Xt(this,Vt,!0,"f"),this._emit("abort",e);if(e instanceof de)return this._emit("error",e);if(e instanceof Error){const t=new de(e.message);return t.cause=e,this._emit("error",t)}return this._emit("error",new de(String(e)))})),Xt(this,Lt,new Promise(((e,t)=>{Xt(this,Bt,e,"f"),Xt(this,qt,t,"f")})),"f"),Xt(this,zt,new Promise(((e,t)=>{Xt(this,Ft,e,"f"),Xt(this,$t,t,"f")})),"f"),Yt(this,Lt,"f").catch((()=>{})),Yt(this,zt,"f").catch((()=>{}))}_run(e){setTimeout((()=>{e().then((()=>{this._emit("end")}),Yt(this,Gt,"f"))}),0)}_addRun(e){return e}_connected(){this.ended||(Yt(this,Bt,"f").call(this),this._emit("connect"))}get ended(){return Yt(this,Ut,"f")}get errored(){return Yt(this,Wt,"f")}get aborted(){return Yt(this,Vt,"f")}abort(){this.controller.abort()}on(e,t){return(Yt(this,Ht,"f")[e]||(Yt(this,Ht,"f")[e]=[])).push({listener:t}),this}off(e,t){const n=Yt(this,Ht,"f")[e];if(!n)return this;const r=n.findIndex((e=>e.listener===t));return r>=0&&n.splice(r,1),this}once(e,t){return(Yt(this,Ht,"f")[e]||(Yt(this,Ht,"f")[e]=[])).push({listener:t,once:!0}),this}emitted(e){return new Promise(((t,n)=>{Xt(this,Kt,!0,"f"),"error"!==e&&this.once("error",n),this.once(e,t)}))}async done(){Xt(this,Kt,!0,"f"),await Yt(this,zt,"f")}_emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Yt(this,Ut,"f"))return;"end"===e&&(Xt(this,Ut,!0,"f"),Yt(this,Ft,"f").call(this));const o=Yt(this,Ht,"f")[e];if(o&&(Yt(this,Ht,"f")[e]=o.filter((e=>!e.once)),o.forEach((e=>{let{listener:t}=e;return t(...n)}))),"abort"===e){const e=n[0];return Yt(this,Kt,"f")||null!==o&&void 0!==o&&o.length||Promise.reject(e),Yt(this,qt,"f").call(this,e),Yt(this,$t,"f").call(this,e),void this._emit("end")}if("error"===e){const e=n[0];Yt(this,Kt,"f")||null!==o&&void 0!==o&&o.length||Promise.reject(e),Yt(this,qt,"f").call(this,e),Yt(this,$t,"f").call(this,e),this._emit("end")}}async _threadAssistantStream(e,t,n){return await this._createThreadAssistantStream(t,e,n)}async _runAssistantStream(e,t,n,r){return await this._createAssistantStream(t,e,n,r)}async _runToolAssistantStream(e,t,n,r,o){return await this._createToolAssistantStream(n,e,t,r,o)}async _createThreadAssistantStream(e,t,n){const r=null===n||void 0===n?void 0:n.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",(()=>this.controller.abort())));const o=await e.createAndRun({...t,stream:!1},{...n,signal:this.controller.signal});return this._connected(),this._addRun(o)}async _createToolAssistantStream(e,t,n,r,o){const i=null===o||void 0===o?void 0:o.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",(()=>this.controller.abort())));const a=await e.submitToolOutputs(t,n,{...r,stream:!1},{...o,signal:this.controller.signal});return this._connected(),this._addRun(a)}async _createAssistantStream(e,t,n,r){const o=null===r||void 0===r?void 0:r.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",(()=>this.controller.abort())));const i=await e.create(t,{...n,stream:!1},{...r,signal:this.controller.signal});return this._connected(),this._addRun(i)}}Lt=new WeakMap,Bt=new WeakMap,qt=new WeakMap,zt=new WeakMap,Ft=new WeakMap,$t=new WeakMap,Ht=new WeakMap,Ut=new WeakMap,Wt=new WeakMap,Vt=new WeakMap,Kt=new WeakMap,Gt=new WeakMap;var Qt,Zt,en,tn,nn,rn,on,an,sn,cn,un,ln,dn,fn,hn,pn,gn,vn,mn,bn,yn,wn,_n=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},Sn=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n};class En extends Jt{constructor(){super(...arguments),Qt.add(this),Zt.set(this,[]),en.set(this,{}),tn.set(this,{}),nn.set(this,void 0),rn.set(this,void 0),on.set(this,void 0),an.set(this,void 0),sn.set(this,void 0),cn.set(this,void 0),un.set(this,void 0),ln.set(this,void 0),dn.set(this,void 0)}[(Zt=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap,rn=new WeakMap,on=new WeakMap,an=new WeakMap,sn=new WeakMap,cn=new WeakMap,un=new WeakMap,ln=new WeakMap,dn=new WeakMap,Qt=new WeakSet,Symbol.asyncIterator)](){const e=[],t=[];let n=!1;return this.on("event",(n=>{const r=t.shift();r?r.resolve(n):e.push(n)})),this.on("end",(()=>{n=!0;for(const e of t)e.resolve(void 0);t.length=0})),this.on("abort",(e=>{n=!0;for(const n of t)n.reject(e);t.length=0})),this.on("error",(e=>{n=!0;for(const n of t)n.reject(e);t.length=0})),{next:async()=>{if(!e.length)return n?{value:void 0,done:!0}:new Promise(((e,n)=>t.push({resolve:e,reject:n}))).then((e=>e?{value:e,done:!1}:{value:void 0,done:!0}));return{value:e.shift(),done:!1}},return:async()=>(this.abort(),{value:void 0,done:!0})}}static fromReadableStream(e){const t=new En;return t._run((()=>t._fromReadableStream(e))),t}async _fromReadableStream(e,t){var n;const r=null===t||void 0===t?void 0:t.signal;r&&(r.aborted&&this.controller.abort(),r.addEventListener("abort",(()=>this.controller.abort()))),this._connected();const o=w.fromReadableStream(e,this.controller);for await(const i of o)_n(this,Qt,"m",fn).call(this,i);if(null!==(n=o.controller.signal)&&void 0!==n&&n.aborted)throw new he;return this._addRun(_n(this,Qt,"m",hn).call(this))}toReadableStream(){return new w(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}static createToolAssistantStream(e,t,n,r,o){const i=new En;return i._run((()=>i._runToolAssistantStream(e,t,n,r,{...o,headers:{...null===o||void 0===o?void 0:o.headers,"X-Stainless-Helper-Method":"stream"}}))),i}async _createToolAssistantStream(e,t,n,r,o){var i;const a=null===o||void 0===o?void 0:o.signal;a&&(a.aborted&&this.controller.abort(),a.addEventListener("abort",(()=>this.controller.abort())));const s={...r,stream:!0},c=await e.submitToolOutputs(t,n,s,{...o,signal:this.controller.signal});this._connected();for await(const u of c)_n(this,Qt,"m",fn).call(this,u);if(null!==(i=c.controller.signal)&&void 0!==i&&i.aborted)throw new he;return this._addRun(_n(this,Qt,"m",hn).call(this))}static createThreadAssistantStream(e,t,n){const r=new En;return r._run((()=>r._threadAssistantStream(e,t,{...n,headers:{...null===n||void 0===n?void 0:n.headers,"X-Stainless-Helper-Method":"stream"}}))),r}static createAssistantStream(e,t,n,r){const o=new En;return o._run((()=>o._runAssistantStream(e,t,n,{...r,headers:{...null===r||void 0===r?void 0:r.headers,"X-Stainless-Helper-Method":"stream"}}))),o}currentEvent(){return _n(this,un,"f")}currentRun(){return _n(this,ln,"f")}currentMessageSnapshot(){return _n(this,nn,"f")}currentRunStepSnapshot(){return _n(this,dn,"f")}async finalRunSteps(){return await this.done(),Object.values(_n(this,en,"f"))}async finalMessages(){return await this.done(),Object.values(_n(this,tn,"f"))}async finalRun(){if(await this.done(),!_n(this,rn,"f"))throw Error("Final run was not received.");return _n(this,rn,"f")}async _createThreadAssistantStream(e,t,n){var r;const o=null===n||void 0===n?void 0:n.signal;o&&(o.aborted&&this.controller.abort(),o.addEventListener("abort",(()=>this.controller.abort())));const i={...t,stream:!0},a=await e.createAndRun(i,{...n,signal:this.controller.signal});this._connected();for await(const s of a)_n(this,Qt,"m",fn).call(this,s);if(null!==(r=a.controller.signal)&&void 0!==r&&r.aborted)throw new he;return this._addRun(_n(this,Qt,"m",hn).call(this))}async _createAssistantStream(e,t,n,r){var o;const i=null===r||void 0===r?void 0:r.signal;i&&(i.aborted&&this.controller.abort(),i.addEventListener("abort",(()=>this.controller.abort())));const a={...n,stream:!0},s=await e.create(t,a,{...r,signal:this.controller.signal});this._connected();for await(const c of s)_n(this,Qt,"m",fn).call(this,c);if(null!==(o=s.controller.signal)&&void 0!==o&&o.aborted)throw new he;return this._addRun(_n(this,Qt,"m",hn).call(this))}static accumulateDelta(e,t){for(const[n,r]of Object.entries(t)){if(!e.hasOwnProperty(n)){e[n]=r;continue}let t=e[n];if(null!==t&&void 0!==t)if("index"!==n&&"type"!==n){if("string"===typeof t&&"string"===typeof r)t+=r;else if("number"===typeof t&&"number"===typeof r)t+=r;else if(le(t)&&le(r))t=this.accumulateDelta(t,r);else{if(!Array.isArray(t)||!Array.isArray(r))throw Error("Unhandled record type: ".concat(n,", deltaValue: ").concat(r,", accValue: ").concat(t));if(t.every((e=>"string"===typeof e||"number"===typeof e))){t.push(...r);continue}}e[n]=t}else e[n]=r;else e[n]=r}return e}}fn=function(e){if(!this.ended)switch(Sn(this,un,e,"f"),_n(this,Qt,"m",vn).call(this,e),e.event){case"thread.created":break;case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":case"thread.run.requires_action":case"thread.run.completed":case"thread.run.failed":case"thread.run.cancelling":case"thread.run.cancelled":case"thread.run.expired":_n(this,Qt,"m",wn).call(this,e);break;case"thread.run.step.created":case"thread.run.step.in_progress":case"thread.run.step.delta":case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":_n(this,Qt,"m",gn).call(this,e);break;case"thread.message.created":case"thread.message.in_progress":case"thread.message.delta":case"thread.message.completed":case"thread.message.incomplete":_n(this,Qt,"m",pn).call(this,e);break;case"error":throw new Error("Encountered an error event in event processing - errors should be processed earlier")}},hn=function(){if(this.ended)throw new de("stream has ended, this shouldn't happen");if(!_n(this,rn,"f"))throw Error("Final run has not been received");return _n(this,rn,"f")},pn=function(e){const[t,n]=_n(this,Qt,"m",bn).call(this,e,_n(this,nn,"f"));Sn(this,nn,t,"f"),_n(this,tn,"f")[t.id]=t;for(const r of n){const e=t.content[r.index];"text"==(null===e||void 0===e?void 0:e.type)&&this._emit("textCreated",e.text)}switch(e.event){case"thread.message.created":this._emit("messageCreated",e.data);break;case"thread.message.in_progress":break;case"thread.message.delta":if(this._emit("messageDelta",e.data.delta,t),e.data.delta.content)for(const n of e.data.delta.content){if("text"==n.type&&n.text){let e=n.text,r=t.content[n.index];if(!r||"text"!=r.type)throw Error("The snapshot associated with this text delta is not text or missing");this._emit("textDelta",e,r.text)}if(n.index!=_n(this,on,"f")){if(_n(this,an,"f"))switch(_n(this,an,"f").type){case"text":this._emit("textDone",_n(this,an,"f").text,_n(this,nn,"f"));break;case"image_file":this._emit("imageFileDone",_n(this,an,"f").image_file,_n(this,nn,"f"))}Sn(this,on,n.index,"f")}Sn(this,an,t.content[n.index],"f")}break;case"thread.message.completed":case"thread.message.incomplete":if(void 0!==_n(this,on,"f")){const t=e.data.content[_n(this,on,"f")];if(t)switch(t.type){case"image_file":this._emit("imageFileDone",t.image_file,_n(this,nn,"f"));break;case"text":this._emit("textDone",t.text,_n(this,nn,"f"))}}_n(this,nn,"f")&&this._emit("messageDone",e.data),Sn(this,nn,void 0,"f")}},gn=function(e){const t=_n(this,Qt,"m",mn).call(this,e);switch(Sn(this,dn,t,"f"),e.event){case"thread.run.step.created":this._emit("runStepCreated",e.data);break;case"thread.run.step.delta":const n=e.data.delta;if(n.step_details&&"tool_calls"==n.step_details.type&&n.step_details.tool_calls&&"tool_calls"==t.step_details.type)for(const e of n.step_details.tool_calls)e.index==_n(this,sn,"f")?this._emit("toolCallDelta",e,t.step_details.tool_calls[e.index]):(_n(this,cn,"f")&&this._emit("toolCallDone",_n(this,cn,"f")),Sn(this,sn,e.index,"f"),Sn(this,cn,t.step_details.tool_calls[e.index],"f"),_n(this,cn,"f")&&this._emit("toolCallCreated",_n(this,cn,"f")));this._emit("runStepDelta",e.data.delta,t);break;case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":Sn(this,dn,void 0,"f");"tool_calls"==e.data.step_details.type&&_n(this,cn,"f")&&(this._emit("toolCallDone",_n(this,cn,"f")),Sn(this,cn,void 0,"f")),this._emit("runStepDone",e.data,t)}},vn=function(e){_n(this,Zt,"f").push(e),this._emit("event",e)},mn=function(e){switch(e.event){case"thread.run.step.created":return _n(this,en,"f")[e.data.id]=e.data,e.data;case"thread.run.step.delta":let t=_n(this,en,"f")[e.data.id];if(!t)throw Error("Received a RunStepDelta before creation of a snapshot");let n=e.data;if(n.delta){const r=En.accumulateDelta(t,n.delta);_n(this,en,"f")[e.data.id]=r}return _n(this,en,"f")[e.data.id];case"thread.run.step.completed":case"thread.run.step.failed":case"thread.run.step.cancelled":case"thread.run.step.expired":case"thread.run.step.in_progress":_n(this,en,"f")[e.data.id]=e.data}if(_n(this,en,"f")[e.data.id])return _n(this,en,"f")[e.data.id];throw new Error("No snapshot available")},bn=function(e,t){let n=[];switch(e.event){case"thread.message.created":return[e.data,n];case"thread.message.delta":if(!t)throw Error("Received a delta with no existing snapshot (there should be one from message creation)");let r=e.data;if(r.delta.content)for(const e of r.delta.content)if(e.index in t.content){let n=t.content[e.index];t.content[e.index]=_n(this,Qt,"m",yn).call(this,e,n)}else t.content[e.index]=e,n.push(e);return[t,n];case"thread.message.in_progress":case"thread.message.completed":case"thread.message.incomplete":if(t)return[t,n];throw Error("Received thread message event with no existing snapshot")}throw Error("Tried to accumulate a non-message event")},yn=function(e,t){return En.accumulateDelta(t,e)},wn=function(e){switch(Sn(this,ln,e.data,"f"),e.event){case"thread.run.created":case"thread.run.queued":case"thread.run.in_progress":case"thread.run.cancelling":break;case"thread.run.requires_action":case"thread.run.cancelled":case"thread.run.failed":case"thread.run.completed":case"thread.run.expired":Sn(this,rn,e.data,"f"),_n(this,cn,"f")&&(this._emit("toolCallDone",_n(this,cn,"f")),Sn(this,cn,void 0,"f"))}};class On extends Ce{create(e,t,n){return this._client.post("/threads/".concat(e,"/messages"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/messages/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/messages/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...null===r||void 0===r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return V(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/messages"),xn,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}del(e,t,n){return this._client.delete("/threads/".concat(e,"/messages/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}}class xn extends xe{}!function(e){e.MessagesPage=xn}(On||(On={}));class Cn extends Ce{retrieve(e,t,n,r){return this._client.get("/threads/".concat(e,"/runs/").concat(t,"/steps/").concat(n),{...r,headers:{"OpenAI-Beta":"assistants=v2",...null===r||void 0===r?void 0:r.headers}})}list(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return V(n)?this.list(e,t,{},n):this._client.getAPIList("/threads/".concat(e,"/runs/").concat(t,"/steps"),Rn,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...null===r||void 0===r?void 0:r.headers}})}}class Rn extends xe{}!function(e){e.RunStepsPage=Rn}(Cn||(Cn={}));class In extends Ce{constructor(){super(...arguments),this.steps=new Cn(this._client)}create(e,t,n){var r;return this._client.post("/threads/".concat(e,"/runs"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers},stream:null!==(r=t.stream)&&void 0!==r&&r})}retrieve(e,t,n){return this._client.get("/threads/".concat(e,"/runs/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}update(e,t,n,r){return this._client.post("/threads/".concat(e,"/runs/").concat(t),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...null===r||void 0===r?void 0:r.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return V(t)?this.list(e,{},t):this._client.getAPIList("/threads/".concat(e,"/runs"),Tn,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}cancel(e,t,n){return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/cancel"),{...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}async createAndPoll(e,t,n){const r=await this.create(e,t,n);return await this.poll(e,r.id,n)}createAndStream(e,t,n){return En.createAssistantStream(e,this._client.beta.threads.runs,t,n)}async poll(e,t,n){const r={...null===n||void 0===n?void 0:n.headers,"X-Stainless-Poll-Helper":"true"};for(null!==n&&void 0!==n&&n.pollIntervalMs&&(r["X-Stainless-Custom-Poll-Interval"]=n.pollIntervalMs.toString());;){const{data:o,response:i}=await this.retrieve(e,t,{...n,headers:{...null===n||void 0===n?void 0:n.headers,...r}}).withResponse();switch(o.status){case"queued":case"in_progress":case"cancelling":let e=5e3;if(null!==n&&void 0!==n&&n.pollIntervalMs)e=n.pollIntervalMs;else{const t=i.headers.get("openai-poll-after-ms");if(t){const n=parseInt(t);isNaN(n)||(e=n)}}await te(e);break;case"requires_action":case"incomplete":case"cancelled":case"completed":case"failed":case"expired":return o}}}stream(e,t,n){return En.createAssistantStream(e,this._client.beta.threads.runs,t,n)}submitToolOutputs(e,t,n,r){var o;return this._client.post("/threads/".concat(e,"/runs/").concat(t,"/submit_tool_outputs"),{body:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...null===r||void 0===r?void 0:r.headers},stream:null!==(o=n.stream)&&void 0!==o&&o})}async submitToolOutputsAndPoll(e,t,n,r){const o=await this.submitToolOutputs(e,t,n,r);return await this.poll(e,o.id,r)}submitToolOutputsStream(e,t,n,r){return En.createToolAssistantStream(e,t,this._client.beta.threads.runs,n,r)}}class Tn extends xe{}!function(e){e.RunsPage=Tn,e.Steps=Cn,e.RunStepsPage=Rn}(In||(In={}));class An extends Ce{constructor(){super(...arguments),this.runs=new In(this._client),this.messages=new On(this._client)}create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return V(e)?this.create({},e):this._client.post("/threads",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}update(e,t,n){return this._client.post("/threads/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}del(e,t){return this._client.delete("/threads/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}createAndRun(e,t){var n;return this._client.post("/threads/runs",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers},stream:null!==(n=e.stream)&&void 0!==n&&n})}async createAndRunPoll(e,t){const n=await this.createAndRun(e,t);return await this.runs.poll(n.thread_id,n.id,t)}createAndRunStream(e,t){return En.createThreadAssistantStream(e,this._client.beta.threads,t)}}!function(e){e.Runs=In,e.RunsPage=Tn,e.Messages=On,e.MessagesPage=xn}(An||(An={}));class kn extends Ce{create(e,t,n){return this._client.post("/vector_stores/".concat(e,"/files"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/vector_stores/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}list(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return V(t)?this.list(e,{},t):this._client.getAPIList("/vector_stores/".concat(e,"/files"),Pn,{query:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}del(e,t,n){return this._client.delete("/vector_stores/".concat(e,"/files/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}async createAndPoll(e,t,n){const r=await this.create(e,t,n);return await this.poll(e,r.id,n)}async poll(e,t,n){const r={...null===n||void 0===n?void 0:n.headers,"X-Stainless-Poll-Helper":"true"};for(null!==n&&void 0!==n&&n.pollIntervalMs&&(r["X-Stainless-Custom-Poll-Interval"]=n.pollIntervalMs.toString());;){const o=await this.retrieve(e,t,{...n,headers:r}).withResponse(),i=o.data;switch(i.status){case"in_progress":let e=5e3;if(null!==n&&void 0!==n&&n.pollIntervalMs)e=n.pollIntervalMs;else{const t=o.response.headers.get("openai-poll-after-ms");if(t){const n=parseInt(t);isNaN(n)||(e=n)}}await te(e);break;case"failed":case"completed":return i}}}async upload(e,t,n){const r=await this._client.files.create({file:t,purpose:"assistants"},n);return this.create(e,{file_id:r.id},n)}async uploadAndPoll(e,t,n){const r=await this.upload(e,t,n);return await this.poll(e,r.id,n)}}class Pn extends xe{}!function(e){e.VectorStoreFilesPage=Pn}(kn||(kn={}));class Nn extends Ce{create(e,t,n){return this._client.post("/vector_stores/".concat(e,"/file_batches"),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}retrieve(e,t,n){return this._client.get("/vector_stores/".concat(e,"/file_batches/").concat(t),{...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}cancel(e,t,n){return this._client.post("/vector_stores/".concat(e,"/file_batches/").concat(t,"/cancel"),{...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}async createAndPoll(e,t,n){const r=await this.create(e,t);return await this.poll(e,r.id,n)}listFiles(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return V(n)?this.listFiles(e,t,{},n):this._client.getAPIList("/vector_stores/".concat(e,"/file_batches/").concat(t,"/files"),Pn,{query:n,...r,headers:{"OpenAI-Beta":"assistants=v2",...null===r||void 0===r?void 0:r.headers}})}async poll(e,t,n){const r={...null===n||void 0===n?void 0:n.headers,"X-Stainless-Poll-Helper":"true"};for(null!==n&&void 0!==n&&n.pollIntervalMs&&(r["X-Stainless-Custom-Poll-Interval"]=n.pollIntervalMs.toString());;){const{data:o,response:i}=await this.retrieve(e,t,{...n,headers:r}).withResponse();switch(o.status){case"in_progress":let e=5e3;if(null!==n&&void 0!==n&&n.pollIntervalMs)e=n.pollIntervalMs;else{const t=i.headers.get("openai-poll-after-ms");if(t){const n=parseInt(t);isNaN(n)||(e=n)}}await te(e);break;case"failed":case"cancelled":case"completed":return o}}}async uploadAndPoll(e,t,n){var r;let{files:o,fileIds:i=[]}=t;if(null==o||0==o.length)throw new Error("No `files` provided to process. If you've already uploaded files you should use `.createAndPoll()` instead");const a=null!==(r=null===n||void 0===n?void 0:n.maxConcurrency)&&void 0!==r?r:5,s=Math.min(a,o.length),c=this._client,u=o.values(),l=[...i];const d=Array(s).fill(u).map((async function(e){for(let t of e){const e=await c.files.create({file:t,purpose:"assistants"},n);l.push(e.id)}}));return await(async e=>{const t=await Promise.allSettled(e),n=t.filter((e=>"rejected"===e.status));if(n.length){for(const e of n)console.error(e.reason);throw new Error("".concat(n.length," promise(s) failed - see the above errors"))}const r=[];for(const o of t)"fulfilled"===o.status&&r.push(o.value);return r})(d),await this.createAndPoll(e,{file_ids:l})}}Nn||(Nn={});class Dn extends Ce{constructor(){super(...arguments),this.files=new kn(this._client),this.fileBatches=new Nn(this._client)}create(e,t){return this._client.post("/vector_stores",{body:e,...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}retrieve(e,t){return this._client.get("/vector_stores/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}update(e,t,n){return this._client.post("/vector_stores/".concat(e),{body:t,...n,headers:{"OpenAI-Beta":"assistants=v2",...null===n||void 0===n?void 0:n.headers}})}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return V(e)?this.list({},e):this._client.getAPIList("/vector_stores",jn,{query:e,...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}del(e,t){return this._client.delete("/vector_stores/".concat(e),{...t,headers:{"OpenAI-Beta":"assistants=v2",...null===t||void 0===t?void 0:t.headers}})}}class jn extends xe{}!function(e){e.VectorStoresPage=jn,e.Files=kn,e.VectorStoreFilesPage=Pn,e.FileBatches=Nn}(Dn||(Dn={}));class Mn extends Ce{constructor(){super(...arguments),this.vectorStores=new Dn(this._client),this.chat=new Mt(this._client),this.assistants=new Ke(this._client),this.threads=new An(this._client)}}!function(e){e.VectorStores=Dn,e.VectorStoresPage=jn,e.Chat=Mt,e.Assistants=Ke,e.AssistantsPage=Ge,e.Threads=An}(Mn||(Mn={}));class Ln extends Ce{create(e,t){return this._client.post("/batches",{body:e,...t})}retrieve(e,t){return this._client.get("/batches/".concat(e),t)}list(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return V(e)?this.list({},e):this._client.getAPIList("/batches",Bn,{query:e,...t})}cancel(e,t){return this._client.post("/batches/".concat(e,"/cancel"),t)}}class Bn extends xe{}!function(e){e.BatchesPage=Bn}(Ln||(Ln={}));class qn extends Ce{create(e,t,n){return this._client.post("/uploads/".concat(e,"/parts"),N({body:t,...n}))}}qn||(qn={});class zn extends Ce{constructor(){super(...arguments),this.parts=new qn(this._client)}create(e,t){return this._client.post("/uploads",{body:e,...t})}cancel(e,t){return this._client.post("/uploads/".concat(e,"/cancel"),t)}complete(e,t,n){return this._client.post("/uploads/".concat(e,"/complete"),{body:t,...n})}}var Fn;!function(e){e.Parts=qn}(zn||(zn={}));class $n extends F{constructor(){var e,t,n;let{baseURL:r=oe("OPENAI_BASE_URL"),apiKey:o=oe("OPENAI_API_KEY"),organization:i=(null!==(e=oe("OPENAI_ORG_ID"))&&void 0!==e?e:null),project:a=(null!==(t=oe("OPENAI_PROJECT_ID"))&&void 0!==t?t:null),...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0===o)throw new de("The OPENAI_API_KEY environment variable is missing or empty; either provide it, or instantiate the OpenAI client with an apiKey option, like new OpenAI({ apiKey: 'My API Key' }).");const c={apiKey:o,organization:i,project:a,...s,baseURL:r||"https://api.openai.com/v1"};if(!c.dangerouslyAllowBrowser&&"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof navigator)throw new de("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\nIf you understand the risks and have appropriate mitigations in place,\nyou can set the `dangerouslyAllowBrowser` option to `true`, e.g.,\n\nnew OpenAI({ apiKey, dangerouslyAllowBrowser: true });\n\nhttps://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety\n");super({baseURL:c.baseURL,timeout:null!==(n=c.timeout)&&void 0!==n?n:6e5,httpAgent:c.httpAgent,maxRetries:c.maxRetries,fetch:c.fetch}),this.completions=new Re(this),this.chat=new Te(this),this.embeddings=new Ae(this),this.files=new ke(this),this.images=new Ne(this),this.audio=new Le(this),this.moderations=new Be(this),this.models=new qe(this),this.fineTuning=new Ve(this),this.beta=new Mn(this),this.batches=new Ln(this),this.uploads=new zn(this),this._options=c,this.apiKey=o,this.organization=i,this.project=a}defaultQuery(){return this._options.defaultQuery}defaultHeaders(e){return{...super.defaultHeaders(e),"OpenAI-Organization":this.organization,"OpenAI-Project":this.project,...this._options.defaultHeaders}}authHeaders(e){return{Authorization:"Bearer ".concat(this.apiKey)}}}Fn=$n,$n.OpenAI=Fn,$n.OpenAIError=de,$n.APIError=fe,$n.APIConnectionError=pe,$n.APIConnectionTimeoutError=ge,$n.APIUserAbortError=he,$n.NotFoundError=ye,$n.ConflictError=we,$n.RateLimitError=Se,$n.BadRequestError=ve,$n.AuthenticationError=me,$n.InternalServerError=Ee,$n.PermissionDeniedError=be,$n.UnprocessableEntityError=_e,$n.toFile=T,$n.fileFromPath=f;const{vc:Hn,LG:Un,xX:Wn,qA:Vn,cH:Kn,m_:Gn,fK:Xn,OE:Yn,v7:Jn,v3:Qn,PO:Zn,Ll:er,Is:tr}=r;!function(e){e.Page=Oe,e.CursorPage=xe,e.Completions=Re,e.Chat=Te,e.Embeddings=Ae,e.Files=ke,e.FileObjectsPage=Pe,e.Images=Ne,e.Audio=Le,e.Moderations=Be,e.Models=qe,e.ModelsPage=ze,e.FineTuning=Ve,e.Beta=Mn,e.Batches=Ln,e.BatchesPage=Bn,e.Uploads=zn}($n||($n={}));new Set(["/completions","/chat/completions","/embeddings","/audio/transcriptions","/audio/translations","/audio/speech","/images/generations"]);const nr=$n},27686:(e,t,n)=>{"use strict";let r;function o(){return r||(r=new Image,r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r}n.d(t,{n:()=>o})},67537:(e,t,n)=>{"use strict";n.d(t,{t2:()=>x});var r={};function o(e){let t=null;return()=>(null==t&&(t=e()),t)}n.r(r),n.d(r,{FILE:()=>s,HTML:()=>l,TEXT:()=>u,URL:()=>c});class i{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach((e=>o.push(e))),o}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class a{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const s="__NATIVE_FILE__",c="__NATIVE_URL__",u="__NATIVE_TEXT__",l="__NATIVE_HTML__";function d(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const f={[s]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[l]:{exposeProperties:{html:(e,t)=>d(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[c]:{exposeProperties:{urls:(e,t)=>d(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[u]:{exposeProperties:{text:(e,t)=>d(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function h(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(f).filter((e=>{const n=f[e];return!!(null===n||void 0===n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const p=o((()=>/firefox/i.test(navigator.userAgent))),g=o((()=>Boolean(window.safari)));class v{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let s,c=0,u=i.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const r=t[s];if(r<e)c=s+1;else{if(!(r>e))return n[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],d=l*l;return n[a]+r[a]*l+o[a]*d+i[a]*l*d}constructor(e,t){const{length:n}=e,r=[];for(let h=0;h<n;h++)r.push(h);r.sort(((t,n)=>e[t]<e[n]?-1:1));const o=[],i=[],a=[];let s,c;for(let h=0;h<n-1;h++)s=e[h+1]-e[h],c=t[h+1]-t[h],i.push(s),o.push(c),a.push(c/s);const u=[a[0]];for(let h=0;h<i.length-1;h++){const e=a[h],t=a[h+1];if(e*t<=0)u.push(0);else{s=i[h];const n=i[h+1],r=s+n;u.push(3*r/((r+n)/e+(r+s)/t))}}u.push(a[a.length-1]);const l=[],d=[];let f;for(let h=0;h<u.length-1;h++){f=a[h];const e=u[h],t=1/i[h],n=e+u[h+1]-f-f;l.push((f-e-n)*t),d.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=d}}const m=1;function b(e){const t=e.nodeType===m?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function y(e){return{x:e.clientX,y:e.clientY}}function w(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&(p()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=b(i?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return g()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,c,u),{offsetX:m,offsetY:y}=o,w=0===y||y;return{x:0===m||m?m:new v([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(l),y:w?y:(()=>{let e=new v([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return g()&&i&&(e+=(window.devicePixelRatio-1)*h),e})()}}class _{get window(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){S(e,t,n[t])}))}return e}class O{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return E({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return E({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(r).some((t=>r[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=f[e];if(!n)throw new Error("native type ".concat(e," has no configuration"));const r=new a(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&b(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!==typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=y(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=h(r);if(this.monitor.isDragging()){if(r&&"function"===typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=w(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,c.x,c.y)}}try{null===r||void 0===r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=h(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:y(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=y(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):h(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:y(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"===typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new _(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new i(this.isNodeInDocument)}}const x=function(e,t,n){return new O(e,t,n)}},28791:(e,t,n)=>{"use strict";n.d(t,{qi:()=>p});var r,o=n(92027);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(r||(r={}));class i{get delay(){var e;return null!==(e=this.args.delay)&&void 0!==e?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return null!==(e=this.args.ignoreContextMenu)&&void 0!==e&&e}get enableHoverOutsideTarget(){var e;return null!==(e=this.args.enableHoverOutsideTarget)&&void 0!==e&&e}get enableKeyboardEvents(){var e;return null!==(e=this.args.enableKeyboardEvents)&&void 0!==e&&e}get enableMouseEvents(){var e;return null!==(e=this.args.enableMouseEvents)&&void 0!==e&&e}get enableTouchEvents(){var e;return null===(e=this.args.enableTouchEvents)||void 0===e||e}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,t,n,r;return null!==(r=null!==(n=null===(e=this.args)||void 0===e?void 0:e.delayTouchStart)&&void 0!==n?n:null===(t=this.args)||void 0===t?void 0:t.delay)&&void 0!==r?r:0}get delayMouseStart(){var e,t,n,r;return null!==(r=null!==(n=null===(e=this.args)||void 0===e?void 0:e.delayMouseStart)&&void 0!==n?n:null===(t=this.args)||void 0===t?void 0:t.delay)&&void 0!==r?r:0}get window(){return this.context&&this.context.window?this.context.window:"undefined"!==typeof window?window:void 0}get document(){var e;return(null===(e=this.context)||void 0===e?void 0:e.document)?this.context.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.args)||void 0===e?void 0:e.rootElement)||this.document}constructor(e,t){this.args=e,this.context=t}}const a=1,s=0;function c(e){return void 0===e.button||e.button===s}function u(e){return!!e.targetTouches}function l(e,t){return u(e)?function(e,t){return 1===e.targetTouches.length?l(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?l(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}const d=(()=>{let e=!1;try{addEventListener("test",(()=>{}),Object.defineProperty({},"passive",{get:()=>(e=!0,!0)}))}catch(t){}return e})(),f={[r.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[r.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[r.keyboard]:{keydown:"keydown"}};class h{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&((0,o.V)(!h.isSetUp,"Cannot have two Touch backends at the same time."),h.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(h.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=d?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){const i=f[r][t];i&&e.addEventListener(i,n,o)}))}removeEventListener(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=d?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){const i=f[r][t];i&&e.removeEventListener(i,n,o)}))}connectDragSource(e,t){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(t,"start",n)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,t){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const r=r=>{if(!this.document||!n||!this.monitor.isDragging())return;let o;switch(r.type){case f.mouse.move:o={x:r.clientX,y:r.clientY};break;case f.touch.move:var i,a;o={x:(null===(i=r.touches[0])||void 0===i?void 0:i.clientX)||0,y:(null===(a=r.touches[0])||void 0===a?void 0:a.clientY)||0}}const s=null!=o?this.document.elementFromPoint(o.x,o.y):void 0,c=s&&t.contains(s);return s===t||c?this.handleMove(r,e):void 0};return this.addEventListener(this.document.body,"move",r),this.targetNodes.set(e,t),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",r))}}getTopMoveStartHandler(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,t,n){this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&function(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}(t)},this.handleTopMoveStartCapture=e=>{c(e)&&(this.moveStartSourceIds=[])},this.handleMoveStart=e=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=e=>{if(!c(e))return;const t=l(e);t&&(u(e)&&(this.lastTargetTouchFallback=e.targetTouches[0]),this._mouseClientOffset=t),this.waitingForDelay=!1},this.handleTopMoveStartDelay=e=>{if(!c(e))return;const t=e.type===f.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,e),t),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(e,t)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(t)},this.handleTopMove=e=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:t,dragOverTargetIds:n}=this,r=this.options.enableHoverOutsideTarget,o=l(e,this.lastTargetTouchFallback);if(!o)return;if(this._isScrolling||!this.monitor.isDragging()&&function(e,t,n,r,o){if(!o)return!1;const i=180*Math.atan2(r-t,n-e)/Math.PI+180;for(let a=0;a<o.length;++a){const e=o[a];if(e&&(null==e.start||i>=e.start)&&(null==e.end||i<=e.end))return!0}return!1}(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,o.x,o.y,this.options.scrollAngleRanges))return void(this._isScrolling=!0);var i,a,s,c;if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&t&&(i=this._mouseClientOffset.x||0,a=this._mouseClientOffset.y||0,s=o.x,c=o.y,Math.sqrt(Math.pow(Math.abs(s-i),2)+Math.pow(Math.abs(c-a),2))>(this.options.touchSlop?this.options.touchSlop:0))&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(t,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const u=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(u),this.actions.publishDragSource(),e.cancelable&&e.preventDefault();const d=(n||[]).map((e=>this.targetNodes.get(e))).filter((e=>!!e)),f=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(o.x,o.y,d):this.document.elementsFromPoint(o.x,o.y),h=[];for(const l in f){if(!f.hasOwnProperty(l))continue;let e=f[l];for(null!=e&&h.push(e);e;)e=e.parentElement,e&&-1===h.indexOf(e)&&h.push(e)}const p=h.filter((e=>d.indexOf(e)>-1)).map((e=>this._getDropTargetId(e))).filter((e=>!!e)).filter(((e,t,n)=>n.indexOf(e)===t));if(r)for(const l in this.targetNodes){const e=this.targetNodes.get(l);if(u&&e&&e.contains(u)&&-1===p.indexOf(l)){p.unshift(l);break}}p.reverse(),this.actions.hover(p,{clientOffset:o})},this._getDropTargetId=e=>{const t=this.targetNodes.keys();let n=t.next();for(;!1===n.done;){const r=n.value;if(e===this.targetNodes.get(r))return r;n=t.next()}},this.handleTopMoveEndCapture=e=>{this._isScrolling=!1,this.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0===(e.buttons&a)}(e)&&(this.monitor.isDragging()&&!this.monitor.didDrop()?(e.cancelable&&e.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()):this.moveStartSourceIds=void 0)},this.handleCancelOnEscape=e=>{"Escape"===e.key&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new i(n,t),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(r.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(r.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(r.keyboard)}}const p=function(e){return new h(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}},45389:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});const r=(0,n(28437).createContext)({dragDropManager:void 0})},30335:(e,t,n)=>{"use strict";n.d(t,{Q:()=>me});var r=n(70579);function o(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var i="function"===typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function c(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(o(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(o(1));return n(u)(e,t)}if("function"!==typeof e)throw new Error(o(2));var a=e,l=t,d=[],f=d,h=!1;function p(){f===d&&(f=d.slice())}function g(){if(h)throw new Error(o(3));return l}function v(e){if("function"!==typeof e)throw new Error(o(4));if(h)throw new Error(o(5));var t=!0;return p(),f.push(e),function(){if(t){if(h)throw new Error(o(6));t=!1,p();var n=f.indexOf(e);f.splice(n,1),d=null}}}function m(e){if(!c(e))throw new Error(o(7));if("undefined"===typeof e.type)throw new Error(o(8));if(h)throw new Error(o(9));try{h=!0,l=a(l,e)}finally{h=!1}for(var t=d=f,n=0;n<t.length;n++){(0,t[n])()}return e}return m({type:s.INIT}),(r={dispatch:m,subscribe:v,getState:g,replaceReducer:function(e){if("function"!==typeof e)throw new Error(o(10));a=e,m({type:s.REPLACE})}})[i]=function(){var e,t=v;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(o(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[i]=function(){return this},e},r}var l=n(92027);function d(e){return"object"===typeof e}const f="dnd-core/INIT_COORDS",h="dnd-core/BEGIN_DRAG",p="dnd-core/PUBLISH_DRAG_SOURCE",g="dnd-core/HOVER",v="dnd-core/DROP",m="dnd-core/END_DRAG";function b(e,t){return{type:f,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const y={type:f,payload:{clientOffset:null,sourceClientOffset:null}};function w(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0};const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(b(o)),function(e,t,n){(0,l.V)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,l.V)(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,a,s);const c=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==c)return void e.dispatch(y);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){(0,l.V)("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(b(o,u));const f=s.getSource(c).beginDrag(a,c);if(null==f)return;!function(e){(0,l.V)(d(e),"Item must be an object.")}(f),s.pinSource(c);const p=s.getSourceType(c);return{type:h,payload:{itemType:p,item:f,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}function E(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=e.getMonitor(),r=e.getRegistry();!function(e){(0,l.V)(e.isDragging(),"Cannot call drop while not dragging."),(0,l.V)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);const o=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach(((o,i)=>{const a=function(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;(function(e){(0,l.V)("undefined"===typeof e||d(e),"Drop result must either be an object or undefined.")})(i),"undefined"===typeof i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),s={type:v,payload:{dropResult:S({},t,a)}};e.dispatch(s)}))}}function O(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){(0,l.V)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();if(null!=r){n.getSource(r,!0).endDrag(t,r),n.unpinSource()}return{type:m}}}function x(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function C(e){return function(t){let{clientOffset:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){(0,l.V)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];x(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){(0,l.V)(t.isDragging(),"Cannot call hover while not dragging."),(0,l.V)(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];(0,l.V)(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(t);(0,l.V)(o,"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:g,payload:{targetIds:r,clientOffset:n||null}}}}function R(e){return function(){if(e.getMonitor().isDragging())return{type:p}}}class I{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const n=function(e){return{beginDrag:w(e),publishDragSource:R(e),hover:C(e),drop:E(e),endDrag:O(e)}}(this);return Object.keys(n).reduce(((r,o)=>{const i=n[o];var a;return r[o]=(a=i,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=a.apply(e,r);"undefined"!==typeof i&&t(i)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function T(e,t){return{x:e.x-t.x,y:e.y-t.y}}const A=[],k=[];A.__IS_NONE__=!0,k.__IS_ALL__=!0;class P{subscribeToStateChange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{handlerIds:n}=t;(0,l.V)("function"===typeof e,"listener must be a function."),(0,l.V)("undefined"===typeof n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),o=t.stateId;try{const i=o===r||o===r+1&&!function(e,t){return e!==A&&(e===k||"undefined"===typeof t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);i||e()}finally{r=o}}))}subscribeToOffsetChange(e){(0,l.V)("function"===typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,l.V)(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if((0,l.V)(t,"Expected to find a valid target. targetId=".concat(e)),!this.isDragging()||this.didDrop())return!1;return x(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if((0,l.V)(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!x(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?T((i=r,{x:(o=t).x+i.x,y:o.y+i.y}),n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?T(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const N="undefined"!==typeof global?global:self,D=N.MutationObserver||N.WebKitMutationObserver;function j(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const M="function"===typeof D?function(e){let t=1;const n=new D(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:j;class L{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const B=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=M(this.flush),this.requestErrorThrow=j((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},q=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new L(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(B.registerPendingError);const z="dnd-core/ADD_SOURCE",F="dnd-core/ADD_TARGET",$="dnd-core/REMOVE_SOURCE",H="dnd-core/REMOVE_TARGET";function U(e,t){t&&Array.isArray(e)?e.forEach((e=>U(e,!1))):(0,l.V)("string"===typeof e||"symbol"===typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var W;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(W||(W={}));let V=0;function K(e){const t=(V++).toString();switch(e){case W.SOURCE:return"S".concat(t);case W.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function G(e){switch(e[0]){case"S":return W.SOURCE;case"T":return W.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(e))}}function X(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}class Y{addSource(e,t){U(e),function(e){(0,l.V)("function"===typeof e.canDrag,"Expected canDrag to be a function."),(0,l.V)("function"===typeof e.beginDrag,"Expected beginDrag to be a function."),(0,l.V)("function"===typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(W.SOURCE,e,t);return this.store.dispatch(function(e){return{type:z,payload:{sourceId:e}}}(n)),n}addTarget(e,t){U(e,!0),function(e){(0,l.V)("function"===typeof e.canDrop,"Expected canDrop to be a function."),(0,l.V)("function"===typeof e.hover,"Expected hover to be a function."),(0,l.V)("function"===typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(W.TARGET,e,t);return this.store.dispatch(function(e){return{type:F,payload:{targetId:e}}}(n)),n}containsHandler(e){return X(this.dragSources,e)||X(this.dropTargets,e)}getSource(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,l.V)(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,l.V)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,l.V)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,l.V)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return G(e)===W.SOURCE}isTargetId(e){return G(e)===W.TARGET}removeSource(e){var t;(0,l.V)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:$,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},B.enqueueTask(q.create(t))}removeTarget(e){(0,l.V)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:H,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,l.V)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,l.V)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=K(e);return this.types.set(r,t),e===W.SOURCE?this.dragSources.set(r,n):e===W.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const J=(e,t)=>e===t;function Q(){let e=arguments.length>1?arguments[1]:void 0;switch(e.type){case g:break;case z:case F:case H:case $:return A;default:return k}const{targetIds:t=[],prevTargetIds:n=[]}=e.payload,r=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach(((e,t)=>{1===e&&o.push(t)})),o}(t,n),o=r.length>0||!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J;if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(t,n);if(!o)return A;const i=n[n.length-1],a=t[t.length-1];return i!==a&&(i&&r.push(i),a&&r.push(a)),r}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ee={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function te(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case f:case h:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case g:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Z(e,t,n[t])}))}return e}({},e,{clientOffset:n.clientOffset});case m:case v:return ee;default:return e}var r,o}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ne(e,t,n[t])}))}return e}const oe={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function ie(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe,t=arguments.length>1?arguments[1]:void 0;const{payload:n}=t;switch(t.type){case h:return re({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case p:return re({},e,{isSourcePublic:!0});case g:return re({},e,{targetIds:n.targetIds});case H:return-1===e.targetIds.indexOf(n.targetId)?e:re({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter((e=>e!==o)))});case v:return re({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case m:return re({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case z:case F:return e+1;case $:case H:return e-1;default:return e}}function se(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ce(e,t,n[t])}))}return e}function le(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Q(e.dirtyHandlerIds,{type:t.type,payload:ue({},t.payload,{prevTargetIds:(n=e,r="dragOperation.targetIds",o=[],r.split(".").reduce(((e,t)=>e&&e[t]?e[t]:o||null),n))})}),dragOffset:te(e.dragOffset,t),refCount:ae(e.refCount,t),dragOperation:ie(e.dragOperation,t),stateId:se(e.stateId)};var n,r,o}function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=function(e){const t="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return u(le,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),o=new P(r,new Y(r)),i=new I(r,o),a=e(i,t,n);return i.receiveBackend(a),i}var fe=n(28437),he=n(45389);function pe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let ge=0;const ve=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var me=(0,fe.memo)((function(e){var{children:t}=e,n=pe(e,["children"]);const[o,i]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:be(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const o=t;o[ve]||(o[ve]={dragDropManager:de(e,t,n,r)});return o[ve]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(n);return(0,fe.useEffect)((()=>{if(i){const e=be();return++ge,()=>{0===--ge&&(e[ve]=null)}}}),[]),(0,r.jsx)(he.M.Provider,{value:o,children:t})}));function be(){return"undefined"!==typeof global?global:window}},78902:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(53105),o=n(27918);function i(e,t,n){return function(e,t,n){const[i,a]=(0,r.F)(e,t,n);return(0,o.E)((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})}),[e,a]),i}(t,e||(()=>({})),(()=>n.reconnect()))}},53105:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(122),o=n(28437),i=n(27918);function a(e,t,n){const[a,s]=(0,o.useState)((()=>t(e))),c=(0,o.useCallback)((()=>{const o=t(e);r(a,o)||(s(o),n&&n())}),[a,e,n]);return(0,i.E)(c),[a,c]}},42734:(e,t,n)=>{"use strict";n.d(t,{i:()=>_});var r=n(92027),o=n(78902),i=n(85052),a=n(28437);function s(e){return(0,a.useMemo)((()=>e.hooks.dragSource()),[e])}function c(e){return(0,a.useMemo)((()=>e.hooks.dragPreview()),[e])}var u=n(74271),l=n(89216),d=n(69840);class f{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,u.b)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,u.b)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=(0,d.i)({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,(0,l.i)(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,(0,l.i)(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}var h=n(78292),p=n(27918);let g=!1,v=!1;class m{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,r.V)(!g,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return g=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{g=!1}}isDragging(){if(!this.sourceId)return!1;(0,r.V)(!v,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return v=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{v=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var b=n(45020);class y{beginDrag(){const e=this.spec,t=this.monitor;let n=null;return n="object"===typeof e.item?e.item:"function"===typeof e.item?e.item(t):{},null!==n&&void 0!==n?n:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"===typeof e.canDrag?e.canDrag:"function"!==typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const n=this.spec,r=this.monitor,{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}}function w(e,t,n){const o=(0,h.u)(),i=function(e,t,n){const r=(0,a.useMemo)((()=>new y(e,t,n)),[t,n]);return(0,a.useEffect)((()=>{r.spec=e}),[e]),r}(e,t,n),s=function(e){return(0,a.useMemo)((()=>{const t=e.type;return(0,r.V)(null!=t,"spec.type must be defined"),t}),[e])}(e);(0,p.E)((function(){if(null!=s){const[e,r]=(0,b.V)(s,i,o);return t.receiveHandlerId(e),n.receiveHandlerId(e),r}}),[o,t,n,i,s])}function _(e,t){const n=(0,i.I)(e,t);(0,r.V)(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const u=function(){const e=(0,h.u)();return(0,a.useMemo)((()=>new m(e)),[e])}(),l=function(e,t){const n=(0,h.u)(),r=(0,a.useMemo)((()=>new f(n.getBackend())),[n]);return(0,p.E)((()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource())),[r,e]),(0,p.E)((()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview())),[r,t]),r}(n.options,n.previewOptions);return w(n,u,l),[(0,o.j)(n.collect,u,l),s(l),c(l)]}},78292:(e,t,n)=>{"use strict";n.d(t,{u:()=>a});var r=n(92027),o=n(28437),i=n(45389);function a(){const{dragDropManager:e}=(0,o.useContext)(i.M);return(0,r.V)(null!=e,"Expected drag drop context"),e}},35661:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(28437),o=n(53105),i=n(78292);function a(e){const t=(0,i.u)().getMonitor(),[n,a]=(0,o.F)(t,e);return(0,r.useEffect)((()=>t.subscribeToOffsetChange(a))),(0,r.useEffect)((()=>t.subscribeToStateChange(a))),n}},35964:(e,t,n)=>{"use strict";n.d(t,{H:()=>y});var r=n(78902),o=n(85052),i=n(28437);function a(e){return(0,i.useMemo)((()=>e.hooks.dropTarget()),[e])}var s=n(74271),c=n(89216),u=n(69840);class l{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,s.b)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=(0,u.i)({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,(0,c.i)(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var d=n(78292),f=n(27918);var h=n(92027);let p=!1;class g{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,h.V)(!p,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return p=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{p=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var v=n(45020);class m{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function b(e,t,n){const r=(0,d.u)(),o=function(e,t){const n=(0,i.useMemo)((()=>new m(e,t)),[t]);return(0,i.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),a=function(e){const{accept:t}=e;return(0,i.useMemo)((()=>((0,h.V)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);(0,f.E)((function(){const[e,i]=(0,v.l)(a,o,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),i}),[r,t,o,n,a.map((e=>e.toString())).join("|")])}function y(e,t){const n=(0,o.I)(e,t),s=function(){const e=(0,d.u)();return(0,i.useMemo)((()=>new g(e)),[e])}(),c=function(e){const t=(0,d.u)(),n=(0,i.useMemo)((()=>new l(t.getBackend())),[t]);return(0,f.E)((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return b(n,s,c),[(0,r.j)(n.collect,s,c),a(c)]}},27918:(e,t,n)=>{"use strict";n.d(t,{E:()=>o});var r=n(28437);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},85052:(e,t,n)=>{"use strict";n.d(t,{I:()=>o});var r=n(28437);function o(e,t){const n=[...t||[]];return null==t&&"function"!==typeof e&&n.push(e),(0,r.useMemo)((()=>"function"===typeof e?e():e),n)}},89216:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}n.d(t,{i:()=>r})},45020:(e,t,n)=>{"use strict";function r(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}function o(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}n.d(t,{V:()=>o,l:()=>r})},69840:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(92027),o=n(28437);function i(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,o.isValidElement)(t)){const r=t;return e(r,n),r}const i=t;!function(e){if("string"===typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}(i);return function(e,t){const n=e.ref;return(0,r.V)("string"!==typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,o.cloneElement)(e,{ref:e=>{s(n,e),s(t,e)}}):(0,o.cloneElement)(e,{ref:t})}(i,n?t=>e(t,n):e)}}function a(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=i(r);t[n]=()=>e}})),t}function s(e,t){"function"===typeof e?e(t):e.current=t}},60184:(e,t,n)=>{"use strict";n.d(t,{M1W:()=>l,Mbn:()=>a,PiR:()=>s,U9Z:()=>c,g1V:()=>u,kkc:()=>o,w_X:()=>i});var r=n(13441);function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"},child:[]}]})(e)}function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M16 288c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h112v-64zm489-183L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H152c-13.3 0-24 10.7-24 24v264h128v-65.2c0-14.3 17.3-21.4 27.4-11.3L379 308c6.6 6.7 6.6 17.4 0 24l-95.7 96.4c-10.1 10.1-27.4 3-27.4-11.3V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24z"},child:[]}]})(e)}function c(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M243.2 189.9V258c26.1 5.9 49.3 15.6 73.6 22.3v-68.2c-26-5.8-49.4-15.5-73.6-22.2zm223.3-123c-34.3 15.9-76.5 31.9-117 31.9C296 98.8 251.7 64 184.3 64c-25 0-47.3 4.4-68 12 2.8-7.3 4.1-15.2 3.6-23.6C118.1 24 94.8 1.2 66.3 0 34.3-1.3 8 24.3 8 56c0 19 9.5 35.8 24 45.9V488c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24v-94.4c28.3-12.1 63.6-22.1 114.4-22.1 53.6 0 97.8 34.8 165.2 34.8 48.2 0 86.7-16.3 122.5-40.9 8.7-6 13.8-15.8 13.8-26.4V95.9c.1-23.3-24.2-38.8-45.4-29zM169.6 325.5c-25.8 2.7-50 8.2-73.6 16.6v-70.5c26.2-9.3 47.5-15 73.6-17.4zM464 191c-23.6 9.8-46.3 19.5-73.6 23.9V286c24.8-3.4 51.4-11.8 73.6-26v70.5c-25.1 16.1-48.5 24.7-73.6 27.1V286c-27 3.7-47.9 1.5-73.6-5.6v67.4c-23.9-7.4-47.3-16.7-73.6-21.3V258c-19.7-4.4-40.8-6.8-73.6-3.8v-70c-22.4 3.1-44.6 10.2-73.6 20.9v-70.5c33.2-12.2 50.1-19.8 73.6-22v71.6c27-3.7 48.4-1.3 73.6 5.7v-67.4c23.7 7.4 47.2 16.7 73.6 21.3v68.4c23.7 5.3 47.6 6.9 73.6 2.7V143c27-4.8 52.3-13.6 73.6-22.5z"},child:[]}]})(e)}function u(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},child:[]}]})(e)}},6720:(e,t,n)=>{"use strict";n.d(t,{A_:()=>R,Awo:()=>D,Azs:()=>A,BI9:()=>f,Fxb:()=>m,K6h:()=>b,KrV:()=>x,MGo:()=>k,O24:()=>d,QG6:()=>g,QHh:()=>O,TYx:()=>P,U12:()=>i,U3x:()=>h,Wux:()=>p,XKH:()=>v,XbS:()=>$,Yvo:()=>I,ZuP:()=>c,a1M:()=>N,a95:()=>q,b6i:()=>s,fMd:()=>T,g9_:()=>M,gZ7:()=>l,jgn:()=>y,joZ:()=>z,kgr:()=>a,kn0:()=>w,m6K:()=>L,mGp:()=>o,nVg:()=>F,o8z:()=>S,oFq:()=>E,rZB:()=>_,t76:()=>C,uDv:()=>j,uw3:()=>u,vIB:()=>B});var r=n(13441);function o(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"},child:[]}]})(e)}function i(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z",clipRule:"evenodd"},child:[]},{tag:"path",attr:{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"},child:[]}]})(e)}function a(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(e)}function s(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(e)}function c(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 4H11l-1-3H3c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8l1 3h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 16c-2.76 0-5-2.24-5-5s2.24-5 5-5c1.35 0 2.48.5 3.35 1.3L9.03 8.57c-.38-.36-1.04-.78-2.03-.78-1.74 0-3.15 1.44-3.15 3.21S5.26 14.21 7 14.21c2.01 0 2.84-1.44 2.92-2.41H7v-1.71h4.68c.07.31.12.61.12 1.02C11.8 13.97 9.89 16 7 16zm6.17-5.42h3.7c-.43 1.25-1.11 2.43-2.05 3.47-.31-.35-.6-.72-.86-1.1l-.79-2.37zm8.33 9.92c0 .55-.45 1-1 1H14l2-2.5-1.04-3.1 3.1 3.1.92-.92-3.3-3.25.02-.02c1.13-1.25 1.93-2.69 2.4-4.22H20v-1.3h-4.53V8h-1.29v1.29h-1.44L11.46 5.5h9.04c.55 0 1 .45 1 1v14z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0z"},child:[]}]})(e)}function u(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14a2 2 0 0 0-2-2zM11 16l4-4-4-4v3H1v2h10v3z"},child:[]}]})(e)}function l(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function d(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3 5 6.99h3V14h2V6.99h3L9 3z"},child:[]}]})(e)}function f(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46A11.804 11.804 0 0 0 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"},child:[]}]})(e)}function h(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"},child:[]}]})(e)}function p(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},child:[]}]})(e)}function g(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"},child:[]}]})(e)}function v(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M8 5v14l11-7z"},child:[]}]})(e)}function m(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 10h11v2H3zM3 6h11v2H3zM3 14h7v2H3zM20.59 11.93l-4.25 4.24-2.12-2.12-1.41 1.41L16.34 19 22 13.34z"},child:[]}]})(e)}function b(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"},child:[]}]})(e)}function y(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function w(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function _(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(e)}function S(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3A8.994 8.994 0 0 0 13 3.06V1h-2v2.06A8.994 8.994 0 0 0 3.06 11H1v2h2.06A8.994 8.994 0 0 0 11 20.94V23h2v-2.06A8.994 8.994 0 0 0 20.94 13H23v-2h-2.06zM12 19c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"},child:[]}]})(e)}function E(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3.27 5 2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"},child:[]}]})(e)}function O(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"},child:[]}]})(e)}function x(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"},child:[]}]})(e)}function C(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"},child:[]}]})(e)}function R(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z"},child:[]}]})(e)}function I(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"},child:[]}]})(e)}function T(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10a2.5 2.5 0 0 0 2.5-2.5c0-.61-.23-1.2-.64-1.67a.528.528 0 0 1-.13-.33c0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9zm5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9zM5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5zm6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5z"},child:[]}]})(e)}function A(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2a9 9 0 0 0-9 9c0 4.17 2.84 7.67 6.69 8.69L12 22l2.31-2.31C18.16 18.67 21 15.17 21 11a9 9 0 0 0-9-9zm0 2c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.3a7.2 7.2 0 0 1-6-3.22c.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08a7.2 7.2 0 0 1-6 3.22z"},child:[]}]})(e)}function k(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(e)}function P(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"},child:[]}]})(e)}function N(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"},child:[]}]})(e)}function D(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"},child:[]}]})(e)}function j(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"},child:[]}]})(e)}function M(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function L(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function B(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(e)}function q(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function z(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function F(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7.41 18.59 8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"},child:[]}]})(e)}function $(e){return(0,r.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"},child:[]}]})(e)}}}]);
|
|
3
|
+
//# sourceMappingURL=727.fb67d038.chunk.js.map
|