openc3-cosmos-tool-tlmgrapher 6.8.0 → 6.8.1
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.
- checksums.yaml +4 -4
- data/tools/tlmgrapher/ArrayWidget-FGjLmPfG-800405c59a42c304a0aa.js +2 -0
- data/tools/tlmgrapher/{ArrayplotWidget-DuLaiGa9-f0eb185ae53ae659e4bb.js → ArrayplotWidget-Cfo18TYm-15426793040dcba9c93f.js} +1 -1
- data/tools/tlmgrapher/{BarColumn-BWJ0Dd4O-f39269a2948f64908e5f.js → BarColumn-BuJ6MTYG-241fa69d3e51d5104da7.js} +1 -1
- data/tools/tlmgrapher/{BlockWidget-Bf5Dd6Cr-40514f7767fa4353d935.js → BlockWidget-B_JwY8-N-4da2feabfe13146cebc5.js} +2 -2
- data/tools/tlmgrapher/ButtonWidget-Cd4M3aBD-6c092dbafe87f0f1c399.js +2 -0
- data/tools/tlmgrapher/{CanvasWidget-boDemgx1-1884de1151bd599f9d17.js → CanvasWidget-CpKdOgTG-4c6998d0863715befb23.js} +1 -1
- data/tools/tlmgrapher/CanvasdotWidget-zYbI5LAw-445fc96cee7c8f768fc7.js +1 -0
- data/tools/tlmgrapher/{CanvasimageWidget-6ywvT5jd-e8edbaf1945377af2d05.js → CanvasimageWidget--ORQEPj6-5b8dd13e5d00a916ef48.js} +1 -1
- data/tools/tlmgrapher/{CanvasimagevalueWidget-DjWrA3gX-4319f2551d2d7a246a25.js → CanvasimagevalueWidget-CtAtYHRm-42be3d4c11f94c0ce1c6.js} +1 -1
- data/tools/tlmgrapher/CanvaslabelWidget-DWoROb6o-adfd7e9b244ac5443a6b.js +1 -0
- data/tools/tlmgrapher/{CanvaslabelvalueWidget-C8oNcFLi-f492edc0fe0a6920bb3b.js → CanvaslabelvalueWidget-A4UbtwEc-70cd6f6f6e7742401697.js} +1 -1
- data/tools/tlmgrapher/{CanvaslineWidget-nvbL2GoL-e6ec208effb1ae88003b.js → CanvaslineWidget-BBGi0nrb-f429f6a10955847ccec3.js} +1 -1
- data/tools/tlmgrapher/{CanvaslinevalueWidget-ZACQedKx-c34c01acd13a772299ec.js → CanvaslinevalueWidget-C_9OkL7f-9602d1374cda73271618.js} +1 -1
- data/tools/tlmgrapher/{CheckbuttonWidget-B82UE8AB-25bf0846c42dc7c9fcfb.js → CheckbuttonWidget-CTJg8Ypg-85a75853b42393a7dc54.js} +1 -1
- data/tools/tlmgrapher/ComboboxWidget-DWiMZZk8-8c92cdc7c85a4a077029.js +1 -0
- data/tools/tlmgrapher/{DateWidget-BmwtdirF-97046c4a025774c9ce16.js → DateWidget-C7GSh68_-f93ad3d8973c69d725f5.js} +1 -1
- data/tools/tlmgrapher/{DetailsDialog-CLKEfU0s-f234d7ec2b690708a406.js → DetailsDialog-B2l0BNc2-9d99904fa0b818607c35.js} +1 -1
- data/tools/tlmgrapher/{DynamicWidget-CfMtj7H8-d82e6648148554416716.js → DynamicWidget-CfMtj7H8-6e8947888c06a4c42fda.js} +1 -1
- data/tools/tlmgrapher/{FormatvalueWidget-C8exC3bj-187b7d9ab8fcfc2030a0.js → FormatvalueWidget-CZJdsUAq-5b2a1e8aafc84914bd0b.js} +1 -1
- data/tools/tlmgrapher/{Graph-CWcrowaT-94db15c9e8b102f4d325.js → Graph-DZBpdSgR-4f8750c554f266b6665f.js} +1 -1
- data/tools/tlmgrapher/{GraphWidget-CvzxZYVx-bb7bbe6b30b1991dae06.js → GraphWidget-CHm4bhMI-69fcf6e2284dd654b624.js} +1 -1
- data/tools/tlmgrapher/{HorizontalWidget-Ck151zVw-7808906c559a1ac29ee6.js → HorizontalWidget-B2skpV1m-a71908c3d060b5355584.js} +1 -1
- data/tools/tlmgrapher/HorizontalboxWidget-BI0WZP5M-dfbd328b237595fe499e.js +1 -0
- data/tools/tlmgrapher/HorizontallineWidget-AmxVeXcU-857598846fe4a94a8748.js +1 -0
- data/tools/tlmgrapher/{IframeWidget-BgJCgues-851b29e7cbbc54e6896e.js → IframeWidget-DcqRMhyW-847b4a14a1ea1b746776.js} +1 -1
- data/tools/tlmgrapher/{ImageLoader-CWn-PLOk-919b0cab421f9ceb1ab7.js → ImageLoader-ly4zoGpO-a8ca186ff96bd264cca0.js} +1 -1
- data/tools/tlmgrapher/ImageviewerWidget-cmDHcmW4-22371fd1d675f181c305.js +1 -0
- data/tools/tlmgrapher/{LabelWidget-Cwosk4x2-a8dd53c29e95ec667926.js → LabelWidget-Bemw8Erq-207d94538bae4f27ddaa.js} +1 -1
- data/tools/tlmgrapher/LabelledWidget-Cb7EvtUG-44e007d855635c61b800.js +1 -0
- data/tools/tlmgrapher/LabelprogressbarWidget-qYgrGqLY-8dc7772fe6f0c2440c3a.js +1 -0
- data/tools/tlmgrapher/{LabelsparklineWidget-6LA6Ox3d-89f1580bf5aa5a7c03cf.js → LabelsparklineWidget-CMklq9-f-9d8e2eba5dfa99b0134a.js} +1 -1
- data/tools/tlmgrapher/LabelvalueWidget-NjCMgiYL-877f0352e88fd4a1b9ac.js +1 -0
- data/tools/tlmgrapher/{LabelvaluedescWidget-Dwwlnd1g-d8cfd70ab03028dc6831.js → LabelvaluedescWidget-Dflulqm7-289f8640a439bca17578.js} +1 -1
- data/tools/tlmgrapher/LabelvaluelimitsbarWidget-M34NDk2S-20e813123f891ebd30ca.js +1 -0
- data/tools/tlmgrapher/LabelvaluelimitscolumnWidget-Cchaw_-k-2e6801f537fefa15245c.js +1 -0
- data/tools/tlmgrapher/LabelvaluerangebarWidget-7pEykAm3-4b712e0e6bcd09c8d0ff.js +1 -0
- data/tools/tlmgrapher/Layout-BNvQKlyy-92ba78a427abad4f5055.js +1 -0
- data/tools/tlmgrapher/{LedWidget-DOuDD8LI-e4f2b3fd9c041f47c3c5.js → LedWidget-_EA7ZKM8-486c259bcde22c2041f8.js} +1 -1
- data/tools/tlmgrapher/{LimitsbarWidget-D1U6SvVL-ac219be8e1ab6e1970f5.js → LimitsbarWidget-DdoQf46y-49b71131d1105f9a4fb5.js} +1 -1
- data/tools/tlmgrapher/{LimitscolorWidget-iSMGusqt-759918e1021e192a8b0d.js → LimitscolorWidget-Cv0umnVo-ea01f48443d1541cd166.js} +1 -1
- data/tools/tlmgrapher/{LimitscolumnWidget-DjxZTt_r-cee6dff527cda3a610b1.js → LimitscolumnWidget-CnCQtxim-4b7cf381dfa03bfe5bc1.js} +1 -1
- data/tools/tlmgrapher/{LinegraphWidget-BHKU6zlT-4a9fb2ef93d88d08f3eb.js → LinegraphWidget-ekyQoR7x-59a1fd6da4bc19f402d8.js} +1 -1
- data/tools/tlmgrapher/MatrixbycolumnsWidget-IBUcGNF7-7b1d2a375375f68a0e25.js +1 -0
- data/tools/tlmgrapher/{ProgressbarWidget-fbr2qu_N-e9962dd85db9c00db66e.js → ProgressbarWidget-CnveFZVh-d4d69b44c3e7917b9ab8.js} +1 -1
- data/tools/tlmgrapher/{RadiobuttonWidget-DL08zcQT-2a06040a484bf5480651.js → RadiobuttonWidget-hWLrCb8W-9bff9f6ff182cae6911c.js} +1 -1
- data/tools/tlmgrapher/{RadiogroupWidget-DW9Xpj3c-3685be8f9fd05f69c9fc.js → RadiogroupWidget-DK1fphkh-968507e7c2e517625c5a.js} +1 -1
- data/tools/tlmgrapher/{RangebarWidget-o9q55kjc-cdee564f527849e7fd68.js → RangebarWidget-vspY8CGV-9896f73dabbbd3e51ba8.js} +1 -1
- data/tools/tlmgrapher/{RollupWidget-BHnjj-DF-ffaf4499e4af27638ad6.js → RollupWidget-07pNcXQV-1de937d5690175b48387.js} +1 -1
- data/tools/tlmgrapher/{ScrollwindowWidget-D-QVwztC-27e38f6a4abb345ee5ca.js → ScrollwindowWidget-BcbyrYUo-b1b8726ffb1d0a951619.js} +1 -1
- data/tools/tlmgrapher/{SignalWidget-CsWuufdx-8ed19f699f381b8bc87d.js → SignalWidget-BDp5sUHj-935969be24c85ce1e88d.js} +1 -1
- data/tools/tlmgrapher/{SpacerWidget-Di9-qunj-b5ce0816722519401796.js → SpacerWidget-DcOnQ1yI-43d532043f1642451920.js} +1 -1
- data/tools/tlmgrapher/{SparklineWidget-B6-zhdPW-a3ccde757a8299614689.js → SparklineWidget-CVglnlAm-a79e6677f90732295b52.js} +1 -1
- data/tools/tlmgrapher/TabbookWidget-p51Oa7Ru-704a4a5762fc9592a502.js +1 -0
- data/tools/tlmgrapher/TextboxWidget-DM-XX97e-e32aa1cda6e19374098e.js +1 -0
- data/tools/tlmgrapher/TextfieldWidget-7cYHAgH8-3507abe988f64ba9dd23.js +1 -0
- data/tools/tlmgrapher/{TimeWidget-K4MNmJ7J-51dbd0b6e2557a85285d.js → TimeWidget-EvQJyu6x-73615eeba16033acc3c0.js} +1 -1
- data/tools/tlmgrapher/TitleWidget-6ddfJuqd-29893fce216b00b3403b.js +1 -0
- data/tools/tlmgrapher/TlmGrapher-bb12b9e8ccc39e96eff9.js +27 -0
- data/tools/tlmgrapher/{VWidget-CoIgX3hM-b5f39558906a8d18d304.js → VWidget-P-X9ffkl-d0e4f2909fa1a4d88f83.js} +1 -1
- data/tools/tlmgrapher/{ValueWidget-BvT1ASar-21feb3f2a5b733b051d7.js → ValueWidget-DAUGuQ9f-6d7f1136c81c84de8921.js} +1 -1
- data/tools/tlmgrapher/ValuelimitsbarWidget-DmLUXw0I-78b0f418e72ccecc70a4.js +1 -0
- data/tools/tlmgrapher/ValuelimitscolumnWidget-DDmo8wHJ-319671701eb629a4b4a7.js +1 -0
- data/tools/tlmgrapher/ValuerangebarWidget-CbzWSWq3-bf6b3569ff3b2ced8274.js +1 -0
- data/tools/tlmgrapher/VerticalWidget-BuKinn_c-a7caba2703b602e31b15.js +1 -0
- data/tools/tlmgrapher/VerticalboxWidget-C0zD5h0O-6ed93f149cacdd47e110.js +1 -0
- data/tools/tlmgrapher/{Widget-B8t93Oid-dfc7f3f36b92b2d8d183.js → Widget-BIXl-Pk5-314e11c982d247a5bf99.js} +1 -1
- data/tools/tlmgrapher/{main-c6deacb4fa4524414684.js → main-ad836d6160b8fa2b08fa.js} +111 -111
- data/tools/tlmgrapher/main.js +1 -1
- metadata +68 -68
- data/tools/tlmgrapher/ArrayWidget-j3ncPuPx-542b295c17e54ba74553.js +0 -2
- data/tools/tlmgrapher/ButtonWidget-bl_mGFYh-12b2fa59290c332a290b.js +0 -2
- data/tools/tlmgrapher/CanvasdotWidget-BZBbJcER-bd7d0fe78ebd258a48c5.js +0 -1
- data/tools/tlmgrapher/CanvaslabelWidget-Bq4V2BQh-c105ed1473a6848bf108.js +0 -1
- data/tools/tlmgrapher/ComboboxWidget-4OFiSkI6-c49a9465768c075cd5cf.js +0 -1
- data/tools/tlmgrapher/HorizontalboxWidget-D3P-cl9V-668121bfa08690e8dd73.js +0 -1
- data/tools/tlmgrapher/HorizontallineWidget-BE1TjPU8-77b754c0e63b6942dc36.js +0 -1
- data/tools/tlmgrapher/ImageviewerWidget-BlhFZD2f-1376a12daeae62a090c6.js +0 -1
- data/tools/tlmgrapher/LabelledWidget-Dl6rAFTQ-1bd2b778f74f4e9fac47.js +0 -1
- data/tools/tlmgrapher/LabelprogressbarWidget-MuAKesOz-1b11e397dda25c589eaa.js +0 -1
- data/tools/tlmgrapher/LabelvalueWidget-BxAXx-Tf-d9e6f5fe46ab224ea1e2.js +0 -1
- data/tools/tlmgrapher/LabelvaluelimitsbarWidget-Dv8Qk8kK-2694501887fdbcd45e8d.js +0 -1
- data/tools/tlmgrapher/LabelvaluelimitscolumnWidget-D-_gl6fq-b487b935641c7dae4893.js +0 -1
- data/tools/tlmgrapher/LabelvaluerangebarWidget-B3MKT-3Y-c9852278ff4b162e0a6b.js +0 -1
- data/tools/tlmgrapher/Layout-Bkb6VP3e-6273a422cc20589d95de.js +0 -1
- data/tools/tlmgrapher/MatrixbycolumnsWidget-BKO-A2QD-68d8c26caae8182b97ca.js +0 -1
- data/tools/tlmgrapher/TabbookWidget-B1E1_mzA-77374d438419423aa4fb.js +0 -1
- data/tools/tlmgrapher/TextboxWidget-CBVEXPw_-b992d8b416927bfbd5b7.js +0 -1
- data/tools/tlmgrapher/TextfieldWidget-DZMHrtQa-16b4c7ac8edd4a3b2444.js +0 -1
- data/tools/tlmgrapher/TitleWidget-8IcwweFE-d0465368aa036e3679cb.js +0 -1
- data/tools/tlmgrapher/TlmGrapher-3cdddea4d565198c2812.js +0 -27
- data/tools/tlmgrapher/ValuelimitsbarWidget-C5lBnUmB-629756af6e0968fed331.js +0 -1
- data/tools/tlmgrapher/ValuelimitscolumnWidget-DHYI0WBL-5bff32a8997d40f1c8e0.js +0 -1
- data/tools/tlmgrapher/ValuerangebarWidget-BSszZhlE-de48c39b18c2aac74988.js +0 -1
- data/tools/tlmgrapher/VerticalWidget-1GhgYrC3-a7b7ddcfad2244bee2da.js +0 -1
- data/tools/tlmgrapher/VerticalboxWidget-DYHJqEzd-cb6546bafbd2a4e9127a.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-BNvQKlyy-92ba78a427abad4f5055.js","vue","./main-ad836d6160b8fa2b08fa.js","./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue-router","single-spa","vuex","vuetify"],(function(h,B){"use strict";var l,a,s,r,c,o,i,u,m,d,p,g;return{setters:[e=>{l=e.r},e=>{a=e.resolveComponent,s=e.createBlock,r=e.openBlock,c=e.normalizeStyle,o=e.withCtx,i=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.d},null,null,null,null,null],execute:(function(){const e={mixins:[l],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function k(n,v,C,z,y,S){const f=a("v-radio-group");return r(),s(f,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),style:c(n.computedStyle)},{default:o(()=>[(r(!0),i(u,null,m(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{value:x,key:x,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const I=h("default",g(e,[["render",k]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue","./main-ad836d6160b8fa2b08fa.js","vue-router","single-spa","vuex","vuetify"],(function(c,u){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.createElementBlock,n=t.openBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.d},null,null,null,null],execute:(function(){const t={mixins:[r],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function o(e,s,p,g,v,d){return n(),a("div",{class:"rangebar",style:h([d.cssProps,e.computedStyle])},[...s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)])],4)}const m=c("default",l(t,[["render",o],["__scopeId","data-v-34d37e7c"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue","./main-ad836d6160b8fa2b08fa.js","vue-router","single-spa","vuex","vuetify"],(function(m,p){"use strict";var i,r,c,a,o,u;return{setters:[t=>{i=t.o},t=>{r=t.resolveComponent,c=t.createBlock,a=t.openBlock,o=t.normalizeStyle},t=>{u=t.d},null,null,null,null],execute:(function(){const t={mixins:[i],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,b,E,l){const d=r("rux-monitoring-icon");return a(),c(d,{class:"rux-icon",style:o([l.pointerStyle,e.computedStyle]),icon:e.icon,status:l.status,label:e.label,sublabel:e.subLabel,onClick:l.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Layout-
|
1
|
+
System.register(["./Layout-BNvQKlyy-92ba78a427abad4f5055.js","./VerticalWidget-BuKinn_c-a7caba2703b602e31b15.js","vue","./main-ad836d6160b8fa2b08fa.js","./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue-router","single-spa","vuex","vuetify"],(function(f,k){"use strict";var l,c,i,r,o,u,m,g,p,d,y;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{i=e.createElementBlock,r=e.openBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,d=e.mergeProps},e=>{y=e.d},null,null,null,null,null],execute:(function(){const e={components:{VerticalWidget:c},mixins:[l],created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0].startsWith("RAW")&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function v(n,a,s,w,N,R){return r(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(r(!0),i(u,null,m(n.widgets,(t,h)=>(r(),g(p(t.type),d({ref_for:!0},n.listeners,{key:h,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const B=f("default",y(e,[["render",v]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./VWidget-
|
1
|
+
System.register(["./VWidget-P-X9ffkl-d0e4f2909fa1a4d88f83.js","vue","./main-ad836d6160b8fa2b08fa.js","./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue-router","single-spa","vuex","vuetify"],(function(o,d){"use strict";var l,n,r,a,s,i;return{setters:[t=>{l=t.h},t=>{n=t.resolveComponent,r=t.createBlock,a=t.openBlock,s=t.normalizeStyle},t=>{i=t.d},null,null,null,null,null],execute:(function(){const t={mixins:[l],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function u(e,m,g,B,v,c){const h=n("v-btn");return a(),r(h,{icon:c.displayedIcon,variant:"text",style:s(e.computedStyle),"aria-label":"Signal Strength",onClick:c.clickHandler},null,8,["icon","style","onClick"])}const p=o("default",i(t,[["render",u]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue","./main-ad836d6160b8fa2b08fa.js","vue-router","single-spa","vuex","vuetify"],(function(r,o){"use strict";var t,n,s,i,l;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,s=e.openBlock,i=e.normalizeStyle},e=>{l=e.d},null,null,null,null],execute:(function(){const e={mixins:[t],created(){this.parameters[0]!==void 0&&this.appliedSettings.push(["WIDTH",this.parameters[0]]),this.parameters[1]!==void 0&&this.appliedSettings.push(["HEIGHT",this.parameters[1]])}};function u(a,p,d,m,h,v){return s(),n("div",{style:i(a.computedStyle)},null,4)}const c=r("default",l(e,[["render",u]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./GraphWidget-
|
1
|
+
System.register(["./GraphWidget-CHm4bhMI-69fcf6e2284dd654b624.js","./main-ad836d6160b8fa2b08fa.js","vue","./Graph-DZBpdSgR-4f8750c554f266b6665f.js","single-spa","./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue-router","vuex","vuetify"],(function(l,c){"use strict";var i,s,n,r,a,d,o;return{setters:[e=>{i=e.M},e=>{s=e.d},e=>{n=e.resolveComponent,r=e.createBlock,a=e.openBlock,d=e.normalizeStyle},e=>{o=e.P},null,null,null,null,null],execute:(function(){const e={components:{Graph:o},mixins:[i],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,f,y){const h=n("graph");return a(),r(h,{ref:"graph"+t.id,id:t.id,state:t.state,"selected-graph-id":t.id,startTime:t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:d(t.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",s(e,[["render",p]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Layout-BNvQKlyy-92ba78a427abad4f5055.js","vue","./main-ad836d6160b8fa2b08fa.js","./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue-router","single-spa","vuex","vuetify"],(function(k,z){"use strict";var p,a,s,r,g,v,i,u,c,o,y,f,w,b,V;return{setters:[e=>{p=e.r},e=>{a=e.resolveComponent,s=e.createElementBlock,r=e.openBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,u=e.Fragment,c=e.renderList,o=e.createBlock,y=e.createTextVNode,f=e.toDisplayString,w=e.resolveDynamicComponent,b=e.mergeProps},e=>{V=e.d},null,null,null,null,null],execute:(function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function B(t,m,h,D,L,$){const T=a("v-tab"),x=a("v-tabs"),C=a("v-window-item"),N=a("v-window");return r(),s("div",null,[g(x,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=l=>t.curTab=l),style:v(t.computedStyle)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(l,d)=>(r(),o(T,{key:d},{default:i(()=>[y(f(l.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(N,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=l=>t.curTab=l)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(l,d)=>(r(),o(C,{key:d},{default:i(()=>[(r(!0),s(u,null,c(l.widgets,(n,S)=>(r(),o(w(n.type),b({ref_for:!0},t.listeners,{key:`${d}-${S}`,target:n.target,parameters:n.parameters,settings:n.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:n.widgets,name:n.name,line:n.line,"line-number":n.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const _=k("default",V(e,[["render",B]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./main-ad836d6160b8fa2b08fa.js","vue","./DetailsDialog-B2l0BNc2-9d99904fa0b818607c35.js","single-spa","./VWidget-P-X9ffkl-d0e4f2909fa1a4d88f83.js","vue-router","vuex","vuetify","./Widget-BIXl-Pk5-314e11c982d247a5bf99.js"],(function(y,T){"use strict";var c,a,o,s,n,u,d,l,m,h,g,p,v,x,f,w;return{setters:[e=>{c=e.d},e=>{a=e.resolveComponent,o=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,d=e.normalizeClass,l=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},null,e=>{w=e.h},null,null,null,null],execute:(function(){const e={components:{DetailsDialog:f},data:function(){return{width:200,height:200}},mixins:[w],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},k={class:"textbox-widget-container"};function C(t,r,j,P,F,V){const B=a("v-textarea"),D=a("v-list-item-title"),S=a("v-list-item"),_=a("v-list"),N=a("v-menu"),z=a("details-dialog");return s(),o("div",k,[n(B,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:d(t.valueClass),style:u([t.computedStyle,V.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(N,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(_,null,{default:l(()=>[(s(!0),o(m,null,h(t.contextMenuOptions,(i,M)=>(s(),g(S,{key:M,onClick:p(i.action,["stop"])},{default:l(()=>[n(D,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(z,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const E=y("default",c(e,[["render",C],["__scopeId","data-v-10f560aa"]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue","./main-ad836d6160b8fa2b08fa.js","vue-router","single-spa","vuex","vuetify"],(function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=e.d},null,null,null,null],execute:(function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,u,k){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./Widget-
|
1
|
+
System.register(["./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","./main-ad836d6160b8fa2b08fa.js","vue","vue-router","single-spa","vuex","vuetify"],(function(m,y){"use strict";var l,i,n,a,r,s,o;return{setters:[e=>{l=e.o},e=>{i=e.d,n=e.R},e=>{a=e.resolveComponent,r=e.createBlock,s=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:(function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,b){const h=a("v-text-field");return s(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))})}}));
|
@@ -0,0 +1 @@
|
|
1
|
+
System.register(["./Widget-BIXl-Pk5-314e11c982d247a5bf99.js","vue","./main-ad836d6160b8fa2b08fa.js","vue-router","single-spa","vuex","vuetify"],(function(a,m){"use strict";var t,r,l,n,o,s;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,l=e.openBlock,n=e.normalizeStyle,o=e.toDisplayString},e=>{s=e.d},null,null,null,null],execute:(function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,d,f,x,y,u){return l(),r("div",{class:"text-h5 text-center pa-1 mt-1 label",style:n(c.computedStyle)},o(u.labelText),5)}const p=a("default",s(e,[["render",i]]))})}}));
|
@@ -0,0 +1,27 @@
|
|
1
|
+
System.register(["./main-ad836d6160b8fa2b08fa.js","vue","./Graph-DZBpdSgR-4f8750c554f266b6665f.js","vue-router","single-spa","vuex","vuetify"],(function(an,ch){"use strict";var Gi,ni,Hi,qi,Vi,N,z,B,Ui,L,O,It,Ht,nt,vt,Lt,Nt,oi,ai,xt,li,ye,be,zi,Wi;return{setters:[X=>{Gi=X.d,ni=X._,Hi=X.T,qi=X.A,Vi=X.U},X=>{N=X.resolveComponent,z=X.createBlock,B=X.openBlock,Ui=X.Teleport,L=X.createVNode,O=X.withCtx,It=X.createElementVNode,Ht=X.toDisplayString,nt=X.createElementBlock,vt=X.Fragment,Lt=X.renderList,Nt=X.createTextVNode,oi=X.mergeProps,ai=X.createSlots,xt=X.createCommentVNode,li=X.normalizeStyle,ye=X.withDirectives,be=X.vShow},X=>{zi=X.o,Wi=X.P},null,null,null,null],execute:(function(){var X=document.createElement("style");X.textContent=`.expansion[data-v-c72706b6]{background-color:var(--color-background-base-default)!important;padding:5px 5px 10px}.v-container[data-v-c72706b6]{max-width:unset;padding-top:0;padding-bottom:10px}.grapher-info[data-v-c72706b6]{position:relative;top:-115px;height:0px}.v-expansion-panel-text .container[data-v-c72706b6]{margin:0}.v-expansion-panel-title[data-v-c72706b6]{z-index:1;min-height:10px;padding:5px}.v-navigation-drawer[data-v-c72706b6]{z-index:2}.grid[data-v-c72706b6]{position:relative;overflow-y:hidden}.item[data-v-c72706b6]{position:absolute;z-index:1;margin:0}.item.muuri-item-dragging[data-v-c72706b6]{z-index:3}.item.muuri-item-releasing[data-v-c72706b6]{z-index:2}.item.muuri-item-hidden[data-v-c72706b6]{z-index:0}.item-content[data-v-c72706b6]{position:relative;cursor:pointer;border-radius:6px;margin:6px}
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(X);const ln={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(t){return t.replaceAll(" ","-").toLowerCase()},subMenuClick(t){t.command(t),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},hn={class:"app-title mr-2"};function cn(t,e,i,r,s,n){const o=N("v-col"),a=N("v-row"),l=N("v-icon"),h=N("v-btn"),c=N("v-divider"),f=N("v-list-item-title"),v=N("v-list-item"),d=N("v-list"),m=N("v-menu"),u=N("v-radio"),p=N("v-list-item-action"),b=N("v-radio-group"),g=N("v-checkbox");return B(),z(Ui,{to:"#openc3-menu"},[L(a,{"no-gutters":""},{default:O(()=>[L(o,{"align-self":"end"},{default:O(()=>[It("span",hn,Ht(i.title),1)]),_:1})]),_:1}),L(a,{dense:"",class:"flex-nowrap"},{default:O(()=>[(B(!0),nt(vt,null,Lt(i.menus,(w,S)=>(B(),z(m,{ref_for:!0,ref:"topmenu",key:S},{activator:O(({props:E})=>[L(h,oi({ref_for:!0},E,{variant:"outlined",class:"mx-1 menu-button",text:w.label,"data-test":n.formatDT(`${i.title} ${w.label}`)}),{append:O(()=>[L(l,{class:"menu-button-icon"},{default:O(()=>[...e[0]||(e[0]=[Nt(" mdi-menu-down ",-1)])]),_:1})]),_:1},16,["text","data-test"])]),default:O(()=>[L(d,null,{default:O(()=>[(B(!0),nt(vt,null,Lt(w.items,(E,T)=>(B(),nt(vt,null,[E.divider?(B(),z(c,{key:T+"-divider"})):E.subMenu&&E.subMenu.length>0?(B(),nt("div",{key:T+"-submenu"},[(B(),z(m,{"open-on-hover":"",location:"right",key:T},{activator:O(({props:C})=>[(B(),z(v,oi({ref_for:!0},C,{disabled:E.disabled,key:T}),ai({append:O(()=>[L(l,null,{default:O(()=>[...e[1]||(e[1]=[Nt(" mdi-chevron-right ",-1)])]),_:1})]),default:O(()=>[!E.radio&&!E.checkbox?(B(),z(f,{key:0,style:li("cursor: pointer;"+(E.disabled?"opacity: 0.2":""))},{default:O(()=>[Nt(Ht(E.label),1)]),_:2},1032,["style"])):xt("",!0)]),_:2},[E.icon?{name:"prepend",fn:O(()=>[L(l,{disabled:E.disabled},{default:O(()=>[Nt(Ht(E.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:O(()=>[L(d,null,{default:O(()=>[(B(!0),nt(vt,null,Lt(E.subMenu,(C,j)=>(B(),z(v,{key:j,"prepend-icon":C.icon,onClick:I=>n.subMenuClick(C)},{default:O(()=>[L(f,null,{default:O(()=>[Nt(Ht(C.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):E.radioGroup?(B(),z(b,{"model-value":E.value,"onUpdate:modelValue":E.command,key:T+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:O(()=>[(B(!0),nt(vt,null,Lt(E.choices,(C,j)=>(B(),z(v,{key:j+"-choice"},{default:O(()=>[L(p,{class:"list-action"},{default:O(()=>[L(u,{color:"secondary",label:C.label,value:C.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(B(),z(v,{onClick:C=>E.command(E),disabled:E.disabled,"data-test":n.formatDT(`${i.title} ${w.label} ${E.label}`),key:T+"-list"},ai({default:O(()=>[E.checkbox?(B(),z(p,{key:0,class:"list-action"},{default:O(()=>[L(g,{modelValue:E.checked,"onUpdate:modelValue":C=>E.checked=C,label:E.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):xt("",!0),!E.radio&&!E.checkbox?(B(),z(f,{key:1,style:li("cursor: pointer;"+(E.disabled?"opacity: 0.2":""))},{default:O(()=>[Nt(Ht(E.label),1)]),_:2},1032,["style"])):xt("",!0)]),_:2},[E.icon?{name:"prepend",fn:O(()=>[L(l,{icon:E.icon,disabled:E.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const un=Gi(ln,[["render",cn],["__scopeId","data-v-4d454b93"]]);/**
|
3
|
+
* Muuri v0.9.5
|
4
|
+
* https://muuri.dev/
|
5
|
+
* Copyright (c) 2015-present, Haltu Oy
|
6
|
+
* Released under the MIT license
|
7
|
+
* https://github.com/haltu/muuri/blob/master/LICENSE.md
|
8
|
+
* @license MIT
|
9
|
+
*
|
10
|
+
* Muuri Packer
|
11
|
+
* Copyright (c) 2016-present, Niklas Rämö <inramo@gmail.com>
|
12
|
+
* @license MIT
|
13
|
+
*
|
14
|
+
* Muuri Ticker / Muuri Emitter / Muuri Dragger
|
15
|
+
* Copyright (c) 2018-present, Niklas Rämö <inramo@gmail.com>
|
16
|
+
* @license MIT
|
17
|
+
*
|
18
|
+
* Muuri AutoScroller
|
19
|
+
* Copyright (c) 2019-present, Niklas Rämö <inramo@gmail.com>
|
20
|
+
* @license MIT
|
21
|
+
*/var Se={},Pt=typeof Map=="function"?new Map:null,dt="swap",Mt="move",fn="synchronize",Tt="layoutStart",$i="layoutEnd",Ji="layoutAbort",Ki="add",Zi="remove",dn="showStart",_n="showEnd",ee="hideStart",pn="hideEnd",Qi="filter",tr="sort",we="move",Ee="send",At="beforeSend",xe="receive",Te="beforeReceive",mn="dragInit",gn="dragStart",vn="dragMove",yn="dragScroll",bn="dragEnd",Sn="dragReleaseStart",ie="dragReleaseEnd",wn="destroy",er="ontouchstart"in window,hi=!!window.PointerEvent,ci=!!window.navigator.msPointerEnabled,En=16777216;function lt(){this._events={},this._queue=[],this._counter=0,this._clearOnEmit=!1}lt.prototype.on=function(t,e){if(!this._events||!t||!e)return this;var i=this._events[t];return i||(i=this._events[t]=[]),i.push(e),this},lt.prototype.off=function(t,e){if(!this._events||!t||!e)return this;var i=this._events[t];if(!i||!i.length)return this;for(var r;(r=i.indexOf(e))!==-1;)i.splice(r,1);return this},lt.prototype.clear=function(t){if(!this._events||!t)return this;var e=this._events[t];return e&&(e.length=0,delete this._events[t]),this},lt.prototype.emit=function(t){if(!this._events||!t)return this._clearOnEmit=!1,this;var e=this._events[t];if(!e||!e.length)return this._clearOnEmit=!1,this;var i=this._queue,r=i.length,s=arguments.length-1,n;s>3&&(n=[],n.push.apply(n,arguments),n.shift()),i.push.apply(i,e),this._clearOnEmit&&(e.length=0,this._clearOnEmit=!1),++this._counter;for(var o=r,a=i.length;o<a;o++)if(s===0?i[o]():s===1?i[o](arguments[1]):s===2?i[o](arguments[1],arguments[2]):s===3?i[o](arguments[1],arguments[2],arguments[3]):i[o].apply(null,n),!this._events)return this;return--this._counter,this._counter||(i.length=0),this},lt.prototype.burst=function(){return this._events?(this._clearOnEmit=!0,this.emit.apply(this,arguments),this):this},lt.prototype.countListeners=function(t){if(!this._events)return 0;var e=this._events[t];return e?e.length:0},lt.prototype.destroy=function(){return this._events?(this._queue.length=this._counter=0,this._events=null,this):this};var Ae=hi?"pointerout":ci?"MSPointerOut":"",xn=100;function Dt(t){Ae&&(this._dragger=t,this._timeout=null,this._outEvent=null,this._isActive=!1,this._addBehaviour=this._addBehaviour.bind(this),this._removeBehaviour=this._removeBehaviour.bind(this),this._onTimeout=this._onTimeout.bind(this),this._resetData=this._resetData.bind(this),this._onStart=this._onStart.bind(this),this._onOut=this._onOut.bind(this),this._dragger.on("start",this._onStart))}Dt.prototype._addBehaviour=function(){this._isActive||(this._isActive=!0,this._dragger.on("move",this._resetData),this._dragger.on("cancel",this._removeBehaviour),this._dragger.on("end",this._removeBehaviour),window.addEventListener(Ae,this._onOut))},Dt.prototype._removeBehaviour=function(){this._isActive&&(this._dragger.off("move",this._resetData),this._dragger.off("cancel",this._removeBehaviour),this._dragger.off("end",this._removeBehaviour),window.removeEventListener(Ae,this._onOut),this._resetData(),this._isActive=!1)},Dt.prototype._resetData=function(){window.clearTimeout(this._timeout),this._timeout=null,this._outEvent=null},Dt.prototype._onStart=function(t){t.pointerType!=="mouse"&&this._addBehaviour()},Dt.prototype._onOut=function(t){this._dragger._getTrackedTouch(t)&&(this._resetData(),this._outEvent=t,this._timeout=window.setTimeout(this._onTimeout,xn))},Dt.prototype._onTimeout=function(){var t=this._outEvent;this._resetData(),this._dragger.isActive()&&this._dragger._onCancel(t)},Dt.prototype.destroy=function(){Ae&&(this._dragger.off("start",this._onStart),this._removeBehaviour())};var ui=["","webkit","moz","ms","o","Webkit","Moz","MS","O"],ir={};function De(t,e){var i=ir[e]||"";if(i)return i;for(var r=e[0].toUpperCase()+e.slice(1),s=0;s<ui.length;){if(i=ui[s]?ui[s]+r:e,i in t)return ir[e]=i,i;++s}return""}function rr(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}return t}var Re=window.navigator.userAgent.toLowerCase(),Tn=Re.indexOf("edge")>-1,An=Re.indexOf("trident")>-1,Dn=Re.indexOf("firefox")>-1,Rn=Re.indexOf("android")>-1,Rt=rr()?{passive:!0}:!1,sr="touchAction",Ce=De(document.documentElement.style,sr),Cn="auto";function y(t,e){this._element=t,this._emitter=new lt,this._isDestroyed=!1,this._cssProps={},this._touchAction="",this._isActive=!1,this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._onStart=this._onStart.bind(this),this._onMove=this._onMove.bind(this),this._onCancel=this._onCancel.bind(this),this._onEnd=this._onEnd.bind(this),this._edgeHack=null,(Tn||An)&&(hi||ci)&&(this._edgeHack=new Dt(this)),this.setCssProps(e),this._touchAction||this.setTouchAction(Cn),t.addEventListener("dragstart",y._preventDefault,!1),t.addEventListener(y._inputEvents.start,this._onStart,Rt)}y._pointerEvents={start:"pointerdown",move:"pointermove",cancel:"pointercancel",end:"pointerup"},y._msPointerEvents={start:"MSPointerDown",move:"MSPointerMove",cancel:"MSPointerCancel",end:"MSPointerUp"},y._touchEvents={start:"touchstart",move:"touchmove",cancel:"touchcancel",end:"touchend"},y._mouseEvents={start:"mousedown",move:"mousemove",cancel:"",end:"mouseup"},y._inputEvents=(function(){return er?y._touchEvents:hi?y._pointerEvents:ci?y._msPointerEvents:y._mouseEvents})(),y._emitter=new lt,y._emitterEvents={start:"start",move:"move",end:"end",cancel:"cancel"},y._activeInstances=[],y._preventDefault=function(t){t.preventDefault&&t.cancelable!==!1&&t.preventDefault()},y._activateInstance=function(t){var e=y._activeInstances.indexOf(t);e>-1||(y._activeInstances.push(t),y._emitter.on(y._emitterEvents.move,t._onMove),y._emitter.on(y._emitterEvents.cancel,t._onCancel),y._emitter.on(y._emitterEvents.end,t._onEnd),y._activeInstances.length===1&&y._bindListeners())},y._deactivateInstance=function(t){var e=y._activeInstances.indexOf(t);e!==-1&&(y._activeInstances.splice(e,1),y._emitter.off(y._emitterEvents.move,t._onMove),y._emitter.off(y._emitterEvents.cancel,t._onCancel),y._emitter.off(y._emitterEvents.end,t._onEnd),y._activeInstances.length||y._unbindListeners())},y._bindListeners=function(){window.addEventListener(y._inputEvents.move,y._onMove,Rt),window.addEventListener(y._inputEvents.end,y._onEnd,Rt),y._inputEvents.cancel&&window.addEventListener(y._inputEvents.cancel,y._onCancel,Rt)},y._unbindListeners=function(){window.removeEventListener(y._inputEvents.move,y._onMove,Rt),window.removeEventListener(y._inputEvents.end,y._onEnd,Rt),y._inputEvents.cancel&&window.removeEventListener(y._inputEvents.cancel,y._onCancel,Rt)},y._getEventPointerId=function(t){return typeof t.pointerId=="number"?t.pointerId:t.changedTouches?t.changedTouches[0]?t.changedTouches[0].identifier:null:1},y._getTouchById=function(t,e){if(typeof t.pointerId=="number")return t.pointerId===e?t:null;if(t.changedTouches){for(var i=0;i<t.changedTouches.length;i++)if(t.changedTouches[i].identifier===e)return t.changedTouches[i];return null}return t},y._onMove=function(t){y._emitter.emit(y._emitterEvents.move,t)},y._onCancel=function(t){y._emitter.emit(y._emitterEvents.cancel,t)},y._onEnd=function(t){y._emitter.emit(y._emitterEvents.end,t)},y.prototype._reset=function(){this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._isActive=!1,y._deactivateInstance(this)},y.prototype._createEvent=function(t,e){var i=this._getTrackedTouch(e);return{type:t,srcEvent:e,distance:this.getDistance(),deltaX:this.getDeltaX(),deltaY:this.getDeltaY(),deltaTime:t===y._emitterEvents.start?0:this.getDeltaTime(),isFirst:t===y._emitterEvents.start,isFinal:t===y._emitterEvents.end||t===y._emitterEvents.cancel,pointerType:e.pointerType||(e.touches?"touch":"mouse"),identifier:this._pointerId,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,target:i.target}},y.prototype._emit=function(t,e){this._emitter.emit(t,this._createEvent(t,e))},y.prototype._getTrackedTouch=function(t){return this._pointerId===null?null:y._getTouchById(t,this._pointerId)},y.prototype._onStart=function(t){if(!this._isDestroyed&&this._pointerId===null&&(this._pointerId=y._getEventPointerId(t),this._pointerId!==null)){var e=this._getTrackedTouch(t);this._startX=this._currentX=e.clientX,this._startY=this._currentY=e.clientY,this._startTime=Date.now(),this._isActive=!0,this._emit(y._emitterEvents.start,t),this._isActive&&y._activateInstance(this)}},y.prototype._onMove=function(t){var e=this._getTrackedTouch(t);e&&(this._currentX=e.clientX,this._currentY=e.clientY,this._emit(y._emitterEvents.move,t))},y.prototype._onCancel=function(t){this._getTrackedTouch(t)&&(this._emit(y._emitterEvents.cancel,t),this._reset())},y.prototype._onEnd=function(t){this._getTrackedTouch(t)&&(this._emit(y._emitterEvents.end,t),this._reset())},y.prototype.isActive=function(){return this._isActive},y.prototype.setTouchAction=function(t){this._touchAction=t,Ce&&(this._cssProps[Ce]="",this._element.style[Ce]=t),er&&(this._element.removeEventListener(y._touchEvents.start,y._preventDefault,!0),(this._element.style[Ce]!==t||Dn&&Rn)&&this._element.addEventListener(y._touchEvents.start,y._preventDefault,!0))},y.prototype.setCssProps=function(t){if(t){var e=this._cssProps,i=this._element,r,s;for(r in e)i.style[r]=e[r],delete e[r];for(r in t)if(t[r]){if(r===sr){this.setTouchAction(t[r]);continue}s=De(i.style,r),s&&(e[s]="",i.style[s]=t[r])}}},y.prototype.getDeltaX=function(){return this._currentX-this._startX},y.prototype.getDeltaY=function(){return this._currentY-this._startY},y.prototype.getDistance=function(){var t=this.getDeltaX(),e=this.getDeltaY();return Math.sqrt(t*t+e*e)},y.prototype.getDeltaTime=function(){return this._startTime?Date.now()-this._startTime:0},y.prototype.on=function(t,e){this._emitter.on(t,e)},y.prototype.off=function(t,e){this._emitter.off(t,e)},y.prototype.destroy=function(){if(!this._isDestroyed){var t=this._element;this._edgeHack&&this._edgeHack.destroy(),this._reset(),this._emitter.destroy(),t.removeEventListener(y._inputEvents.start,this._onStart,Rt),t.removeEventListener("dragstart",y._preventDefault,!1),t.removeEventListener(y._touchEvents.start,y._preventDefault,!0);for(var e in this._cssProps)t.style[e]=this._cssProps[e],delete this._cssProps[e];this._element=null,this._isDestroyed=!0}};var On=1e3/60,kn=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return this.setTimeout(function(){t(Date.now())},On)}).bind(window);function Oe(t){this._nextStep=null,this._lanes=[],this._stepQueue=[],this._stepCallbacks={},this._step=this._step.bind(this);for(var e=0;e<t;e++)this._lanes.push(new fi)}Oe.prototype._step=function(t){var e=this._lanes,i=this._stepQueue,r=this._stepCallbacks,s,n,o,a,l,h;for(this._nextStep=null,s=0;s<e.length;s++){for(a=e[s].queue,l=e[s].callbacks,h=e[s].indices,n=0;n<a.length;n++)o=a[n],o&&(i.push(o),r[o]=l[o],delete l[o],delete h[o]);a.length=0}for(s=0;s<i.length;s++)o=i[s],r[o]&&r[o](t),delete r[o];i.length=0},Oe.prototype.add=function(t,e,i){this._lanes[t].add(e,i),this._nextStep||(this._nextStep=kn(this._step))},Oe.prototype.remove=function(t,e){this._lanes[t].remove(e)};function fi(){this.queue=[],this.indices={},this.callbacks={}}fi.prototype.add=function(t,e){var i=this.indices[t];i!==void 0&&(this.queue[i]=void 0),this.queue.push(t),this.callbacks[t]=e,this.indices[t]=this.queue.length-1},fi.prototype.remove=function(t){var e=this.indices[t];e!==void 0&&(this.queue[e]=void 0,delete this.callbacks[t],delete this.indices[t])};var nr="layoutRead",or="layoutWrite",ar="visibilityRead",lr="visibilityWrite",hr="dragStartRead",cr="dragStartWrite",ur="dragMoveRead",fr="dragMoveWrite",dr="dragScrollRead",_r="dragScrollWrite",pr="dragSortRead",mr="placeholderLayoutRead",gr="placeholderLayoutWrite",vr="placeholderResizeWrite",yr="autoScrollRead",br="autoScrollWrite",Sr="debounceRead",J=0,wr=1,K=2,P=new Oe(3);function In(t,e,i){P.add(J,nr+t,e),P.add(K,or+t,i)}function Er(t){P.remove(J,nr+t),P.remove(K,or+t)}function Ln(t,e,i){P.add(J,ar+t,e),P.add(K,lr+t,i)}function xr(t){P.remove(J,ar+t),P.remove(K,lr+t)}function Nn(t,e,i){P.add(J,hr+t,e),P.add(K,cr+t,i)}function Tr(t){P.remove(J,hr+t),P.remove(K,cr+t)}function Pn(t,e,i){P.add(J,ur+t,e),P.add(K,fr+t,i)}function Ar(t){P.remove(J,ur+t),P.remove(K,fr+t)}function Mn(t,e,i){P.add(J,dr+t,e),P.add(K,_r+t,i)}function Dr(t){P.remove(J,dr+t),P.remove(K,_r+t)}function ke(t,e){P.add(wr,pr+t,e)}function Fn(t){P.remove(wr,pr+t)}function Bn(t,e,i){P.add(J,mr+t,e),P.add(K,gr+t,i)}function Rr(t){P.remove(J,mr+t),P.remove(K,gr+t)}function Xn(t,e){P.add(K,vr+t,e)}function Yn(t){P.remove(K,vr+t)}function Cr(t,e){P.add(J,yr,t),P.add(K,br,e)}function jn(){P.remove(J,yr),P.remove(K,br)}function Gn(t,e){P.add(J,Sr+t,e)}function Hn(t){P.remove(J,Sr+t)}var q=1,W=2,qt=4,di=8,re=q|di,se=q|qt,ne=W|di,Ie=W|qt,qn="function";function k(t){return typeof t===qn}var Le=typeof WeakMap=="function"?new WeakMap:null;function et(t,e){var i=Le&&Le.get(t);return i||(i=window.getComputedStyle(t,null),Le&&Le.set(t,i)),i.getPropertyValue(e)}function ht(t,e){return parseFloat(et(t,e))||0}var Ft=document.documentElement,Vn=document.body,Ne={value:0,offset:0};function Or(t){return t===window||t===Ft||t===Vn?window:t}function oe(t){return t===window?t.pageXOffset:t.scrollLeft}function ae(t){return t===window?t.pageYOffset:t.scrollTop}function kr(t){return t===window?Ft.scrollWidth-Ft.clientWidth:t.scrollWidth-t.clientWidth}function Ir(t){return t===window?Ft.scrollHeight-Ft.clientHeight:t.scrollHeight-t.clientHeight}function Lr(t,e){if(e=e||{},t===window)e.width=Ft.clientWidth,e.height=Ft.clientHeight,e.left=0,e.right=e.width,e.top=0,e.bottom=e.height;else{var i=t.getBoundingClientRect(),r=t.clientLeft||ht(t,"border-left-width"),s=t.clientTop||ht(t,"border-top-width");e.width=t.clientWidth,e.height=t.clientHeight,e.left=i.left+r,e.right=e.left+e.width,e.top=i.top+s,e.bottom=e.top+e.height}return e}function le(t){return t._drag._getGrid()._settings.dragAutoScroll}function Un(t){t._drag&&t._drag._prepareScroll()}function zn(t){if(!(!t._drag||!t._isActive)){var e=t._drag;e._scrollDiffX=e._scrollDiffY=0,t._setTranslate(e._left,e._top)}}function _i(t,e,i,r){return Ne.value=Math.min(r/2,t),Ne.offset=Math.max(0,i+Ne.value*2+r*e-r)/2,Ne}function yt(){this.reset()}yt.prototype.reset=function(){this.isActive&&this.onStop(),this.item=null,this.element=null,this.isActive=!1,this.isEnding=!1,this.direction=null,this.value=null,this.maxValue=0,this.threshold=0,this.distance=0,this.speed=0,this.duration=0,this.action=null},yt.prototype.hasReachedEnd=function(){return qt&this.direction?this.value>=this.maxValue:this.value<=0},yt.prototype.computeCurrentScrollValue=function(){return this.value===null?q&this.direction?oe(this.element):ae(this.element):Math.max(0,Math.min(this.value,this.maxValue))},yt.prototype.computeNextScrollValue=function(t){var e=this.speed*(t/1e3),i=qt&this.direction?this.value+e:this.value-e;return Math.max(0,Math.min(i,this.maxValue))},yt.prototype.computeSpeed=(function(){var t={direction:null,threshold:0,distance:0,value:0,maxValue:0,deltaTime:0,duration:0,isEnding:!1};return function(e){var i=this.item,r=le(i).speed;return k(r)?(t.direction=this.direction,t.threshold=this.threshold,t.distance=this.distance,t.value=this.value,t.maxValue=this.maxValue,t.duration=this.duration,t.speed=this.speed,t.deltaTime=e,t.isEnding=this.isEnding,r(i,this.element,t)):r}})(),yt.prototype.tick=function(t){return this.isActive||(this.isActive=!0,this.onStart()),this.value=this.computeCurrentScrollValue(),this.speed=this.computeSpeed(t),this.value=this.computeNextScrollValue(t),this.duration+=t,this.value},yt.prototype.onStart=function(){var t=this.item,e=le(t).onStart;k(e)&&e(t,this.element,this.direction)},yt.prototype.onStop=function(){var t=this.item,e=le(t).onStop;k(e)&&e(t,this.element,this.direction),t._drag&&t._drag.sort()};function Vt(){this.element=null,this.requestX=null,this.requestY=null,this.scrollLeft=0,this.scrollTop=0}Vt.prototype.reset=function(){this.requestX&&(this.requestX.action=null),this.requestY&&(this.requestY.action=null),this.element=null,this.requestX=null,this.requestY=null,this.scrollLeft=0,this.scrollTop=0},Vt.prototype.addRequest=function(t){q&t.direction?(this.removeRequest(this.requestX),this.requestX=t):(this.removeRequest(this.requestY),this.requestY=t),t.action=this},Vt.prototype.removeRequest=function(t){t&&(this.requestX===t?(this.requestX=null,t.action=null):this.requestY===t&&(this.requestY=null,t.action=null))},Vt.prototype.computeScrollValues=function(){this.scrollLeft=this.requestX?this.requestX.value:oe(this.element),this.scrollTop=this.requestY?this.requestY.value:ae(this.element)},Vt.prototype.scroll=function(){var t=this.element;t&&(t.scrollTo?t.scrollTo(this.scrollLeft,this.scrollTop):(t.scrollLeft=this.scrollLeft,t.scrollTop=this.scrollTop))};function he(t,e){this.pool=[],this.createItem=t,this.releaseItem=e}he.prototype.pick=function(){return this.pool.pop()||this.createItem()},he.prototype.release=function(t){this.releaseItem(t),this.pool.indexOf(t)===-1&&this.pool.push(t)},he.prototype.reset=function(){this.pool.length=0};function Wn(t,e){return!(t.left+t.width<=e.left||e.left+e.width<=t.left||t.top+t.height<=e.top||e.top+e.height<=t.top)}function $n(t,e){if(!Wn(t,e))return 0;var i=Math.min(t.left+t.width,e.left+e.width)-Math.max(t.left,e.left),r=Math.min(t.top+t.height,e.top+e.height)-Math.max(t.top,e.top);return i*r}function Pe(t,e){var i=$n(t,e);if(!i)return 0;var r=Math.min(t.width,e.width)*Math.min(t.height,e.height);return i/r*100}var Nr={width:0,height:0,left:0,right:0,top:0,bottom:0},Pr={width:0,height:0,left:0,right:0,top:0,bottom:0};function M(){this._isDestroyed=!1,this._isTicking=!1,this._tickTime=0,this._tickDeltaTime=0,this._items=[],this._actions=[],this._requests={},this._requests[q]={},this._requests[W]={},this._requestOverlapCheck={},this._dragPositions={},this._dragDirections={},this._overlapCheckInterval=150,this._requestPool=new he(function(){return new yt},function(t){t.reset()}),this._actionPool=new he(function(){return new Vt},function(t){t.reset()}),this._readTick=this._readTick.bind(this),this._writeTick=this._writeTick.bind(this)}M.AXIS_X=q,M.AXIS_Y=W,M.FORWARD=qt,M.BACKWARD=di,M.LEFT=re,M.RIGHT=se,M.UP=ne,M.DOWN=Ie,M.smoothSpeed=function(t,e,i){return function(r,s,n){var o=0;if(!n.isEnding)if(n.threshold>0){var a=n.threshold-Math.max(0,n.distance);o=t/n.threshold*a}else o=t;var l=n.speed,h=o;return l===o?h:l<o?(h=l+e*(n.deltaTime/1e3),Math.min(o,h)):(h=l-i*(n.deltaTime/1e3),Math.max(o,h))}},M.pointerHandle=function(t){var e={left:0,top:0,width:0,height:0},i=t||1;return function(r,s,n,o,a,l,h){return e.left=l-i*.5,e.top=h-i*.5,e.width=i,e.height=i,e}},M.prototype._readTick=function(t){this._isDestroyed||(t&&this._tickTime?(this._tickDeltaTime=t-this._tickTime,this._tickTime=t,this._updateRequests(),this._updateActions()):(this._tickTime=t,this._tickDeltaTime=0))},M.prototype._writeTick=function(){this._isDestroyed||(this._applyActions(),Cr(this._readTick,this._writeTick))},M.prototype._startTicking=function(){this._isTicking=!0,Cr(this._readTick,this._writeTick)},M.prototype._stopTicking=function(){this._isTicking=!1,this._tickTime=0,this._tickDeltaTime=0,jn()},M.prototype._getItemHandleRect=function(t,e,i){var r=t._drag;if(e){var s=r._dragMoveEvent||r._dragStartEvent,n=e(t,r._clientX,r._clientY,t._width,t._height,s.clientX,s.clientY);i.left=n.left,i.top=n.top,i.width=n.width,i.height=n.height}else i.left=r._clientX,i.top=r._clientY,i.width=t._width,i.height=t._height;return i.right=i.left+i.width,i.bottom=i.top+i.height,i},M.prototype._requestItemScroll=function(t,e,i,r,s,n,o){var a=this._requests[e],l=a[t._id];l?(l.element!==i||l.direction!==r)&&l.reset():l=this._requestPool.pick(),l.item=t,l.element=i,l.direction=r,l.threshold=s,l.distance=n,l.maxValue=o,a[t._id]=l},M.prototype._cancelItemScroll=function(t,e){var i=this._requests[e],r=i[t._id];r&&(r.action&&r.action.removeRequest(r),this._requestPool.release(r),delete i[t._id])},M.prototype._checkItemOverlap=function(t,e,i){var r=le(t),s=k(r.targets)?r.targets(t):r.targets,n=r.threshold,o=r.safeZone;if(!s||!s.length){e&&this._cancelItemScroll(t,q),i&&this._cancelItemScroll(t,W);return}var a=this._dragDirections[t._id],l=a[0],h=a[1];if(!l&&!h){e&&this._cancelItemScroll(t,q),i&&this._cancelItemScroll(t,W);return}for(var c=this._getItemHandleRect(t,r.handle,Nr),f=Pr,v=null,d=null,m=!0,u=!0,p=0,b=0,g=null,w=null,S=0,E=0,T=0,C=null,j=-1/0,I=0,st=0,Y=null,U=0,G=0,x=null,F=-1/0,at=0,$=0,Et=null,ri=0,ft=0,gt=0;gt<s.length;gt++)v=s[gt],m=e&&l&&v.axis!==W,u=i&&h&&v.axis!==q,b=v.priority||0,!((!m||b<j)&&(!u||b<F))&&(d=Or(v.element||v),E=m?kr(d):-1,T=u?Ir(d):-1,!(!E&&!T)&&(f=Lr(d,f),p=Pe(c,f),!(p<=0)&&(m&&b>=j&&E>0&&(b>j||p>st)&&(w=null,g=_i(typeof v.threshold=="number"?v.threshold:n,o,c.width,f.width),l===se?(S=f.right+g.offset-c.right,S<=g.value&&oe(d)<E&&(w=se)):l===re&&(S=c.left-(f.left-g.offset),S<=g.value&&oe(d)>0&&(w=re)),w!==null&&(C=d,j=b,I=g.value,st=p,Y=w,U=S,G=E)),u&&b>=F&&T>0&&(b>F||p>$)&&(w=null,g=_i(typeof v.threshold=="number"?v.threshold:n,o,c.height,f.height),h===Ie?(S=f.bottom+g.offset-c.bottom,S<=g.value&&ae(d)<T&&(w=Ie)):h===ne&&(S=c.top-(f.top-g.offset),S<=g.value&&ae(d)>0&&(w=ne)),w!==null&&(x=d,F=b,at=g.value,$=p,Et=w,ri=S,ft=T)))));e&&(C?this._requestItemScroll(t,q,C,Y,I,U,G):this._cancelItemScroll(t,q)),i&&(x?this._requestItemScroll(t,W,x,Et,at,ri,ft):this._cancelItemScroll(t,W))},M.prototype._updateScrollRequest=function(t){for(var e=t.item,i=le(e),r=k(i.targets)?i.targets(e):i.targets,s=r&&r.length||0,n=i.threshold,o=i.safeZone,a=this._getItemHandleRect(e,i.handle,Nr),l=Pr,h=null,c=null,f=!1,v=null,d=null,m=null,u=null,p=null,b=null,g=0;g<s;g++)if(h=r[g],c=Or(h.element||h),c===t.element){if(f=!!(q&t.direction),f){if(h.axis===W)continue}else if(h.axis===q)continue;if(p=f?kr(c):Ir(c),p<=0||(l=Lr(c,l),v=Pe(a,l),v<=0)||(d=_i(typeof h.threshold=="number"?h.threshold:n,o,f?a.width:a.height,f?l.width:l.height),t.direction===re?m=a.left-(l.left-d.offset):t.direction===se?m=l.right+d.offset-a.right:t.direction===ne?m=a.top-(l.top-d.offset):m=l.bottom+d.offset-a.bottom,m>d.value)||(u=f?oe(c):ae(c),b=qt&t.direction?u>=p:u<=0,b))break;return t.maxValue=p,t.threshold=d.value,t.distance=m,t.isEnding=!1,!0}return i.smoothStop===!0&&t.speed>0?(b===null&&(b=t.hasReachedEnd()),t.isEnding=!b):t.isEnding=!1,t.isEnding},M.prototype._updateRequests=function(){for(var t=this._items,e=this._requests[q],i=this._requests[W],r,s,n,o,a,l,h,c=0;c<t.length;c++)r=t[c],o=this._requestOverlapCheck[r._id],a=o>0&&this._tickTime-o>this._overlapCheckInterval,l=!0,s=e[r._id],s&&s.isActive&&(l=!this._updateScrollRequest(s),l&&(a=!0,this._cancelItemScroll(r,q))),h=!0,n=i[r._id],n&&n.isActive&&(h=!this._updateScrollRequest(n),h&&(a=!0,this._cancelItemScroll(r,W))),a&&(this._requestOverlapCheck[r._id]=0,this._checkItemOverlap(r,l,h))},M.prototype._requestAction=function(t,e){for(var i=this._actions,r=e===q,s=null,n=0;n<i.length;n++){if(s=i[n],t.element!==s.element){s=null;continue}if(r?s.requestX:s.requestY){this._cancelItemScroll(t.item,e);return}break}s||(s=this._actionPool.pick()),s.element=t.element,s.addRequest(t),t.tick(this._tickDeltaTime),i.push(s)},M.prototype._updateActions=function(){var t=this._items,e=this._requests,i=this._actions,r,s,n,o;for(o=0;o<t.length;o++)r=t[o]._id,s=e[q][r],n=e[W][r],s&&this._requestAction(s,q),n&&this._requestAction(n,W);for(o=0;o<i.length;o++)i[o].computeScrollValues()},M.prototype._applyActions=function(){var t=this._actions,e=this._items,i;if(t.length){for(i=0;i<t.length;i++)t[i].scroll(),this._actionPool.release(t[i]);for(t.length=0,i=0;i<e.length;i++)Un(e[i]);for(i=0;i<e.length;i++)zn(e[i])}},M.prototype._updateDragDirection=function(t){var e=this._dragPositions[t._id],i=this._dragDirections[t._id],r=t._drag._left,s=t._drag._top;if(e.length){var n=e[0],o=e[1];i[0]=r>n?se:r<n?re:i[0]||0,i[1]=s>o?Ie:s<o?ne:i[1]||0}e[0]=r,e[1]=s},M.prototype.addItem=function(t){if(!this._isDestroyed){var e=this._items.indexOf(t);e===-1&&(this._items.push(t),this._requestOverlapCheck[t._id]=this._tickTime,this._dragDirections[t._id]=[0,0],this._dragPositions[t._id]=[],this._isTicking||this._startTicking())}},M.prototype.updateItem=function(t){this._isDestroyed||this._dragDirections[t._id]&&(this._updateDragDirection(t),this._requestOverlapCheck[t._id]||(this._requestOverlapCheck[t._id]=this._tickTime))},M.prototype.removeItem=function(t){if(!this._isDestroyed){var e=this._items.indexOf(t);if(e!==-1){var i=t._id,r=this._requests[q][i];r&&(this._cancelItemScroll(t,q),delete this._requests[q][i]);var s=this._requests[W][i];s&&(this._cancelItemScroll(t,W),delete this._requests[W][i]),delete this._requestOverlapCheck[i],delete this._dragPositions[i],delete this._dragDirections[i],this._items.splice(e,1),this._isTicking&&!this._items.length&&this._stopTicking()}}},M.prototype.isItemScrollingX=function(t){var e=this._requests[q][t._id];return!!(e&&e.isActive)},M.prototype.isItemScrollingY=function(t){var e=this._requests[W][t._id];return!!(e&&e.isActive)},M.prototype.isItemScrolling=function(t){return this.isItemScrollingX(t)||this.isItemScrollingY(t)},M.prototype.destroy=function(){if(!this._isDestroyed){for(var t=this._items.slice(0),e=0;e<t.length;e++)this.removeItem(t[e]);this._actions.length=0,this._requestPool.reset(),this._actionPool.reset(),this._isDestroyed=!0}};var Ut=window.Element.prototype,Jn=Ut.matches||Ut.matchesSelector||Ut.webkitMatchesSelector||Ut.mozMatchesSelector||Ut.msMatchesSelector||Ut.oMatchesSelector||function(){return!1};function Me(t,e){return Jn.call(t,e)}function ot(t,e){e&&(t.classList?t.classList.add(e):Me(t,"."+e)||(t.className+=" "+e))}var Mr=[],Kn="number";function pi(t,e,i){var r=typeof i===Kn?i:-1;r<0&&(r=t.length-r+1),t.splice.apply(t,Mr.concat(r,0,e)),Mr.length=0}function zt(t,e,i){var r=Math.max(0,t.length-1+(i||0));return e>r?r:e<0?Math.max(r+e+1,0):e}function Fr(t,e,i){if(!(t.length<2)){var r=zt(t,e),s=zt(t,i);r!==s&&t.splice(s,0,t.splice(r,1)[0])}}function Br(t,e,i){if(!(t.length<2)){var r=zt(t,e),s=zt(t,i),n;r!==s&&(n=t[r],t[r]=t[s],t[s]=n)}}var _t=De(document.documentElement.style,"transform")||"transform",Zn=/([A-Z])/g,Qn=/^(webkit-|moz-|ms-|o-)/,to=/^(-m-s-)/;function mi(t){var e=t.replace(Zn,"-$1").toLowerCase();return e=e.replace(Qn,"-$1"),e=e.replace(to,"-ms-"),e}var Xr=mi(_t),eo="none",io="inline",ro="none",so="display";function no(t){var e=et(t,Xr);if(!e||e===eo)return!1;var i=et(t,so);return!(i===io||i===ro)}function gi(t){for(var e=document,i=t||e;i&&i!==e&&et(i,"position")==="static"&&!no(i);)i=i.parentElement||e;return i}var vi={},yi={},Bt={};function Yr(t,e){var i=e||{},r;return i.left=0,i.top=0,t===document||(i.left=window.pageXOffset||0,i.top=window.pageYOffset||0,t.self===window.self)||(r=t.getBoundingClientRect(),i.left+=r.left,i.top+=r.top,i.left+=ht(t,"border-left-width"),i.top+=ht(t,"border-top-width")),i}function Wt(t,e,i){return Bt.left=0,Bt.top=0,t===e||i&&(t=gi(t),e=gi(e),t===e)||(Yr(t,vi),Yr(e,yi),Bt.left=yi.left-vi.left,Bt.top=yi.top-vi.top),Bt}function bi(t){return t==="auto"||t==="scroll"||t==="overlay"}function oo(t){return bi(et(t,"overflow"))||bi(et(t,"overflow-x"))||bi(et(t,"overflow-y"))}function jr(t,e){for(e=e||[];t&&t!==document;){if(t.getRootNode&&t instanceof DocumentFragment){t=t.getRootNode().host;continue}oo(t)&&e.push(t),t=t.parentNode}return e.push(window),e}var $t={},ao="none",lo=/^matrix3d/,ho=/([^,]*,){4}/,co=/([^,]*,){12}/,uo=/[^,]*,/;function bt(t){$t.x=0,$t.y=0;var e=et(t,Xr);if(!e||e===ao)return $t;var i=lo.test(e),r=e.replace(i?co:ho,""),s=r.replace(uo,"");return $t.x=parseFloat(r)||0,$t.y=parseFloat(s)||0,$t}function Z(t,e){e&&(t.classList?t.classList.remove(e):Me(t,"."+e)&&(t.className=(" "+t.className+" ").replace(" "+e+" "," ").trim()))}var fo=/^(iPad|iPhone|iPod)/.test(window.navigator.platform)||/^Mac/.test(window.navigator.platform)&&window.navigator.maxTouchPoints>1,Fe=0,Si=1,Be=2,Gr=rr()?{passive:!0}:!1;function A(t){var e=t._element,i=t.getGrid(),r=i._settings;this._item=t,this._gridId=i._id,this._isDestroyed=!1,this._isMigrating=!1,this._startPredicate=k(r.dragStartPredicate)?r.dragStartPredicate:A.defaultStartPredicate,this._startPredicateState=Fe,this._startPredicateResult=void 0,this._isSortNeeded=!1,this._sortTimer=void 0,this._blockedSortIndex=null,this._sortX1=0,this._sortX2=0,this._sortY1=0,this._sortY2=0,this._reset(),this._preStartCheck=this._preStartCheck.bind(this),this._preEndCheck=this._preEndCheck.bind(this),this._onScroll=this._onScroll.bind(this),this._prepareStart=this._prepareStart.bind(this),this._applyStart=this._applyStart.bind(this),this._prepareMove=this._prepareMove.bind(this),this._applyMove=this._applyMove.bind(this),this._prepareScroll=this._prepareScroll.bind(this),this._applyScroll=this._applyScroll.bind(this),this._handleSort=this._handleSort.bind(this),this._handleSortDelayed=this._handleSortDelayed.bind(this),this._handle=r.dragHandle&&e.querySelector(r.dragHandle)||e,this._dragger=new y(this._handle,r.dragCssProps),this._dragger.on("start",this._preStartCheck),this._dragger.on("move",this._preStartCheck),this._dragger.on("cancel",this._preEndCheck),this._dragger.on("end",this._preEndCheck)}A.autoScroller=new M,A.defaultStartPredicate=function(t,e,i){var r=t._drag;if(e.isFirst&&e.srcEvent.button||!fo&&e.isFirst&&e.srcEvent.isTrusted===!0&&e.srcEvent.defaultPrevented===!1&&e.srcEvent.cancelable===!1)return!1;if(e.isFinal){r._finishStartPredicate(e);return}var s=r._startPredicateData;if(!s){var n=i||r._getGrid()._settings.dragStartPredicate||{};r._startPredicateData=s={distance:Math.max(n.distance,0)||0,delay:Math.max(n.delay,0)||0}}return s.delay&&(s.event=e,s.delayTimer||(s.delayTimer=window.setTimeout(function(){s.delay=0,r._resolveStartPredicate(s.event)&&(r._forceResolveStartPredicate(s.event),r._resetStartPredicate())},s.delay))),r._resolveStartPredicate(e)},A.defaultSortPredicate=(function(){var t={},e={},i={},r=[],s=1,n=100;function o(a,l,h){var c=null,f=l._settings.dragSort,v=-1,d,m,u,p,b,g,w,S,E,T;if(f===!0?(r[0]=l,m=r):k(f)&&(m=f.call(l,a)),!m||!Array.isArray(m)||!m.length)return c;for(T=0;T<m.length;T++)if(u=m[T],!u._isDestroyed){for(u._updateBoundingRect(),g=Math.max(0,u._left),w=Math.max(0,u._top),S=Math.min(window.innerWidth,u._right),E=Math.min(window.innerHeight,u._bottom),p=u._element.parentNode;p&&p!==document&&p!==document.documentElement&&p!==document.body;){if(p.getRootNode&&p instanceof DocumentFragment){p=p.getRootNode().host;continue}if(et(p,"overflow")!=="visible"&&(b=p.getBoundingClientRect(),g=Math.max(g,b.left),w=Math.max(w,b.top),S=Math.min(S,b.right),E=Math.min(E,b.bottom)),et(p,"position")==="fixed")break;p=p.parentNode}g>=S||w>=E||(e.left=g,e.top=w,e.width=S-g,e.height=E-w,d=Pe(t,e),d>h&&d>v&&(v=d,c=u))}return r.length=0,c}return function(a,l){var h=a._drag,c=h._getGrid(),f=l&&typeof l.threshold=="number"?l.threshold:50,v=l&&l.action===dt?dt:Mt,d=l&&l.migrateAction===dt?dt:Mt;f=Math.min(Math.max(f,s),n),t.width=a._width,t.height=a._height,t.left=h._clientX,t.top=h._clientY;var m=o(a,c,f);if(!m)return null;var u=a.getGrid()!==m,p=0,b=0,g=0,w=-1,S=!1,E,T,C;for(m===c?(t.left=h._gridX+a._marginLeft,t.top=h._gridY+a._marginTop):(m._updateBorders(1,0,1,0),p=m._left+m._borderLeft,b=m._top+m._borderTop),C=0;C<m._items.length;C++)E=m._items[C],!(!E._isActive||E===a)&&(S=!0,e.width=E._width,e.height=E._height,e.left=E._left+E._marginLeft+p,e.top=E._top+E._marginTop+b,T=Pe(t,e),T>g&&(w=C,g=T));return u&&g<f&&(w=S?w:0,g=f),g>=f?(i.grid=m,i.index=w,i.action=u?d:v,i):null}})(),A.prototype.stop=function(){if(this._isActive){if(this._isMigrating){this._finishMigration();return}var t=this._item,e=t._id;if(A.autoScroller.removeItem(t),Tr(e),Ar(e),Dr(e),this._cancelSort(),this._isStarted){this._unbindScrollListeners();var i=t._element,r=this._getGrid(),s=r._settings.itemDraggingClass;i.parentNode!==r._element&&(r._element.appendChild(i),t._setTranslate(this._gridX,this._gridY),s&&i.clientWidth),Z(i,s)}this._reset()}},A.prototype.sort=function(t){var e=this._item;this._isActive&&e._isActive&&this._dragMoveEvent&&(t===!0?this._handleSort():ke(e._id,this._handleSort))},A.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._dragger.destroy(),A.autoScroller.removeItem(this._item),this._isDestroyed=!0)},A.prototype._getGrid=function(){return Se[this._gridId]||null},A.prototype._reset=function(){this._isActive=!1,this._isStarted=!1,this._container=null,this._containingBlock=null,this._dragStartEvent=null,this._dragMoveEvent=null,this._dragPrevMoveEvent=null,this._scrollEvent=null,this._scrollers=[],this._left=0,this._top=0,this._gridX=0,this._gridY=0,this._clientX=0,this._clientY=0,this._scrollDiffX=0,this._scrollDiffY=0,this._moveDiffX=0,this._moveDiffY=0,this._containerDiffX=0,this._containerDiffY=0},A.prototype._bindScrollListeners=function(){var t=this._getGrid()._element,e=this._container,i=this._scrollers,r,s;if(i.length=0,jr(this._item._element.parentNode,i),e!==t)for(r=[],jr(t,r),s=0;s<r.length;s++)i.indexOf(r[s])<0&&i.push(r[s]);for(s=0;s<i.length;s++)i[s].addEventListener("scroll",this._onScroll,Gr)},A.prototype._unbindScrollListeners=function(){var t=this._scrollers,e;for(e=0;e<t.length;e++)t[e].removeEventListener("scroll",this._onScroll,Gr);t.length=0},A.prototype._resolveStartPredicate=function(t){var e=this._startPredicateData;if(!(t.distance<e.distance||e.delay))return this._resetStartPredicate(),!0},A.prototype._forceResolveStartPredicate=function(t){!this._isDestroyed&&this._startPredicateState===Si&&(this._startPredicateState=Be,this._onStart(t))},A.prototype._finishStartPredicate=function(t){var e=this._item._element,i=Math.abs(t.deltaX)<2&&Math.abs(t.deltaY)<2&&t.deltaTime<200;this._resetStartPredicate(),i&&_o(e)},A.prototype._resetHeuristics=function(t,e){this._blockedSortIndex=null,this._sortX1=this._sortX2=t,this._sortY1=this._sortY2=e},A.prototype._checkHeuristics=function(t,e){var i=this._getGrid()._settings.dragSortHeuristics,r=i.minDragDistance;if(r<=0)return this._blockedSortIndex=null,!0;var s=t-this._sortX2,n=e-this._sortY2,o=r>3&&i.minBounceBackAngle>0;if(o||(this._blockedSortIndex=null),Math.abs(s)>r||Math.abs(n)>r){if(o){var a=Math.atan2(s,n),l=Math.atan2(this._sortX2-this._sortX1,this._sortY2-this._sortY1),h=Math.atan2(Math.sin(a-l),Math.cos(a-l));Math.abs(h)>i.minBounceBackAngle&&(this._blockedSortIndex=null)}return this._sortX1=this._sortX2,this._sortY1=this._sortY2,this._sortX2=t,this._sortY2=e,!0}return!1},A.prototype._resetStartPredicate=function(){var t=this._startPredicateData;t&&(t.delayTimer&&(t.delayTimer=window.clearTimeout(t.delayTimer)),this._startPredicateData=null)},A.prototype._handleSort=function(){if(this._isActive){var t=this._getGrid()._settings;if(!t.dragSort||!t.dragAutoScroll.sortDuringScroll&&A.autoScroller.isItemScrolling(this._item)){this._sortX1=this._sortX2=this._gridX,this._sortY1=this._sortY2=this._gridY,this._isSortNeeded=!0,this._sortTimer!==void 0&&(this._sortTimer=window.clearTimeout(this._sortTimer));return}var e=this._checkHeuristics(this._gridX,this._gridY);if(!(!this._isSortNeeded&&!e)){var i=t.dragSortHeuristics.sortInterval;i<=0||this._isSortNeeded?(this._isSortNeeded=!1,this._sortTimer!==void 0&&(this._sortTimer=window.clearTimeout(this._sortTimer)),this._checkOverlap()):this._sortTimer===void 0&&(this._sortTimer=window.setTimeout(this._handleSortDelayed,i))}}},A.prototype._handleSortDelayed=function(){this._isSortNeeded=!0,this._sortTimer=void 0,ke(this._item._id,this._handleSort)},A.prototype._cancelSort=function(){this._isSortNeeded=!1,this._sortTimer!==void 0&&(this._sortTimer=window.clearTimeout(this._sortTimer)),Fn(this._item._id)},A.prototype._finishSort=function(){var t=this._getGrid()._settings.dragSort,e=t&&(this._isSortNeeded||this._sortTimer!==void 0);this._cancelSort(),e&&this._checkOverlap()},A.prototype._checkOverlap=function(){if(this._isActive){var t=this._item,e=this._getGrid()._settings,i,r,s,n,o,a,l,h;k(e.dragSortPredicate)?i=e.dragSortPredicate(t,this._dragMoveEvent):i=A.defaultSortPredicate(t,e.dragSortPredicate),!(!i||typeof i.index!="number")&&(l=i.action===dt?dt:Mt,r=t.getGrid(),n=i.grid||r,h=r!==n,s=r._items.indexOf(t),o=zt(n._items,i.index,h&&l===Mt?1:0),!(!h&&o===this._blockedSortIndex)&&(h?(this._blockedSortIndex=null,a=n._items[o],r._hasListeners(At)&&r._emit(At,{item:t,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),n._hasListeners(Te)&&n._emit(Te,{item:t,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),t._gridId=n._id,this._isMigrating=t._gridId!==this._gridId,r._items.splice(s,1),pi(n._items,t,o),t._sortData=null,r._hasListeners(Ee)&&r._emit(Ee,{item:t,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),n._hasListeners(xe)&&n._emit(xe,{item:t,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),l===dt&&a&&a.isActive()&&n._items.indexOf(a)>-1&&n.send(a,r,s,{appendTo:this._container||document.body,layoutSender:!1,layoutReceiver:!1}),r.layout(),n.layout()):s!==o&&(this._blockedSortIndex=s,(l===dt?Br:Fr)(r._items,s,o),r._hasListeners(we)&&r._emit(we,{item:t,fromIndex:s,toIndex:o,action:l}),r.layout())))}},A.prototype._finishMigration=function(){var t=this._item,e=t._dragRelease,i=t._element,r=t._isActive,s=t.getGrid(),n=s._element,o=s._settings,a=o.dragContainer||n,l=this._getGrid()._settings,h=i.parentNode,c=r?l.itemVisibleClass:l.itemHiddenClass,f=r?o.itemVisibleClass:o.itemHiddenClass,v,d;this._isMigrating=!1,this.destroy(),l.itemClass!==o.itemClass&&(Z(i,l.itemClass),ot(i,o.itemClass)),c!==f&&(Z(i,c),ot(i,f)),a!==h&&(a.appendChild(i),d=Wt(h,a,!0),v=bt(i),v.x-=d.left,v.y-=d.top),t._refreshDimensions(),d=Wt(a,n,!0),e._containerDiffX=d.left,e._containerDiffY=d.top,t._drag=o.dragEnabled?new A(t):null,a!==h&&t._setTranslate(v.x,v.y),t._visibility.setStyles(r?o.visibleStyles:o.hiddenStyles),e.start()},A.prototype._preStartCheck=function(t){this._startPredicateState===Fe&&(this._startPredicateState=Si),this._startPredicateState===Si?(this._startPredicateResult=this._startPredicate(this._item,t),this._startPredicateResult===!0?(this._startPredicateState=Be,this._onStart(t)):this._startPredicateResult===!1&&(this._resetStartPredicate(t),this._dragger._reset(),this._startPredicateState=Fe)):this._startPredicateState===Be&&this._isActive&&this._onMove(t)},A.prototype._preEndCheck=function(t){var e=this._startPredicateState===Be;this._startPredicate(this._item,t),this._startPredicateState=Fe,!(!e||!this._isActive)&&(this._isStarted?this._onEnd(t):this.stop())},A.prototype._onStart=function(t){var e=this._item;e._isActive&&(this._isActive=!0,this._dragStartEvent=t,A.autoScroller.addItem(e),Nn(e._id,this._prepareStart,this._applyStart))},A.prototype._prepareStart=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=t._element,i=this._getGrid(),r=i._settings,s=i._element,n=r.dragContainer||s,o=gi(n),a=bt(e),l=e.getBoundingClientRect(),h=n!==s;if(this._container=n,this._containingBlock=o,this._clientX=l.left,this._clientY=l.top,this._left=this._gridX=a.x,this._top=this._gridY=a.y,this._scrollDiffX=this._scrollDiffY=0,this._moveDiffX=this._moveDiffY=0,this._resetHeuristics(this._gridX,this._gridY),h){var c=Wt(o,s);this._containerDiffX=c.left,this._containerDiffY=c.top}}}},A.prototype._applyStart=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=this._getGrid(),i=t._element,r=t._dragRelease,s=t._migrate,n=this._container!==e._element;t.isPositioning()&&t._layout.stop(!0,this._left,this._top),s._isActive&&(this._left-=s._containerDiffX,this._top-=s._containerDiffY,this._gridX-=s._containerDiffX,this._gridY-=s._containerDiffY,s.stop(!0,this._left,this._top)),t.isReleasing()&&r._reset(),e._settings.dragPlaceholder.enabled&&t._dragPlaceholder.create(),this._isStarted=!0,e._emit(mn,t,this._dragStartEvent),n&&(i.parentNode===this._container?(this._gridX-=this._containerDiffX,this._gridY-=this._containerDiffY):(this._left+=this._containerDiffX,this._top+=this._containerDiffY,this._container.appendChild(i),t._setTranslate(this._left,this._top))),ot(i,e._settings.itemDraggingClass),this._bindScrollListeners(),e._emit(gn,t,this._dragStartEvent)}}},A.prototype._onMove=function(t){var e=this._item;if(!e._isActive){this.stop();return}this._dragMoveEvent=t,Pn(e._id,this._prepareMove,this._applyMove),ke(e._id,this._handleSort)},A.prototype._prepareMove=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=this._getGrid()._settings,i=e.dragAxis,r=this._dragMoveEvent,s=this._dragPrevMoveEvent||this._dragStartEvent||r;if(i!=="y"){var n=r.clientX-s.clientX;this._left=this._left-this._moveDiffX+n,this._gridX=this._gridX-this._moveDiffX+n,this._clientX=this._clientX-this._moveDiffX+n,this._moveDiffX=n}if(i!=="x"){var o=r.clientY-s.clientY;this._top=this._top-this._moveDiffY+o,this._gridY=this._gridY-this._moveDiffY+o,this._clientY=this._clientY-this._moveDiffY+o,this._moveDiffY=o}this._dragPrevMoveEvent=r}}},A.prototype._applyMove=function(){if(this._isActive){var t=this._item;t._isActive&&(this._moveDiffX=this._moveDiffY=0,t._setTranslate(this._left,this._top),this._getGrid()._emit(vn,t,this._dragMoveEvent),A.autoScroller.updateItem(t))}},A.prototype._onScroll=function(t){var e=this._item;if(!e._isActive){this.stop();return}this._scrollEvent=t,Mn(e._id,this._prepareScroll,this._applyScroll),ke(e._id,this._handleSort)},A.prototype._prepareScroll=function(){if(this._isActive){var t=this._item;if(t._isActive){var e=t._element,i=this._getGrid(),r=i._element,s=e.getBoundingClientRect();if(this._container!==r){var n=Wt(this._containingBlock,r);this._containerDiffX=n.left,this._containerDiffY=n.top}var o=this._clientX-this._moveDiffX-s.left;this._left=this._left-this._scrollDiffX+o,this._scrollDiffX=o;var a=this._clientY-this._moveDiffY-s.top;this._top=this._top-this._scrollDiffY+a,this._scrollDiffY=a,this._gridX=this._left-this._containerDiffX,this._gridY=this._top-this._containerDiffY}}},A.prototype._applyScroll=function(){if(this._isActive){var t=this._item;t._isActive&&(this._scrollDiffX=this._scrollDiffY=0,t._setTranslate(this._left,this._top),this._getGrid()._emit(yn,t,this._scrollEvent))}},A.prototype._onEnd=function(t){var e=this._item,i=e._element,r=this._getGrid(),s=r._settings,n=e._dragRelease;if(!e._isActive){this.stop();return}Tr(e._id),Ar(e._id),Dr(e._id),this._finishSort(),this._unbindScrollListeners(),n._containerDiffX=this._containerDiffX,n._containerDiffY=this._containerDiffY,this._reset(),Z(i,s.itemDraggingClass),A.autoScroller.removeItem(e),r._emit(bn,e,t),this._isMigrating?this._finishMigration():n.start()};function _o(t){if(t.tagName.toLowerCase()==="a"){var e=t.getAttribute("href");if(e){var i=t.getAttribute("target");i&&i!=="_self"?window.open(e,i):window.location.href=e}}}function Hr(t,e){var i={},r,s;if(Array.isArray(e))for(s=0;s<e.length;s++)r=e[s],i[r]=et(t,mi(r));else for(r in e)i[r]=et(t,mi(r));return i}var po=/^(webkit|moz|ms|o|Webkit|Moz|MS|O)(?=[A-Z])/,qr={};function mo(t){var e=qr[t];return e||(e=t.replace(po,""),e!==t&&(e=e[0].toLowerCase()+e.slice(1)),qr[t]=e,e)}var go="[native code]";function vo(t){var e=window.Symbol;return!!(t&&k(e)&&k(e.toString)&&e(t).toString().indexOf(go)>-1)}function Jt(t,e){for(var i in e)t.style[i]=e[i]}var yo=!!(Element&&k(Element.prototype.animate)),Vr=!!(Element&&vo(Element.prototype.animate));function pt(t){this._element=t,this._animation=null,this._duration=0,this._easing="",this._callback=null,this._props=[],this._values=[],this._isDestroyed=!1,this._onFinish=this._onFinish.bind(this)}pt.prototype.start=function(t,e,i){if(!this._isDestroyed){var r=this._element,s=i||{};if(!yo){Jt(r,e),this._callback=k(s.onFinish)?s.onFinish:null,this._onFinish();return}var n=this._animation,o=this._props,a=this._values,l=s.duration||300,h=s.easing||"ease",c=!1,f,v,d;if(n&&(v=0,(l!==this._duration||h!==this._easing)&&(c=!0),!c)){for(f in e)if(++v,d=o.indexOf(f),d===-1||e[f]!==a[d]){c=!0;break}v!==o.length&&(c=!0)}if(c&&n.cancel(),this._callback=k(s.onFinish)?s.onFinish:null,!(n&&!c)){o.length=a.length=0;for(f in e)o.push(f),a.push(e[f]);this._duration=l,this._easing=h,this._animation=r.animate([Ur(t,Vr),Ur(e,Vr)],{duration:l,easing:h}),this._animation.onfinish=this._onFinish,Jt(r,e)}}},pt.prototype.stop=function(){this._isDestroyed||!this._animation||(this._animation.cancel(),this._animation=this._callback=null,this._props.length=this._values.length=0)},pt.prototype.getCurrentStyles=function(){return Hr(element,currentProps)},pt.prototype.isAnimating=function(){return!!this._animation},pt.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._element=null,this._isDestroyed=!0)},pt.prototype._onFinish=function(){var t=this._callback;this._animation=this._callback=null,this._props.length=this._values.length=0,t&&t()};function Ur(t,e){var i={};for(var r in t)i[e?r:mo(r)]=t[r];return i}function Ct(t,e){return"translateX("+t+"px) translateY("+e+"px)"}function Q(t){this._item=t,this._animation=new pt,this._element=null,this._className="",this._didMigrate=!1,this._resetAfterLayout=!1,this._left=0,this._top=0,this._transX=0,this._transY=0,this._nextTransX=0,this._nextTransY=0,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this),this._updateDimensions=this._updateDimensions.bind(this),this._onLayoutStart=this._onLayoutStart.bind(this),this._onLayoutEnd=this._onLayoutEnd.bind(this),this._onReleaseEnd=this._onReleaseEnd.bind(this),this._onMigrate=this._onMigrate.bind(this),this._onHide=this._onHide.bind(this)}Q.prototype._updateDimensions=function(){this.isActive()&&Jt(this._element,{width:this._item._width+"px",height:this._item._height+"px"})},Q.prototype._onLayoutStart=function(t,e){var i=this._item;if(t.indexOf(i)===-1){this.reset();return}var r=i._left,s=i._top,n=this._left,o=this._top;if(this._left=r,this._top=s,!(!e&&!this._didMigrate&&n===r&&o===s)){var a=r+i._marginLeft,l=s+i._marginTop,h=i.getGrid(),c=!e&&h._settings.layoutDuration>0;if(!c||this._didMigrate){Rr(i._id),this._element.style[_t]=Ct(a,l),this._animation.stop(),this._didMigrate&&(h.getElement().appendChild(this._element),this._didMigrate=!1);return}this._nextTransX=a,this._nextTransY=l,Bn(i._id,this._setupAnimation,this._startAnimation)}},Q.prototype._setupAnimation=function(){if(this.isActive()){var t=bt(this._element);this._transX=t.x,this._transY=t.y}},Q.prototype._startAnimation=function(){if(this.isActive()){var t=this._animation,e=this._transX,i=this._transY,r=this._nextTransX,s=this._nextTransY;if(e===r&&i===s){t.isAnimating()&&(this._element.style[_t]=Ct(r,s),t.stop());return}var n=this._item.getGrid()._settings,o={},a={};o[_t]=Ct(e,i),a[_t]=Ct(r,s),t.start(o,a,{duration:n.layoutDuration,easing:n.layoutEasing,onFinish:this._onLayoutEnd})}},Q.prototype._onLayoutEnd=function(){this._resetAfterLayout&&this.reset()},Q.prototype._onReleaseEnd=function(t){if(t._id===this._item._id){if(!this._animation.isAnimating()){this.reset();return}this._resetAfterLayout=!0}},Q.prototype._onMigrate=function(t){if(t.item===this._item){var e=this._item.getGrid(),i=t.toGrid;e.off(ie,this._onReleaseEnd),e.off(Tt,this._onLayoutStart),e.off(At,this._onMigrate),e.off(ee,this._onHide),i.on(ie,this._onReleaseEnd),i.on(Tt,this._onLayoutStart),i.on(At,this._onMigrate),i.on(ee,this._onHide),this._didMigrate=!0}},Q.prototype._onHide=function(t){t.indexOf(this._item)>-1&&this.reset()},Q.prototype.create=function(){if(this.isActive()){this._resetAfterLayout=!1;return}var t=this._item,e=t.getGrid(),i=e._settings,r=this._animation;this._left=t._left,this._top=t._top;var s;k(i.dragPlaceholder.createElement)?s=i.dragPlaceholder.createElement(t):s=document.createElement("div"),this._element=s,r._element=s,this._className=i.itemPlaceholderClass||"",this._className&&ot(s,this._className),Jt(s,{position:"absolute",left:"0px",top:"0px",width:t._width+"px",height:t._height+"px"}),s.style[_t]=Ct(t._left+t._marginLeft,t._top+t._marginTop),e.on(Tt,this._onLayoutStart),e.on(ie,this._onReleaseEnd),e.on(At,this._onMigrate),e.on(ee,this._onHide),k(i.dragPlaceholder.onCreate)&&i.dragPlaceholder.onCreate(t,s),e.getElement().appendChild(s)},Q.prototype.reset=function(){if(this.isActive()){var t=this._element,e=this._item,i=e.getGrid(),r=i._settings,s=this._animation;this._resetAfterLayout=!1,Rr(e._id),Yn(e._id),s.stop(),s._element=null,i.off(ie,this._onReleaseEnd),i.off(Tt,this._onLayoutStart),i.off(At,this._onMigrate),i.off(ee,this._onHide),this._className&&(Z(t,this._className),this._className=""),t.parentNode.removeChild(t),this._element=null,k(r.dragPlaceholder.onRemove)&&r.dragPlaceholder.onRemove(e,t)}},Q.prototype.isActive=function(){return!!this._element},Q.prototype.getElement=function(){return this._element},Q.prototype.updateDimensions=function(){this.isActive()&&Xn(this._item._id,this._updateDimensions)},Q.prototype.destroy=function(){this.reset(),this._animation.destroy(),this._item=this._animation=null};function Ot(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0}Ot.prototype.start=function(){if(!(this._isDestroyed||this._isActive)){var t=this._item,e=t.getGrid(),i=e._settings;this._isActive=!0,ot(t._element,i.itemReleasingClass),i.dragRelease.useDragContainer||this._placeToGrid(),e._emit(Sn,t),e._nextLayoutData||t._layout.start(!1)}},Ot.prototype.stop=function(t,e,i){if(!(this._isDestroyed||!this._isActive)){var r=this._item,s=r.getGrid();!t&&(e===void 0||i===void 0)&&(e=r._left,i=r._top);var n=this._placeToGrid(e,i);this._reset(n),t||s._emit(ie,r)}},Ot.prototype.isJustReleased=function(){return this._isActive&&this._isPositioningStarted===!1},Ot.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)},Ot.prototype._placeToGrid=function(t,e){if(!this._isDestroyed){var i=this._item,r=i._element,s=i.getGrid()._element,n=!1;if(r.parentNode!==s){if(t===void 0||e===void 0){var o=bt(r);t=o.x-this._containerDiffX,e=o.y-this._containerDiffY}s.appendChild(r),i._setTranslate(t,e),n=!0}return this._containerDiffX=0,this._containerDiffY=0,n}},Ot.prototype._reset=function(t){if(!this._isDestroyed){var e=this._item,i=e.getGrid()._settings.itemReleasingClass;this._isActive=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0,i&&(t&&e._element.clientWidth,Z(e._element,i))}};var zr=2;function St(t){var e=t._element,i=e.style;this._item=t,this._isActive=!1,this._isDestroyed=!1,this._isInterrupted=!1,this._currentStyles={},this._targetStyles={},this._nextLeft=0,this._nextTop=0,this._offsetLeft=0,this._offsetTop=0,this._skipNextAnimation=!1,this._animOptions={onFinish:this._finish.bind(this),duration:0,easing:0},i.left="0px",i.top="0px",t._setTranslate(0,0),this._animation=new pt(e),this._queue="layout-"+t._id,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this)}St.prototype.start=function(t,e){if(!this._isDestroyed){var i=this._item,r=i._dragRelease,s=i.getGrid()._settings,n=this._isActive,o=r.isJustReleased(),a=o?s.dragRelease.duration:s.layoutDuration,l=o?s.dragRelease.easing:s.layoutEasing,h=!t&&!this._skipNextAnimation&&a>0;if(n&&(Er(i._id),i._emitter.burst(this._queue,!0,i)),o&&(r._isPositioningStarted=!0),k(e)&&i._emitter.on(this._queue,e),this._skipNextAnimation=!1,!h){this._updateOffsets(),i._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),this._finish();return}this._animation.isAnimating()&&(this._animation._animation.onfinish=null),this._isActive=!0,this._animOptions.easing=l,this._animOptions.duration=a,this._isInterrupted=n,In(i._id,this._setupAnimation,this._startAnimation)}},St.prototype.stop=function(t,e,i){if(!(this._isDestroyed||!this._isActive)){var r=this._item;if(Er(r._id),this._animation.isAnimating()){if(e===void 0||i===void 0){var s=bt(r._element);e=s.x,i=s.y}r._setTranslate(e,i),this._animation.stop()}Z(r._element,r.getGrid()._settings.itemPositioningClass),this._isActive=!1,t&&r._emitter.burst(this._queue,!0,r)}},St.prototype.destroy=function(){if(!this._isDestroyed){var t=this._item._element.style;this.stop(!0,0,0),this._item._emitter.clear(this._queue),this._animation.destroy(),t[_t]="",t.left="",t.top="",this._item=null,this._currentStyles=null,this._targetStyles=null,this._animOptions=null,this._isDestroyed=!0}},St.prototype._updateOffsets=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._dragRelease;this._offsetLeft=i._isActive?i._containerDiffX:e._isActive?e._containerDiffX:0,this._offsetTop=i._isActive?i._containerDiffY:e._isActive?e._containerDiffY:0,this._nextLeft=this._item._left+this._offsetLeft,this._nextTop=this._item._top+this._offsetTop}},St.prototype._finish=function(){if(!this._isDestroyed){var t=this._item,e=t._migrate,i=t._dragRelease;t._tX=this._nextLeft,t._tY=this._nextTop,this._isActive&&(this._isActive=!1,Z(t._element,t.getGrid()._settings.itemPositioningClass)),i._isActive&&i.stop(),e._isActive&&e.stop(),t._emitter.burst(this._queue,!1,t)}},St.prototype._setupAnimation=function(){var t=this._item;if(t._tX===void 0||t._tY===void 0){var e=bt(t._element);t._tX=e.x,t._tY=e.y}},St.prototype._startAnimation=function(){var t=this._item,e=t.getGrid()._settings,i=this._animOptions.duration<=0;this._updateOffsets();var r=Math.abs(t._left-(t._tX-this._offsetLeft)),s=Math.abs(t._top-(t._tY-this._offsetTop));if(i||r<zr&&s<zr){(r||s||this._isInterrupted)&&t._setTranslate(this._nextLeft,this._nextTop),this._animation.stop(),this._finish();return}this._isInterrupted||ot(t._element,e.itemPositioningClass),this._currentStyles[_t]=Ct(t._tX,t._tY),this._targetStyles[_t]=Ct(this._nextLeft,this._nextTop),t._tX=t._tY=void 0,this._animation.start(this._currentStyles,this._targetStyles,this._animOptions)};function ce(t){this._item=t,this._isActive=!1,this._isDestroyed=!1,this._container=!1,this._containerDiffX=0,this._containerDiffY=0}ce.prototype.start=function(t,e,i){if(!this._isDestroyed){var r=this._item,s=r._element,n=r.isActive(),o=r.isVisible(),a=r.getGrid(),l=a._settings,h=t._settings,c=t._element,f=t._items,v=a._items.indexOf(r),d=i||document.body,m,u,p,b,g,w,S,E,T,C;if(typeof e=="number")m=zt(f,e,1);else{if(u=t.getItem(e),!u)return;m=f.indexOf(u)}(r.isPositioning()||this._isActive||r.isReleasing())&&(w=bt(s),S=w.x,E=w.y),r.isPositioning()&&r._layout.stop(!0,S,E),this._isActive&&(S-=this._containerDiffX,E-=this._containerDiffY,this.stop(!0,S,E)),r.isReleasing()&&(S-=r._dragRelease._containerDiffX,E-=r._dragRelease._containerDiffY,r._dragRelease.stop(!0,S,E)),r._visibility.stop(!0),r._drag&&r._drag.destroy(),a._hasListeners(At)&&a._emit(At,{item:r,fromGrid:a,fromIndex:v,toGrid:t,toIndex:m}),t._hasListeners(Te)&&t._emit(Te,{item:r,fromGrid:a,fromIndex:v,toGrid:t,toIndex:m}),l.itemClass!==h.itemClass&&(Z(s,l.itemClass),ot(s,h.itemClass)),T=o?l.itemVisibleClass:l.itemHiddenClass,C=o?h.itemVisibleClass:h.itemHiddenClass,T!==C&&(Z(s,T),ot(s,C)),a._items.splice(v,1),pi(f,r,m),r._gridId=t._id,n?(p=s.parentNode,d!==p&&(d.appendChild(s),b=Wt(d,p,!0),w||(w=bt(s),S=w.x,E=w.y),r._setTranslate(S+b.left,E+b.top))):c.appendChild(s),r._visibility.setStyles(o?h.visibleStyles:h.hiddenStyles),n&&(g=Wt(d,c,!0)),r._refreshDimensions(),r._sortData=null,r._drag=h.dragEnabled?new A(r):null,n?(this._isActive=!0,this._container=d,this._containerDiffX=g.left,this._containerDiffY=g.top):(this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0),a._hasListeners(Ee)&&a._emit(Ee,{item:r,fromGrid:a,fromIndex:v,toGrid:t,toIndex:m}),t._hasListeners(xe)&&t._emit(xe,{item:r,fromGrid:a,fromIndex:v,toGrid:t,toIndex:m})}},ce.prototype.stop=function(t,e,i){if(!(this._isDestroyed||!this._isActive)){var r=this._item,s=r._element,n=r.getGrid(),o=n._element,a;this._container!==o&&((e===void 0||i===void 0)&&(t?(a=bt(s),e=a.x-this._containerDiffX,i=a.y-this._containerDiffY):(e=r._left,i=r._top)),o.appendChild(s),r._setTranslate(e,i)),this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0}},ce.prototype.destroy=function(){this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0)};function ct(t){var e=t._isActive,i=t._element,r=i.children[0],s=t.getGrid()._settings;if(!r)throw new Error("No valid child element found within item element.");this._item=t,this._isDestroyed=!1,this._isHidden=!e,this._isHiding=!1,this._isShowing=!1,this._childElement=r,this._currentStyleProps=[],this._animation=new pt(r),this._queue="visibility-"+t._id,this._finishShow=this._finishShow.bind(this),this._finishHide=this._finishHide.bind(this),i.style.display=e?"":"none",ot(i,e?s.itemVisibleClass:s.itemHiddenClass),this.setStyles(e?s.visibleStyles:s.hiddenStyles)}ct.prototype.show=function(t,e){if(!this._isDestroyed){var i=this._item,r=i._element,s=k(e)?e:null,n=i.getGrid(),o=n._settings;if(!this._isShowing&&!this._isHidden){s&&s(!1,i);return}if(this._isShowing&&!t){s&&i._emitter.on(this._queue,s);return}this._isShowing||(i._emitter.burst(this._queue,!0,i),Z(r,o.itemHiddenClass),ot(r,o.itemVisibleClass),this._isHiding||(r.style.display="")),s&&i._emitter.on(this._queue,s),this._isShowing=!0,this._isHiding=this._isHidden=!1,this._startAnimation(!0,t,this._finishShow)}},ct.prototype.hide=function(t,e){if(!this._isDestroyed){var i=this._item,r=i._element,s=k(e)?e:null,n=i.getGrid(),o=n._settings;if(!this._isHiding&&this._isHidden){s&&s(!1,i);return}if(this._isHiding&&!t){s&&i._emitter.on(this._queue,s);return}this._isHiding||(i._emitter.burst(this._queue,!0,i),ot(r,o.itemHiddenClass),Z(r,o.itemVisibleClass)),s&&i._emitter.on(this._queue,s),this._isHidden=this._isHiding=!0,this._isShowing=!1,this._startAnimation(!1,t,this._finishHide)}},ct.prototype.stop=function(t){if(!this._isDestroyed&&!(!this._isHiding&&!this._isShowing)){var e=this._item;xr(e._id),this._animation.stop(),t&&e._emitter.burst(this._queue,!0,e)}},ct.prototype.setStyles=function(t){var e=this._childElement,i=this._currentStyleProps;this._removeCurrentStyles();for(var r in t)i.push(r),e.style[r]=t[r]},ct.prototype.destroy=function(){if(!this._isDestroyed){var t=this._item,e=t._element,i=t.getGrid(),r=i._settings;this.stop(!0),t._emitter.clear(this._queue),this._animation.destroy(),this._removeCurrentStyles(),Z(e,r.itemVisibleClass),Z(e,r.itemHiddenClass),e.style.display="",this._isHiding=this._isShowing=!1,this._isDestroyed=this._isHidden=!0}},ct.prototype._startAnimation=function(t,e,i){if(!this._isDestroyed){var r=this._item,s=this._animation,n=this._childElement,o=r.getGrid()._settings,a=t?o.visibleStyles:o.hiddenStyles,l=t?o.showDuration:o.hideDuration,h=t?o.showEasing:o.hideEasing,c=e||l<=0,f;if(!a){i&&i();return}if(xr(r._id),c){Jt(n,a),s.stop(),i&&i();return}s.isAnimating()&&(s._animation.onfinish=null),Ln(r._id,function(){f=Hr(n,a)},function(){s.start(f,a,{duration:l,easing:h,onFinish:i})})}},ct.prototype._finishShow=function(){this._isHidden||(this._isShowing=!1,this._item._emitter.burst(this._queue,!1,this._item))},ct.prototype._finishHide=function(){if(this._isHidden){var t=this._item;this._isHiding=!1,t._layout.stop(!0,0,0),t._element.style.display="none",t._emitter.burst(this._queue,!1,t)}},ct.prototype._removeCurrentStyles=function(){for(var t=this._childElement,e=this._currentStyleProps,i=0;i<e.length;i++)t.style[e[i]]="";e.length=0};var bo=0;function Wr(){return++bo}function H(t,e,i){var r=t._settings;if(Pt){if(Pt.has(e))throw new Error("You can only create one Muuri Item per element!");Pt.set(e,this)}this._id=Wr(),this._gridId=t._id,this._element=e,this._isDestroyed=!1,this._left=0,this._top=0,this._width=0,this._height=0,this._marginLeft=0,this._marginRight=0,this._marginTop=0,this._marginBottom=0,this._tX=void 0,this._tY=void 0,this._sortData=null,this._emitter=new lt,e.parentNode!==t._element&&t._element.appendChild(e),ot(e,r.itemClass),typeof i!="boolean"&&(i=et(e,"display")!=="none"),this._isActive=i,this._visibility=new ct(this),this._layout=new St(this),this._migrate=new ce(this),this._drag=r.dragEnabled?new A(this):null,this._dragRelease=new Ot(this),this._dragPlaceholder=new Q(this)}H.prototype.getGrid=function(){return Se[this._gridId]},H.prototype.getElement=function(){return this._element},H.prototype.getWidth=function(){return this._width},H.prototype.getHeight=function(){return this._height},H.prototype.getMargin=function(){return{left:this._marginLeft,right:this._marginRight,top:this._marginTop,bottom:this._marginBottom}},H.prototype.getPosition=function(){return{left:this._left,top:this._top}},H.prototype.isActive=function(){return this._isActive},H.prototype.isVisible=function(){return!!this._visibility&&!this._visibility._isHidden},H.prototype.isShowing=function(){return!!(this._visibility&&this._visibility._isShowing)},H.prototype.isHiding=function(){return!!(this._visibility&&this._visibility._isHiding)},H.prototype.isPositioning=function(){return!!(this._layout&&this._layout._isActive)},H.prototype.isDragging=function(){return!!(this._drag&&this._drag._isActive)},H.prototype.isReleasing=function(){return!!(this._dragRelease&&this._dragRelease._isActive)},H.prototype.isDestroyed=function(){return this._isDestroyed},H.prototype._refreshDimensions=function(t){if(!this._isDestroyed&&!(t!==!0&&this._visibility._isHidden)){var e=this._element,i=this._dragPlaceholder,r=e.getBoundingClientRect();this._width=r.width,this._height=r.height,this._marginLeft=Math.max(0,ht(e,"margin-left")),this._marginRight=Math.max(0,ht(e,"margin-right")),this._marginTop=Math.max(0,ht(e,"margin-top")),this._marginBottom=Math.max(0,ht(e,"margin-bottom")),i&&i.updateDimensions()}},H.prototype._refreshSortData=function(){if(!this._isDestroyed){var t=this._sortData={},e=this.getGrid()._settings.sortData,i;for(i in e)t[i]=e[i](this,this._element)}},H.prototype._addToLayout=function(t,e){this._isActive!==!0&&(this._isActive=!0,this._left=t||0,this._top=e||0)},H.prototype._removeFromLayout=function(){this._isActive!==!1&&(this._isActive=!1,this._left=0,this._top=0)},H.prototype._canSkipLayout=function(t,e){return this._left===t&&this._top===e&&!this._migrate._isActive&&!this._layout._skipNextAnimation&&!this._dragRelease.isJustReleased()},H.prototype._setTranslate=function(t,e){return this._tX===t&&this._tY===e?!1:(this._tX=t,this._tY=e,this._element.style[_t]=Ct(t,e),!0)},H.prototype._destroy=function(t){if(!this._isDestroyed){var e=this._element,i=this.getGrid(),r=i._settings;this._dragPlaceholder.destroy(),this._dragRelease.destroy(),this._migrate.destroy(),this._layout.destroy(),this._visibility.destroy(),this._drag&&this._drag.destroy(),this._emitter.destroy(),Z(e,r.itemClass),t&&e.parentNode.removeChild(e),Pt&&Pt.delete(e),this._isActive=!1,this._isDestroyed=!0}};function $r(t){var e=1,i=2,r=4,s=8,n=16,o=.001,a=.5;function l(u){return((u*1e3+.5<<0)/10<<0)/100}function h(){this.currentRects=[],this.nextRects=[],this.rectTarget={},this.rectStore=[],this.slotSizes=[],this.rectId=0,this.slotIndex=-1,this.slotData={left:0,top:0,width:0,height:0},this.sortRectsLeftTop=this.sortRectsLeftTop.bind(this),this.sortRectsTopLeft=this.sortRectsTopLeft.bind(this)}if(h.prototype.computeLayout=function(u,p){var b=u.items,g=u.slots,w=!!(p&e),S=!!(p&i),E=!!(p&r),T=!!(p&s),C=!!(p&n),j=typeof b[0]=="number",I,st,Y,U,G,x;if(!b.length)return u;for(st=j?2:1,I=0;I<b.length;I+=st)j?(U=b[I],G=b[I+1]):(Y=b[I],U=Y._width+Y._marginLeft+Y._marginRight,G=Y._height+Y._marginTop+Y._marginBottom),C&&(U=l(U),G=l(G)),x=this.computeNextSlot(u,U,G,w,S),S?x.left+x.width>u.width&&(u.width=x.left+x.width):x.top+x.height>u.height&&(u.height=x.top+x.height),g[++this.slotIndex]=x.left,g[++this.slotIndex]=x.top,(E||T)&&this.slotSizes.push(x.width,x.height);if(E)for(I=0;I<g.length;I+=2)g[I]=u.width-(g[I]+this.slotSizes[I]);if(T)for(I=1;I<g.length;I+=2)g[I]=u.height-(g[I]+this.slotSizes[I]);return this.slotSizes.length=0,this.currentRects.length=0,this.nextRects.length=0,this.rectStore.length=0,this.rectId=0,this.slotIndex=-1,u},h.prototype.computeNextSlot=function(u,p,b,g,w){var S=this.slotData,E=this.currentRects,T=this.nextRects,C=!1,j,I,st,Y,U;for(T.length=0,S.left=null,S.top=null,S.width=p,S.height=b,Y=0;Y<E.length;Y++)if(I=E[Y],!!I&&(j=this.getRect(I),S.width<=j.width+o&&S.height<=j.height+o)){S.left=j.left,S.top=j.top;break}if(S.left===null&&(w?(S.left=u.width,S.top=0):(S.left=0,S.top=u.height),g||(C=!0)),!w&&S.top+S.height>u.height+o&&(S.left>a&&T.push(this.addRect(0,u.height,S.left,1/0)),S.left+S.width<u.width-a&&T.push(this.addRect(S.left+S.width,u.height,u.width-S.left-S.width,1/0)),u.height=S.top+S.height),w&&S.left+S.width>u.width+o&&(S.top>a&&T.push(this.addRect(u.width,0,1/0,S.top)),S.top+S.height<u.height-a&&T.push(this.addRect(u.width,S.top+S.height,1/0,u.height-S.top-S.height)),u.width=S.left+S.width),!C){for(g&&(Y=0);Y<E.length;Y++)if(I=E[Y],!!I)for(j=this.getRect(I),st=this.splitRect(j,S),U=0;U<st.length;U++)I=st[U],j=this.getRect(I),(w?j.left+o<u.width-o:j.top+o<u.height-o)&&T.push(I)}return T.length>1&&this.purgeRects(T).sort(w?this.sortRectsLeftTop:this.sortRectsTopLeft),this.currentRects=T,this.nextRects=E,S},h.prototype.addRect=function(u,p,b,g){var w=++this.rectId;return this.rectStore[w]=u||0,this.rectStore[++this.rectId]=p||0,this.rectStore[++this.rectId]=b||0,this.rectStore[++this.rectId]=g||0,w},h.prototype.getRect=function(u,p){return p||(p=this.rectTarget),p.left=this.rectStore[u]||0,p.top=this.rectStore[++u]||0,p.width=this.rectStore[++u]||0,p.height=this.rectStore[++u]||0,p},h.prototype.splitRect=(function(){var u=[],p=0,b=0;return function(g,w){return u.length=0,g.left+g.width<=w.left+o||w.left+w.width<=g.left+o||g.top+g.height<=w.top+o||w.top+w.height<=g.top+o?(u.push(this.addRect(g.left,g.top,g.width,g.height)),u):(p=w.left-g.left,p>=a&&u.push(this.addRect(g.left,g.top,p,g.height)),p=g.left+g.width-(w.left+w.width),p>=a&&u.push(this.addRect(w.left+w.width,g.top,p,g.height)),b=w.top-g.top,b>=a&&u.push(this.addRect(g.left,g.top,g.width,b)),b=g.top+g.height-(w.top+w.height),b>=a&&u.push(this.addRect(g.left,w.top+w.height,g.width,b)),u)}})(),h.prototype.isRectAWithinRectB=function(u,p){return u.left+o>=p.left&&u.top+o>=p.top&&u.left+u.width-o<=p.left+p.width&&u.top+u.height-o<=p.top+p.height},h.prototype.purgeRects=(function(){var u={},p={};return function(b){for(var g=b.length,w;g--;)if(w=b.length,!!b[g]){for(this.getRect(b[g],u);w--;)if(!(!b[w]||g===w)&&(this.getRect(b[w],p),this.isRectAWithinRectB(u,p))){b[g]=0;break}}return b}})(),h.prototype.sortRectsTopLeft=(function(){var u={},p={};return function(b,g){return this.getRect(b,u),this.getRect(g,p),u.top<p.top&&u.top+o<p.top?-1:u.top>p.top&&u.top-o>p.top?1:u.left<p.left&&u.left+o<p.left?-1:u.left>p.left&&u.left-o>p.left?1:0}})(),h.prototype.sortRectsLeftTop=(function(){var u={},p={};return function(b,g){return this.getRect(b,u),this.getRect(g,p),u.left<p.left&&u.left+o<p.left?-1:u.left>p.left&&u.left-o<p.left?1:u.top<p.top&&u.top+o<p.top?-1:u.top>p.top&&u.top-o>p.top?1:0}})(),t){var c=1,f=2,v=3,d=4,m=new h;self.onmessage=function(u){var p=new Float32Array(u.data),b=p.subarray(d,p.length),g=new Float32Array(b.length),w=p[v],S={items:b,slots:g,width:p[c],height:p[f]};m.computeLayout(S,w),p[c]=S.width,p[f]=S.height,p.set(S.slots,d),postMessage(p.buffer,[p.buffer])}}return h}var Jr=$r(),Kt=null,Xe=[];function So(t,e){var i=[];if(t>0){Kt||(Kt=URL.createObjectURL(new Blob(["("+$r.toString()+")(true)"],{type:"application/javascript"})));for(var r=0,s;r<t;r++)s=new Worker(Kt),e&&(s.onmessage=e),i.push(s),Xe.push(s)}return i}function wo(t){for(var e,i,r=0;r<t.length;r++)e=t[r],e.onmessage=null,e.onerror=null,e.onmessageerror=null,e.terminate(),i=Xe.indexOf(e),i>-1&&Xe.splice(i,1);Kt&&!Xe.length&&(URL.revokeObjectURL(Kt),Kt=null)}function Eo(){return!!(window.Worker&&window.URL&&window.Blob)}var Kr=1,Ye=2,Zr=4,Qr=8,ts=16,es=0,is=1,rs=2,xo=3,wi=4;function wt(t,e){if(this._options=0,this._processor=null,this._layoutQueue=[],this._layouts={},this._layoutCallbacks={},this._layoutWorkers={},this._layoutWorkerData={},this._workers=[],this._onWorkerMessage=this._onWorkerMessage.bind(this),this.setOptions(e),t=typeof t=="number"?Math.max(0,t):0,t&&Eo())try{this._workers=So(t,this._onWorkerMessage)}catch{this._processor=new Jr}else this._processor=new Jr}wt.prototype._sendToWorker=function(){if(!(!this._layoutQueue.length||!this._workers.length)){var t=this._layoutQueue.shift(),e=this._workers.pop(),i=this._layoutWorkerData[t];delete this._layoutWorkerData[t],this._layoutWorkers[t]=e,e.postMessage(i.buffer,[i.buffer])}},wt.prototype._onWorkerMessage=function(t){var e=new Float32Array(t.data),i=e[es],r=this._layouts[i],s=this._layoutCallbacks[i],n=this._layoutWorkers[i];r&&delete this._layouts[i],s&&delete this._layoutCallbacks[i],n&&delete this._layoutWorkers[i],r&&s&&(r.width=e[is],r.height=e[rs],r.slots=e.subarray(wi,e.length),this._finalizeLayout(r),s(r)),n&&(this._workers.push(n),this._sendToWorker())},wt.prototype._finalizeLayout=function(t){var e=t._grid,i=t._settings&Ye,r=e._boxSizing==="border-box";return delete t._grid,delete t._settings,t.styles={},i?t.styles.width=(r?t.width+e._borderLeft+e._borderRight:t.width)+"px":t.styles.height=(r?t.height+e._borderTop+e._borderBottom:t.height)+"px",t},wt.prototype.setOptions=function(t){if(t){var e;typeof t.fillGaps=="boolean"?e=t.fillGaps?Kr:0:e=this._options&Kr;var i;typeof t.horizontal=="boolean"?i=t.horizontal?Ye:0:i=this._options&Ye;var r;typeof t.alignRight=="boolean"?r=t.alignRight?Zr:0:r=this._options&Zr;var s;typeof t.alignBottom=="boolean"?s=t.alignBottom?Qr:0:s=this._options&Qr;var n;typeof t.rounding=="boolean"?n=t.rounding?ts:0:n=this._options&ts,this._options=e|i|r|s|n}},wt.prototype.createLayout=function(t,e,i,r,s,n){if(this._layouts[e])throw new Error("A layout with the provided id is currently being processed.");var o=this._options&Ye,a={id:e,items:i,slots:null,width:o?0:r,height:o?s:0,_grid:t,_settings:this._options};if(!i.length){a.slots=[],this._finalizeLayout(a),n(a);return}if(this._processor){a.slots=window.Float32Array?new Float32Array(i.length*2):new Array(i.length*2),this._processor.computeLayout(a,a._settings),this._finalizeLayout(a),n(a);return}var l=new Float32Array(wi+i.length*2);l[es]=e,l[is]=a.width,l[rs]=a.height,l[xo]=a._settings;var h,c,f;for(h=0,c=wi-1,f;h<i.length;h++)f=i[h],l[++c]=f._width+f._marginLeft+f._marginRight,l[++c]=f._height+f._marginTop+f._marginBottom;return this._layoutQueue.push(e),this._layouts[e]=a,this._layoutCallbacks[e]=n,this._layoutWorkerData[e]=l,this._sendToWorker(),this.cancelLayout.bind(this,e)},wt.prototype.cancelLayout=function(t){var e=this._layouts[t];if(e&&(delete this._layouts[t],delete this._layoutCallbacks[t],this._layoutWorkerData[t])){delete this._layoutWorkerData[t];var i=this._layoutQueue.indexOf(t);i>-1&&this._layoutQueue.splice(i,1)}},wt.prototype.destroy=function(){for(var t in this._layoutWorkers)this._workers.push(this._layoutWorkers[t]);wo(this._workers),this._workers.length=0,this._layoutQueue.length=0,this._layouts={},this._layoutCallbacks={},this._layoutWorkers={},this._layoutWorkerData={}};var To=0;function Ao(t,e){var i=++To,r=0,s=0,n=!1,o=function(a){n||(s&&(r-=a-s),s=a,r>0?Gn(i,o):(r=s=0,t()))};return function(a){if(!n){if(e<=0){a!==!0&&t();return}if(a===!0){n=!0,r=s=0,o=void 0,Hn(i);return}r<=0?(r=e,o(0)):r=e}}}var Do="[object HTMLCollection]",Ro="[object NodeList]";function Ei(t){var e=Object.prototype.toString.call(t);return e===Do||e===Ro}var Co="object",Oo="[object Object]",ko=Object.prototype.toString;function ss(t){return typeof t===Co&&ko.call(t)===Oo}function Io(){}function Lo(t){return Ei(t)?Array.prototype.slice.call(t):Array.prototype.concat(t)}var ns="number",je="string",kt="instant",xi=0;function D(t,e){typeof t===je&&(t=document.querySelector(t));var i=t.getRootNode?t.getRootNode({composed:!0})===document:document.body.contains(t);if(!i||t===document.documentElement)throw new Error("Container element must be an existing DOM element.");var r=No(D.defaultOptions,e);r.visibleStyles=os(r.visibleStyles),r.hiddenStyles=os(r.hiddenStyles),k(r.dragSort)||(r.dragSort=!!r.dragSort),this._id=Wr(),this._element=t,this._settings=r,this._isDestroyed=!1,this._items=[],this._layout={id:0,items:[],slots:[]},this._isLayoutFinished=!0,this._nextLayoutData=null,this._emitter=new lt,this._onLayoutDataReceived=this._onLayoutDataReceived.bind(this),Se[this._id]=this,ot(t,r.containerClass),Mo(this,r.layoutOnResize),this.add(Po(t,r.items),{layout:!1}),r.layoutOnInit&&this.layout(!0)}D.Item=H,D.ItemLayout=St,D.ItemVisibility=ct,D.ItemMigrate=ce,D.ItemDrag=A,D.ItemDragRelease=Ot,D.ItemDragPlaceholder=Q,D.Emitter=lt,D.Animator=pt,D.Dragger=y,D.Packer=wt,D.AutoScroller=M,D.defaultPacker=new wt(2),D.defaultOptions={items:"*",showDuration:300,showEasing:"ease",hideDuration:300,hideEasing:"ease",visibleStyles:{opacity:"1",transform:"scale(1)"},hiddenStyles:{opacity:"0",transform:"scale(0.5)"},layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!1},layoutOnResize:150,layoutOnInit:!0,layoutDuration:300,layoutEasing:"ease",sortData:null,dragEnabled:!1,dragContainer:null,dragHandle:null,dragStartPredicate:{distance:0,delay:0},dragAxis:"xy",dragSort:!0,dragSortHeuristics:{sortInterval:100,minDragDistance:10,minBounceBackAngle:1},dragSortPredicate:{threshold:50,action:Mt,migrateAction:Mt},dragRelease:{duration:300,easing:"ease",useDragContainer:!0},dragCssProps:{touchAction:"none",userSelect:"none",userDrag:"none",tapHighlightColor:"rgba(0, 0, 0, 0)",touchCallout:"none",contentZooming:"none"},dragPlaceholder:{enabled:!1,createElement:null,onCreate:null,onRemove:null},dragAutoScroll:{targets:[],handle:null,threshold:50,safeZone:.2,speed:M.smoothSpeed(1e3,2e3,2500),sortDuringScroll:!0,smoothStop:!1,onStart:null,onStop:null},containerClass:"muuri",itemClass:"muuri-item",itemVisibleClass:"muuri-item-shown",itemHiddenClass:"muuri-item-hidden",itemPositioningClass:"muuri-item-positioning",itemDraggingClass:"muuri-item-dragging",itemReleasingClass:"muuri-item-releasing",itemPlaceholderClass:"muuri-item-placeholder"},D.prototype.on=function(t,e){return this._emitter.on(t,e),this},D.prototype.off=function(t,e){return this._emitter.off(t,e),this},D.prototype.getElement=function(){return this._element},D.prototype.getItem=function(t){if(this._isDestroyed||!t&&t!==0)return null;if(typeof t===ns)return this._items[t>-1?t:this._items.length+t]||null;if(t instanceof H)return t._gridId===this._id?t:null;if(Pt){var e=Pt.get(t);return e&&e._gridId===this._id?e:null}else for(var i=0;i<this._items.length;i++)if(this._items[i]._element===t)return this._items[i];return null},D.prototype.getItems=function(t){if(this._isDestroyed||t===void 0)return this._items.slice(0);var e=[],i,r;if(Array.isArray(t)||Ei(t))for(i=0;i<t.length;i++)r=this.getItem(t[i]),r&&e.push(r);else r=this.getItem(t),r&&e.push(r);return e},D.prototype.refreshItems=function(t,e){if(this._isDestroyed)return this;var i=t||this._items,r,s,n,o;if(e===!0)for(o=[],r=0;r<i.length;r++)s=i[r],!s.isVisible()&&!s.isHiding()&&(n=s.getElement().style,n.visibility="hidden",n.display="",o.push(n));for(r=0;r<i.length;r++)i[r]._refreshDimensions(e);if(e===!0){for(r=0;r<o.length;r++)n=o[r],n.visibility="",n.display="none";o.length=0}return this},D.prototype.refreshSortData=function(t){if(this._isDestroyed)return this;for(var e=t||this._items,i=0;i<e.length;i++)e[i]._refreshSortData();return this},D.prototype.synchronize=function(){if(this._isDestroyed)return this;var t=this._items;if(!t.length)return this;for(var e,i,r=0;r<t.length;r++)i=t[r]._element,i.parentNode===this._element&&(e=e||document.createDocumentFragment(),e.appendChild(i));return e?(this._element.appendChild(e),this._emit(fn),this):this},D.prototype.layout=function(t,e){if(this._isDestroyed)return this;var i=this._nextLayoutData;i&&k(i.cancel)&&i.cancel(),xi=xi%En+1;var r=xi;this._nextLayoutData={id:r,instant:t,onFinish:e,cancel:null};for(var s=this._items,n=[],o=0;o<s.length;o++)s[o]._isActive&&n.push(s[o]);this._refreshDimensions();var a=this._width-this._borderLeft-this._borderRight,l=this._height-this._borderTop-this._borderBottom,h=this._settings.layout,c;return k(h)?c=h(this,r,n,a,l,this._onLayoutDataReceived):(D.defaultPacker.setOptions(h),c=D.defaultPacker.createLayout(this,r,n,a,l,this._onLayoutDataReceived)),k(c)&&this._nextLayoutData&&this._nextLayoutData.id===r&&(this._nextLayoutData.cancel=c),this},D.prototype.add=function(t,e){if(this._isDestroyed||!t)return[];var i=Lo(t);if(!i.length)return i;var r=e||{},s=r.layout?r.layout:r.layout===void 0,n=this._items,o=!1,a,l,h,c;for(c=0;c<i.length;c++)l=i[c],l.parentNode!==this._element&&(a=a||document.createDocumentFragment(),a.appendChild(l));for(a&&this._element.appendChild(a),c=0;c<i.length;c++)l=i[c],h=i[c]=new H(this,l,r.active),h._isActive&&(o=!0,h._layout._skipNextAnimation=!0);for(c=0;c<i.length;c++)h=i[c],h._refreshDimensions(),h._refreshSortData();return pi(n,i,r.index),this._hasListeners(Ki)&&this._emit(Ki,i.slice(0)),o&&s&&this.layout(s===kt,k(s)?s:void 0),i},D.prototype.remove=function(t,e){if(this._isDestroyed||!t.length)return[];var i=e||{},r=i.layout?i.layout:i.layout===void 0,s=!1,n=this.getItems(),o=[],a=[],l,h,c;for(c=0;c<t.length;c++)h=t[c],!h._isDestroyed&&(l=this._items.indexOf(h),l!==-1&&(h._isActive&&(s=!0),o.push(h),a.push(n.indexOf(h)),h._destroy(i.removeElements),this._items.splice(l,1)));return this._hasListeners(Zi)&&this._emit(Zi,o.slice(0),a),s&&r&&this.layout(r===kt,k(r)?r:void 0),o},D.prototype.show=function(t,e){return!this._isDestroyed&&t.length&&this._setItemsVisibility(t,!0,e),this},D.prototype.hide=function(t,e){return!this._isDestroyed&&t.length&&this._setItemsVisibility(t,!1,e),this},D.prototype.filter=function(t,e){if(this._isDestroyed||!this._items.length)return this;var i=[],r=[],s=typeof t===je,n=k(t),o=e||{},a=o.instant===!0,l=o.syncWithLayout,h=o.layout?o.layout:o.layout===void 0,c=k(o.onFinish)?o.onFinish:null,f=-1,v=Io,d,m;if(c&&(v=function(){++f&&c(i.slice(0),r.slice(0))}),n||s)for(m=0;m<this._items.length;m++)d=this._items[m],(n?t(d):Me(d._element,t))?i.push(d):r.push(d);return i.length?this.show(i,{instant:a,syncWithLayout:l,onFinish:v,layout:!1}):v(),r.length?this.hide(r,{instant:a,syncWithLayout:l,onFinish:v,layout:!1}):v(),(i.length||r.length)&&(this._hasListeners(Qi)&&this._emit(Qi,i.slice(0),r.slice(0)),h&&this.layout(h===kt,k(h)?h:void 0)),this},D.prototype.sort=(function(){var t,e,i,r;function s(o,a){for(var l=0,h,c,f,v,d=0;d<t.length;d++)if(h=t[d][0],c=t[d][1],f=(o._sortData?o:o._refreshSortData())._sortData[h],v=(a._sortData?a:a._refreshSortData())._sortData[h],c==="desc"||!c&&e?l=v<f?-1:v>f?1:0:l=f<v?-1:f>v?1:0,l)return l;return l||(r||(r=as(i)),l=e?Ge(r,a,o):Ge(r,o,a)),l}function n(o,a){var l=e?-t(o,a):t(o,a);return l||(r||(r=as(i)),l=e?Ge(r,a,o):Ge(r,o,a)),l}return function(o,a){if(this._isDestroyed||this._items.length<2)return this;var l=this._items,h=a||{},c=h.layout?h.layout:h.layout===void 0;if(e=!!h.descending,i=l.slice(0),r=null,k(o))t=o,l.sort(n);else if(typeof o===je)t=o.trim().split(" ").filter(function(f){return f}).map(function(f){return f.split(":")}),l.sort(s);else if(Array.isArray(o))l.length=0,l.push.apply(l,o);else throw t=e=i=r=null,new Error("Invalid comparer argument provided.");return this._hasListeners(tr)&&this._emit(tr,l.slice(0),i),c&&this.layout(c===kt,k(c)?c:void 0),t=e=i=r=null,this}})(),D.prototype.move=function(t,e,i){if(this._isDestroyed||this._items.length<2)return this;var r=this._items,s=i||{},n=s.layout?s.layout:s.layout===void 0,o=s.action===dt,a=o?dt:Mt,l=this.getItem(t),h=this.getItem(e),c,f;return l&&h&&l!==h&&(c=r.indexOf(l),f=r.indexOf(h),o?Br(r,c,f):Fr(r,c,f),this._hasListeners(we)&&this._emit(we,{item:l,fromIndex:c,toIndex:f,action:a}),n&&this.layout(n===kt,k(n)?n:void 0)),this},D.prototype.send=function(t,e,i,r){if(this._isDestroyed||e._isDestroyed||this===e)return this;if(t=this.getItem(t),!t)return this;var s=r||{},n=s.appendTo||document.body,o=s.layoutSender?s.layoutSender:s.layoutSender===void 0,a=s.layoutReceiver?s.layoutReceiver:s.layoutReceiver===void 0;return t._migrate.start(e,i,n),t._migrate._isActive&&t._isActive&&(o&&this.layout(o===kt,k(o)?o:void 0),a&&e.layout(a===kt,k(a)?a:void 0)),this},D.prototype.destroy=function(t){if(this._isDestroyed)return this;var e=this._element,i=this._items.slice(0),r=this._layout&&this._layout.styles||{},s,n;for(Fo(this),s=0;s<i.length;s++)i[s]._destroy(t);this._items.length=0,Z(e,this._settings.containerClass);for(n in r)e.style[n]="";return this._emit(wn),this._emitter.destroy(),delete Se[this._id],this._isDestroyed=!0,this},D.prototype._emit=function(){this._isDestroyed||this._emitter.emit.apply(this._emitter,arguments)},D.prototype._hasListeners=function(t){return this._isDestroyed?!1:this._emitter.countListeners(t)>0},D.prototype._updateBoundingRect=function(){var t=this._element,e=t.getBoundingClientRect();this._width=e.width,this._height=e.height,this._left=e.left,this._top=e.top,this._right=e.right,this._bottom=e.bottom},D.prototype._updateBorders=function(t,e,i,r){var s=this._element;t&&(this._borderLeft=ht(s,"border-left-width")),e&&(this._borderRight=ht(s,"border-right-width")),i&&(this._borderTop=ht(s,"border-top-width")),r&&(this._borderBottom=ht(s,"border-bottom-width"))},D.prototype._refreshDimensions=function(){this._updateBoundingRect(),this._updateBorders(1,1,1,1),this._boxSizing=et(this._element,"box-sizing")},D.prototype._onLayoutDataReceived=(function(){var t=[];return function(e){if(!(this._isDestroyed||!this._nextLayoutData||this._nextLayoutData.id!==e.id)){var i=this,r=this._nextLayoutData.instant,s=this._nextLayoutData.onFinish,n=e.items.length,o=n,a,l,h,c;for(this._nextLayoutData=null,!this._isLayoutFinished&&this._hasListeners(Ji)&&this._emit(Ji,this._layout.items.slice(0)),this._layout=e,t.length=0,c=0;c<n;c++){if(a=e.items[c],!a){--o;continue}if(l=e.slots[c*2],h=e.slots[c*2+1],a._canSkipLayout(l,h)){--o;continue}a._left=l,a._top=h,a.isActive()&&!a.isDragging()?t.push(a):--o}if(e.styles&&Jt(this._element,e.styles),!(this._hasListeners(Tt)&&(this._emit(Tt,e.items.slice(0),r===!0),this._layout.id!==e.id))){var f=function(){if(!(--o>0)){var v=i._layout.id!==e.id,d=k(r)?r:s;v||(i._isLayoutFinished=!0),k(d)&&d(e.items.slice(0),v),!v&&i._hasListeners($i)&&i._emit($i,e.items.slice(0))}};if(!t.length)return f(),this;for(this._isLayoutFinished=!1,c=0;c<t.length&&this._layout.id===e.id;c++)t[c]._layout.start(r===!0,f);return this._layout.id===e.id&&(t.length=0),this}}}})(),D.prototype._setItemsVisibility=function(t,e,i){var r=this,s=t.slice(0),n=i||{},o=n.instant===!0,a=n.onFinish,l=n.layout?n.layout:n.layout===void 0,h=s.length,c=e?dn:ee,f=e?_n:pn,v=e?"show":"hide",d=!1,m=[],u=[],p,b;if(!h){k(a)&&a(s);return}for(b=0;b<s.length;b++)p=s[b],(e&&!p._isActive||!e&&p._isActive)&&(d=!0),p._layout._skipNextAnimation=!!(e&&!p._isActive),e&&p._visibility._isHidden&&u.push(p),e?p._addToLayout():p._removeFromLayout();u.length&&(this.refreshItems(u,!0),u.length=0);function g(){for(d&&n.syncWithLayout!==!1&&r.off(Tt,g),r._hasListeners(c)&&r._emit(c,s.slice(0)),b=0;b<s.length;b++){if(s[b]._gridId!==r._id){--h<1&&(k(a)&&a(m.slice(0)),r._hasListeners(f)&&r._emit(f,m.slice(0)));continue}s[b]._visibility[v](o,function(w,S){w||m.push(S),--h<1&&(k(a)&&a(m.slice(0)),r._hasListeners(f)&&r._emit(f,m.slice(0)))})}}d&&n.syncWithLayout!==!1?this.on(Tt,g):g(),d&&l&&this.layout(l===kt,k(l)?l:void 0)};function No(t,e){var i=ue({},t);return e&&(i=ue(i,e)),e&&e.visibleStyles?i.visibleStyles=e.visibleStyles:t&&t.visibleStyles&&(i.visibleStyles=t.visibleStyles),e&&e.hiddenStyles?i.hiddenStyles=e.hiddenStyles:t&&t.hiddenStyles&&(i.hiddenStyles=t.hiddenStyles),i}function ue(t,e){var i=Object.keys(e),r=i.length,s,n,o;for(o=0;o<r;o++){if(n=i[o],s=ss(e[n]),ss(t[n])&&s){t[n]=ue(ue({},t[n]),e[n]);continue}if(s){t[n]=ue({},e[n]);continue}if(Array.isArray(e[n])){t[n]=e[n].slice(0);continue}t[n]=e[n]}return t}function Po(t,e){if(e==="*")return t.children;if(typeof e===je){for(var i=[],r=t.children,s=0;s<r.length;s++)Me(r[s],e)&&i.push(r[s]);return i}return Array.isArray(e)||Ei(e)?e:[]}function Mo(t,e){typeof e!==ns&&(e=e===!0?0:-1),e>=0&&(t._resizeHandler=Ao(function(){t.refreshItems().layout()},e),window.addEventListener("resize",t._resizeHandler))}function Fo(t){t._resizeHandler&&(t._resizeHandler(!0),window.removeEventListener("resize",t._resizeHandler),t._resizeHandler=null)}function os(t){var e={},i=document.documentElement.style,r,s;for(r in t)t[r]&&(s=De(i,r),s&&(e[s]=t[r]));return e}function as(t){for(var e={},i=0;i<t.length;i++)e[t[i]._id]=i;return e}function Ge(t,e,i){var r=t[e._id],s=t[i._id];return r-s}var Bo=Object.defineProperty,Xo=(t,e,i)=>e in t?Bo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,He=(t,e,i)=>Xo(t,typeof e!="symbol"?e+"":e,i);function ls(t,e){return function(){return t.apply(e,arguments)}}const{toString:Yo}=Object.prototype,{getPrototypeOf:Ti}=Object,{iterator:qe,toStringTag:hs}=Symbol,Ve=(t=>e=>{const i=Yo.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),ut=t=>(t=t.toLowerCase(),e=>Ve(e)===t),Ue=t=>e=>typeof e===t,{isArray:Zt}=Array,Qt=Ue("undefined");function fe(t){return t!==null&&!Qt(t)&&t.constructor!==null&&!Qt(t.constructor)&&it(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const cs=ut("ArrayBuffer");function jo(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&cs(t.buffer),e}const Go=Ue("string"),it=Ue("function"),us=Ue("number"),de=t=>t!==null&&typeof t=="object",Ho=t=>t===!0||t===!1,ze=t=>{if(Ve(t)!=="object")return!1;const e=Ti(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(hs in t)&&!(qe in t)},qo=t=>{if(!de(t)||fe(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Vo=ut("Date"),Uo=ut("File"),zo=ut("Blob"),Wo=ut("FileList"),$o=t=>de(t)&&it(t.pipe),Jo=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||it(t.append)&&((e=Ve(t))==="formdata"||e==="object"&&it(t.toString)&&t.toString()==="[object FormData]"))},Ko=ut("URLSearchParams"),[Zo,Qo,ta,ea]=["ReadableStream","Request","Response","Headers"].map(ut),ia=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _e(t,e,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),Zt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{if(fe(t))return;const n=i?Object.getOwnPropertyNames(t):Object.keys(t),o=n.length;let a;for(r=0;r<o;r++)a=n[r],e.call(null,t[a],a,t)}}function fs(t,e){if(fe(t))return null;e=e.toLowerCase();const i=Object.keys(t);let r=i.length,s;for(;r-- >0;)if(s=i[r],e===s.toLowerCase())return s;return null}const Xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ds=t=>!Qt(t)&&t!==Xt;function Ai(){const{caseless:t,skipUndefined:e}=ds(this)&&this||{},i={},r=(s,n)=>{const o=t&&fs(i,n)||n;ze(i[o])&&ze(s)?i[o]=Ai(i[o],s):ze(s)?i[o]=Ai({},s):Zt(s)?i[o]=s.slice():(!e||!Qt(s))&&(i[o]=s)};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&_e(arguments[s],r);return i}const ra=(t,e,i,{allOwnKeys:r}={})=>(_e(e,(s,n)=>{i&&it(s)?t[n]=ls(s,i):t[n]=s},{allOwnKeys:r}),t),sa=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),na=(t,e,i,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},oa=(t,e,i,r)=>{let s,n,o;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),n=s.length;n-- >0;)o=s[n],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=i!==!1&&Ti(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},aa=(t,e,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=e.length;const r=t.indexOf(e,i);return r!==-1&&r===i},la=t=>{if(!t)return null;if(Zt(t))return t;let e=t.length;if(!us(e))return null;const i=new Array(e);for(;e-- >0;)i[e]=t[e];return i},ha=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ti(Uint8Array)),ca=(t,e)=>{const i=(t&&t[qe]).call(t);let r;for(;(r=i.next())&&!r.done;){const s=r.value;e.call(t,s[0],s[1])}},ua=(t,e)=>{let i;const r=[];for(;(i=t.exec(e))!==null;)r.push(i);return r},fa=ut("HTMLFormElement"),da=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,i,r){return i.toUpperCase()+r}),_s=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),_a=ut("RegExp"),ps=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),r={};_e(i,(s,n)=>{let o;(o=e(s,n,t))!==!1&&(r[n]=o||s)}),Object.defineProperties(t,r)},pa=t=>{ps(t,(e,i)=>{if(it(t)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const r=t[i];if(it(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},ma=(t,e)=>{const i={},r=s=>{s.forEach(n=>{i[n]=!0})};return Zt(t)?r(t):r(String(t).split(e)),i},ga=()=>{},va=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function ya(t){return!!(t&&it(t.append)&&t[hs]==="FormData"&&t[qe])}const ba=t=>{const e=new Array(10),i=(r,s)=>{if(de(r)){if(e.indexOf(r)>=0)return;if(fe(r))return r;if(!("toJSON"in r)){e[s]=r;const n=Zt(r)?[]:{};return _e(r,(o,a)=>{const l=i(o,s+1);!Qt(l)&&(n[a]=l)}),e[s]=void 0,n}}return r};return i(t,0)},Sa=ut("AsyncFunction"),wa=t=>t&&(de(t)||it(t))&&it(t.then)&&it(t.catch),ms=((t,e)=>t?setImmediate:e?((i,r)=>(Xt.addEventListener("message",({source:s,data:n})=>{s===Xt&&n===i&&r.length&&r.shift()()},!1),s=>{r.push(s),Xt.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",it(Xt.postMessage)),Ea=typeof queueMicrotask<"u"?queueMicrotask.bind(Xt):typeof process<"u"&&process.nextTick||ms,xa=t=>t!=null&&it(t[qe]),_={isArray:Zt,isArrayBuffer:cs,isBuffer:fe,isFormData:Jo,isArrayBufferView:jo,isString:Go,isNumber:us,isBoolean:Ho,isObject:de,isPlainObject:ze,isEmptyObject:qo,isReadableStream:Zo,isRequest:Qo,isResponse:ta,isHeaders:ea,isUndefined:Qt,isDate:Vo,isFile:Uo,isBlob:zo,isRegExp:_a,isFunction:it,isStream:$o,isURLSearchParams:Ko,isTypedArray:ha,isFileList:Wo,forEach:_e,merge:Ai,extend:ra,trim:ia,stripBOM:sa,inherits:na,toFlatObject:oa,kindOf:Ve,kindOfTest:ut,endsWith:aa,toArray:la,forEachEntry:ca,matchAll:ua,isHTMLForm:fa,hasOwnProperty:_s,hasOwnProp:_s,reduceDescriptors:ps,freezeMethods:pa,toObjectSet:ma,toCamelCase:da,noop:ga,toFiniteNumber:va,findKey:fs,global:Xt,isContextDefined:ds,isSpecCompliantForm:ya,toJSONObject:ba,isAsyncFn:Sa,isThenable:wa,setImmediate:ms,asap:Ea,isIterable:xa};function R(t,e,i,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}_.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}});const gs=R.prototype,vs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{vs[t]={value:t}}),Object.defineProperties(R,vs),Object.defineProperty(gs,"isAxiosError",{value:!0}),R.from=(t,e,i,r,s,n)=>{const o=Object.create(gs);_.toFlatObject(t,o,function(h){return h!==Error.prototype},h=>h!=="isAxiosError");const a=t&&t.message?t.message:"Error",l=e==null&&t?t.code:e;return R.call(o,a,l,i,r,s),t&&o.cause==null&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",n&&Object.assign(o,n),o};const Ta=null;function Di(t){return _.isPlainObject(t)||_.isArray(t)}function ys(t){return _.endsWith(t,"[]")?t.slice(0,-2):t}function bs(t,e,i){return t?t.concat(e).map(function(r,s){return r=ys(r),!i&&s?"["+r+"]":r}).join(i?".":""):e}function Aa(t){return _.isArray(t)&&!t.some(Di)}const Da=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function We(t,e,i){if(!_.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,i=_.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,m){return!_.isUndefined(m[d])});const r=i.metaTokens,s=i.visitor||h,n=i.dots,o=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(e);if(!_.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(_.isDate(d))return d.toISOString();if(_.isBoolean(d))return d.toString();if(!a&&_.isBlob(d))throw new R("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(d)||_.isTypedArray(d)?a&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function h(d,m,u){let p=d;if(d&&!u&&typeof d=="object"){if(_.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(_.isArray(d)&&Aa(d)||(_.isFileList(d)||_.endsWith(m,"[]"))&&(p=_.toArray(d)))return m=ys(m),p.forEach(function(b,g){!(_.isUndefined(b)||b===null)&&e.append(o===!0?bs([m],g,n):o===null?m:m+"[]",l(b))}),!1}return Di(d)?!0:(e.append(bs(u,m,n),l(d)),!1)}const c=[],f=Object.assign(Da,{defaultVisitor:h,convertValue:l,isVisitable:Di});function v(d,m){if(!_.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(d),_.forEach(d,function(u,p){(!(_.isUndefined(u)||u===null)&&s.call(e,u,_.isString(p)?p.trim():p,m,f))===!0&&v(u,m?m.concat(p):[p])}),c.pop()}}if(!_.isObject(t))throw new TypeError("data must be an object");return v(t),e}function Ss(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function Ri(t,e){this._pairs=[],t&&We(t,this,e)}const ws=Ri.prototype;ws.append=function(t,e){this._pairs.push([t,e])},ws.toString=function(t){const e=t?function(i){return t.call(this,i,Ss)}:Ss;return this._pairs.map(function(i){return e(i[0])+"="+e(i[1])},"").join("&")};function Ra(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Es(t,e,i){if(!e)return t;const r=i&&i.encode||Ra;_.isFunction(i)&&(i={serialize:i});const s=i&&i.serialize;let n;if(s?n=s(e,i):n=_.isURLSearchParams(e)?e.toString():new Ri(e,i).toString(r),n){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t}class xs{constructor(){this.handlers=[]}use(e,i,r){return this.handlers.push({fulfilled:e,rejected:i,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Ts={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ca=typeof URLSearchParams<"u"?URLSearchParams:Ri,Oa=typeof FormData<"u"?FormData:null,ka=typeof Blob<"u"?Blob:null,Ia={isBrowser:!0,classes:{URLSearchParams:Ca,FormData:Oa,Blob:ka},protocols:["http","https","file","blob","url","data"]},Ci=typeof window<"u"&&typeof document<"u",Oi=typeof navigator=="object"&&navigator||void 0,La=Ci&&(!Oi||["ReactNative","NativeScript","NS"].indexOf(Oi.product)<0),Na=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Pa=Ci&&window.location.href||"http://localhost",Ma=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ci,hasStandardBrowserEnv:La,hasStandardBrowserWebWorkerEnv:Na,navigator:Oi,origin:Pa},Symbol.toStringTag,{value:"Module"})),tt={...Ma,...Ia};function Fa(t,e){return We(t,new tt.classes.URLSearchParams,{visitor:function(i,r,s,n){return tt.isNode&&_.isBuffer(i)?(this.append(r,i.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...e})}function Ba(t){return _.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Xa(t){const e={},i=Object.keys(t);let r;const s=i.length;let n;for(r=0;r<s;r++)n=i[r],e[n]=t[n];return e}function As(t){function e(i,r,s,n){let o=i[n++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=n>=i.length;return o=!o&&_.isArray(s)?s.length:o,l?(_.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!_.isObject(s[o]))&&(s[o]=[]),e(i,r,s[o],n)&&_.isArray(s[o])&&(s[o]=Xa(s[o])),!a)}if(_.isFormData(t)&&_.isFunction(t.entries)){const i={};return _.forEachEntry(t,(r,s)=>{e(Ba(r),s,i,0)}),i}return null}function Ya(t,e,i){if(_.isString(t))try{return(e||JSON.parse)(t),_.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(i||JSON.stringify)(t)}const pe={transitional:Ts,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const i=e.getContentType()||"",r=i.indexOf("application/json")>-1,s=_.isObject(t);if(s&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return r?JSON.stringify(As(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t)||_.isReadableStream(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let n;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Fa(t,this.formSerializer).toString();if((n=_.isFileList(t))||i.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return We(n?{"files[]":t}:t,o&&new o,this.formSerializer)}}return s||r?(e.setContentType("application/json",!1),Ya(t)):t}],transformResponse:[function(t){const e=this.transitional||pe.transitional,i=e&&e.forcedJSONParsing,r=this.responseType==="json";if(_.isResponse(t)||_.isReadableStream(t))return t;if(t&&_.isString(t)&&(i&&!this.responseType||r)){const s=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(n){if(s)throw n.name==="SyntaxError"?R.from(n,R.ERR_BAD_RESPONSE,this,null,this.response):n}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],t=>{pe.headers[t]={}});const ja=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ga=t=>{const e={};let i,r,s;return t&&t.split(`
|
22
|
+
`).forEach(function(n){s=n.indexOf(":"),i=n.substring(0,s).trim().toLowerCase(),r=n.substring(s+1).trim(),!(!i||e[i]&&ja[i])&&(i==="set-cookie"?e[i]?e[i].push(r):e[i]=[r]:e[i]=e[i]?e[i]+", "+r:r)}),e},Ds=Symbol("internals");function me(t){return t&&String(t).trim().toLowerCase()}function $e(t){return t===!1||t==null?t:_.isArray(t)?t.map($e):String(t)}function Ha(t){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=i.exec(t);)e[r[1]]=r[2];return e}const qa=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ki(t,e,i,r,s){if(_.isFunction(r))return r.call(this,e,i);if(s&&(e=i),!!_.isString(e)){if(_.isString(r))return e.indexOf(r)!==-1;if(_.isRegExp(r))return r.test(e)}}function Va(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,i,r)=>i.toUpperCase()+r)}function Ua(t,e){const i=_.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+i,{value:function(s,n,o){return this[r].call(this,e,s,n,o)},configurable:!0})})}let rt=class{constructor(t){t&&this.set(t)}set(t,e,i){const r=this;function s(o,a,l){const h=me(a);if(!h)throw new Error("header name must be a non-empty string");const c=_.findKey(r,h);(!c||r[c]===void 0||l===!0||l===void 0&&r[c]!==!1)&&(r[c||a]=$e(o))}const n=(o,a)=>_.forEach(o,(l,h)=>s(l,h,a));if(_.isPlainObject(t)||t instanceof this.constructor)n(t,e);else if(_.isString(t)&&(t=t.trim())&&!qa(t))n(Ga(t),e);else if(_.isObject(t)&&_.isIterable(t)){let o={},a,l;for(const h of t){if(!_.isArray(h))throw TypeError("Object iterator must return a key-value pair");o[l=h[0]]=(a=o[l])?_.isArray(a)?[...a,h[1]]:[a,h[1]]:h[1]}n(o,e)}else t!=null&&s(e,t,i);return this}get(t,e){if(t=me(t),t){const i=_.findKey(this,t);if(i){const r=this[i];if(!e)return r;if(e===!0)return Ha(r);if(_.isFunction(e))return e.call(this,r,i);if(_.isRegExp(e))return e.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=me(t),t){const i=_.findKey(this,t);return!!(i&&this[i]!==void 0&&(!e||ki(this,this[i],i,e)))}return!1}delete(t,e){const i=this;let r=!1;function s(n){if(n=me(n),n){const o=_.findKey(i,n);o&&(!e||ki(i,i[o],o,e))&&(delete i[o],r=!0)}}return _.isArray(t)?t.forEach(s):s(t),r}clear(t){const e=Object.keys(this);let i=e.length,r=!1;for(;i--;){const s=e[i];(!t||ki(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const e=this,i={};return _.forEach(this,(r,s)=>{const n=_.findKey(i,s);if(n){e[n]=$e(r),delete e[s];return}const o=t?Va(s):String(s).trim();o!==s&&delete e[s],e[o]=$e(r),i[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return _.forEach(this,(i,r)=>{i!=null&&i!==!1&&(e[r]=t&&_.isArray(i)?i.join(", "):i)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
|
23
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach(r=>i.set(r)),i}static accessor(t){const e=(this[Ds]=this[Ds]={accessors:{}}).accessors,i=this.prototype;function r(s){const n=me(s);e[n]||(Ua(i,s),e[n]=!0)}return _.isArray(t)?t.forEach(r):r(t),this}};rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_.reduceDescriptors(rt.prototype,({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[i]=r}}}),_.freezeMethods(rt);function Ii(t,e){const i=this||pe,r=e||i,s=rt.from(r.headers);let n=r.data;return _.forEach(t,function(o){n=o.call(i,n,s.normalize(),e?e.status:void 0)}),s.normalize(),n}function Rs(t){return!!(t&&t.__CANCEL__)}function te(t,e,i){R.call(this,t??"canceled",R.ERR_CANCELED,e,i),this.name="CanceledError"}_.inherits(te,R,{__CANCEL__:!0});function Cs(t,e,i){const r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):e(new R("Request failed with status code "+i.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function za(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Wa(t,e){t=t||10;const i=new Array(t),r=new Array(t);let s=0,n=0,o;return e=e!==void 0?e:1e3,function(a){const l=Date.now(),h=r[n];o||(o=l),i[s]=a,r[s]=l;let c=n,f=0;for(;c!==s;)f+=i[c++],c=c%t;if(s=(s+1)%t,s===n&&(n=(n+1)%t),l-o<e)return;const v=h&&l-h;return v?Math.round(f*1e3/v):void 0}}function $a(t,e){let i=0,r=1e3/e,s,n;const o=(a,l=Date.now())=>{i=l,s=null,n&&(clearTimeout(n),n=null),t(...a)};return[(...a)=>{const l=Date.now(),h=l-i;h>=r?o(a,l):(s=a,n||(n=setTimeout(()=>{n=null,o(s)},r-h)))},()=>s&&o(s)]}const Je=(t,e,i=3)=>{let r=0;const s=Wa(50,250);return $a(n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,l=o-r,h=s(l),c=o<=a;r=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:h||void 0,estimated:h&&a&&c?(a-o)/h:void 0,event:n,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(f)},i)},Os=(t,e)=>{const i=t!=null;return[r=>e[0]({lengthComputable:i,total:t,loaded:r}),e[1]]},ks=t=>(...e)=>_.asap(()=>t(...e)),Ja=tt.hasStandardBrowserEnv?((t,e)=>i=>(i=new URL(i,tt.origin),t.protocol===i.protocol&&t.host===i.host&&(e||t.port===i.port)))(new URL(tt.origin),tt.navigator&&/(msie|trident)/i.test(tt.navigator.userAgent)):()=>!0,Ka=tt.hasStandardBrowserEnv?{write(t,e,i,r,s,n){const o=[t+"="+encodeURIComponent(e)];_.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),_.isString(r)&&o.push("path="+r),_.isString(s)&&o.push("domain="+s),n===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Za(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Qa(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Is(t,e,i){let r=!Za(e);return t&&(r||i==!1)?Qa(t,e):e}const Ls=t=>t instanceof rt?{...t}:t;function Yt(t,e){e=e||{};const i={};function r(h,c,f,v){return _.isPlainObject(h)&&_.isPlainObject(c)?_.merge.call({caseless:v},h,c):_.isPlainObject(c)?_.merge({},c):_.isArray(c)?c.slice():c}function s(h,c,f,v){if(_.isUndefined(c)){if(!_.isUndefined(h))return r(void 0,h,f,v)}else return r(h,c,f,v)}function n(h,c){if(!_.isUndefined(c))return r(void 0,c)}function o(h,c){if(_.isUndefined(c)){if(!_.isUndefined(h))return r(void 0,h)}else return r(void 0,c)}function a(h,c,f){if(f in e)return r(h,c);if(f in t)return r(void 0,h)}const l={url:n,method:n,data:n,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(h,c,f)=>s(Ls(h),Ls(c),f,!0)};return _.forEach(Object.keys({...t,...e}),function(h){const c=l[h]||s,f=c(t[h],e[h],h);_.isUndefined(f)&&c!==a||(i[h]=f)}),i}const Ns=t=>{const e=Yt({},t);let{data:i,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:n,headers:o,auth:a}=e;if(e.headers=o=rt.from(o),e.url=Es(Is(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),_.isFormData(i)){if(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(_.isFunction(i.getHeaders)){const l=i.getHeaders(),h=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{h.includes(c.toLowerCase())&&o.set(c,f)})}}if(tt.hasStandardBrowserEnv&&(r&&_.isFunction(r)&&(r=r(e)),r||r!==!1&&Ja(e.url))){const l=s&&n&&Ka.read(n);l&&o.set(s,l)}return e},tl=typeof XMLHttpRequest<"u",el=tl&&function(t){return new Promise(function(e,i){const r=Ns(t);let s=r.data;const n=rt.from(r.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:l}=r,h,c,f,v,d;function m(){v&&v(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(h),r.signal&&r.signal.removeEventListener("abort",h)}let u=new XMLHttpRequest;u.open(r.method.toUpperCase(),r.url,!0),u.timeout=r.timeout;function p(){if(!u)return;const g=rt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),w={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:t,request:u};Cs(function(S){e(S),m()},function(S){i(S),m()},w),u=null}"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(p)},u.onabort=function(){u&&(i(new R("Request aborted",R.ECONNABORTED,t,u)),u=null)},u.onerror=function(g){const w=g&&g.message?g.message:"Network Error",S=new R(w,R.ERR_NETWORK,t,u);S.event=g||null,i(S),u=null},u.ontimeout=function(){let g=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const w=r.transitional||Ts;r.timeoutErrorMessage&&(g=r.timeoutErrorMessage),i(new R(g,w.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,t,u)),u=null},s===void 0&&n.setContentType(null),"setRequestHeader"in u&&_.forEach(n.toJSON(),function(g,w){u.setRequestHeader(w,g)}),_.isUndefined(r.withCredentials)||(u.withCredentials=!!r.withCredentials),o&&o!=="json"&&(u.responseType=r.responseType),l&&([f,d]=Je(l,!0),u.addEventListener("progress",f)),a&&u.upload&&([c,v]=Je(a),u.upload.addEventListener("progress",c),u.upload.addEventListener("loadend",v)),(r.cancelToken||r.signal)&&(h=g=>{u&&(i(!g||g.type?new te(null,t,u):g),u.abort(),u=null)},r.cancelToken&&r.cancelToken.subscribe(h),r.signal&&(r.signal.aborted?h():r.signal.addEventListener("abort",h)));const b=za(r.url);if(b&&tt.protocols.indexOf(b)===-1){i(new R("Unsupported protocol "+b+":",R.ERR_BAD_REQUEST,t));return}u.send(s||null)})},il=(t,e)=>{const{length:i}=t=t?t.filter(Boolean):[];if(e||i){let r=new AbortController,s;const n=function(h){if(!s){s=!0,a();const c=h instanceof Error?h:this.reason;r.abort(c instanceof R?c:new te(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,n(new R(`timeout ${e} of ms exceeded`,R.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(h=>{h.unsubscribe?h.unsubscribe(n):h.removeEventListener("abort",n)}),t=null)};t.forEach(h=>h.addEventListener("abort",n));const{signal:l}=r;return l.unsubscribe=()=>_.asap(a),l}},rl=function*(t,e){let i=t.byteLength;if(i<e){yield t;return}let r=0,s;for(;r<i;)s=r+e,yield t.slice(r,s),r=s},sl=async function*(t,e){for await(const i of nl(t))yield*rl(i,e)},nl=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:i,value:r}=await e.read();if(i)break;yield r}}finally{await e.cancel()}},Ps=(t,e,i,r)=>{const s=sl(t,e);let n=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:h,value:c}=await s.next();if(h){a(),l.close();return}let f=c.byteLength;if(i){let v=n+=f;i(v)}l.enqueue(new Uint8Array(c))}catch(h){throw a(h),h}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},Ms=64*1024,{isFunction:Ke}=_,Fs=(({fetch:t,Request:e,Response:i})=>({fetch:t,Request:e,Response:i}))(_.global),{ReadableStream:Bs,TextEncoder:Xs}=_.global,Ys=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ol=t=>{const{fetch:e,Request:i,Response:r}=Object.assign({},Fs,t),s=Ke(e),n=Ke(i),o=Ke(r);if(!s)return!1;const a=s&&Ke(Bs),l=s&&(typeof Xs=="function"?(m=>u=>m.encode(u))(new Xs):async m=>new Uint8Array(await new i(m).arrayBuffer())),h=n&&a&&Ys(()=>{let m=!1;const u=new i(tt.origin,{body:new Bs,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!u}),c=o&&a&&Ys(()=>_.isReadableStream(new r("").body)),f={stream:c&&(m=>m.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(u,p)=>{let b=u&&u[m];if(b)return b.call(u);throw new R(`Response type '${m}' is not supported`,R.ERR_NOT_SUPPORT,p)})});const v=async m=>{if(m==null)return 0;if(_.isBlob(m))return m.size;if(_.isSpecCompliantForm(m))return(await new i(tt.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(_.isArrayBufferView(m)||_.isArrayBuffer(m))return m.byteLength;if(_.isURLSearchParams(m)&&(m=m+""),_.isString(m))return(await l(m)).byteLength},d=async(m,u)=>_.toFiniteNumber(m.getContentLength())??v(u);return async m=>{let{url:u,method:p,data:b,signal:g,cancelToken:w,timeout:S,onDownloadProgress:E,onUploadProgress:T,responseType:C,headers:j,withCredentials:I="same-origin",fetchOptions:st}=Ns(m);C=C?(C+"").toLowerCase():"text";let Y=il([g,w&&w.toAbortSignal()],S),U=null;const G=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let x;try{if(T&&h&&p!=="get"&&p!=="head"&&(x=await d(j,b))!==0){let ft=new i(u,{method:"POST",body:b,duplex:"half"}),gt;if(_.isFormData(b)&&(gt=ft.headers.get("content-type"))&&j.setContentType(gt),ft.body){const[ji,si]=Os(x,Je(ks(T)));b=Ps(ft.body,Ms,ji,si)}}_.isString(I)||(I=I?"include":"omit");const F=n&&"credentials"in i.prototype,at={...st,signal:Y,method:p.toUpperCase(),headers:j.normalize().toJSON(),body:b,duplex:"half",credentials:F?I:void 0};U=n&&new i(u,at);let $=await(n?e(U,st):e(u,at));const Et=c&&(C==="stream"||C==="response");if(c&&(E||Et&&G)){const ft={};["status","statusText","headers"].forEach(nn=>{ft[nn]=$[nn]});const gt=_.toFiniteNumber($.headers.get("content-length")),[ji,si]=E&&Os(gt,Je(ks(E),!0))||[];$=new r(Ps($.body,Ms,ji,()=>{si&&si(),G&&G()}),ft)}C=C||"text";let ri=await f[_.findKey(f,C)||"text"]($,m);return!Et&&G&&G(),await new Promise((ft,gt)=>{Cs(ft,gt,{data:ri,headers:rt.from($.headers),status:$.status,statusText:$.statusText,config:m,request:U})})}catch(F){throw G&&G(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,m,U),{cause:F.cause||F}):R.from(F,F&&F.code,m,U)}}},al=new Map,js=t=>{let e=_.merge.call({skipUndefined:!0},Fs,t?t.env:null);const{fetch:i,Request:r,Response:s}=e,n=[r,s,i];let o=n.length,a=o,l,h,c=al;for(;a--;)l=n[a],h=c.get(l),h===void 0&&c.set(l,h=a?new Map:ol(e)),c=h;return h};js();const Li={http:Ta,xhr:el,fetch:{get:js}};_.forEach(Li,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Gs=t=>`- ${t}`,ll=t=>_.isFunction(t)||t===null||t===!1,Hs={getAdapter:(t,e)=>{t=_.isArray(t)?t:[t];const{length:i}=t;let r,s;const n={};for(let o=0;o<i;o++){r=t[o];let a;if(s=r,!ll(r)&&(s=Li[(a=String(r)).toLowerCase()],s===void 0))throw new R(`Unknown adapter '${a}'`);if(s&&(_.isFunction(s)||(s=s.get(e))))break;n[a||"#"+o]=s}if(!s){const o=Object.entries(n).map(([l,h])=>`adapter ${l} `+(h===!1?"is not supported by the environment":"is not available in the build"));let a=i?o.length>1?`since :
|
24
|
+
`+o.map(Gs).join(`
|
25
|
+
`):" "+Gs(o[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:Li};function Ni(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new te(null,t)}function qs(t){return Ni(t),t.headers=rt.from(t.headers),t.data=Ii.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Hs.getAdapter(t.adapter||pe.adapter,t)(t).then(function(e){return Ni(t),e.data=Ii.call(t,t.transformResponse,e),e.headers=rt.from(e.headers),e},function(e){return Rs(e)||(Ni(t),e&&e.response&&(e.response.data=Ii.call(t,t.transformResponse,e.response),e.response.headers=rt.from(e.response.headers))),Promise.reject(e)})}const Vs="1.12.0",Ze={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ze[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Us={};Ze.transitional=function(t,e,i){function r(s,n){return"[Axios v"+Vs+"] Transitional option '"+s+"'"+n+(i?". "+i:"")}return(s,n,o)=>{if(t===!1)throw new R(r(n," has been removed"+(e?" in "+e:"")),R.ERR_DEPRECATED);return e&&!Us[n]&&(Us[n]=!0,console.warn(r(n," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,n,o):!0}},Ze.spelling=function(t){return(e,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function hl(t,e,i){if(typeof t!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const n=r[s],o=e[n];if(o){const a=t[n],l=a===void 0||o(a,n,t);if(l!==!0)throw new R("option "+n+" must be "+l,R.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new R("Unknown option "+n,R.ERR_BAD_OPTION)}}const Qe={assertOptions:hl,validators:Ze},mt=Qe.validators;let jt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new xs,response:new xs}}async request(t,e){try{return await this._request(t,e)}catch(i){if(i instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
26
|
+
`+s):i.stack=s}catch{}}throw i}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Yt(this.defaults,e);const{transitional:i,paramsSerializer:r,headers:s}=e;i!==void 0&&Qe.assertOptions(i,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),r!=null&&(_.isFunction(r)?e.paramsSerializer={serialize:r}:Qe.assertOptions(r,{encode:mt.function,serialize:mt.function},!0)),e.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Qe.assertOptions(e,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let n=s&&_.merge(s.common,s[e.method]);s&&_.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),e.headers=rt.concat(n,s);const o=[];let a=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(e)===!1||(a=a&&d.synchronous,o.unshift(d.fulfilled,d.rejected))});const l=[];this.interceptors.response.forEach(function(d){l.push(d.fulfilled,d.rejected)});let h,c=0,f;if(!a){const d=[qs.bind(this),void 0];for(d.unshift(...o),d.push(...l),f=d.length,h=Promise.resolve(e);c<f;)h=h.then(d[c++],d[c++]);return h}f=o.length;let v=e;for(c=0;c<f;){const d=o[c++],m=o[c++];try{v=d(v)}catch(u){m.call(this,u);break}}try{h=qs.call(this,v)}catch(d){return Promise.reject(d)}for(c=0,f=l.length;c<f;)h=h.then(l[c++],l[c++]);return h}getUri(t){t=Yt(this.defaults,t);const e=Is(t.baseURL,t.url,t.allowAbsoluteUrls);return Es(e,t.params,t.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(t){jt.prototype[t]=function(e,i){return this.request(Yt(i||{},{method:t,url:e,data:(i||{}).data}))}}),_.forEach(["post","put","patch"],function(t){function e(i){return function(r,s,n){return this.request(Yt(n||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}jt.prototype[t]=e(),jt.prototype[t+"Form"]=e(!0)});let cl=class on{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(s){i=s});const r=this;this.promise.then(s=>{if(!r._listeners)return;let n=r._listeners.length;for(;n-- >0;)r._listeners[n](s);r._listeners=null}),this.promise.then=s=>{let n;const o=new Promise(a=>{r.subscribe(a),n=a}).then(s);return o.cancel=function(){r.unsubscribe(n)},o},e(function(s,n,o){r.reason||(r.reason=new te(s,n,o),i(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const i=this._listeners.indexOf(e);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const e=new AbortController,i=r=>{e.abort(r)};return this.subscribe(i),e.signal.unsubscribe=()=>this.unsubscribe(i),e.signal}static source(){let e;return{token:new on(function(i){e=i}),cancel:e}}};function ul(t){return function(e){return t.apply(null,e)}}function fl(t){return _.isObject(t)&&t.isAxiosError===!0}const Pi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pi).forEach(([t,e])=>{Pi[e]=t});function zs(t){const e=new jt(t),i=ls(jt.prototype.request,e);return _.extend(i,jt.prototype,e,{allOwnKeys:!0}),_.extend(i,e,null,{allOwnKeys:!0}),i.create=function(r){return zs(Yt(t,r))},i}const V=zs(pe);V.Axios=jt,V.CanceledError=te,V.CancelToken=cl,V.isCancel=Rs,V.VERSION=Vs,V.toFormData=We,V.AxiosError=R,V.Cancel=V.CanceledError,V.all=function(t){return Promise.all(t)},V.spread=ul,V.isAxiosError=fl,V.mergeConfig=Yt,V.AxiosHeaders=rt,V.formToJSON=t=>As(_.isHTMLForm(t)?new FormData(t):t),V.getAdapter=Hs.getAdapter,V.HttpStatusCode=Pi,V.default=V;const{Axios:uh,AxiosError:fh,CanceledError:dh,isCancel:_h,CancelToken:ph,VERSION:mh,all:gh,Cancel:vh,isAxiosError:yh,spread:bh,toFormData:Sh,AxiosHeaders:wh,HttpStatusCode:Eh,formToJSON:xh,getAdapter:Th,mergeConfig:Ah}=V,Ws=V.create({baseURL:location.origin,timeout:6e4,params:{}});Ws.interceptors.response.use(t=>t,t=>{var e,i,r,s,n,o,a,l,h,c,f;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(m){m&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let v=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(v+=`${t.response.statusText} `),(r=(i=t.response)==null?void 0:i.config)!=null&&r.data&&(v+=`${t.response.config.data} `),(n=(s=t.response)==null?void 0:s.data)!=null&&n.message?v+=`${t.response.data.message}`:(a=(o=t.response)==null?void 0:o.data)!=null&&a.exception?v+=`${t.response.data.exception}`:(c=(h=(l=t.response)==null?void 0:l.data)==null?void 0:h.error)!=null&&c.message?(t.response.data.error.class&&(v+=`${t.response.data.error.class} `),v+=`${t.response.data.error.message}`):v+=`${(f=t.response)==null?void 0:f.data}`;const{$cosmosNotify:d}=window;throw d&&d.serious({title:"Network error",body:v}),t}else throw t});let dl=()=>({emit(t,...e){for(let i=this.events[t]||[],r=0,s=i.length;r<s;r++)i[r](...e)},events:{},on(t,e){var i;return((i=this.events)[t]||(i[t]=[])).push(e),()=>{var r;this.events[t]=(r=this.events[t])==null?void 0:r.filter(s=>e!==s)}}});class _l extends Error{constructor(e,i){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=i,this.name="ReasonError"}}function pl(t){return t?`{${Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>{let i=JSON.stringify(t[e]);return`${JSON.stringify(e)}:${i}`}).join(",")}}`:""}class ml{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,i){if(!this._info)return this._info={id:e,info:i},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((i,{id:r,info:s})=>(i[r]=s,i),{})}}const Gt=Symbol("state");class $s{constructor(e={}){this.emitter=dl(),this.params=Object.freeze(e),this.presence=new ml(this),this.initialConnect=!0,this[Gt]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=pl({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Gt]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[Gt]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Gt]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[Gt]="connected";let e=!0,i=!0;this.initialConnect=!1,this.emit("connect",{reconnect:i,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[Gt]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[Gt]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,i){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,i)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(i){let r=this.receiver?this.receiver.logger:null;r&&r.warn("whisper failed: ",i)}}receive(e,i){this.emit("message",e,i)}on(e,i){return this.emitter.on(e,i)}once(e,i){let r=this.emitter.on(e,(...s)=>{r(),i(...s)});return r}emit(e,...i){return this.emitter.emit(e,...i)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,i)=>{let r=[()=>delete this._pendingSubscribe];r.push(this.on("connect",()=>{r.forEach(s=>s()),e()})),r.push(this.on("close",s=>{r.forEach(n=>n()),i(s||new _l("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class gl extends $s{constructor(e,i){super(i),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}He(gl,"identifier","__ghost__");const vl="$pubsub";class yl extends $s{async perform(e,i){if(e.startsWith("$"))return super.perform(e,i);throw Error("not implemented")}}He(yl,"identifier",vl);function ge(t){return bl.test(t)}const bl=/^-?[0-9]+$/;function Js(t){return Sl.test(t)}const Sl=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Ks(t,e){if(ge(t))return Number.isSafeInteger(Number.parseInt(t,10));const i=Number.parseFloat(t),r=String(i);if(t===r)return!0;const s=Zs(t),n=Zs(r);return!!(s===n||(e==null?void 0:e.approx)===!0&&!ge(t)&&n.length>=14&&s.startsWith(n.substring(0,14)))}let ve=(function(t){return t.underflow="underflow",t.overflow="overflow",t.truncate_integer="truncate_integer",t.truncate_float="truncate_float",t})({});function wl(t){if(Ks(t,{approx:!1}))return;if(ge(t))return ve.truncate_integer;const e=Number.parseFloat(t);return Number.isFinite(e)?e===0?ve.underflow:ve.truncate_float:ve.overflow}function Zs(t){const{start:e,end:i}=El(t),r=t.substring(e,i),s=r.indexOf(".");return s===-1?r:r.substring(0,s)+r.substring(s+1)}function El(t){let e=0;for(t[0]==="-"&&e++;t[e]==="0"||t[e]===".";)e++;let i=t.lastIndexOf("e");for(i===-1&&(i=t.lastIndexOf("E")),i===-1&&(i=t.length);(t[i-1]==="0"||t[i-1]===".")&&i>e;)i--;return{start:e,end:i}}class xl{constructor(e){if(He(this,"isLosslessNumber",!0),!Js(e))throw new Error(`Invalid number (value: "${e}")`);this.value=e}valueOf(){const e=wl(this.value);if(e===void 0||e===ve.truncate_float)return Number.parseFloat(this.value);if(ge(this.value))return BigInt(this.value);throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`)}toString(){return this.value}}function Tl(t){return t&&typeof t=="object"&&t.isLosslessNumber||!1}function Al(t){return new xl(t)}function Dl(t,e){return Mi({"":t},"",t,e)}function Mi(t,e,i,r){return Array.isArray(i)?r.call(t,e,Cl(i,r)):i&&typeof i=="object"&&!Tl(i)?r.call(t,e,Rl(i,r)):r.call(t,e,i)}function Rl(t,e){for(const i of Object.keys(t)){const r=Mi(t,i,t[i],e);r!==void 0?t[i]=r:delete t[i]}return t}function Cl(t,e){for(let i=0;i<t.length;i++)t[i]=Mi(t,String(i),t[i],e);return t}function Ol(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Al,r=0;const s=a();return m(s),p(),e?Dl(s,e):s;function n(){if(t.charCodeAt(r)===Ml){r++,h();const x={};let F=!0;for(;r<t.length&&t.charCodeAt(r)!==tn;){F?F=!1:(v(),h());const at=r,$=c();if($===void 0){w();return}h(),d();const Et=a();if(Et===void 0){I();return}Object.prototype.hasOwnProperty.call(x,$)&&!Fi(Et,x[$])&&S($,at+1),x[$]=Et}return t.charCodeAt(r)!==tn&&E(),r++,x}}function o(){if(t.charCodeAt(r)===Fl){r++,h();const x=[];let F=!0;for(;r<t.length&&t.charCodeAt(r)!==en;){F?F=!1:v();const at=a();u(at),x.push(at)}return t.charCodeAt(r)!==en&&T(),r++,x}}function a(){h();const x=c()??f()??n()??o()??l("true",!0)??l("false",!1)??l("null",null);return h(),x}function l(x,F){if(t.slice(r,r+x.length)===x)return r+=x.length,F}function h(){for(;kl(t.charCodeAt(r));)r++}function c(){if(t.charCodeAt(r)===Bi){r++;let x="";for(;r<t.length&&t.charCodeAt(r)!==Bi;){if(t.charCodeAt(r)===Pl){const F=t[r+1],at=Nl[F];at!==void 0?(x+=at,r++):F==="u"?ti(t.charCodeAt(r+2))&&ti(t.charCodeAt(r+3))&&ti(t.charCodeAt(r+4))&&ti(t.charCodeAt(r+5))?(x+=String.fromCharCode(Number.parseInt(t.slice(r+2,r+6),16)),r+=5):st(r):j(r)}else Ll(t.charCodeAt(r))?x+=t[r]:C(t[r]);r++}return g(),r++,x}}function f(){const x=r;if(t.charCodeAt(r)===rn&&(r++,b(x)),t.charCodeAt(r)===Xi)r++;else if(Il(t.charCodeAt(r)))for(r++;ei(t.charCodeAt(r));)r++;if(t.charCodeAt(r)===Vl)for(r++,b(x);ei(t.charCodeAt(r));)r++;if(t.charCodeAt(r)===Jl||t.charCodeAt(r)===$l)for(r++,(t.charCodeAt(r)===rn||t.charCodeAt(r)===Gl)&&r++,b(x);ei(t.charCodeAt(r));)r++;if(r>x)return i(t.slice(x,r))}function v(){if(t.charCodeAt(r)!==ql)throw new SyntaxError(`Comma ',' expected after value ${G()}`);r++}function d(){if(t.charCodeAt(r)!==Ul)throw new SyntaxError(`Colon ':' expected after property name ${G()}`);r++}function m(x){if(x===void 0)throw new SyntaxError(`JSON value expected ${G()}`)}function u(x){if(x===void 0)throw new SyntaxError(`Array item expected ${G()}`)}function p(){if(r<t.length)throw new SyntaxError(`Expected end of input ${G()}`)}function b(x){if(!ei(t.charCodeAt(r))){const F=t.slice(x,r);throw new SyntaxError(`Invalid number '${F}', expecting a digit ${G()}`)}}function g(){if(t.charCodeAt(r)!==Bi)throw new SyntaxError(`End of string '"' expected ${G()}`)}function w(){throw new SyntaxError(`Quoted object key expected ${G()}`)}function S(x,F){throw new SyntaxError(`Duplicate key '${x}' encountered at position ${F}`)}function E(){throw new SyntaxError(`Quoted object key or end of object '}' expected ${G()}`)}function T(){throw new SyntaxError(`Array item or end of array ']' expected ${G()}`)}function C(x){throw new SyntaxError(`Invalid character '${x}' ${Y()}`)}function j(x){const F=t.slice(x,x+2);throw new SyntaxError(`Invalid escape character '${F}' ${Y()}`)}function I(){throw new SyntaxError(`Object value expected after ':' ${Y()}`)}function st(x){const F=t.slice(x,x+6);throw new SyntaxError(`Invalid unicode character '${F}' ${Y()}`)}function Y(){return`at position ${r}`}function U(){return r<t.length?`but got '${t[r]}'`:"but reached end of input"}function G(){return`${U()} ${Y()}`}}function kl(t){return t===Bl||t===Xl||t===Yl||t===jl}function ti(t){return t>=Xi&&t<=Yi||t>=zl&&t<=Kl||t>=Wl&&t<=Zl}function ei(t){return t>=Xi&&t<=Yi}function Il(t){return t>=Hl&&t<=Yi}function Ll(t){return t>=32&&t<=1114111}function Fi(t,e){return t===e?!0:Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&t.every((i,r)=>Fi(i,e[r])):Qs(t)&&Qs(e)?[...new Set([...Object.keys(t),...Object.keys(e)])].every(i=>Fi(t[i],e[i])):!1}function Qs(t){return typeof t=="object"&&t!==null}const Nl={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
27
|
+
`,r:"\r",t:" "},Pl=92,Ml=123,tn=125,Fl=91,en=93,Bl=32,Xl=10,Yl=9,jl=13,Bi=34,Gl=43,rn=45,Xi=48,Hl=49,Yi=57,ql=44,Vl=46,Ul=58,zl=65,Wl=97,$l=69,Jl=101,Kl=70,Zl=102;function sn(t,e,i,r){return s(t);function s(l,h){if(Array.isArray(r)){const c=r.find(f=>f.test(l));if(c){const f=c.stringify(l);if(typeof f!="string"||!Js(f))throw new Error(`Invalid JSON number: output of a number stringifier must be a string containing a JSON number (output: ${f})`);return f}}if(typeof l=="boolean"||typeof l=="number"||typeof l=="string"||l===null||l instanceof Date||l instanceof Boolean||l instanceof Number||l instanceof String)return JSON.stringify(l);if(l!=null&&l.isLosslessNumber||typeof l=="bigint")return l.toString();if(Array.isArray(l))return n(l);if(l&&typeof l=="object")return o(l)}function n(l,h){if(l.length===0)return"[]";let c="[";for(let f=0;f<l.length;f++){const v=l[f];typeof v<"u"&&typeof v!="function"?c+=s(v):c+="null",f<l.length-1&&(c+=",")}return c+="]",c}function o(l,h){if(typeof l.toJSON=="function")return sn(l.toJSON(),e,i,void 0);const c=Array.isArray(e)?e.map(String):Object.keys(l);if(c.length===0)return"{}";let f=!0,v="{";for(const d of c){const m=l[d];if(a(d,m)){f?f=!1:v+=",";const u=JSON.stringify(d);v+=`${u}:`,v+=s(m)}}return v+="}",v}function a(l,h){return typeof h<"u"&&typeof h!="function"&&typeof h!="symbol"}}function Ql(t){return ge(t)&&!Ks(t)?BigInt(t):parseFloat(t)}class th{constructor(){He(this,"id",1)}async exec(e,i,r={},s={},n=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return r.scope=window.openc3Scope,s.manual=!0,(await Ws.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:i,id:this.id,keyword_params:r},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:n,transformRequest:[(o,a)=>sn(o)],transformResponse:[o=>Ol(o,void 0,Ql)]})).data.result}catch(o){let a=new Error;throw o.response?(a.name=o.response.data.error.data.class,a.message=o.response.data.error.data.message,a.object=o.response.data.error):o.request?(a.name="Request error",a.message="Request error, no response received"):a=o,a}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,i){return this.exec("map_target_to_interface",[e,i])}connect_interface(e,...i){return i.length>0?this.exec("connect_interface",[e,...i]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,i,...r){return this.exec("interface_cmd",[e,i,...r])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,i,r){return this.exec("get_item",[e,i,r])}get_param(e,i,r){return this.exec("get_param",[e,i,r])}get_parameter(e,i,r){return this.exec("get_param",[e,i,r])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,i){return this.exec("get_tlm",[e,i])}get_telemetry(e,i){return this.exec("get_tlm",[e,i])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,i=!1){return this.exec("get_all_tlm_names",[e],{hidden:i})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}get_all_tlm_item_names(e){return this.exec("get_all_tlm_item_names",[e])}async get_tlm_packet(e,i,r,s=30){const n=await this.exec("get_tlm_packet",[e,i],{type:r,stale_time:s});if(n!=null){let o=n.length,a=null;for(let l=0;l<o;l++)a=this.decode_openc3_type(n[l][1]),a!==null&&(n[l][1]=a)}return n}get_packet_derived_items(e,i){return this.exec("get_packet_derived_items",[e,i])}get_tlm_buffer(e,i){return this.exec("get_tlm_buffer",[e,i])}get_tlm_available(e){return this.exec("get_tlm_available",[e])}async get_tlm_values(e,i=30,r=null,s=null,n=null){let o={stale_time:i};r!==null&&(o.cache_timeout=r),s!==null&&(o.start_time=s.toISOString()),n!==null&&(o.end_time=n.toISOString());const a=await this.exec("get_tlm_values",[e],o,{},1e4);if(a&&a.length>0){let l=a[0].length,h=null;for(let c=0;c<l;c++)h=this.decode_openc3_type(a[0][c]),h!==null&&(a[0][c]=h)}return a}get_limits(e,i,r){return this.exec("get_limits",[e,i,r])}async tlm(e,i,r,s="CONVERTED"){let n=null;if(i===void 0)n=await this.exec("tlm",[e]);else if(r===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(i))n=await this.exec("tlm",[e],{type:i});else{let a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${i}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,a}else n=await this.exec("tlm",[e,i,r],{type:s});let o=this.decode_openc3_type(n);return o!==null&&(n=o),n}async inject_tlm(e,i,r=null,s="CONVERTED"){await this.exec("inject_tlm",[e,i,r],{type:s})}set_tlm(e,i,r,s){return this.exec("set_tlm",[e,i,r],{type:s})}override_tlm(e,i,r,s){return this.exec("override_tlm",[e,i,r],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,i,r,s){return this.exec("normalize_tlm",[e,i,r],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,i=!1){return this.exec("get_all_cmd_names",[e],{hidden:i})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,i){return this.exec("get_cmd",[e,i])}get_command(e,i){return this.exec("get_cmd",[e,i])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,i,r,s="CONVERTED"){return this.exec("get_cmd_value",[e,i,r,s])}get_cmd_buffer(e,i){return this.exec("get_cmd_buffer",[e,i])}_cmd(e,i,r,s,n,o={}){let a=null;for(let l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a=this.encode_openc3_type(s[l]),a!==null&&(s[l]=a));return this.exec(e,[i,r,s],o,n)}get_cmd_hazardous(e,i,r,s={}){return i===void 0?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,i,r,s)}cmd(e,i,r,s={},n={}){return i===void 0?this.exec("cmd",e,{},s):this._cmd("cmd",e,i,r,s,n)}cmd_no_range_check(e,i,r,s={},n={}){return i===void 0?this.exec("cmd_no_range_check",e,{},s,n):this._cmd("cmd_no_range_check",e,i,r,s,n)}cmd_raw(e,i,r,s={},n={}){return i===void 0?this.exec("cmd_raw",e,{},s,n):this._cmd("cmd_raw",e,i,r,s,n)}cmd_raw_no_range_check(e,i,r,s={},n={}){return i===void 0?this.exec("cmd_raw_no_range_check",e,{},s,n):this._cmd("cmd_raw_no_range_check",e,i,r,s,n)}cmd_no_hazardous_check(e,i,r,s={},n={}){return i===void 0?this.exec("cmd_no_hazardous_check",e,{},s,n):this._cmd("cmd_no_hazardous_check",e,i,r,s,n)}cmd_no_checks(e,i,r,s={},n={}){return i===void 0?this.exec("cmd_no_checks",e,{},s,n):this._cmd("cmd_no_checks",e,i,r,s,n)}cmd_raw_no_hazardous_check(e,i,r,s={},n={}){return i===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},s,n):this._cmd("cmd_raw_no_hazardous_check",e,i,r,s,n)}cmd_raw_no_checks(e,i,r,s={},n={}){return i===void 0?this.exec("cmd_raw_no_checks",e,{},s,n):this._cmd("cmd_raw_no_checks",e,i,r,s,n)}build_cmd(e,i,r,s={},n={}){return i===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,i,r,s,n)}build_command(e,i,r,s={},n={}){return i===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,i,r,s,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,i){return this.exec("send_raw",[e,i])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,i){return this.exec("load_config",[e,i])}save_config(e,i,r){return this.exec("save_config",[e,i,r])}delete_config(e,i){return this.exec("delete_config",[e,i])}enable_limits(e,i,r){return this.exec("enable_limits",[e,i,r])}disable_limits(e,i,r){return this.exec("disable_limits",[e,i,r])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e,i){return this.exec("get_setting",[e],i)}get_settings(e,i){return this.exec("get_settings",e,i)}set_setting(e,i){return this.exec("set_setting",[e,i])}update_news(){return this.exec("update_news",[])}update_plugin_store(){return this.exec("update_plugin_store",[])}save_setting(e,i){return this.exec("set_setting",[e,i])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const i=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",i),s=new Uint8Array(r);return Array.from(s).map(n=>n.toString(16).padStart(2,"0")).join("")}}}const eh={props:{settings:{type:Object,required:!0}},data(){return{show:!1}}};function ih(t,e,i,r,s,n){const o=N("v-spacer"),a=N("v-toolbar"),l=N("v-text-field"),h=N("v-row"),c=N("v-card-text"),f=N("v-card"),v=N("v-dialog");return B(),z(v,{modelValue:s.show,"onUpdate:modelValue":e[0]||(e[0]=d=>s.show=d),width:"600"},{default:O(()=>[L(a,{height:"24"},{default:O(()=>[L(o),e[1]||(e[1]=It("span",null,"TlmGrapher Settings",-1)),L(o)]),_:1}),L(f,{class:"pa-3"},{default:O(()=>[L(c,null,{default:O(()=>[(B(!0),nt(vt,null,Lt(i.settings,d=>(B(),nt("div",{key:d.title},[L(h,{class:"my-5"},{default:O(()=>[L(l,{modelValue:d.value,"onUpdate:modelValue":m=>d.value=m,modelModifiers:{number:!0},"hide-details":"auto",type:"number",rules:d.rules,label:d.title},null,8,["modelValue","onUpdate:modelValue","rules","label"])]),_:2},1024)]))),128)),L(h,null,{default:O(()=>[...e[2]||(e[2]=[It("span",{class:"text-red"}," Increasing these values may cause issues ",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}const rh=ni(eh,[["render",ih]]),ii=250,sh={components:{Graph:Wi,OpenConfigDialog:Vi,SaveConfigDialog:qi,SettingsDialog:rh,TargetPacketItemChooser:zi,TopBar:un},mixins:[Hi],data(){return{title:"Telemetry Grapher",configKey:"telemetry_grapher",showOpenConfig:!1,showSaveConfig:!1,showSettingsDialog:!1,api:null,timeZone:null,grid:null,panel:0,state:"stop",startTime:null,graphs:[0],selectedGraphId:0,counter:1,applyingConfig:!1,observer:null,menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{this.showOpenConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{this.showSaveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{this.panel=0,this.closeAllGraphs(),this.resetConfigBase()}}]},{label:"Graph",items:[{label:"Add Graph",icon:"mdi-plus",command:()=>{this.addGraph()}},{divider:!0},{label:"Start / Resume",icon:"mdi-play",command:()=>{this.state="start"}},{label:"Pause",icon:"mdi-pause",command:()=>{this.state="pause"}},{label:"Stop",icon:"mdi-stop",command:()=>{this.state="stop"}},{divider:!0},{label:"Clear All Data",icon:"mdi-eraser",command:()=>{this.clearAllData()}},{label:"Settings",icon:"mdi-cog",command:()=>{this.showSettingsDialog=!0}}]}],settings:{secondsGraphed:{title:"Seconds Graphed",value:1e3,rules:[t=>!!t||"Required"]},pointsSaved:{title:"Points Saved",value:1e6,rules:[t=>!!t||"Required"]},pointsGraphed:{title:"Points Graphed",value:1e3,rules:[t=>!!t||"Required"]},refreshIntervalMs:{title:"Refresh Interval Ms",value:100,rules:[t=>!!t||"Required"]}}}},computed:{currentConfig:function(){return{settings:{secondsGraphed:this.settings.secondsGraphed.value,pointsSaved:this.settings.pointsSaved.value,pointsGraphed:this.settings.pointsGraphed.value,refreshIntervalMs:this.settings.refreshIntervalMs.value},graphs:this.grid.getItems().map(t=>{const e=`graph${t.getElement().id.substring(8)}`,i=this.$refs[e][0];let r={items:i.items,title:i.title,fullWidth:i.fullWidth,fullHeight:i.fullHeight,graphMinX:i.graphMinX,graphMaxX:i.graphMaxX,legendPosition:i.legendPosition,lines:i.lines,xAxisItem:i.xAxisItem};return i.graphStartDateTime&&i.graphEndDateTime&&(r.graphStartDateTime=i.graphStartDateTime,r.graphEndDateTime=i.graphEndDateTime),r})}}},watch:{settings:{handler:function(){this.saveDefaultConfig(this.currentConfig)},deep:!0},panel:function(){this.resizeAll()}},created(){this.api=new th,this.api.get_setting("time_zone").then(t=>{t?this.timeZone=t:this.timeZone="local",this.$nextTick(()=>{this.setup()})}).catch(t=>{})},beforeUnmount(){this.observer.disconnect()},methods:{setup:function(){if(this.grid=new D(".grid",{dragEnabled:!0,layoutOnResize:!0,dragHandle:".v-toolbar"}),this.grid.on("move",function(e){e.item.getGrid().synchronize()}),this.$route.query&&this.$route.query.config)this.openConfiguration(this.$route.query.config,!0);else if(this.$route.params.target&&this.$route.params.packet&&this.$route.params.item)this.addItem({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase(),itemName:this.$route.params.item.toUpperCase(),valueType:"CONVERTED",reduced:"DECOM"});else{let e=this.loadDefaultConfig();JSON.stringify(e)!=="{}"&&this.applyConfig(e)}this.observer=new MutationObserver(()=>{this.resizeAll()});const t=document.getElementById("openc3-nav-drawer");this.observer.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})},resizeAll:function(){setTimeout(()=>{this.grid.getItems().map(t=>{const e=`graph${t.getElement().id.substring(8)}`;this.$refs[e][0].resize()}),this.resize()},ii)},graphSelected:function(t){this.selectedGraphId=t},addItem:function(t,e=!0){for(const i of this.$refs[`graph${this.selectedGraphId}`][0].items)if(t.targetName===i.targetName&&t.packetName===i.packetName&&t.itemName===i.itemName&&t.valueType===i.valueType&&t.reduced===i.reduced&&t.reducedType===i.reducedType){this.$notify.caution({title:"Item Already Exists",body:`Item ${t.targetName} ${t.packetName} ${t.itemName} with ${t.valueType} ${t.reduced} ${t.reducedType} already exists!`});return}this.$refs[`graph${this.selectedGraphId}`][0].addItems([t]),e===!0&&(this.state="start"),this.saveDefaultConfig(this.currentConfig)},addGraph:function(t=!0){const e=this.counter;let i=!1,r=!1;t&&this.graphs.length!=0&&(this.$refs[`graph${this.graphs[0]}`][0].fullWidth===!1&&(i=!0),this.$refs[`graph${this.graphs[0]}`][0].fullHeight===!1&&(r=!0)),this.graphs.push(e),this.counter+=1,this.$nextTick(function(){let s=this.grid.add(this.$refs[`gridItem${e}`],{active:!1});this.grid.show(s),this.selectedGraphId=e,i&&this.$refs[`graph${e}`][0].collapseWidth(),r&&this.$refs[`graph${e}`][0].collapseHeight(),setTimeout(()=>{this.grid.refreshItems().layout()},ii)}),this.saveDefaultConfig(this.currentConfig)},closeGraph:function(t){let e=this.grid.getItems([document.getElementById(`gridItem${t}`)]);this.grid.remove(e),this.graphs.splice(this.graphs.indexOf(t),1),this.graphs.length===0?(this.startTime=null,this.selectedGraphId=null):this.selectedGraphId=this.graphs[0],this.saveDefaultConfig(this.currentConfig)},closeAllGraphs:function(){for(let t of[...this.graphs])this.closeGraph(t);this.counter=0},clearAllData:function(){for(let t of this.graphs)this.$refs[`graph${t}`][0].clearAllData()},minMaxGraph:function(t){this.selectedGraphId=t,setTimeout(()=>{this.grid.refreshItems().layout()},ii*2),this.saveDefaultConfig(this.currentConfig)},resize:function(){const t=document.querySelectorAll(".u-legend");let e=0;t.forEach(i=>{i.style.height="",i.clientHeight>e&&(e=i.clientHeight)}),e!==0&&t.forEach(i=>{i.clientHeight!==e&&(i.style.height=`${e}px`)}),setTimeout(()=>{this.grid.refreshItems().layout()},ii*2)},graphStarted:function(t){this.startTime===null&&(this.startTime=t)},applyConfig:async function(t){this.dontSaveDefaultConfig=!0,this.closeAllGraphs(),await this.$nextTick(),this.settings.secondsGraphed.value=t.settings.secondsGraphed,this.settings.pointsSaved.value=t.settings.pointsSaved,this.settings.pointsGraphed.value=t.settings.pointsGraphed,this.settings.refreshIntervalMs.value=t.settings.refreshIntervalMs;let e=t.graphs;for(let r of e)this.addGraph(!1);await this.$nextTick();const i=this;e.forEach(function(r,s){let n=i.$refs[`graph${s}`][0];n.title=r.title,n.fullWidth=r.fullWidth,n.fullHeight=r.fullHeight,n.graphMinX=r.graphMinX,n.graphMaxX=r.graphMaxX,n.graphStartDateTime=r.graphStartDateTime,n.graphEndDateTime=r.graphEndDateTime,n.moveLegend(r.legendPosition),n.addItems([...r.items]),n.lines=r.lines,n.xAxisItem=r.xAxisItem}),this.state="start",this.dontSaveDefaultConfig=!1},openConfiguration:function(t,e=!1){this.openConfigBase(t,e,async i=>{await this.applyConfig(i),this.saveDefaultConfig(i)}),this.panel=null},saveConfiguration:function(t){this.saveConfigBase(t,this.currentConfig)}}},nh={key:0},oh={class:"grid"},ah=["id"],lh={class:"item-content"};function hh(t,e,i,r,s,n){var E;const o=N("top-bar"),a=N("v-expansion-panel-title"),l=N("v-spacer"),h=N("v-row"),c=N("target-packet-item-chooser"),f=N("v-btn"),v=N("v-col"),d=N("v-container"),m=N("v-expansion-panel-text"),u=N("v-expansion-panel"),p=N("v-expansion-panels"),b=N("graph"),g=N("open-config-dialog"),w=N("save-config-dialog"),S=N("settings-dialog");return B(),nt(vt,null,[L(o,{menus:s.menus,title:s.title},null,8,["menus","title"]),L(p,{modelValue:s.panel,"onUpdate:modelValue":e[2]||(e[2]=T=>s.panel=T),class:"expansion"},{default:O(()=>[L(u,null,{default:O(()=>[L(a,{class:"pulse-i"}),L(m,null,{default:O(()=>[s.selectedGraphId===null?(B(),nt("div",nh,[L(h,{class:"my-5"},{default:O(()=>[L(l),e[10]||(e[10]=It("span",null," Add a graph or select an existing graph to continue ",-1)),L(l)]),_:1})])):(B(),z(d,{key:1},{default:O(()=>[L(c,{"initial-target-name":t.$route.params.target,"initial-packet-name":t.$route.params.packet,"initial-item-name":t.$route.params.item,"button-text":"Add Item","choose-item":"","select-types":"","show-latest":"",onAddItem:n.addItem},null,8,["initial-target-name","initial-packet-name","initial-item-name","onAddItem"]),L(h,{class:"grapher-info"},{default:O(()=>[L(v,{cols:"12",class:"d-flex justify-end",style:{"max-width":"1364px"}},{default:O(()=>[ye(L(f,{class:"blink mr-9",color:"primary","data-test":"start-graph",icon:"mdi-play",size:"large",onClick:e[0]||(e[0]=()=>{s.state="start"})},null,512),[[be,s.state==="pause"]]),ye(L(f,{class:"mr-9",color:"primary","data-test":"pause-graph",icon:"mdi-pause",size:"large",onClick:e[1]||(e[1]=()=>{s.state="pause"})},null,512),[[be,s.state==="start"]])]),_:1})]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1},8,["modelValue"]),(E=s.graphs)!=null&&E.length?xt("",!0):(B(),z(f,{key:0,class:"ma-1",text:"Add Graph","prepend-icon":"mdi-plus",onClick:n.addGraph},null,8,["onClick"])),It("div",oh,[(B(!0),nt(vt,null,Lt(s.graphs,T=>ye((B(),nt("div",{id:`gridItem${T}`,key:T,ref_for:!0,ref:`gridItem${T}`,class:"item"},[It("div",lh,[L(b,{id:T,ref_for:!0,ref:`graph${T}`,state:s.state,"start-time":s.startTime,"selected-graph-id":s.selectedGraphId,"seconds-graphed":s.settings.secondsGraphed.value,"points-saved":s.settings.pointsSaved.value,"points-graphed":s.settings.pointsGraphed.value,"refresh-interval-ms":s.settings.refreshIntervalMs.value,"time-zone":s.timeZone,onCloseGraph:()=>n.closeGraph(T),onMinMaxGraph:()=>n.minMaxGraph(T),onResize:e[3]||(e[3]=()=>n.resize()),onPause:e[4]||(e[4]=()=>s.state="pause"),onStart:e[5]||(e[5]=()=>s.state="start"),onClick:()=>n.graphSelected(T),onEdit:e[6]||(e[6]=C=>t.saveDefaultConfig(n.currentConfig)),onStarted:n.graphStarted},null,8,["id","state","start-time","selected-graph-id","seconds-graphed","points-saved","points-graphed","refresh-interval-ms","time-zone","onCloseGraph","onMinMaxGraph","onClick","onStarted"])])],8,ah)),[[be,s.timeZone]])),128))]),s.showOpenConfig?(B(),z(g,{key:1,modelValue:s.showOpenConfig,"onUpdate:modelValue":e[7]||(e[7]=T=>s.showOpenConfig=T),"config-key":s.configKey,onSuccess:n.openConfiguration},null,8,["modelValue","config-key","onSuccess"])):xt("",!0),s.showSaveConfig?(B(),z(w,{key:2,modelValue:s.showSaveConfig,"onUpdate:modelValue":e[8]||(e[8]=T=>s.showSaveConfig=T),"config-key":s.configKey,onSuccess:n.saveConfiguration},null,8,["modelValue","config-key","onSuccess"])):xt("",!0),s.showSettingsDialog?(B(),z(S,{key:3,modelValue:s.showSettingsDialog,"onUpdate:modelValue":e[9]||(e[9]=T=>s.showSettingsDialog=T),settings:s.settings},null,8,["modelValue","settings"])):xt("",!0)],64)}const Dh=an("default",ni(sh,[["render",hh],["__scopeId","data-v-c72706b6"]]))})}}));
|
@@ -1 +1 @@
|
|
1
|
-
System.register(["./main-
|
1
|
+
System.register(["./main-ad836d6160b8fa2b08fa.js","./Widget-BIXl-Pk5-314e11c982d247a5bf99.js"],(function(a,n){"use strict";var r,i;return{setters:[s=>{r=s.R},s=>{i=s.o}],execute:(function(){const s={methods:{formatValueBase(e,t){return this.isJsonString(e)?this.formatJsonString(e):Array.isArray(e)?this.formatArray(e):this.isObject(e)?"":t&&e?sprintf(t,e):String(e)},isJsonString(e){return e&&e.json_class==="String"&&e.raw!==void 0},formatJsonString(e){let t=Array.from(e.raw.slice(0,32),l=>("0"+(l&255).toString(16)).slice(-2)).join(" ").toUpperCase();return e.raw.length>32&&(t+="..."),t},formatArray(e){return"["+e.map(t=>typeof t=="string"?`"${t}"`:t).join(", ")+"]"},isObject(e){return Object.prototype.toString.call(e).slice(8,-1)==="Object"}}},u=a("h",{mixins:[i,r,s],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2])+"/","_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return e===null&&(this.screenValues?this.screenValues[this.valueId]&&(e=this.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let e=this._limitsState;if(e!=null)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(e!=null){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){try{return e&&this.valueId&&(this.valueId.toUpperCase().includes("PACKET_TIMEFORMATTED")||this.valueId.toUpperCase().includes("RECEIVED_TIMEFORMATTED"))&&(e=this.formatUtcToLocal(new Date(e.replaceAll("/","-")),this.appliedTimeZone)),this.formatValueBase(e,this.formatString)}catch(t){return console.log(`${this.valueId} formatValue on ${e} with ${this.formatString} failed due to ${t}`),e}},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})})}}));
|