@openfin/workspace-platform 23.1.5 → 23.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var e={877:()=>{},67:()=>{},516:(e,t)=>{var a={9037:function(e,t,a){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbaColor=t.getMostReadable=t.darkenColor=t.lightenColor=void 0;const o=n(a(6535)),r=(e,t,a)=>{if(a&&(a<0||a>100))throw new Error(`${a} must be a number between 0 and 100`);return(0,o.default)(e)[t](a).toString()};t.lightenColor=(e,t)=>r(e,"lighten",t),t.darkenColor=(e,t)=>r(e,"darken",t),t.getMostReadable=(e,t)=>o.default.mostReadable(e,t).toHexString(),t.toRgbaColor=(e,t=1)=>(0,o.default)(e).setAlpha(t).toRgbString()},5820:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IconSize=t.Transition=t.LineHeight=t.FontWeight=t.FontSize=t.FontFamily=t.Shadow=t.Radius=t.UnitPx=t.Unit=t.SizeName=t.Size=t.Color=void 0,t.Color={white:"#FFFFFF",lightGray1:"#FAFBFE",lightGray2:"#F3F5F8",lightGray3:"#ECEEF1",lightGray4:"#DDDFE4",lightGray5:"#C9CBD2",neutralGray:"#7D808A",neutralGray80:"rgba(125,128,138,0.8)",silverGray:"#C0C1C2",darkGray1:"#53565F",darkGray2:"#383A40",darkGray3:"#2F3136",darkGray4:"#24262B",darkGray5:"#1E1F23",darkGray6:"#111214",openFinDarkest:"#3D39CD",openFinDarker:"#4642E0",openFin:"#504CFF",openFinLight:"#5254FB",openFinLighter:"#5C5EFE",openFinLightest:"#6864FF",functional1:"#207735",functional2:"#46C8F1",functional3:"#0A76D3",functional4:"#6CADE5",functional5:"#0A76D3",functional6:"#882BFE",functional7:"#F31818",functional8:"#C93400",functional9:"#FF5E60",functional10:"#F48F00",purple:"#8C61FF",lightblue:"#36C3FE",aqua:"#00CC88",yellow:"#FFEB00",salmon:"#FF8C4C",pink:"#FF5E60",lightpink:"#FF8FB8",white00:"rgba(255,255,255,0.0)",white10:"rgba(255,255,255,0.1)",white20:"rgba(255,255,255,0.2)",white30:"rgba(255,255,255,0.3)",white40:"rgba(255,255,255,0.4)",white50:"rgba(255,255,255,0.5)",white60:"rgba(255,255,255,0.6)",white70:"rgba(255,255,255,0.7)",white80:"rgba(255,255,255,0.8)",white90:"rgba(255,255,255,0.9)",black00:"rgba(0,0,0,0.0)",black10:"rgba(0,0,0,0.1)",black20:"rgba(0,0,0,0.2)",black30:"rgba(0,0,0,0.3)",black40:"rgba(0,0,0,0.4)",black50:"rgba(0,0,0,0.5)",black60:"rgba(0,0,0,0.6)",black70:"rgba(0,0,0,0.7)",black80:"rgba(0,0,0,0.8)",black90:"rgba(0,0,0,0.9)",transparent:"transparent",openFinActive:"#4642FF",openFinHover:"#6965FF",lightGray4Active:"#D7DADF",lightGray4Hover:"#EBECEF",darkGray2Active:"#33353B",darkGray2Hover:"#44464E"},t.Size={xsmall:"xsmall",small:"small",base:"base",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge",xxxxlarge:"xxxxlarge"},t.SizeName={[t.Size.xsmall]:"Extra Small",[t.Size.small]:"Small",[t.Size.base]:"Base",[t.Size.large]:"Large",[t.Size.xlarge]:"Extra Large",[t.Size.xxlarge]:"2X Large",[t.Size.xxxlarge]:"3X Large",[t.Size.xxxxlarge]:"4X Large"},t.Unit={[t.Size.xsmall]:4,[t.Size.small]:8,[t.Size.base]:12,[t.Size.large]:16,[t.Size.xlarge]:20,[t.Size.xxlarge]:24,[t.Size.xxxlarge]:32,[t.Size.xxxxlarge]:48},t.UnitPx={[t.Size.xsmall]:"4px",[t.Size.small]:"8px",[t.Size.base]:"12px",[t.Size.large]:"16px",[t.Size.xlarge]:"20px",[t.Size.xxlarge]:"24px",[t.Size.xxxlarge]:"32px",[t.Size.xxxxlarge]:"48px"},t.Radius={[t.Size.xsmall]:"2px",[t.Size.small]:"4px",[t.Size.base]:"8px",[t.Size.large]:"24px",pill:"100vh",round:"50%",none:"0"},t.Shadow={[t.Size.base]:"0 4px 4px rgba(0, 0, 0, 0.25)"},t.FontFamily=["Inter","system-ui","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"].join(","),t.FontSize={[t.Size.xsmall]:"8px",[t.Size.small]:"10px",[t.Size.base]:"12px",[t.Size.large]:"14px",[t.Size.xlarge]:"16px",[t.Size.xxlarge]:"18px",[t.Size.xxxlarge]:"20px",[t.Size.xxxxlarge]:"40px"},t.FontWeight={normal:400,bold:600},t.LineHeight={ui:1,heading:1.2,text:1.5},t.Transition={base:"200ms cubic-bezier(0.16, 1, 0.3, 1)",none:"0ms"},t.IconSize={[t.Size.xsmall]:t.UnitPx.small,[t.Size.small]:t.UnitPx.base,[t.Size.base]:"15px",[t.Size.large]:t.UnitPx.xlarge,[t.Size.xlarge]:t.UnitPx.xxlarge,[t.Size.xxlarge]:t.UnitPx.xxxlarge,[t.Size.xxxlarge]:t.UnitPx.xxxxlarge}},1848:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=void 0;const n=a(5820),o=a(9037),r=a(4502),i={fontFamily:n.FontFamily,fontSize:n.FontSize,fontWeight:n.FontWeight,lineHeight:n.LineHeight,iconSize:n.IconSize,radius:n.Radius,shadow:n.Shadow,transition:n.Transition,unit:n.Unit,px:n.UnitPx},s=(e,t)=>({[`${e}Active`]:(0,o.darkenColor)(t,2),[`${e}Hover`]:(0,o.lightenColor)(t,5),[`${e}Focused`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5]),[`${e}Text`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5])});t.createTheme=e=>Object.assign(Object.assign({},i),{palette:Object.assign(Object.assign(Object.assign({},s(r.Palette.brandPrimary,e.brandPrimary)),s(r.Palette.brandSecondary,e.brandSecondary)),e)})},4502:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Palette=void 0,t.Palette={background1:"background1",background2:"background2",background3:"background3",background4:"background4",background5:"background5",background6:"background6",brandPrimary:"brandPrimary",brandSecondary:"brandSecondary",brandPrimaryActive:"brandPrimaryActive",brandPrimaryHover:"brandPrimaryHover",brandPrimaryFocused:"brandPrimaryFocused",brandPrimaryText:"brandPrimaryText",brandSecondaryActive:"brandSecondaryActive",brandSecondaryHover:"brandSecondaryHover",brandSecondaryFocused:"brandSecondaryFocused",brandSecondaryText:"brandSecondaryText",inputBackground:"inputBackground",inputColor:"inputColor",inputPlaceholder:"inputPlaceholder",inputDisabled:"inputDisabled",inputFocused:"inputFocused",inputBorder:"inputBorder",statusSuccess:"statusSuccess",statusWarning:"statusWarning",statusCritical:"statusCritical",statusActive:"statusActive",textDefault:"textDefault",textHelp:"textHelp",textInactive:"textInactive",borderNeutral:"borderNeutral",contentBackground1:"contentBackground1",contentBackground2:"contentBackground2",contentBackground3:"contentBackground3",contentBackground4:"contentBackground4",contentBackground5:"contentBackground5",linkDefault:"linkDefault",linkHover:"linkHover"}},6535:function(e){e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,a=/\s+$/;function n(o,r){if(r=r||{},(o=o||"")instanceof n)return o;if(!(this instanceof n))return new n(o,r);var i=function(n){var o,r,i,s={r:0,g:0,b:0},c=1,l=null,d=null,u=null,p=!1,w=!1;return"string"==typeof n&&(n=function(e){e=e.replace(t,"").replace(a,"").toLowerCase();var n,o=!1;if(y[e])e=y[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=B.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=B.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=B.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=B.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=B.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=B.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=B.hex8.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),a:W(n[4]),format:o?"name":"hex8"}:(n=B.hex6.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),format:o?"name":"hex"}:(n=B.hex4.exec(e))?{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),a:W(n[4]+""+n[4]),format:o?"name":"hex8"}:!!(n=B.hex3.exec(e))&&{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),format:o?"name":"hex"}}(n)),"object"==e(n)&&(E(n.r)&&E(n.g)&&E(n.b)?(o=n.r,r=n.g,i=n.b,s={r:255*P(o,255),g:255*P(r,255),b:255*P(i,255)},p=!0,w="%"===String(n.r).substr(-1)?"prgb":"rgb"):E(n.h)&&E(n.s)&&E(n.v)?(l=x(n.s),d=x(n.v),s=function(e,t,a){e=6*P(e,360),t=P(t,100),a=P(a,100);var n=Math.floor(e),o=e-n,r=a*(1-t),i=a*(1-o*t),s=a*(1-(1-o)*t),c=n%6;return{r:255*[a,i,r,r,s,a][c],g:255*[s,a,a,i,r,r][c],b:255*[r,r,s,a,a,i][c]}}(n.h,l,d),p=!0,w="hsv"):E(n.h)&&E(n.s)&&E(n.l)&&(l=x(n.s),u=x(n.l),s=function(e,t,a){var n,o,r;function i(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}if(e=P(e,360),t=P(t,100),a=P(a,100),0===t)n=o=r=a;else{var s=a<.5?a*(1+t):a+t-a*t,c=2*a-s;n=i(c,s,e+1/3),o=i(c,s,e),r=i(c,s,e-1/3)}return{r:255*n,g:255*o,b:255*r}}(n.h,l,u),p=!0,w="hsl"),n.hasOwnProperty("a")&&(c=n.a)),c=S(c),{ok:p,format:n.format||w,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:c}}(o);this._originalInput=o,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||i.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}function o(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=(r+i)/2;if(r==i)n=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,l:s}}function r(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=r,c=r-i;if(o=0===r?0:c/r,r==i)n=0;else{switch(r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,v:s}}function i(e,t,a,n){var o=[I(Math.round(e).toString(16)),I(Math.round(t).toString(16)),I(Math.round(a).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function s(e,t,a,n){return[I(A(n)),I(Math.round(e).toString(16)),I(Math.round(t).toString(16)),I(Math.round(a).toString(16))].join("")}function c(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s-=t/100,a.s=C(a.s),n(a)}function l(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s+=t/100,a.s=C(a.s),n(a)}function d(e){return n(e).desaturate(100)}function u(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l+=t/100,a.l=C(a.l),n(a)}function p(e,t){t=0===t?0:t||10;var a=n(e).toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(-t/100*255))),a.g=Math.max(0,Math.min(255,a.g-Math.round(-t/100*255))),a.b=Math.max(0,Math.min(255,a.b-Math.round(-t/100*255))),n(a)}function w(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l-=t/100,a.l=C(a.l),n(a)}function h(e,t){var a=n(e).toHsl(),o=(a.h+t)%360;return a.h=o<0?360+o:o,n(a)}function g(e){var t=n(e).toHsl();return t.h=(t.h+180)%360,n(t)}function m(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var a=n(e).toHsl(),o=[n(e)],r=360/t,i=1;i<t;i++)o.push(n({h:(a.h+i*r)%360,s:a.s,l:a.l}));return o}function k(e){var t=n(e).toHsl(),a=t.h;return[n(e),n({h:(a+72)%360,s:t.s,l:t.l}),n({h:(a+216)%360,s:t.s,l:t.l})]}function f(e,t,a){t=t||6,a=a||30;var o=n(e).toHsl(),r=360/a,i=[n(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(n(o));return i}function b(e,t){t=t||6;for(var a=n(e).toHsv(),o=a.h,r=a.s,i=a.v,s=[],c=1/t;t--;)s.push(n({h:o,s:r,v:i})),i=(i+c)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,a,n=this.toRgb();return e=n.r/255,t=n.g/255,a=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},setAlpha:function(e){return this._a=S(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+a+"%, "+n+"%)":"hsva("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+a+"%, "+n+"%)":"hsla("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return i(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,a,n,o){var r=[I(Math.round(e).toString(16)),I(Math.round(t).toString(16)),I(Math.round(a).toString(16)),I(A(n))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*P(this._r,255))+"%",g:Math.round(100*P(this._g,255))+"%",b:Math.round(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%)":"rgba("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(v[i(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),a=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=n(e);a="#"+s(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+a+")"},toString:function(e){var t=!!e;e=e||this._format;var a=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(a=this.toRgbString()),"prgb"===e&&(a=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(a=this.toHexString()),"hex3"===e&&(a=this.toHexString(!0)),"hex4"===e&&(a=this.toHex8String(!0)),"hex8"===e&&(a=this.toHex8String()),"name"===e&&(a=this.toName()),"hsl"===e&&(a=this.toHslString()),"hsv"===e&&(a=this.toHsvString()),a||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var a=e.apply(null,[this].concat([].slice.call(t)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(u,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(f,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},n.fromRatio=function(t,a){if("object"==e(t)){var o={};for(var r in t)t.hasOwnProperty(r)&&(o[r]="a"===r?t[r]:x(t[r]));t=o}return n(t,a)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,t,a){a=0===a?0:a||50;var o=n(e).toRgb(),r=n(t).toRgb(),i=a/100;return n({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},n.readability=function(e,t){var a=n(e),o=n(t);return(Math.max(a.getLuminance(),o.getLuminance())+.05)/(Math.min(a.getLuminance(),o.getLuminance())+.05)},n.isReadable=function(e,t,a){var o,r,i,s,c,l=n.readability(e,t);switch(r=!1,(i=a,"AA"!==(s=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(c=(i.size||"small").toLowerCase())&&"large"!==c&&(c="small"),o={level:s,size:c}).level+o.size){case"AAsmall":case"AAAlarge":r=l>=4.5;break;case"AAlarge":r=l>=3;break;case"AAAsmall":r=l>=7}return r},n.mostReadable=function(e,t,a){var o,r,i,s,c=null,l=0;r=(a=a||{}).includeFallbackColors,i=a.level,s=a.size;for(var d=0;d<t.length;d++)(o=n.readability(e,t[d]))>l&&(l=o,c=n(t[d]));return n.isReadable(e,c,{level:i,size:s})||!r?c:(a.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],a))};var y=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},v=n.hexNames=function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&(t[e[a]]=a);return t}(y);function S(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var a=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function M(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function x(e){return e<=1&&(e=100*e+"%"),e}function A(e){return Math.round(255*parseFloat(e)).toString(16)}function W(e){return M(e)/255}var R,D,T,B=(D="[\\s|\\(]+("+(R="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",T="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function E(e){return!!B.CSS_UNIT.exec(e)}return n}()}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}var r={};(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=e.Palette=e.Color=void 0;var t=o(5820);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return t.Color}});var a=o(4502);Object.defineProperty(e,"Palette",{enumerable:!0,get:function(){return a.Palette}});var n=o(1848);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return n.createTheme}})})();var i=t;for(var s in r)i[s]=r[s];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";a.r(n),a.d(n,{AppManifestType:()=>l,BookmarkItemContextMenuOptionType:()=>y,BrowserButtonType:()=>S,ColorSchemeOptionType:()=>k,CustomActionCallerType:()=>M,Dock:()=>u,EnterpriseMainContextMenuOptionType:()=>b,GlobalContextMenuOptionType:()=>m,PageChangeEventType:()=>g,PageTabContextMenuOptionType:()=>f,PanelPosition:()=>h,SUPPORTED_LANGUAGES:()=>I,SaveButtonContextMenuOptionType:()=>P,SaveModalType:()=>x,ViewTabMenuOptionType:()=>v,WindowType:()=>C,getCurrentSync:()=>xn,init:()=>ac,wrapSync:()=>In});var e={};a.r(e),a.d(e,{createNamespacedLocalStorage:()=>Rt,getItem:()=>Bt,removeItem:()=>Et,setItem:()=>Tt});var t,o,r,i,s,c,l,d,u={};a.r(u),a.d(u,{init:()=>Zt}),function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(t||(t={})),function(e){e.UserAction="user-action",e.FocusChange="focus-change",e.Reload="reload"}(o||(o={})),function(e){e.Active="active",e.Default="default"}(r||(r={})),function(e){e.Suggestion="suggestion"}(i||(i={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(s||(s={})),function(e){e.MultiSelect="MultiSelect"}(c||(c={})),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(l||(l={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(d||(d={}));var p,w,h,g,m,k,f,b,y,v,S,P,C,M;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(p||(p={})),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(w||(w={})),function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(h||(h={})),function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(g||(g={})),function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.ManageDesktopSignals="ManageDesktopSignals",e.FindInPage="FindInPage",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(m||(m={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(k||(k={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.ManageDesktopSignals="ManageDesktopSignals",e.AddToChannel="AddToChannel",e.Custom="Custom"}(f||(f={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.ManageDesktopSignals="ManageDesktopSignals",e.FindInPage="FindInPage",e.Print="Print",e.Pin="Pin"}(b||(b={})),function(e){e.EditName="Edit Name",e.Move="Move",e.Delete="Delete"}(y||(y={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(v||(v={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Download="Download",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(S||(S={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(P||(P={})),function(e){e.Browser="browser",e.Platform="platform"}(C||(C={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(M||(M={}));const I=["en-US","ja-JP","zh-CN","ko-KR","ru-RU","de-DE","zh-Hant"];var x,A;!function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(x||(x={})),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(A||(A={}));const W="undefined"!=typeof window&&"undefined"!=typeof fin,R=("undefined"==typeof process||process.env,"undefined"!=typeof window),D=R&&"undefined"!=typeof indexedDB,T=R?window.origin:A.Local,B=W&&fin.me.uuid,E=W&&fin.me.name,F=W&&fin.me.entityType,N=(A.Local,A.Dev,A.Staging,"prod"===A.Prod),V=e=>e.startsWith("http://")||e.startsWith("https://")?e:T+e,L=V("https://workspace.openfin.co/workspace/23.1.5"),U=V("https://workspace.openfin.co/workspace/23.1.5"),_=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&V(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&V(WORKSPACE_DOCS_CLIENT_URL),"43.142.101.2"),O="23.1.5";"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA;var G,H;!function(e){e.Home="/home/",e.HomeSearch="/home/?deeplink=search",e.HomePagesRename="/home/pages/rename/",e.Dock="/dock/",e.Docs="/provider/docs/",e.Storefront="/storefront/",e.DeprecatedAlert="/provider/deprecated-alert/",e.Analytics="/provider/analytics/",e.Provider="/provider/"}(G||(G={})),function(e){e.Browser="/browser/",e.BrowserPopupMenu="/popup-menu/",e.BrowserPopupMenuSaveModal="/popup-menu/save-modal/",e.BrowserPopupMenuLayouts="/popup-menu/layouts/layouts/",e.BrowserPopupMenuColorLinking="/popup-menu/color-linking/color-linking/",e.BrowserIndicator="/indicator/",e.BrowserPopupMenuAddressSearchResultsView="/popup-menu/address-search-results-view/",e.ResponseModal="/popup-menu/response-modal/",e.CloseConfirmationModal="/popup-menu/close-confirmation-modal/",e.EnterpriseBrowser="/enterprise/",e.EnterpriseLandingPage="/enterprise/landing/",e.EnterpriseContextMenu="/context-menu/",e.EnterpriseBookmarkDialog="/bookmark-dialog/",e.EnterpriseAboutPage="/popup-menu/about/",e.DropdownMenu="/dropdown-menu/",e.EnterpriseDock="/dock/",e.ZoomControlsDialog="/zoom-controls-dialog/",e.DesktopSignalsModal="/popup-menu/desktop-signals-modal/",e.IntentsResolverModal="/popup-menu/intents-resolver-modal/",e.FindInPageModal="/popup-menu/find-in-page-modal/"}(H||(H={}));const $={...G,...H};var K;!function(e){e.Search="search"}(K||(K={}));const z=$;async function q(){const e="getManifestOverrides",{manifest:t,initialOptions:a}=await fin.Application.getCurrentSync().getInfo();return t?.platform.workspace||t?.platform.home||a?.workspace||a?.home||console.warn(`${e}: Missing Home development manifest overrides, using Desktop Owner Settings.`),t?.platform.workspace?(JSON.stringify(t?.platform.workspace),t?.platform.workspace):t?.platform.home?(JSON.stringify(t?.platform.home),t?.platform.home):a?.workspace?(JSON.stringify(a?.workspace),a?.workspace):a?.home?(JSON.stringify(a?.home),a?.home):{}}const J=e=>fin.System.getSystemAppConfig(e);async function Z(){const e="getDOSOverrides";if(!W)return console.warn(`${e}: the fin API was not available, returning no result`),{};try{let e=await J("workspace").catch(e=>{});return e||(e=await J("home")),JSON.stringify(e),e}catch(t){if(!N)return{};if(!(t instanceof Error))throw t;console.warn(`${e}: Missing Workspace Desktop Owner Settings configuration, using defaults. ${t?.message}`)}return{}}let j,Q;async function Y(){if(j)return j;const e="getOverrides";if(!W)return R&&console.warn(`${e}: The Fin API was not available. Returning an empty result.`),{};const[t,a]=await Promise.all([Z(),q()]);return j={...a,...t,disableRuntimeValidation:a.disableRuntimeValidation||t.disableRuntimeValidation},j}function X(e){Q=e}const ee=e=>e.replace(/\/$/,"");async function te(){const e=(await Y()).browserBaseUrl;if(e)try{const t=new URL(e);if(t.pathname.endsWith("/"))t.pathname=ee(t.pathname);else{if("/workspace"===t.pathname)return t.pathname+=`/${O}`,t.toString();console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url, with path: /workspace. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}}catch(t){console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}return Q??U}async function ae(e=!1){const t=await te()+z.Browser;return e?t:ee(t)}async function ne(e=!1){const t=await te()+z.EnterpriseBrowser;return e?t:ee(t)}async function oe(){return await ne()+"/landing/"}const re=async(e,t=!1)=>e?ne(t):ae(t),ie=56,se=728,ce=150,le="dock3",de=e=>{const t=e||"undefined"!=typeof fin&&fin.me.identity.uuid;if(!t)throw new Error("UUID is required to get the Dock3 channel name.");return`${t}-dock3`},ue=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&("undefined"!=typeof LOG_DEBUG&&!0===LOG_DEBUG),pe=(e,...t)=>{const a=console[e];try{a(...t.map(e=>"object"==typeof e?JSON.stringify(e,null,2):e))}catch(e){console.error("Error printing stringified log, logging directly",e),a(...t)}},we=(...e)=>{ue()&&pe("debug",...e)},he=R&&"complete"!==document.readyState&&new Promise(e=>document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&e()}));function ge(e){let t;const a=new Set;return()=>{if(!W)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await he;const n={clientAPIVersion:O},o=await fin.InterApplicationBus.Channel.connect(e,{payload:n});return o.onDisconnection(async()=>{a.forEach(e=>e()),a.clear(),console.warn(`disconnected from channel provider ${e}`),t=void 0}),o})().then(e=>(e.addDisconnectionListener=e=>{a.add(e)},e)).catch(a=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${a}`)})),t}}const me="of-workspace-notifications-sync";var ke;async function fe(){const e=await async function(){try{const e=await fin.Application.getCurrentSync().getManifest(),t=e?.notifications?.customManifest?.manifestUuid;return t||Re.uuid}catch(e){return console.warn("Could not get manifest options for notifications, defaulting to standard notification center uuid.",e),Re.uuid}}();return e!==Re.uuid?`${e}-${me}`:me}let be;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(ke||(ke={}));var ye,ve;!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(ye||(ye={})),function(e){e.FinProtocol="fin-protocol"}(ve||(ve={}));const Se={uuid:B},Pe=(ye.Workspace,e=>{if(!W)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)}),Ce=()=>Pe(Se);var Me;!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.AboutPageWindow="here-about-page",e.FindInPageViewPrefix="here-find-in-page-view-",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.DockSaveWorkspaceMenu="openfin-dock3-save-workspace-menu",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.ZoomControlsDialog="here-zoom-controls-dialog",e.UpdateVersionModal="here-update-version-modal",e.DesktopSignalsModal="here-desktop-signals-modal",e.IntentsResolverModal="here-intents-resolver-modal"}(Me||(Me={}));const Ie=e=>({left:(e.left+(e.right??e.left+e.width))/2,top:(e.top+(e.bottom??e.top+e.height))/2}),xe=(e,t)=>{const a=t.width/2,n=t.height/2;return{left:Math.round(e.left-a),top:Math.round(e.top-n),width:t.width,height:t.height}};function Ae(e){if(!W)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const We={name:E,uuid:B};Me.Home,ye.Workspace,Me.Dock,ye.Workspace;const Re={name:"Notification-Center",uuid:"notifications-service"},De={name:Me.Storefront,uuid:ye.Workspace};ye.Workspace,ye.Workspace;async function Te(e){const t=Ae(e);"minimized"===await t.getState()&&await t.restore(),await t.show(),await t.setAsForeground()}const Be=async e=>{try{const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return("browser"===t.workspacePlatform?.windowType||"enterprise"===t.workspacePlatform?.windowType)&&t.workspacePlatform?.pages}catch(e){return console.warn("isBrowserWindow error: ",e),!1}};async function Ee(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map(async e=>Be(e.identity)));return e.filter((e,a)=>t[a])}async function Fe(){return(await fin.Application.getCurrentSync().getChildWindows()).filter(e=>e.identity.name.startsWith(Me.BrowserMenu))}const Ne=e=>Ae(e).getInfo().then(()=>!0).catch(()=>!1),Ve=()=>Ne(De);function Le(e,t){const a=e.top,n=e.left,o=e.top+e.height,r=e.left+e.width,i=t.monitorRect.top,s=t.monitorRect.left,c=t.monitorRect.bottom,l=t.monitorRect.right;if(a>c||o<i||n>l||r<s)return 0;const d=Math.max(a,i),u=Math.max(n,s);return(Math.min(o,c)-d)*(Math.min(r,l)-u)/(e.height*e.width)}async function Ue(e){const t=await fin.System.getMonitorInfo();return[t.primaryMonitor,...t.nonPrimaryMonitors].reduce((t,a)=>{const n=Le(e,a);return n>t.percentage?{percentage:n,monitor:a}:t},{percentage:0,monitor:t.primaryMonitor}).monitor}const _e=(e,t)=>{const a=e;return a.workspacePlatform||(a.workspacePlatform={}),a.workspacePlatform._internalDeferShowOptions={setAsForeground:!!t,deferShowEnabled:!0,autoShow:a.workspacePlatform?._internalAutoShow||a.workspacePlatform?._internalDeferShowOptions?.autoShow||void 0===a.autoShow||a.autoShow},a.autoShow=!1,a};var Oe,Ge;!function(e){e.RelativeToParentWindow="relative-to-parent-window",e.RelativeToMonitor="relative-to-monitor"}(Oe||(Oe={})),function(e){e.Top="top",e.Below="below"}(Ge||(Ge={}));const He=async e=>{const t=e&&await Ae(e).getBounds(),a=e?await Ue(t):(await fin.System.getMonitorInfo()).primaryMonitor;return{left:((n=a.availableRect).left+n.right)/2,top:(n.top+n.bottom)/2};var n},$e=async(e,t,a=!1)=>{let n;if(a)n=await He(t);else{const e=Ae(t),a=await e.getBounds();n=Ie(a)}const{defaultHeight:o,defaultWidth:r}=e;return xe(n,{height:o,width:r})};async function Ke(e,t,a=!1,n=!1){const o=t&&"maximized"===await Ae(t).getState(),r=a||o||!t;let i=await $e(e,t,r);if(await(async e=>{const t=await fin.System.getMonitorInfo(),a=[t.primaryMonitor,...t.nonPrimaryMonitors];for(const t of a)if(1===Le(e,t))return!1;return!0})(i)?(await Ae(t).center(),i=await $e(e,t,r)):console.warn("Response modal isn't off screen, not centering parent window"),n&&t){const e=Ae(t),a=await e.getBounds();i.left-=a.left,i.top-=a.top}return i}const ze=()=>e=>e;var qe=a(516);const Je=e=>e.replace(/[^\d,]/g,"").split(","),Ze=e=>{if(e.length<2)throw new Error("Invalid color object, cannot convert to HSL.");const t=e[0]/255,a=e[1]/255,n=e[2]/255,o=Math.min(t,a,n),r=Math.max(t,a,n),i=r-o;let s=0,c=0,l=0;return s=0===i?0:r===t?(a-n)/i%6:r===a?(n-t)/i+2:(t-a)/i+4,s=Math.round(60*s),s<0&&(s+=360),l=(r+o)/2,c=0==i?0:i/(1-Math.abs(2*l-1)),c=+(100*c).toFixed(1),l=+(100*l).toFixed(1),{hsl:`hsl(${s}, ${c}%, ${l}%)`,hsla:`hsl(${s}, ${c}%, ${l}%, 1)`,hue:s,lightness:l,saturation:c}},je=e=>{if(!e.includes("#"))throw new Error("Invalid hex value, cannot convert to RGB. Hex value begins with a hashtag.");let t=0,a=0,n=0;if(4===e.length)t=`0x${e[1]}${e[1]}`,a=`0x${e[2]}${e[2]}`,n=`0x${e[3]}${e[3]}`;else{if(7!==e.length)throw new Error("Invalid hex string length, cannot convert to RGB.");t=`0x${e[1]}${e[2]}`,a=`0x${e[3]}${e[4]}`,n=`0x${e[5]}${e[6]}`}return[+t,+a,+n]},Qe=e=>{const t=e;if(t.startsWith("#")){return{rgb:je(t).join(", "),alpha:1}}const a=t.match(/\d{1,3}(\.\d+)?/g);if(a){const[e,t,n,o]=a;return{rgb:`${e}, ${t}, ${n}`,alpha:void 0!==o?parseFloat(o):1}}return{rgb:je(e).join(", "),alpha:1}},Ye=(e,t=!1)=>{const a=(e=>{if(!e)throw new Error("Color is not defined");const t=e.toLowerCase();let a;if(t.includes("rgb")){const e=Je(t);e.length>3&&e.pop(),a=Ze(e).hue}if(t.includes("#")){const e=je(t);a=Ze(e).hue}t.includes("hsl")&&(a=Je(t)[0]);const n=a?.toString();if(!n)throw new Error(`Hue was unable to be extracted from "${t}", check color format. Accepted formats are: rgb(), rgba(), hex, hsl(), and hsla()`);return n})(e);return t?{background1:`hsla(${a}, 0%, 100%, 1)`,background2:`hsla(${a}, 67%, 99%, 1)`,background3:`hsla(${a}, 26%, 96%, 1)`,background4:`hsla(${a}, 15%, 94%, 1)`,background5:`hsla(${a}, 10%, 88%, 1)`,background6:`hsla(${a}, 80%, 80%, 1)`}:{background1:`hsla(${a}, 8%, 7%, 1)`,background2:`hsla(${a}, 8%, 13%, 1)`,background3:`hsla(${a}, 9%, 15%, 1)`,background4:`hsla(${a}, 6%, 23%, 1)`,background5:`hsla(${a}, 21%, 28%, 1)`,background6:`hsla(${a}, 5%, 51%, 1)`}},Xe=(e,t)=>{const a={};return Object.keys(e).forEach(n=>{a[n]=t[n]?t[n]:e[n]}),a};var et=a(877),tt=a.n(et),at=a(67),nt=a.n(at);const ot={light:{symbol:nt()?.src||""},dark:{symbol:tt()?.src||""}};var rt,it;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(rt||(rt={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(it||(it={}));const st=ge("__of_workspace_protocol__"),ct=st;ge("__search-openfin-browser-home-topic__");var lt;!function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.GetSavedWorkspacesMetadata="getSavedWorkspacesMetadata",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.RestoreLastSavedWorkspaceInternal="restoreLastSavedWorkspaceInternal",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RefreshDockCollectionMenuInternal="refreshDockCollectionMenuInternal",e.LaunchCollectionInternal="launchCollectionInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal"}(lt||(lt={}));const dt=async e=>fin.Platform.wrapSync(e).getClient(),ut=async e=>{const t=await dt(e),a="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let n;try{n=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(a)}if("boolean"==typeof n&&n)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),n;if("object"==typeof n&&n.isWorkspacePlatform)return n;throw new Error(a)},pt=async e=>(await ut(e),dt(e)),wt=async e=>{const t=await ut(e);if("object"==typeof t&&!0!==t?.isBrowserInitialized)throw new Error("Target is not a Browser-enabled Workspace Platform.");return dt(e)},ht="dark",gt={[qe.Palette.brandPrimary]:"#0A76D3",[qe.Palette.brandPrimaryActive]:"#0A71C9",[qe.Palette.brandPrimaryHover]:"#0B84EB",[qe.Palette.brandPrimaryFocused]:qe.Color.white,[qe.Palette.brandPrimaryText]:qe.Color.white,[qe.Palette.statusSuccess]:qe.Color.functional1,[qe.Palette.statusWarning]:qe.Color.functional10,[qe.Palette.statusCritical]:qe.Color.functional7,[qe.Palette.statusActive]:qe.Color.functional3,[qe.Palette.contentBackground1]:"#0A76D3",[qe.Palette.contentBackground2]:"#000000",[qe.Palette.contentBackground3]:"#000000",[qe.Palette.contentBackground4]:"#000000",[qe.Palette.contentBackground5]:"#000000",[qe.Palette.borderNeutral]:qe.Color.silverGray},mt={...gt,[qe.Palette.background1]:qe.Color.white,[qe.Palette.background2]:qe.Color.lightGray1,[qe.Palette.background3]:qe.Color.lightGray2,[qe.Palette.background4]:qe.Color.lightGray3,[qe.Palette.background5]:qe.Color.lightGray4,[qe.Palette.background6]:qe.Color.lightGray5,[qe.Palette.brandSecondary]:qe.Color.lightGray4,[qe.Palette.brandSecondaryActive]:qe.Color.lightGray4Active,[qe.Palette.brandSecondaryHover]:qe.Color.lightGray4Hover,[qe.Palette.brandSecondaryFocused]:qe.Color.darkGray5,[qe.Palette.brandSecondaryText]:qe.Color.darkGray5,[qe.Palette.inputBackground]:qe.Color.lightGray3,[qe.Palette.inputColor]:qe.Color.darkGray5,[qe.Palette.inputPlaceholder]:qe.Color.darkGray2,[qe.Palette.inputDisabled]:qe.Color.neutralGray,[qe.Palette.inputFocused]:qe.Color.lightGray5,[qe.Palette.inputBorder]:qe.Color.neutralGray,[qe.Palette.textDefault]:qe.Color.darkGray5,[qe.Palette.textHelp]:qe.Color.darkGray3,[qe.Palette.textInactive]:qe.Color.neutralGray},kt={...gt,[qe.Palette.background1]:qe.Color.darkGray6,[qe.Palette.background2]:qe.Color.darkGray5,[qe.Palette.background3]:qe.Color.darkGray4,[qe.Palette.background4]:qe.Color.darkGray3,[qe.Palette.background5]:qe.Color.darkGray2,[qe.Palette.background6]:qe.Color.darkGray1,[qe.Palette.brandSecondary]:qe.Color.darkGray2,[qe.Palette.brandSecondaryActive]:qe.Color.darkGray2Active,[qe.Palette.brandSecondaryHover]:qe.Color.darkGray2Hover,[qe.Palette.brandSecondaryFocused]:qe.Color.white,[qe.Palette.brandSecondaryText]:qe.Color.white,[qe.Palette.inputBackground]:qe.Color.darkGray1,[qe.Palette.inputColor]:qe.Color.white,[qe.Palette.inputPlaceholder]:qe.Color.lightGray5,[qe.Palette.inputDisabled]:qe.Color.neutralGray,[qe.Palette.inputFocused]:qe.Color.lightGray5,[qe.Palette.inputBorder]:qe.Color.neutralGray,[qe.Palette.textDefault]:qe.Color.white,[qe.Palette.textHelp]:qe.Color.lightGray5,[qe.Palette.textInactive]:qe.Color.neutralGray},ft=[{label:"OpenFin Default Light and Dark Theme",palettes:{light:{...mt,backgroundPrimary:qe.Color.darkGray5},dark:{...kt,backgroundPrimary:qe.Color.darkGray5}}}],bt=e=>{const{background:t,foreground:a}=e;return{background:t,foreground:a??"#FFFFFF"}},yt=(e,t)=>({icons:{symbol:e.brand?.icons?.[t]?.symbol||ot[t].symbol}}),vt=e=>{const{light:t,dark:a}="palettes"in e?e.palettes:{light:e.palette,dark:e.palette},n=Xe(kt,a),o=Xe(mt,t),r=((e,t)=>{const a={...e},n={...t};let o=t.backgroundPrimary?Ye(t.backgroundPrimary,!0):{},r=e.backgroundPrimary?Ye(e.backgroundPrimary):{};return o={...o,...n},r={...r,...a},{light:{...t,...o},dark:{...e,...r}}})(a,t),i={...(0,qe.createTheme)({...n,...r?.dark}),brand:yt(e,"dark")},s={...(0,qe.createTheme)({...o,...r?.light}),brand:yt(e,"light")},{light:c,dark:l}=(e=>{const t=Object.keys(e.notificationIndicatorColors??{});if(t?.length){const a={},n={};return t.forEach(t=>{const o=e.notificationIndicatorColors[t];"background"in o?(a[t]=bt(o),n[t]=bt(o)):(a[t]=bt(o.dark??o.light),n[t]=bt(o.light??o.dark))}),{light:n,dark:a}}return{light:null,dark:null}})(e);return i.notificationIndicatorColors=l,s.notificationIndicatorColors=c,{dark:i,light:s}},St=async e=>{const{themes:t,selectedScheme:a}=await(async e=>{const t=fin?.__internal_?.initialOptions?.workspacePlatform?._themeData;if(!t||e.uuid!==We.uuid)return{themes:await In(e).Theme.getThemes(),selectedScheme:await In(e).Theme.getSelectedScheme()};return t})(e);var n,o;return(n=t?.length?t:ft,o=a,n.map(e=>{const t="palettes"in e?e.default:ht,{light:a,dark:n}=vt(e);return{label:e.label,logoUrl:e.logoUrl,theme:{dark:n,light:a},defaultScheme:o??t}}))[0]},Pt=async e=>{const t=await pt(e||fin.me.identity),a=await t.dispatch(lt.GetSelectedScheme,void 0);return a===k.System?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a},Ct=async(e,t)=>{const a=await St(fin.me.identity),n=await Pt(fin.me.identity)===k.Dark,o=a?.theme;return o?.[n?k.Dark:k.Light]?.palette?.[e]||t},Mt={enabled:!1,threshold:50,locationPreference:["top","bottom"]},It=(e,t)=>e.experimental?.snapZone??t?.experimental?.snapZone??Mt;async function xt(e,t,a,n){if(!await Ne({uuid:We.uuid,name:e})){let o;if("number"==typeof a.dockPosition?.left||"number"==typeof n?.defaultLeft)o=a.dockPosition?.left;else{o=(await He(We)).left-se/2}const r={enabled:!1,template:["snapToTop","snapToBottom"]},i=function(e){const t=function(e,t){const a={};for(const n of t)n in e&&(a[n]=e[n]);return a}(e,ze()(["defaultLeft","defaultTop","defaultCentered","saveWindowState","taskbarIconGroup","experimental"])),a={...t};if(e.experimental?.snapZone&&(a.experimental={snapZone:e.experimental.snapZone}),e.contextMenuOptions){const t=e.contextMenuOptions,n=["snapToTop","snapToBottom","inspect"];let o;t.template&&Array.isArray(t.template)&&(o=t.template.filter(e=>"string"==typeof e&&n.includes(e)),0===o.length&&(o=void 0)),a.contextMenuOptions={...void 0!==t.enabled?{enabled:t.enabled}:{},...o?{template:o}:{}}}return a}(n??{}),s={name:e,url:t+z.EnterpriseDock,autoShow:!0,frame:!1,smallWindow:!0,saveWindowState:!1,defaultHeight:ie,defaultWidth:se,includeInSnapshots:!1,defaultTop:a.dockPosition?.top??ce,defaultLeft:o,workspacePlatform:{windowType:a.windowType,...a},throttling:"disabled",resizable:!1,maximizable:!1,backgroundColor:await Ct("background1"),contextMenuOptions:a.contextMenuOptions??r,experimental:{snapZone:It(a,i)},...i};await fin.Window.create(_e(s))}}function At(){let e,t;return{promise:new Promise((a,n)=>{e=a,t=n}),resolve:e,reject:t}}const Wt=require("dexie"),Rt=e=>({setItem:(t,a)=>{localStorage.setItem(`${e}-${t}`,a)},getItem:t=>localStorage.getItem(`${e}-${t}`),removeItem:t=>localStorage.removeItem(`${e}-${t}`)}),Dt=Rt(B),Tt=Dt.setItem,Bt=Dt.getItem,Et=Dt.removeItem;var Ft;!function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.ThemePaletteSheet="ThemePaletteSheet",e.HasMovedStore="HasMovedStore",e.PageDragState="BrowserPageDragState",e.ThemePaletteDefaultScheme="ThemePaletteDefaultScheme"}(Ft||(Ft={}));const Nt=Ft,Vt=e=>e+"-"+fin.me.uuid,Lt=(e,t)=>{const a=D&&W&&new Wt.Dexie(e);return a&&a.version(.1).stores({[t]:""}),a},Ut=(e,t)=>{const a=Lt(Vt(e),t),n=Lt(e,t);if(!a||!n)throw new Error("Unable to migrate store - IndexDB not supported");return(async(e,t,a)=>{if(!e[a])return void console.warn(`Legacy store ${a} not found, skipping migration`);const n=Bt(Nt.HasMovedStore),o=n?JSON.parse(n):{};if(o&&o[a])return;if(o[a]=!0,Tt(Nt.HasMovedStore,JSON.stringify(o)),!e[a]||!t[a])return;const r=await e[a].toArray();await t[a].bulkPut(r)})(n,a,e),a},_t="dock3-provider-config",Ot=D&&W&&new Wt.Dexie(Vt("dock3-provider-config"));Ot&&Ot.version(.1).stores({[_t]:""});var Gt,Ht,$t,Kt,zt=function(e,t,a,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,a):o?o.value=a:t.set(e,a),a},qt=function(e,t,a,n){if("a"===a&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===a?n:"a"===a?n.call(e):n?n.value:t.get(e)};class Jt{static getOverrideConstructor(...e){return class extends Jt{constructor(){super(...e)}}}constructor(e,t){if(Gt.set(this,void 0),Ht.set(this,void 0),$t.set(this,null),Kt.set(this,At()),Jt.instance)throw new Error("Dock3Provider has already been initialized.");Jt.instance=this,zt(this,Gt,e,"f"),zt(this,Ht,t,"f"),this.registerChannelActions()}async launchEntry(e){}get ready(){return qt(this,Kt,"f").promise}async bookmarkContentMenuEntry(e){}async moreMenuCustomOptionClicked(e){}get config(){return qt(this,Gt,"f")}set config(e){zt(this,Gt,e,"f")}async updateConfig(e){zt(this,Gt,e,"f"),await this.handleConfigChange(e)}async shutdown(){await Promise.all([qt(this,Ht,"f").destroy(),this.getWindowSync().close(!0)]),Jt.instance=null}async saveConfig({config:e}){zt(this,Gt,e,"f"),await async function(e){if(!Ot)throw new Error("Unable to save Dock provider config - IndexedDb not supported");await Ot[_t].put(e,"latest")}(e)}async handleConfigChange(e){qt(this,$t,"f")&&await qt(this,Ht,"f").dispatch(qt(this,$t,"f"),"handle-dock-config-updated",e)}async loadConfig(){const e=await async function(){if(!Ot)throw new Error("Unable to get Dock provider config - IndexedDB not supported");try{return await Ot[_t].get("latest")}catch(e){return void console.warn("Failed to retrieve Dock provider config from IndexedDB",e)}}();return e&&zt(this,Gt,e,"f"),qt(this,Gt,"f")}getWindowSync(){return fin.Window.wrapSync({uuid:fin.me.identity.uuid,name:le})}registerChannelActions(){qt(this,Ht,"f").register("launch-entry",async e=>{"folder"===e.entry.type&&e.entry.id&&qt(this,$t,"f")&&await qt(this,Ht,"f").dispatch(qt(this,$t,"f"),"navigate-content-menu",{targetId:e.entry.id}),await this.launchEntry(e)}),qt(this,Ht,"f").register("save-config",this.saveConfig.bind(this)),qt(this,Ht,"f").register("bookmark-content-menu-entry",this.bookmarkContentMenuEntry.bind(this)),qt(this,Ht,"f").register("more-menu-custom-option-clicked",this.moreMenuCustomOptionClicked.bind(this)),qt(this,Ht,"f").onConnection(e=>{e.name===le&&zt(this,$t,e,"f")}),qt(this,Ht,"f").register("ready",async(e,t)=>{if(qt(this,$t,"f")?.endpointId!==t.endpointId)throw new Error(`Dock3Provider: 'ready' action received from unexpected client ${t.name} (${t.uuid})`);qt(this,Kt,"f").resolve()}),qt(this,Ht,"f").onDisconnection(e=>{qt(this,$t,"f")?.endpointId===e.endpointId&&(zt(this,$t,null,"f"),zt(this,Kt,At(),"f"))})}}async function Zt(e){const{config:t,override:a}=e;if(Jt.instance)throw new Error("Dock3Provider has already been initialized.");const n=await fin.InterApplicationBus.Channel.create(de()),o=new(a(Jt.getOverrideConstructor(t,n)));return await o.loadConfig(),await xt(le,await ae(),o.config,e.windowOptions),await o.ready,o}Gt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,Kt=new WeakMap,Jt.instance=null;const jt=async e=>{const t=e?fin.Window.wrapSync(e):fin.Window.getCurrentSync(),a=await t.getOptions();return a.workspacePlatform?.windowType&&"enterprise"===a.workspacePlatform.windowType},Qt=e=>{const t=e?.defaultWindowOptions?.workspacePlatform?.windowType;return"enterprise"===t};let Yt;const Xt=e=>{if(e)try{return new URL(e).pathname.includes(z.EnterpriseLandingPage.replace(/\/$/,""))}catch(t){console.error("error parsing url: %O",e)}return!1};var ea;!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(ea||(ea={}));const ta=async(e,t,a="workspace-licensing")=>{const n={apiVersion:t.apiVersion||O,componentName:e,componentVersion:t.componentVersion||O,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:a,data:n})};let aa=!1;const na=new Map,oa=e=>{let t=na.get(e.uuid);return t||(t=In(e),t.once("closed",()=>{na.delete(e.uuid)}),na.set(e.uuid,t)),t},ra=async(e,t)=>{try{await e._raiseAnalytics([t])}catch(e){console.error("failed to raise analytics event",e)}},ia=async e=>{await ra(oa(fin.me.identity),{source:"Browser",...e})};let sa;const ca=async e=>{sa||(sa=new TextEncoder);const t=sa.encode(e),a=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(a)).map(e=>e.toString(16).padStart(2,"0")).join("")};function la(e){return e&&"object"==typeof e&&!Array.isArray(e)}function da(e,...t){if(!t.length)return e;const a=t.shift();return la(e)&&la(a)&&Object.entries(a).forEach(([t,a])=>{la(a)?(e[t]||(e[t]={}),da(e[t],a)):Array.isArray(a)&&"hotkeys"===t&&Array.isArray(e[t])?e[t]=function(e){if(!e.length||!e.every(la))return e;const t=new Map,a=[];for(const n of e){const e=n.keys||n.id||n.name||JSON.stringify(n);t.has(e)||(t.set(e,!0),a.push(n))}return a}([...e[t],...a]):e[t]=a}),da(e,...t)}const ua=require("lodash.debounce");var pa=a.n(ua);function wa(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function ha(){return localStorage.getItem(Nt.MachineName)??"unknown"}let ga;async function ma(){return ga||(ga=await fin.System.getMachineId()),ga}const ka=e=>{if(Array.isArray(e.workspacePlatform?.pages)&&(e.layoutSnapshot||e.layout)){const t=e.workspacePlatform.pages.find(e=>e.isActive);if(t){const a=e.layoutSnapshot?e.layoutSnapshot.layouts[t.layoutContainerKey]:e.layout;if(a)if(t.isLocked){const n=Ln(a,t.layout);t.layout=n,e.layout=n}else t.layout=a,e.layout=a}}return e};async function fa(e){const t=e||await fin.Platform.getCurrentSync().getSnapshot();if(t.snapshotDetails?.machineId)return t;const a=ha();return{...t,snapshotDetails:{...t.snapshotDetails,machineId:await ma(),machineName:a}}}const ba=async e=>({...e,layoutDetails:{machineId:await ma(),machineName:ha()}}),ya=async(e,t)=>({pageId:wa(),title:e,layout:await ba(t),isReadOnly:!1}),va=async e=>{const t=await ya(e.title,En(e.layout));return e.panels&&(t.panels=e.panels.map(e=>({...e,viewOptions:Bn(e.viewOptions)}))),{...e,...t}},Sa=e=>{const t=fin.Platform.Layout.wrapSync(e);return{show:async()=>{const a=await t.getConfig(),{settings:n,dimensions:o}=a,r=await jt(e);await t.replace({...a,settings:{...n,hasHeaders:!0,reorderEnabled:!0},dimensions:{...o,headerHeight:r?28:30}})},hide:async e=>{const a=await t.getConfig(),{settings:n,dimensions:o}=await a;await t.replace({...a,settings:{...n,hasHeaders:!1,reorderEnabled:e?.settings?.reorderEnabled??!1},dimensions:{...o,headerHeight:0}})},isShowingTabs:async()=>{try{const e=await t.getConfig(),{settings:a}=await e;return a.hasHeaders}catch(e){return console.error("failed to get layout config: ",e),!0}}}},Pa="of-workspace-";const Ca=new class{mark(e){performance.mark(`${Pa}${e}`)}markStart(e){performance.mark(`${Pa}${e}-start`)}markEnd(e){performance.mark(`${Pa}${e}-end`)}markEndAndMeasure(e){performance.mark(`${Pa}${e}-end`);try{return performance.measure(`${Pa}${e}`,`${Pa}${e}-start`,`${Pa}${e}-end`)}catch(e){0}}markAndMeasure(e,t){performance.mark(`${Pa}${e}`);try{return performance.measure(`${Pa}${e}-measure`,`${Pa}${t}-start`,`${Pa}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter(e=>e.name.startsWith(Pa))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map(e=>({name:e.name.replace(`${Pa}`,"").replace("-measure",""),duration:e.duration}))}},Ma=()=>{const e=`browser-context-menu-startup-${wa()}`;return Ca.markStart(e),e},Ia=e=>{Ca.markAndMeasure("browser-context-menu-called",e)},xa=e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",()=>{(e=>{Ca.markAndMeasure("browser-context-menu-shown",e)})(e)})},Aa=(e,t)=>t?`${t}-${e.uuid}-${e.name}`:`__browser_window__-${e.uuid}-${e.name}`,Wa=new Map,Ra=e=>(Wa.has(e)||Wa.set(e,ge(e)),Wa.get(e)()),Da=(e,t)=>{const a=Aa(e,t);return Ra(a)};var Ta,Ba,Ea,Fa,Na,Va;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator",e.SetSelectedLanguage="set-selected-language",e.RefreshBookmarksInternal="refresh-bookmarks",e.GetLayoutsWithSelectedViewsInternal="get-layouts-with-selected-views",e.FocusAndExpandSearchInternal="focus-and-expand-search"}(Ta||(Ta={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(Ba||(Ba={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited",e.GetSearchProviders="get-search-providers"}(Ea||(Ea={})),function(e){e.CreateBookmarkNode="create-bookmark-node",e.GetBookmarkNode="get-bookmark-node",e.SearchBookmarkNodes="search-bookmark-nodes",e.UpdateBookmarkNode="update-bookmark-node",e.DeleteBookmarkNode="delete-bookmark-node"}(Fa||(Fa={})),function(e){e.UpdateFavoriteEntries="update-favorite-entries",e.UpdateContentMenu="update-content-menu",e.NavigateContentMenu="navigate-content-menu",e.MoreMenuCustomOptionClicked="more-menu-custom-option-clicked",e.RefreshDockCollectionMenu="refresh-dock-collection-menu"}(Na||(Na={})),function(e){e.SendUpdateVersionModalResponse="send-update-version-modal-response",e.SendIntentResolverModalResponse="send-intent-resolver-modal-response"}(Va||(Va={}));const La={...Ta,...Ba,...Na},Ua=ge(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-bookmarks`),_a=e=>({identity:e,openfinWindow:fin.Window.wrapSync(e),_bookmarks:{_createBookmarkNode:async e=>(async e=>(await Ua()).dispatch(Fa.CreateBookmarkNode,e))(e),_getBookmarkNode:async e=>(async e=>(await Ua()).dispatch(Fa.GetBookmarkNode,e))(e),_searchBookmarkNodes:async e=>(async e=>(await Ua()).dispatch(Fa.SearchBookmarkNodes,e))(e),_updateBookmarkNode:async e=>(async e=>(await Ua()).dispatch(Fa.UpdateBookmarkNode,e))(e),_deleteBookmarkNode:async e=>(async e=>(await Ua()).dispatch(Fa.DeleteBookmarkNode,e))(e)},getPages:async()=>(await wt(e)).dispatch(lt.GetPagesForWindow,e),getPage:async t=>(await wt(e)).dispatch(lt.GetPageForWindow,{identity:e,pageId:t}),addPage:async t=>xn().Browser.wrapSync(e)._addPage(t),_addPage:async(t,a)=>{const n=await wt(e),o={identity:e,page:t,insertionIndex:a?.index,multiInstanceViewBehavior:a?.multiInstanceViewBehavior};return n.dispatch(lt.AddPage,o)},_addPages:async(t,a)=>{const n=await wt(e),o=t.map(({page:e,opts:t})=>({...e,multiInstanceViewBehavior:t?.multiInstanceViewBehavior||"duplicate"})),r={identity:e,pages:o,...a};return n.dispatch(lt.AttachPagesToWindow,r)},removePage:async t=>(await wt(e)).dispatch(lt.DetachPagesFromWindow,{identity:e,pageIds:[t]}),reparentPage:async t=>xn().Browser.wrapSync(e)._reparentPage(t),_reparentPage:async t=>{const{pageId:a}=t,n=await wt(e),o=(await n.dispatch(lt.GetAllAttachedPages,void 0)).find(({pageId:e})=>e===a);if(!o)throw new Error(`Reparent Page Error: Target page with pageId ${a} not found`);o.multiInstanceViewBehavior="reparent";const r={identity:e,pages:[o],insertionIndex:t.index};return n.dispatch(lt.AttachPagesToWindow,r)},setActivePage:async t=>(await wt(e)).dispatch(lt.SetActivePage,{identity:e,pageId:t}),updatePage:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.UpdatePageForWindow,t)},reorderPages:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.ReorderPagesForWindow,t)},_openGlobalContextMenu:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.OpenGlobalContextMenuInternal,t)},replaceToolbarOptions:async t=>{await wt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{toolbarOptions:t}})},replaceWindowStateButtonOptions:async t=>{await wt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{windowStateButtonOptions:t}})},updateBrowserWindowTitle:async t=>{const a=fin.Window.wrapSync(e);"string"!=typeof t?await a.updateOptions({workspacePlatform:{title:t}}):console.warn("Type string for window title is deprecated, please use WindowTitle type instead",t)},_openViewTabContextMenu:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.OpenViewTabContextMenuInternal,t)},_openPageTabContextMenu:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.OpenPageTabContextMenuInternal,t)},_openSaveModal:async t=>{await wt(e);return(await Da(e)).dispatch(La.OpenSaveModalInternal,t)},_getLayoutsWithSelectedViews:async()=>(await Da(e)).dispatch(La.GetLayoutsWithSelectedViewsInternal,e),_openSaveButtonContextMenu:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.OpenSaveButtonContextMenuInternal,t)},_addDefaultPage:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.AddDefaultPage,t)},_trackRemovedTab:async t=>(await wt(e)).dispatch(lt.TrackRemovedTabInternal,t),_restoreRemovedTab:async t=>(await wt(e)).dispatch(lt.RestoreRemovedTabInternal,t),_trackVisitedSite:async t=>(await wt(e)).dispatch(lt.TrackVisitedSiteInternal,t),_getRecentlyVisitedSites:async t=>(await wt(e)).dispatch(lt.GetRecentlyVisitedSitesInternal,t),_getFrequentlyVisitedSites:async t=>(await wt(e)).dispatch(lt.GetFrequentlyVisitedSitesInternal,t),_searchSites:async t=>(await wt(e)).dispatch(lt.SearchSitesInternal,{identity:e,req:t}),_getSearchProviders:async()=>(await wt(e)).dispatch(lt.GetSearchProvidersInternal,{identity:e}),_getCuratedContent:async t=>(await wt(e)).dispatch(lt.GetCuratedContentInternal,{identity:e,req:t}),_handleRequestNavigation:async t=>(await wt(e)).dispatch(lt.HandleRequestNavigationInternal,t),_sendUpdateVersionModalResponse:async t=>(await wt(e)).dispatch(lt.SendUpdateVersionModalResponseInternal,t)}),Oa=e=>{const t=fin.Platform.wrapSync(e);return{wrapSync:e=>_a(e),createWindow:async a=>{const n=(()=>{const e=`browser-window-startup-${wa()}`;return Ca.markStart(e),e})();(e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",()=>{Ca.markAndMeasure("browser-window-shown",e)})})(n),await wt(e);const o=await t.createWindow(a);return(e=>{Ca.markAndMeasure("browser-window-started",e)})(n),_a(o.identity)},getAllAttachedPages:async()=>(await wt(e)).dispatch(lt.GetAllAttachedPages,void 0),getAllWindows:async()=>{await wt(e);return(await Ee()).map(e=>_a(e.identity))},getUniquePageTitle:async t=>(await wt(e)).dispatch(lt.GetUniquePageTitle,t),getLastFocusedWindow:async()=>(await wt(e)).dispatch(lt.GetLastFocusedBrowserWindow,void 0),getPageByViewIdentity:async t=>(await wt(e)).dispatch(lt.GetPageByViewIdentity,t)}},Ga=(e,t=0)=>{let a,n,o=!1;const r=async n=>{const i=await e(...n);if(o){await new Promise(e=>setTimeout(e,t));const e=a;return a=void 0,o=!1,r(e)}return i};return(...e)=>(n?(o=!0,a=e):n=r(e).catch(e=>{throw console.error("makeDebouncedFunc",e),e}).finally(()=>{n=void 0}),n)};var Ha;!function(e){e.Home="/home",e.Browser="/browser",e.Enterprise="/enterprise",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(Ha||(Ha={}));function $a(e,t){return async(a,...n)=>{e.has(a)&&e.get(a).forEach(e=>e(...n)),t&&await t({event:a,payload:n})}}function Ka(e,t){return t&&t(t=>{const{event:a,payload:n}=t;e.has(a)&&e.get(a).forEach(e=>e(...n))}),(t,a)=>{e.has(t)||e.set(t,new Set),e.get(t).add(a)}}function za(e){return(t,a)=>{e.has(t)||e.set(t,new Set);const n=e.get(t),o=(...e)=>{a(...e),n.delete(o)};n.add(o)}}function qa(e){return(t,a)=>{e.has(t)&&e.get(t).delete(a)}}const Ja={name:Me.BrowserMenu,alwaysOnTop:!0,autoShow:!0,frame:!1,resizable:!1,backgroundColor:"#2f3136",smallWindow:!0,showTaskbarIcon:!1,backgroundThrottling:!1,saveWindowState:!1};function Za(e){const t={...Ja,...e};return t.url=function(e,t){if(!R)throw new Error("resolveAbsolutePath can only be used in a window");const a=t??window.location;if(/^(?:[a-z]+:)?\/\//i.test(e))return e;const n=`${a.protocol}//${a.hostname}`;return new URL(e,n).href}(t.url??""),t}const ja=function(e){const t=new Map;return{emit:$a(t,t=>W&&fin.InterApplicationBus.publish(e,t)),addListener:Ka(t,t=>W&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t)),addListenerWithUUID:a=>Ka(t,t=>W&&fin.InterApplicationBus.subscribe({uuid:a},e,t)),removeListener:qa(t),once:za(t)}}("window.menu"),Qa=(e,t)=>fin.Window.wrapSync(e).updateOptions({opacity:t}),Ya=e=>ja.emit("response",e),Xa=Ga(()=>Ce().getChildWindows(),500);const en=new Map;async function tn(e,t,a){const n=Za(e),o=await St(fin.me.identity),r=await Pt(fin.me.identity)===k.Dark,i=o?.theme;if(n.backgroundColor=i?.[r?k.Dark:k.Light]?.palette?.inputBackground||n.backgroundColor,!en.has(n.name)){return new Promise(o=>{ja.once("ready",async e=>{if(e.name===n.name){const t=await en.get(n.name);n.preventBlur||t.once("blurred",async()=>{if(Qa(e,0),t.hide(),Ya({name:n.name,data:{actionName:"Cancel"}}),a=t.identity.name,[Me.BrowserSaveMenu,Me.DockSaveWorkspaceMenu,Me.DesktopSignalsModal].includes(a)){const e=await t.getOptions();"submitting"!==e.customContext&&"error"!==e.customContext&&t.close()}else t.identity.name.startsWith(Me.BrowserMenu)&&t.close();var a}),setTimeout(async()=>{await Qa(e,1);1!==(await fin.Window.wrapSync(e).getOptions()).opacity&&Qa(e,1)}),o(t)}});const r=(async()=>{const o=await fin.Platform.getCurrentSync().createWindow(_e({...n,opacity:0,url:t||n.url,defaultLeft:a?.left,defaultTop:a?.top,defaultWidth:a?.width,defaultHeight:a?.height,workspacePlatform:{preventBlur:e.preventBlur}},!0));return o.once("closed",()=>{en.delete(n.name)}),o})();en.set(n.name,r)})}return en.get(n.name)}async function an(e,t){const a=Za(e),n={top:a.top,left:a.left,width:a.defaultWidth||a.width,height:a.defaultHeight||a.height};return t.set("parentName",fin.Window.getCurrentSync().identity.name),{name:a.name,bounds:n,route:`${a.url}#${t.toString()}`}}async function nn({options:e,parameters:t}){var a;!(a={name:e.name,uuid:fin.me.identity.uuid}).name.startsWith(Me.BrowserAddressSearchPrefix)&&a.name!==Me.ZoomControlsDialog&&["menu","modal","dialog"].some(e=>a.name.includes(e))&&ja.emit("modal-opened",e.name);const n=t??new URLSearchParams,o=Za(e),{name:r,modalParentIdentity:i}=o;if(!n.has("isEnterprise")){const e=`${await(async e=>(Yt||(Yt=await jt(e)),Yt))(i)}`;n.set("isEnterprise",e)}let s=await async function(e){return(await Xa()).find(t=>t.identity.name===e)}(r);if(s)await async function(e,t){const{name:a,bounds:n,route:o}=await an(e,t),r={uuid:fin.me.identity.uuid,name:a},i=fin.Window.wrapSync(r);await Promise.all([i.hide(),Qa(r,0),i.setBounds(n)]),e.preventBlur||i.once("blurred",()=>{Qa(r,0),i.hide(),Ya({name:r.name,data:{actionName:"Cancel"}})}),ja.emit("update",a,n,o),await Ya({name:a,data:{actionName:"Cancel"}})}(o,n);else{const{route:t,bounds:a}=await an(e,n);s=await tn({...o},t,a)}return s}const on={shadow:!0},rn=async({options:e,content:t,parameters:a})=>{const n=a??new URLSearchParams;n.set("content",JSON.stringify({...t,invocationId:wa()}));const o={...on,...e,name:`${e.name}--${e.modalParentIdentity?.name??""}`},r=await nn({options:o,parameters:n});return new Promise(e=>{ja.once("response",async t=>{t.name===o.name&&(e({data:t.data}),o?.closeOnResponse&&r.close())})})};let sn;async function cn(e){return(await(sn||(sn=ge(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-modal`)()),sn)).dispatch(Va.SendUpdateVersionModalResponse,e)}const ln=async e=>{const t=Ae(e),a=await t.getBounds(),n=Ie(a),o=xe(n,{height:240,width:432});return nn({options:{smallWindow:!0,saveWindowState:!1,showTaskbarIcon:!0,includeInSnapshots:!1,workspacePlatform:{windowType:"enterprise"},resizable:!1,name:Me.DesktopSignalsModal,url:await ne()+z.DesktopSignalsModal,defaultWidth:432,defaultHeight:240,preventBlur:!1,...o},parameters:new URLSearchParams({title:"Desktop Signals Modal"})})},dn=e=>({createPage:async t=>(await wt(e)).dispatch(lt.CreateSavedPageInternal,t),deletePage:async t=>(await wt(e)).dispatch(lt.DeleteSavedPageInternal,t),updatePage:async t=>(await wt(e)).dispatch(lt.UpdateSavedPageInternal,t),getPage:async t=>(await wt(e)).dispatch(lt.GetSavedPage,t),getPages:async t=>(await wt(e)).dispatch(lt.GetSavedPages,t),savePage:async t=>(await wt(e)).dispatch(lt.SavePage,t),createWorkspace:async t=>(await pt(e)).dispatch(lt.CreateSavedWorkspace,t),deleteWorkspace:async t=>{const a=xn(),n=await a.getCurrentWorkspace();if(n.workspaceId===t)throw new Error(`Cannot delete current active workspace ${n.title}`);return(await pt(e)).dispatch(lt.DeleteSavedWorkspace,t)},updateWorkspace:async t=>(await pt(e)).dispatch(lt.UpdateSavedWorkspace,t),getWorkspace:async t=>(await pt(e)).dispatch(lt.GetSavedWorkspace,t),getWorkspaces:async t=>(await pt(e)).dispatch(lt.GetSavedWorkspaces,t),getWorkspacesMetadata:async t=>(await pt(e)).dispatch(lt.GetSavedWorkspacesMetadata,t),saveWorkspace:async t=>(await pt(e)).dispatch(lt.SaveWorkspace,t),getDockProviderConfig:async t=>(await pt(e)).dispatch(lt.GetDockProviderConfig,t),saveDockProviderConfig:async t=>(await pt(e)).dispatch(lt.SaveDockProviderConfig,t)}),un=k.Dark,pn=e=>Object.entries(e).reduce((e,[t,a])=>`${e}--workspace-palette-${t}: ${a};`,""),wn=(e,t)=>{const a=!!e.contentBackground5&&"#000000"!==e.contentBackground5,n=!!e.contentBackground4&&"#000000"!==e.contentBackground4,o=Qe(e.textDefault),r=Qe(e.textInactive),i=o.rgb,s=r.rgb,c=o.alpha?parseFloat(o.alpha.toString()):1,l=r.alpha?parseFloat(r.alpha.toString()):1;return{dockExpandedContainerBorderColor:a?e.contentBackground5:e.background4,dockExpandedContainerBorderRadius:a&&t?"0":"10px",dockExpandedContainerBackground:n?e.contentBackground4:e.background1,fillerBackgroundColor:n?e.contentBackground4:"inherit",dockCompanionContainerBackground:n?e.contentBackground4:"inherit",dockComponentContainerBackground:a?e.contentBackground5:e.background5,styledDropdownActiveBackground:`${a?e.contentBackground5:e.background4}`,contentMenuWrapperInternalDivBorderColor:a?e.contentBackground5:e.background5,contentMenuItemContainerActiveBackground:a?e.contentBackground5:e.background3,contentMenuItemContainerHoverBackground:a?e.contentBackground5:e.background2,contentMenuHeaderBorderColor:a?e.contentBackground5:e.background5,dockCompanionSeparatorBorderColor:a?e.contentBackground5:e.background3,dockComponentContainerBorderColor:a?e.contentBackground5:e.background5,companionDockButtonActiveBackground:a?e.contentBackground5:e.background4,companionDockButtonHoverBackground:a?e.contentBackground5:e.background4,"computed-scrollbar-thumb-alpha":c,"computed-scrollbar-track-alpha":l,"scrollbar-thumb-rgb":i,"scrollbar-track-rgb":s}},hn=(e,t,a)=>({selectedTab:"dark"===t?e.background3:e.background1,...wn(e,a)});const gn=new class{constructor(e){this.providerStorage=e,this.getVarsByScheme=e=>"dark"===e?this.darkPaletteVars:this.lightPaletteVars,this.setWorkspaceStorage=e=>{this.workspaceStorage=e},this.trySynchronizeWorkspaceStorage=async()=>{if(this.workspaceStorage){const e=this.getScheme();if(this.hasUserPreference()&&this.workspaceStorage.setItem(Nt.SelectedColorScheme,e),this.darkPaletteVars&&this.lightPaletteVars)if("dark"===e||"light"===e)this.workspaceStorage.setItem(Nt.ThemePaletteSheet,`:root{${this.getVarsByScheme(e)}}`);else{const e=`@media (prefers-color-scheme: dark){:root {${this.getVarsByScheme("dark")}}}`,t=`@media (prefers-color-scheme: light){:root{${this.getVarsByScheme("light")}}}`;this.workspaceStorage.setItem(Nt.ThemePaletteSheet,`${t}${e}`)}const t=function(e){const t=e===k.System?"system":e===k.Light?"light":"dark",a="dark"===t;return{inForcedColorsMode:!1,prefersReducedTransparency:!1,shouldUseDarkColors:a,shouldUseDarkColorsForSystemIntegratedUI:a,shouldUseHighContrastColors:!1,shouldUseInvertedColorScheme:!1,themeSource:t}}(e);try{await fin.System.setThemePreferences(t)}catch(e){console.error("failed to set native theme preferences: ",e)}}},this.setPalettes=async({light:e,dark:t},a)=>{this.lightPaletteVars=pn({...e,...hn(e,"light",a)}),this.darkPaletteVars=pn({...t,...hn(t,"dark",a)})}}hasUserPreference(){return null!==this.providerStorage.getItem(Nt.SelectedColorScheme)}setScheme(e){this.providerStorage.setItem(Nt.SelectedColorScheme,e)}setThemeDefaultScheme(e){const t=Object.values(k);t.includes(e)?this.providerStorage.setItem(Nt.ThemePaletteDefaultScheme,e):console.warn(`Invalid theme default scheme '${e}'. Must be one of: ${t.join(", ")}. Ignoring default.`)}getScheme(){const e=this.providerStorage.getItem(Nt.SelectedColorScheme),t=this.providerStorage.getItem(Nt.ThemePaletteDefaultScheme);return null!==e?e:t??un}}(e),mn=()=>(we("ThemeStorage: getThemeStorageController called"),gn),kn=e=>({getThemes:async()=>(await pt(e)).dispatch(lt.GetThemes,void 0),setSelectedScheme:async t=>(await pt(e)).dispatch(lt.SetSelectedScheme,t),getSelectedScheme:async()=>(await pt(e)).dispatch(lt.GetSelectedScheme,void 0)}),fn=async e=>{const t=await Da({name:"dock3",uuid:We.uuid});await t.dispatch(La.SetSelectedScheme,e)},bn=async e=>{const t=await ct();await t.dispatch("set-selected-scheme",e)},yn=async e=>{const t=await(async()=>{if(!be){const e=ge(await fe());be=e()}return be})();await t.dispatch(ke.UpdatePlatformThemeScheme,{scheme:e})},vn=async e=>{const t=await Ee();return Promise.all(t.map(async t=>{const a=await Da(t.identity);await a.dispatch(La.SetSelectedScheme,e)}))},Sn=async e=>{const t=await Fe();return Promise.all(t.map(async t=>{const a=await Da(t.identity);await a.dispatch(La.SetSelectedScheme,e)}))},Pn=async e=>{const t=(await fin.Application.getCurrentSync().getViews()).filter(e=>e.identity.name.startsWith(Me.FindInPageViewPrefix));return Promise.all(t.map(async t=>{const a=await Da(t.identity,"theme-change-listener");await a.dispatch(La.SetSelectedScheme,e)}))},Cn=async e=>{try{const t=mn();t.setScheme(e),await Promise.all([await t.trySynchronizeWorkspaceStorage(),yn(e),vn(e),Sn(e),Pn(e),bn(e),fn(e)])}catch(e){console.error("failed to set the selected scheme: ",e)}},Mn=()=>{try{return mn().getScheme()}catch(e){console.error("failed to get the selected scheme: ",e)}},In=e=>{const t=fin.Platform.wrapSync(e);let a;return Object.assign(t,{applySnapshot:async(t,a)=>{if("string"!=typeof t&&!t?.windows)throw new Error("Not a valid browser snapshot");return fin.Platform.wrapSync(e).applySnapshot(t,a)},getSnapshot:()=>fin.Platform.wrapSync(e).getSnapshot().then(e=>e),getViewSnapshot:t=>fin.Platform.wrapSync(e).getViewSnapshot(t),createView:(t,a,n)=>fin.Platform.wrapSync(e).createView(t,a,n),launchApp:async t=>{console.warn("launchApp method is deprecated. It is recommended to use createView - https://developers.openfin.co/of-docs/docs/platform-getting-started#add-a-view-to-an-existing-window or createWindow - https://developers.openfin.co/of-docs/docs/platform-getting-started#create-a-platform-window instead."),t.target||(t.target={uuid:B,name:E,entityType:F||"unknown"});return(await pt(e)).dispatch(lt.LaunchApp,t)},_invokeCustomAction:async(t,a)=>{const n=await pt(e),o={actionId:t,payload:{...a,callerType:a.callerType||M.API}};return n.dispatch(lt.InvokeCustomActionInternal,o)},_requestQuitPlatformDialog:async t=>(await pt(e)).dispatch(lt.RequestQuitPlatformDialogInternal,t),_showUpdateVersionModal:async t=>(await pt(e)).dispatch(lt.ShowUpdateVersionModalInternal,t),getCurrentWorkspace:async t=>(await pt(e)).dispatch(lt.GetCurrentWorkspace,t),applyWorkspace:async(t,a)=>(await pt(e)).dispatch(lt.ApplyWorkspace,{...t,options:a}),restoreLastSavedWorkspace:async t=>(await pt(e)).dispatch(lt.RestoreLastSavedWorkspaceInternal,t),setActiveWorkspace:async t=>(await pt(e)).dispatch(lt.SetActiveWorkspace,t),getLanguage:async()=>(await pt(e)).dispatch(lt.GetLanguage),_getLanguageResources:async()=>(await pt(e)).dispatch(lt.GetLanguageResourcesInternal),setLanguage:async t=>(await pt(e)).dispatch(lt.SetLanguage,t),_raiseAnalytics:async t=>{if(a||(a=await ut(e)),"object"==typeof a&&a?.analytics?.isSupported){return(await pt(e)).dispatch(lt.Analytics,t)}e.uuid},getNotificationsConfig:async()=>{console.warn("Notifications config is now part of the platform manifest and is automatically resolved by the notifications API. Do NOT use getNotificationsConfig method as it will not return the correct configuration.")},_refreshBookmarksInternal:async()=>(await pt(e)).dispatch(lt.RefreshBookmarksInternal),_launchBookmarkInternal:async t=>(await pt(e)).dispatch(lt.LaunchBookmarkInternal,t),_updateDockFavoritesInternal:async t=>(await pt(e)).dispatch(lt.UpdateDockFavoritesInternal,t),_updateContentMenuInternal:async t=>(await pt(e)).dispatch(lt.UpdateContentMenuInternal,t),_launchDockEntryInternal:async t=>(await pt(e)).dispatch(lt.LaunchDockEntryInternal,t),_setDockFavoritesInternal:async t=>(await pt(e)).dispatch(lt.SetDockFavoritesOrderInternal,t),_setDefaultDockButtonsOrderInternal:async t=>(await pt(e)).dispatch(lt.SetDefaultDockButtonsOrderInternal,t),_removeDockFavoriteInternal:async t=>(await pt(e)).dispatch(lt.RemoveDockFavoriteInternal,t),_addDockFavoriteInternal:async t=>(await pt(e)).dispatch(lt.AddDockFavoriteInternal,t),_navigateContentMenuInternal:async t=>(await pt(e)).dispatch(lt.NavigateContentMenuInternal,t),_openDockWorkspacesContextMenuInternal:async()=>(await pt(e)).dispatch(lt.GetDockWorkspacesContextMenuInternal),_handleDockWorkspacesMenuResponseInternal:async t=>(await pt(e)).dispatch(lt.HandleDockWorkspacesMenuResponseInternal,t),_refreshDockCollectionMenuInternal:async t=>(await pt(e)).dispatch(lt.RefreshDockCollectionMenuInternal,t),_launchCollectionInternal:async t=>(await pt(e)).dispatch(lt.LaunchCollectionInternal,t),_focusAndExpandSearchInternal:async()=>(await pt(e)).dispatch(lt.FocusAndExpandSearchInternal),_showAboutPagePopup:async e=>(async e=>{const t=new URLSearchParams({...e,title:"About"}),a=await He(fin.me.identity),n=e.copyrightMessage?320:286,o=xe(a,{height:n,width:360});return nn({options:{frame:!0,smallWindow:!0,saveWindowState:!1,showTaskbarIcon:!0,includeInSnapshots:!1,workspacePlatform:{windowType:"enterprise"},resizable:!1,name:Me.AboutPageWindow,url:await ne()+z.EnterpriseAboutPage,defaultWidth:360,defaultHeight:n,preventBlur:!0,...o},parameters:t})})(e),Theme:kn(e),Browser:Oa(e),Storage:dn(e)})},xn=()=>In(fin.me.identity),An={contextMenuOptions:{enabled:!0,template:["spellCheck","separator","print","separator","cut","copy","paste","undo","redo","selectAll","inspect","reload"]},downloadShelf:{enabled:!1},hotkeys:[{keys:"Shift+CommandOrControl+E"}]};function Wn(e,t){return da({},An,t,e)}const Rn="internal-generated-view-",Dn=(e,t)=>e.content?{...e,content:e.content.map(e=>Dn(e,t))}:{...e,componentState:t(e.componentState)},Tn=(e,t)=>{return a=Wn(e,t),{...a,name:a.name?a.name:`internal-generated-view-${wa()}`,_internalWorkspaceData:{...a._internalWorkspaceData,viewIdentifier:a._internalWorkspaceData?.viewIdentifier||wa()}};var a},Bn=e=>({...e,name:void 0}),En=e=>{const t={...e};return Dn(t,Bn)},Fn=e=>{const t={...e};return Dn(t,e=>e.name&&e.name.startsWith(Rn)?Bn(e):e)},Nn=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach(e=>{if("component"===e.type)return t.push(e.componentState);const a=Nn(e.content);t.push(...a)}),t},Vn=async(e,t,a=We)=>{let n;if(await Be(a)){n=(await Ae(a).getOptions()).layout||{settings:{}}}return{...n,content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{title:e,url:t}}]}]}};new Map,new Map,new Map;const Ln=(e,t)=>{const a=Nn(t.content);return{...Dn(e,e=>{const t=a.find(t=>t._internalWorkspaceData?.viewIdentifier===e._internalWorkspaceData?.viewIdentifier),n=t?t.isClosable:e.isClosable;return{...e,isClosable:n}}),settings:t.settings}},Un=e=>e?Nn(e).length:0,_n=(pa()(async e=>{try{if(!e||!e.layoutContainerKey)return;const t=await(async e=>fin.Platform.Layout.wrapSync({...fin.me.identity,layoutName:e}).getConfig())(e.layoutContainerKey),a=t.content?Nn(t.content):[],n=a.length;n>1?(async e=>{if("multiView"!==e.attachedPageType){const t=await xn().Browser.getUniquePageTitle();xn().Browser.wrapSync(We).updatePage({pageId:e.pageId,page:{title:e.title??t,singleViewName:null,attachedPageType:"multiView"}})}})(e):1===n&&(async(e,t)=>{const a=xn().Browser.wrapSync(We);if("singleView"!==e.attachedPageType){const n=await va(e);delete n.layout,delete n.pageId;const o=fin.View.wrapSync({uuid:We.uuid,name:t}),r=await o.getInfo(),i={...n,title:null,singleViewName:t,hasUnsavedChanges:!1,attachedPageType:"singleView",pageIcon:r.favicons[0]};await a.updatePage({pageId:e.pageId,page:i})}})(e,a[0].name),await(async(e,t)=>{const a=Sa({...We,layoutName:e.layoutContainerKey}),n=await a.isShowingTabs();t>1?n||await a.show():1===t&&n&&await a.hide({settings:{reorderEnabled:!0}})})(e,n)}catch(e){}},50,{leading:!1,trailing:!0}),require("react-i18next")),On=require("i18next");var Gn=a.n(On);const Hn=JSON.parse('{"contextMenu.newWindow":"新建窗口","contextMenu.newPage":"新建页面","contextMenu.restore":"还原到上次保存的更改","contextMenu.switchWorkspace":"切换工作区","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"外观","contextMenu.saveWorkspace":"保存工作区","contextMenu.saveWorkspaceAs":"将工作区另存为...","contextMenu.renameWorkspace":"重命名工作区","contextMenu.deleteWorkspace":"删除工作区","contextMenu.downloads":"下载","contextMenu.savePage":"保存页面","contextMenu.savePageAs":"将页面另存为...","contextMenu.print":"打印...","contextMenu.printScreen":"打印屏幕","contextMenu.closeWindow":"关闭窗口","contextMenu.openStorefront":"开放式店面","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新建视图","contextMenu.openView":"使用默认 Web 浏览器打开视图","contextMenu.openViews":"使用默认 Web 浏览器打开视图","contextMenu.reload":"Reload CN","contextMenu.reloadView":"重新加载视图","contextMenu.reloadViews":"重新加载视图","contextMenu.duplicate":"Duplicate CN","contextMenu.duplicateView":"复制视图","contextMenu.duplicateViews":"复制视图","contextMenu.addView":"将视图添加到频道","contextMenu.addViews":"将视图添加到频道","contextMenu.removeView":"从频道中移除视图","contextMenu.removeViews":"从频道中移除视图","contextMenu.closeView":"关闭视图","contextMenu.closeViews":"关闭视图","contextMenu.closeTab":"Close Tab CN","contextMenu.duplicatePage":"复制页面","contextMenu.submenu.print":"打印","contextMenu.submenu.printAll":"全部打印","saveMenu.saveWorkspaceAs":"将工作区另存为","saveMenu.savePageAs":"将页面另存为","saveModal.enterValue":"Please enter a value CN","saveModal.alreadyExists":"{{title}} 已存在。","saveModal.pleaseEnterValidName":"请输入有效名称","saveModal.renamePage":"重新命名页面","saveModal.closePage":"关闭页面","saveModal.discardChanges":"放弃更改","saveModal.discardAll":"全部放弃","saveModal.saveAll":"全部保存","saveModal.savePagesCount":"关闭前保存 ({{count}}) 个页面?","defaultPageTitle":"Untitled Page CN","enterpriseDefaultPageTitle":"Untitled Supertab CN","addNewPage":"添加新页面","addNewTab":"添加新选项卡","addNewView":"新建视图","restoreModal":"您确定要还原到上次保存的更改吗?","modal.discardWarning":"任何未保存的更改都将丢失","modal.discardPageWarning":"对此页的任何未保存的更改都将丢失。","modal.saveChangesPrompt":"关闭前保存更改?","modal.pageClose":"关闭页面","switchWorkspaceModal":"您确定要切换到 {{workspace}} 吗?","switchWorkspaceModal.warning":"任何未保存的更改都将丢失","deleteWorkspaceModal":"您确定要永久删除此工作区吗?","replaceWorkspaceModal.warning":"名称为 {{workspace}} 的工作区已存在。您是否要替换它?","replaceWorkspaceModal.warning.body":"已存在同名的工作区。替换它将覆盖其当前内容。","replaceWorkspaceModal.replace":"替换","closePlatform":"关闭平台","closePlatform.workspace":"关闭 {{workspace}} 平台","closePlatform.warning":"关闭平台将关闭所有工作区、应用或任何正在运行的进程。","back":"后退","forward":"前进","reload":"重新加载","green":"绿色","purple":"紫色","orange":"橙色","red":"红色","pink":"粉红色","yellow":"黄色","theme.light":"浅色","theme.dark":"深色","theme.system":"与操作系统设置同步","toolbar.hideTabs":"隐藏选项卡","toolbar.showTabs":"显示选项卡","toolbar.lock":"锁定","toolbar.unlock":"解锁","toolbar.colorLinking":"颜色链接","toolbar.changeLayout":"更改布局","toolbar.saveMenu":"保存菜单","toolbar.maximizeWindow":"最大化窗口","toolbar.restoreWindow":"还原窗口","toolbar.minimizeWindow":"最小化窗口","toolbar.downloads":"下载","changeLayout.fullWidth":"全宽","changeLayout.columns":"列数","changeLayout.Rows":"行数","changeLayout.Grid":"网格","successIndicator.workspaceSwitched":"已切换工作区","successIndicator.hidden":"选项卡已隐藏","successIndicator.shown":"选项卡已显示","successIndicator.locked":"页面已锁定","successIndicator.unlocked":"页面已解锁","successIndicator.workspaceSaved":"工作区已保存","successIndicator.workspaceSavedAs":"工作区已另存为 {{workspace}}","successIndicator.workspaceRenamed":"工作区已重命名","successIndicator.pageSaved":"页面已保存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. CN","successIndicator.pageCopySaved":"页面已另存为 {{title}}","successIndicator.pageRenamed":"页面已重命名","successIndicator.contextGroupApplied":"已应用上下文组","successIndicator.namedContextGroupApplied":"已应用 {{colorName}} 上下文组","successIndicator.viewRemoved":"从上下文组中移除视图","successIndicator.viewsRemoved":"从上下文组中移除视图","successIndicator.layoutApplied":"已应用 {{layoutName}} 布局","successIndicator.workspaceDeleted":"工作区已删除","errorIndicator.pageSaveFailed":"页面保存失败","errorIndicator.workspaceSaveFailed":"工作区保存失败","errorIndicator.failedToDuplicatePage":"复制页面失败","infoIndicator.colorLinkAttempt":"我们尝试对此选项卡进行颜色链接,但网站/内容所有者尚未启用该功能","global.cancel":"取消","global.confirm":"确认","global.save":"保存","global.delete":"Delete CN","appResults.header":"Featured Content CN","recentlyClosed.header":"Recently Closed CN","landingPage.subheader":"Apps and websites selected by an admin will show here CN","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. CN","a11y.label":"Search command line interface. Use Escape key to go back. CN","searchResults.searchingFor":"正在所有提供程序中搜索 {{query}}","searchResults.resultsAvailableLoading":"所有提供程序中有 {{count}} 个结果可用,部分提供程序仍在加载","searchResults.allResultsAvailable":"所有提供程序中有 {{count}} 个结果可用","searchResults.noResultsFoundAllProviders":"所有提供程序中找不到 {{query}} 的结果","searchResults.searchingProvider":"正在 {{providerName}} 中搜索 {{query}}","searchResults.loadingProviderResults":"正在加载 {{providerName}} 结果...","searchResults.loadingMoreProviderResults":"正在加载更多 {{providerName}} 结果...","searchResults.providerResultsAvailable":"{{providerName}} 中有 {{count}} 个结果可用","searchResults.noResultsFoundProvider":"{{providerName}} 中找不到 {{query}} 的结果","searchResults.focused":"已聚焦: {{title}}","searchResults.viewMore":"查看更多","aria.openBrowser":"打开浏览器菜单","aria.browserTabs":"浏览器选项卡","aria.viewTab":"查看 {{title}} 的选项卡","aria.viewTabWithKeyboardMac":"{{title}} 的视图选项卡。按 Enter 或空格键以进入。按 Command Shift E 以退出","aria.viewTabWithKeyboardWindows":"{{title}} 的视图选项卡。按 Enter 或空格键以进入。按 Ctrl Shift E 以退出","aria.closePage":"关闭 {{title}} 的页面选项卡按钮","aria.closeTab":"关闭选项卡 {{title}}","aria.title":"标题","aria.closeContextGroup":"使用转义关闭上下文组选择对话框","aria.colorLinking":"显示或隐藏颜色链接","aria.applyColorLinking":"请选择一个视图以应用颜色链接","aria.assignColorLinkingCurrentView":"分配给 {{name}} 上下文组的当前视图","aria.assignColorLinkingCurrentViews":"分配给 {{name}} 上下文组的当前视图","aria.setColorLinkingActiveView":"将活动视图设置为 {{name}} 上下文组","aria.setColorLinkingActiveViews":"将活动视图设置为 {{name}} 上下文组","aria.escapeLayoutDialog":"使用转义关闭更改布局对话框","global.supertab":"Supertab CN","global.tab":"Tab CN","bookmarks.editBookmark":"Edit Bookmark CN","bookmarks.bookmarkAdded":"Bookmark added CN","bookmarks.done":"Done CN","bookmarks.remove":"Remove CN","bookmarks.bookmarksPanel":"Bookmarks Panel CN","bookmarks.bookmarks":"Bookmarks CN","bookmarks.allBookmarks":"All Bookmarks CN","bookmarks.favorites":"Favorites CN","bookmarks.searchBookmarks":"Search Bookmarks CN","bookmarks.clearSearchInput":"Clear Search Input CN","bookmarks.createFolder":"Create New Folder CN","bookmarks.exitFolder":"Exit Folder CN","bookmarks.newFolder":"New Folder CN","bookmarks.namedFolder":"{{name}} Folder CN","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings CN","bookmarks.folderSettings":"{{name}} Folder Settings CN","bookmarks.noResultsFound":"No results found CN","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search CN","bookmarks.nothingToShow":"Nothing to show yet CN","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder CN","bookmarks.resultsFoundIn":"Results found in {{name}} CN","bookmarks.resultsInOtherFolders":"Results found in other folders CN","bookmarks.allResultsFoundIn":"All results found in CN","bookmarks.editName":"Edit Name CN","bookmarks.move":"Move CN","bookmarks.bookmarkAddedTitle":"Bookmark Added CN","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" CN","bookmarks.bookmarkEditedTitle":"Bookmark Edited CN","enterpriseContextMenu.saveSupertab":"Save Supertab CN","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... CN","enterpriseContextMenu.duplicate":"Duplicate CN","enterpriseContextMenu.deleteSupertab":"Delete Supertab CN","enterpriseContextMenu.newTab":"New Tab CN","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As CN","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? CN","saveSupertabCount_other":"Save {{count}} Supertabs before closing? CN"},"enterpriseSaveModal.renameSupertab":"Rename CN","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. CN","enterpriseSaveModal.closeTab":"Close Tab CN","enterpriseSaveModal.closeSupertab":"Close Supertab CN","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. CN","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? CN","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. CN","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved CN","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. CN","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted CN","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. CN","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab CN","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab CN","enterpriseCommandBar.switchToSupertab":"Switch to Supertab CN","enterpriseCommandBar.goTo":"Go to {{type}} CN","enterpriseCommandBar.viewMore":"View More CN","sidePanel.aiCenter":"AI Center CN","sidePanel.newChat":"New Chat CN","sidePanel.toggleSidePanel":"Toggle Side Panel CN","sidePanel.closeSidePanel":"Close Side Panel CN","sidePanel.openAiCenter":"Open AI Center CN","contextMenu.quitEnterpriseBrowser":"Quit CN","dock.removeFavorite":"Remove CN","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),$n=JSON.parse('{"contextMenu.newWindow":"新視窗","contextMenu.newPage":"新頁面","contextMenu.restore":"還原到上次儲存的變更","contextMenu.switchWorkspace":"切換工作空間","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"外觀","contextMenu.saveWorkspace":"儲存工作空間","contextMenu.saveWorkspaceAs":"將工作空間另存為...","contextMenu.renameWorkspace":"重新命名工作空間","contextMenu.deleteWorkspace":"刪除工作空間","contextMenu.downloads":"下載","contextMenu.savePage":"儲存頁面","contextMenu.savePageAs":"將頁面另存為...","contextMenu.print":"列印...","contextMenu.printScreen":"擷取畫面","contextMenu.closeWindow":"關閉視窗","contextMenu.openStorefront":"打開 Storefront","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新視圖","contextMenu.openView":"使用預設網頁瀏覽器打開視圖","contextMenu.openViews":"使用預設網頁瀏覽器打開視圖","contextMenu.reload":"Reload ZH","contextMenu.reloadView":"重新載入視圖","contextMenu.reloadViews":"重新載入視圖","contextMenu.duplicate":"Duplicate ZH","contextMenu.duplicateView":"複寫視圖","contextMenu.duplicateViews":"複寫視圖","contextMenu.addView":"將視圖新增至頻道","contextMenu.addViews":"將視圖新增至頻道","contextMenu.removeView":"從頻道中移除視圖","contextMenu.removeViews":"從頻道中移除視圖","contextMenu.closeView":"關閉視圖","contextMenu.closeViews":"關閉視圖","contextMenu.closeTab":"Close Tab ZH","contextMenu.duplicatePage":"複寫頁面","contextMenu.submenu.print":"列印","contextMenu.submenu.printAll":"列印全部","saveMenu.saveWorkspaceAs":"將工作空間另存為","saveMenu.savePageAs":"頁面另存為","saveModal.enterValue":"Please enter a value ZH","saveModal.alreadyExists":"{{title}} 已經存在。","saveModal.pleaseEnterValidName":"請輸入一個有效的名稱","saveModal.renamePage":"重新命名頁面","saveModal.closePage":"關閉頁面","saveModal.discardChanges":"捨棄變更","saveModal.discardAll":"全部捨棄","saveModal.saveAll":"儲存全部","saveModal.savePagesCount":"要先儲存 ({{count}}) 個頁面再關閉嗎?","defaultPageTitle":"Untitled Page ZH","enterpriseDefaultPageTitle":"Untitled Supertab ZH","addNewPage":"新增新頁面","addNewTab":"新增新索引標籤","addNewView":"新視圖","restoreModal":"您確定要還原到上次儲存的變更嗎?","modal.discardWarning":"任何未儲存的變更都將被捨棄","modal.discardPageWarning":"在此頁面任何未儲存的變更都將遺失。","modal.saveChangesPrompt":"要先儲存變更再關閉嗎?","modal.pageClose":"頁面關閉","switchWorkspaceModal":"您確定要切換到 {{workspace}}?","switchWorkspaceModal.warning":"任何未儲存的變更都將被捨棄","deleteWorkspaceModal":"您確定要永久刪除此工作空間嗎?","replaceWorkspaceModal.warning":"具有名稱 {{workspace}} 的工作空間已經存在。你要更換它嗎?","replaceWorkspaceModal.warning.body":"相同名稱的工作空間已經存在。更換它後,將會覆蓋目前內容。","replaceWorkspaceModal.replace":"更換","closePlatform":"關閉平台","closePlatform.workspace":"關閉 {{workspace}} 平台","closePlatform.warning":"關閉平台後,將關閉正在執行的任何工作空間、APP 或流程。","back":"上一頁","forward":"下一頁","reload":"重新載入","green":"綠","purple":"紫","orange":"橘","red":"紅色","pink":"粉紅","yellow":"黃","theme.light":"淺","theme.dark":"深","theme.system":"與 OS 設定同步","toolbar.hideTabs":"隱藏索引標籤","toolbar.showTabs":"顯示索引標籤","toolbar.lock":"上鎖","toolbar.unlock":"解鎖","toolbar.colorLinking":"顏色連結","toolbar.changeLayout":"變更版面","toolbar.saveMenu":"儲存選單","toolbar.maximizeWindow":"最大化視窗","toolbar.restoreWindow":"還原視窗","toolbar.minimizeWindow":"最小化視窗","toolbar.downloads":"下載","changeLayout.fullWidth":"全螢幕寬度","changeLayout.columns":"行","changeLayout.Rows":"列","changeLayout.Grid":"網格","successIndicator.workspaceSwitched":"工作空間已切換","successIndicator.hidden":"索引標籤已隱藏","successIndicator.shown":"索引標籤已顯示","successIndicator.locked":"頁面已上鎖","successIndicator.unlocked":"頁面已解鎖","successIndicator.workspaceSaved":"工作空間已儲存","successIndicator.workspaceSavedAs":"工作空間已另存為 {{workspace}}","successIndicator.workspaceRenamed":"工作空間已重新命名","successIndicator.pageSaved":"頁面已儲存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. ZH","successIndicator.pageCopySaved":"頁面已另存為 {{title}}","successIndicator.pageRenamed":"頁面已重新命名","successIndicator.contextGroupApplied":"脈絡群組已套用","successIndicator.namedContextGroupApplied":"{{colorName}} 脈絡群組已套用","successIndicator.viewRemoved":"從脈絡群組中移除的視圖","successIndicator.viewsRemoved":"從脈絡群組中移除的視圖","successIndicator.layoutApplied":"{{layoutName}} 版面已套用","successIndicator.workspaceDeleted":"工作空間已刪除","errorIndicator.pageSaveFailed":"頁面無法儲存","errorIndicator.workspaceSaveFailed":"工作空間無法儲存","errorIndicator.failedToDuplicatePage":"無法複寫頁面","infoIndicator.colorLinkAttempt":"我們嘗試對此索引標籤進行顏色連結,但網站/內容所有者尚未啟用該功能","global.cancel":"取消","global.confirm":"確認","global.save":"儲存","global.delete":"Delete ZH","appResults.header":"Featured Content ZH","recentlyClosed.header":"Recently Closed ZH","landingPage.subheader":"Apps and websites selected by an admin will show here ZH","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. ZH","a11y.label":"Search command line interface. Use Escape key to go back. ZH","searchResults.searchingFor":"正在所有提供者中搜尋 {{query}}","searchResults.resultsAvailableLoading":"所有提供者中有 {{count}} 個結果可用,部分提供者仍在載入","searchResults.allResultsAvailable":"所有提供者中有 {{count}} 個結果可用","searchResults.noResultsFoundAllProviders":"所有提供者中找不到 {{query}} 的結果","searchResults.searchingProvider":"正在 {{providerName}} 中搜尋 {{query}}","searchResults.loadingProviderResults":"正在載入 {{providerName}} 結果...","searchResults.loadingMoreProviderResults":"正在載入更多 {{providerName}} 結果...","searchResults.providerResultsAvailable":"{{providerName}} 中有 {{count}} 個結果可用","searchResults.noResultsFoundProvider":"{{providerName}} 中找不到 {{query}} 的結果","searchResults.focused":"已聚焦: {{title}}","searchResults.viewMore":"查看更多","aria.openBrowser":"開啟瀏覽器選單","aria.browserTabs":"瀏覽器索引標籤","aria.viewTab":"{{title}} 的視圖索引標籤","aria.viewTabWithKeyboardMac":"{{title}} 的視圖索引標籤。按 Enter 或空白鍵以進入。按 Command Shift E 以退出","aria.viewTabWithKeyboardWindows":"{{title}} 的視圖索引標籤。按 Enter 或空白鍵以進入。按 Ctrl Shift E 以退出","aria.closePage":"關閉 {{title}} 的頁面索引標籤按鈕","aria.closeTab":"關閉索引標籤 {{title}}","aria.title":"標題","aria.closeContextGroup":"使用 Esc 鍵關閉脈絡群組選取對話框","aria.colorLinking":"顯示或隱藏顏色連結","aria.applyColorLinking":"請選取要套用顏色連結的視圖","aria.assignColorLinkingCurrentView":"目前視圖分配給 {{name}} 脈絡群組","aria.assignColorLinkingCurrentViews":"目前視圖分配給 {{name}} 脈絡群組","aria.setColorLinkingActiveView":"將啟用視圖設定為 {{name}} 脈絡群組","aria.setColorLinkingActiveViews":"將啟用視圖設定為 {{name}} 脈絡群組","aria.escapeLayoutDialog":"使用 Esc 鍵關閉變更版面對話框","global.supertab":"Supertab ZH","global.tab":"Tab ZH","bookmarks.editBookmark":"Edit Bookmark ZH","bookmarks.bookmarkAdded":"Bookmark added ZH","bookmarks.done":"Done ZH","bookmarks.remove":"Remove ZH","bookmarks.bookmarksPanel":"Bookmarks Panel ZH","bookmarks.bookmarks":"Bookmarks ZH","bookmarks.allBookmarks":"All Bookmarks ZH","bookmarks.favorites":"Favorites ZH","bookmarks.searchBookmarks":"Search Bookmarks ZH","bookmarks.clearSearchInput":"Clear Search Input ZH","bookmarks.createFolder":"Create New Folder ZH","bookmarks.exitFolder":"Exit Folder ZH","bookmarks.newFolder":"New Folder ZH","bookmarks.namedFolder":"{{name}} Folder ZH","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings ZH","bookmarks.folderSettings":"{{name}} Folder Settings ZH","bookmarks.noResultsFound":"No results found ZH","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search ZH","bookmarks.nothingToShow":"Nothing to show yet ZH","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder ZH","bookmarks.resultsFoundIn":"Results found in {{name}} ZH","bookmarks.resultsInOtherFolders":"Results found in other folders ZH","bookmarks.allResultsFoundIn":"All results found in ZH","bookmarks.editName":"Edit Name ZH","bookmarks.move":"Move ZH","bookmarks.bookmarkAddedTitle":"Bookmark Added ZH","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" ZH","bookmarks.bookmarkEditedTitle":"Bookmark Edited ZH","enterpriseContextMenu.saveSupertab":"Save Supertab ZH","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... ZH","enterpriseContextMenu.duplicate":"Duplicate ZH","enterpriseContextMenu.deleteSupertab":"Delete Supertab ZH","enterpriseContextMenu.newTab":"New Tab ZH","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As ZH","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? ZH","saveSupertabCount_other":"Save {{count}} Supertabs before closing? ZH"},"enterpriseSaveModal.renameSupertab":"Rename ZH","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. ZH","enterpriseSaveModal.closeTab":"Close Tab ZH","enterpriseSaveModal.closeSupertab":"Close Supertab ZH","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. ZH","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? ZH","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. ZH","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved ZH","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. ZH","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted ZH","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. ZH","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab ZH","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab ZH","enterpriseCommandBar.switchToSupertab":"Switch to Supertab ZH","enterpriseCommandBar.goTo":"Go to {{type}} ZH","enterpriseCommandBar.viewMore":"View More ZH","sidePanel.aiCenter":"AI Center ZH","sidePanel.newChat":"New Chat ZH","sidePanel.toggleSidePanel":"Toggle Side Panel ZH","sidePanel.closeSidePanel":"Close Side Panel ZH","sidePanel.openAiCenter":"Open AI Center ZH","contextMenu.quitEnterpriseBrowser":"Quit ZH","dock.removeFavorite":"Remove ZH","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),Kn=JSON.parse('{"contextMenu.newWindow":"New Window","contextMenu.newPage":"New Page","contextMenu.restore":"Restore to Last Saved Changes","contextMenu.switchWorkspace":"Switch Workspace","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"Appearance","contextMenu.saveWorkspace":"Save Workspace","contextMenu.saveWorkspaceAs":"Save Workspace As...","contextMenu.renameWorkspace":"Rename Workspace","contextMenu.deleteWorkspace":"Delete Workspace","contextMenu.downloads":"Downloads","contextMenu.savePage":"Save Page","contextMenu.savePageAs":"Save Page As...","contextMenu.print":"Print...","contextMenu.printScreen":"Print Screen","contextMenu.closeWindow":"Close Window","contextMenu.openStorefront":"Open Storefront","contextMenu.quitPlatform":"Quit {{platformLabel}}","contextMenu.newView":"New View","contextMenu.openView":"Open View with Default Web Browser","contextMenu.openViews":"Open Views with Default Web Browser","contextMenu.reload":"Reload","contextMenu.reloadView":"Reload View","contextMenu.reloadViews":"Reload Views","contextMenu.duplicate":"Duplicate","contextMenu.duplicateView":"Duplicate View","contextMenu.duplicateViews":"Duplicate Views","contextMenu.addView":"Add View to Channel","contextMenu.addViews":"Add Views to Channel","contextMenu.removeView":"Remove View from Channel","contextMenu.removeViews":"Remove Views from Channel","contextMenu.closeView":"Close View","contextMenu.closeViews":"Close Views","contextMenu.closeTab":"Close Tab","contextMenu.duplicatePage":"Duplicate Page","contextMenu.submenu.print":"Print","contextMenu.submenu.printAll":"Print All","saveMenu.saveWorkspaceAs":"Save Workspace As","saveMenu.savePageAs":"Save Page As","saveModal.enterValue":"Please enter a value","saveModal.alreadyExists":"{{title}} already exists.","saveModal.pleaseEnterValidName":"Please enter a valid name","saveModal.renamePage":"Rename Page","saveModal.closePage":"Close Page","saveModal.discardChanges":"Discard Changes","saveModal.discardAll":"Discard All","saveModal.saveAll":"Save All","saveModal.savePagesCount":"Save ({{count}}) pages before closing?","defaultPageTitle":"Untitled Page","enterpriseDefaultPageTitle":"Untitled Supertab","addNewPage":"New Page","addNewTab":"Add New Tab","addNewView":"New View","restoreModal":"Are you sure you want to restore to last saved changes?","modal.discardWarning":"Any unsaved changes will be discarded","modal.discardPageWarning":"Any unsaved changes to this page will be lost.","modal.saveChangesPrompt":"Save changes before closing?","modal.pageClose":"Page Close","switchWorkspaceModal":"Are you sure you want to switch to {{workspace}}?","switchWorkspaceModal.warning":"Any unsaved changes will be discarded","deleteWorkspaceModal":"Are you sure you want to permanently delete this workspace?","replaceWorkspaceModal.warning":"A Workspace with the name {{workspace}} already exists. Do you want to replace it?","replaceWorkspaceModal.warning.body":"A workspace with the same name already exists. Replacing it will overwrite its current contents.","replaceWorkspaceModal.replace":"Replace","closePlatform":"Close the platform","closePlatform.workspace":"Close the {{workspace}} Platform","closePlatform.warning":"Closing a platform will close any workspaces, apps or any processes that are running.","back":"Back","forward":"Forward","reload":"Reload","green":"Green","purple":"Purple","orange":"Orange","red":"Red","pink":"Pink","yellow":"Yellow","theme.light":"Light","theme.dark":"Dark","theme.system":"Sync with OS setting","toolbar.hideTabs":"Hide Tabs","toolbar.showTabs":"Show Tabs","toolbar.lock":"Lock","toolbar.unlock":"Unlock","toolbar.colorLinking":"Color Linking","toolbar.changeLayout":"Change Layout","toolbar.saveMenu":"Save Menu","toolbar.maximizeWindow":"Maximize Window","toolbar.restoreWindow":"Restore Window","toolbar.minimizeWindow":"Minimize Window","toolbar.downloads":"Downloads","toolbar.findInPage":"Find in Page","changeLayout.fullWidth":"Full Width","changeLayout.columns":"Columns","changeLayout.Rows":"Rows","changeLayout.Grid":"Grid","successIndicator.workspaceSwitched":"Workspace Switched","successIndicator.hidden":"Tabs are Hidden","successIndicator.shown":"Tabs are Shown","successIndicator.locked":"Page is Locked","successIndicator.unlocked":"Page is Unlocked","successIndicator.workspaceSaved":"Workspace saved","successIndicator.workspaceSavedAs":"Workspace saved as {{workspace}}","successIndicator.workspaceRenamed":"Workspace renamed","successIndicator.pageSaved":"Page Saved","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved.","successIndicator.pageCopySaved":"Page saved as {{title}}","successIndicator.pageRenamed":"Page renamed","successIndicator.contextGroupApplied":"Context group applied","successIndicator.namedContextGroupApplied":"{{colorName}} context group applied","successIndicator.viewRemoved":"View removed from context group","successIndicator.viewsRemoved":"Views removed from context group","successIndicator.layoutApplied":"{{layoutName}} layout applied","successIndicator.workspaceDeleted":"Workspace deleted","errorIndicator.pageSaveFailed":"Page failed to save","errorIndicator.workspaceSaveFailed":"Workspace failed to save","errorIndicator.failedToDuplicatePage":"Failed to duplicate Page","infoIndicator.colorLinkAttempt":"We attempted to color link this tab, but the site/content owner has not enabled it yet","global.cancel":"Cancel","global.confirm":"Confirm","global.save":"Save","global.delete":"Delete","appResults.header":"Featured Content","recentlyClosed.header":"Recently Closed","landingPage.subheader":"Apps and websites selected by an admin will show here","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content.","a11y.label":"Search command line interface. Use Escape key to go back.","searchResults.searchingFor":"Searching all providers for {{query}}","searchResults.resultsAvailableLoading":"{{count}} results available from all providers, some providers still loading","searchResults.allResultsAvailable":"{{count}} results available from all providers","searchResults.noResultsFoundAllProviders":"No results found from all providers for {{query}}","searchResults.searchingProvider":"Searching {{providerName}} for {{query}}","searchResults.loadingProviderResults":"Loading {{providerName}} results...","searchResults.loadingMoreProviderResults":"Loading more {{providerName}} results...","searchResults.providerResultsAvailable":"{{count}} results available from {{providerName}}","searchResults.noResultsFoundProvider":"No results found from {{providerName}} for {{query}}","searchResults.focused":"Focused: {{title}}","searchResults.viewMore":"View More","aria.openBrowser":"Open Browser Menu","aria.browserTabs":"Browser Tabs","aria.viewTab":"View Tab for {{title}}","aria.viewTabWithKeyboardMac":"View Tab for {{title}}. Press Enter or Space to enter. Press Command Shift E to exit","aria.viewTabWithKeyboardWindows":"View Tab for {{title}}. Press Enter or Space to enter. Press Ctrl Shift E to exit","aria.closePage":"Close Page Tab Button for {{title}}","aria.closeTab":"Close Tab {{title}}","aria.title":"Title","aria.closeContextGroup":"Use escape to close context group selection dialog","aria.colorLinking":"Show or hide color linking","aria.applyColorLinking":"Please select a view to apply color linking","aria.assignColorLinkingCurrentView":"Current view assigned to {{name}} context group","aria.assignColorLinkingCurrentViews":"Current views assigned to {{name}} context group","aria.setColorLinkingActiveView":"Set active view to {{name}} context group","aria.setColorLinkingActiveViews":"Set active views to {{name}} context group","aria.escapeLayoutDialog":"Use escape to close change layout dialog","global.supertab":"Supertab","global.tab":"Tab","bookmarks.editBookmark":"Edit Bookmark","bookmarks.bookmarkAdded":"Bookmark added","bookmarks.done":"Done","bookmarks.remove":"Remove","bookmarks.bookmarksPanel":"Bookmarks Panel","bookmarks.bookmarks":"Bookmarks","bookmarks.allBookmarks":"All Bookmarks","bookmarks.favorites":"Favorites","bookmarks.searchBookmarks":"Search Bookmarks","bookmarks.clearSearchInput":"Clear Search Input","bookmarks.createFolder":"Create New Folder","bookmarks.exitFolder":"Exit Folder","bookmarks.newFolder":"New Folder","bookmarks.namedFolder":"{{name}} Folder","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings","bookmarks.folderSettings":"{{name}} Folder Settings","bookmarks.noResultsFound":"No results found","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search","bookmarks.nothingToShow":"Nothing to show yet","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder","bookmarks.resultsFoundIn":"Results found in {{name}}","bookmarks.resultsInOtherFolders":"Results found in other folders","bookmarks.allResultsFoundIn":"All results found in","bookmarks.editName":"Edit Name","bookmarks.move":"Move","bookmarks.bookmarkAddedTitle":"Bookmark Added","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\"","bookmarks.bookmarkEditedTitle":"Bookmark Edited","enterpriseContextMenu.saveSupertab":"Save Supertab","enterpriseContextMenu.saveSupertabAs":"Save Supertab As...","enterpriseContextMenu.duplicate":"Duplicate","enterpriseContextMenu.deleteSupertab":"Delete Supertab","enterpriseContextMenu.newTab":"New Tab","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing?","saveSupertabCount_other":"Save {{count}} Supertabs before closing?"},"enterpriseSaveModal.renameSupertab":"Rename","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab.","enterpriseSaveModal.closeTab":"Close Tab","enterpriseSaveModal.closeSupertab":"Close Supertab","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost.","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab?","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent.","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted.","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab","enterpriseCommandBar.switchToSupertab":"Switch to Supertab","enterpriseCommandBar.goTo":"Go to {{type}}","enterpriseCommandBar.viewMore":"View More","sidePanel.aiCenter":"AI Center","sidePanel.newChat":"New Chat","sidePanel.toggleSidePanel":"Toggle Side Panel","sidePanel.closeSidePanel":"Close Side Panel","sidePanel.openAiCenter":"Open AI Center","contextMenu.quitEnterpriseBrowser":"Quit","dock.removeFavorite":"Remove","dock.workspaceManagement":{"restoreSuccess":"Last Saved Changes Restored"},"findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),zn=JSON.parse('{"contextMenu.newWindow":"Neues Fenster","contextMenu.newPage":"Neue Seite","contextMenu.restore":"Wiederherstellen der zuletzt gespeicherten Änderungen","contextMenu.switchWorkspace":"Workspace wechseln","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"Erscheinungsbild","contextMenu.saveWorkspace":"Workspace speichern","contextMenu.saveWorkspaceAs":"Workspace speichern unter...","contextMenu.renameWorkspace":"Workspace umbenennen","contextMenu.deleteWorkspace":"Workspace löschen","contextMenu.downloads":"Downloads","contextMenu.savePage":"Seite speichern","contextMenu.savePageAs":"Seite speichern unter...","contextMenu.print":"Drucken...","contextMenu.printScreen":"Bildschirmansicht drucken","contextMenu.closeWindow":"Fenster schließen","contextMenu.openStorefront":"Schaufenster öffnen","contextMenu.quitPlatform":"Plattform verlassen","contextMenu.newView":"Neue Ansicht","contextMenu.openView":"Ansicht mit Standard-Webbrowser öffnen","contextMenu.openViews":"Ansichten mit Standard-Webbrowser öffnen","contextMenu.reload":"Reload DE","contextMenu.reloadView":"Ansicht neu laden","contextMenu.reloadViews":"Ansichten neu laden","contextMenu.duplicate":"Duplicate DE","contextMenu.duplicateView":"Ansicht duplizieren","contextMenu.duplicateViews":"Ansichten duplizieren","contextMenu.addView":"Ansicht zum Channel hinzufügen","contextMenu.addViews":"Ansichten zum Channel hinzufügen","contextMenu.removeView":"Ansicht aus dem Channel entfernen","contextMenu.removeViews":"Ansichten aus dem Channel entfernen","contextMenu.closeView":"Ansicht schließen","contextMenu.closeViews":"Ansichten schließen","contextMenu.closeTab":"Close Tab DE","contextMenu.duplicatePage":"Seite duplizieren","contextMenu.submenu.print":"Drucken","contextMenu.submenu.printAll":"Alle drucken","saveMenu.saveWorkspaceAs":"Workspace speichern unter","saveMenu.savePageAs":"Seite speichern unter","saveModal.enterValue":"Please enter a value DE","saveModal.alreadyExists":"{{title}} existiert bereits.","saveModal.pleaseEnterValidName":"Bitte geben Sie einen gültigen Namen ein","saveModal.renamePage":"Seite umbenennen","saveModal.closePage":"Seite schließen","saveModal.discardChanges":"Änderungen verwerfen","saveModal.discardAll":"Alle verwerfen","saveModal.saveAll":"Alle speichern","saveModal.savePagesCount":"({{count}}) Seiten vor dem Schließen speichern?","defaultPageTitle":"Untitled Page DE","enterpriseDefaultPageTitle":"Untitled Supertab DE","addNewPage":"Neue Seite hinzufügen","addNewTab":"Neuen Tab hinzufügen","addNewView":"Neue Ansicht","restoreModal":"Sind Sie sicher, dass Sie die zuletzt gespeicherten Änderungen wiederherstellen wollen?","modal.discardWarning":"Alle nicht gespeicherten Änderungen werden verworfen","modal.discardPageWarning":"Alle nicht gespeicherten Änderungen auf dieser Seite gehen verloren.","modal.saveChangesPrompt":"Änderungen vor dem Schließen speichern?","modal.pageClose":"Seite schließen","switchWorkspaceModal":"Sind Sie sicher, dass Sie zu {{workspace}}wechseln wollen?","switchWorkspaceModal.warning":"Alle nicht gespeicherten Änderungen werden verworfen","deleteWorkspaceModal":"Sind Sie sicher, dass Sie diesen Workspace dauerhaft löschen wollen?","replaceWorkspaceModal.warning":"Ein Workspace mit dem Namen {{workspace}} existiert bereits. Möchten Sie ihn ersetzen?","replaceWorkspaceModal.warning.body":"Ein Workspace mit demselben Namen existiert bereits. Wenn Sie ihn ersetzen, wird der aktuelle Inhalt überschrieben.","replaceWorkspaceModal.replace":"Ersetzen","closePlatform":"Plattform schließen","closePlatform.workspace":"Die {{workspace}} Plattform schließen","closePlatform.warning":"Wenn Sie eine Plattform schließen, werden alle Workspaces, Apps und laufenden Prozesse beendet.","back":"Zurück","forward":"Weiter","reload":"Neu laden","green":"Grün","purple":"Lila","orange":"Orange","red":"Rot","pink":"Pink","yellow":"Gelb","theme.light":"Hell","theme.dark":"Dunkel","theme.system":"Synchronisierung mit OS-Einstellung","toolbar.hideTabs":"Tabs ausblenden","toolbar.showTabs":"Tabs anzeigen","toolbar.lock":"Sperren","toolbar.unlock":"Freischalten","toolbar.colorLinking":"Farbverknüpfung","toolbar.changeLayout":"Layout ändern","toolbar.saveMenu":"Menü speichern","toolbar.maximizeWindow":"Fenster maximieren","toolbar.restoreWindow":"Fenster wiederherstellen","toolbar.minimizeWindow":"Fenster minimieren","toolbar.downloads":"Downloads","changeLayout.fullWidth":"Volle Breite","changeLayout.columns":"Spalten","changeLayout.Rows":"Zeilen","changeLayout.Grid":"Raster","successIndicator.workspaceSwitched":"Workspace gewechselt","successIndicator.hidden":"Tabs sind ausgeblendet","successIndicator.shown":"Tabs werden angezeigt","successIndicator.locked":"Seite ist gesperrt","successIndicator.unlocked":"Seite ist freigeschaltet","successIndicator.workspaceSaved":"Workspace gespeichert","successIndicator.workspaceSavedAs":"Workspace gespeichert als {{workspace}}","successIndicator.workspaceRenamed":"Workspace umbenannt","successIndicator.pageSaved":"Seite gespeichert","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. DE","successIndicator.pageCopySaved":"Seite gespeichert als {{title}}","successIndicator.pageRenamed":"Seite umbenannt","successIndicator.contextGroupApplied":"Angewandte Kontextgruppe","successIndicator.namedContextGroupApplied":"{{colorName}} angewandte Kontextgruppe","successIndicator.viewRemoved":"Ansicht aus der Kontextgruppe entfernt","successIndicator.viewsRemoved":"Ansichten aus der Kontextgruppe entfernt","successIndicator.layoutApplied":"{{layoutName}} angewandtes Layout","successIndicator.workspaceDeleted":"Workspace gelöscht","errorIndicator.pageSaveFailed":"Seite konnte nicht gespeichert werden","errorIndicator.workspaceSaveFailed":"Workspace konnte nicht gespeichert werden","errorIndicator.failedToDuplicatePage":"Seite kann nicht dupliziert werden","infoIndicator.colorLinkAttempt":"Wir haben versucht, diesem Tab eine Farbe zuordnen, aber der Eigentümer der Website/des Inhalts hat sie noch nicht aktiviert","global.cancel":"Abbrechen","global.confirm":"Bestätigen","global.save":"Speichern","global.delete":"Delete DE","appResults.header":"Featured Content DC","recentlyClosed.header":"Recently Closed DC","landingPage.subheader":"Apps and websites selected by an admin will show here DE","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. DE","a11y.label":"Search command line interface. Use Escape key to go back. DE","searchResults.searchingFor":"Suche in allen Anbietern nach {{query}}","searchResults.resultsAvailableLoading":"{{count}} Ergebnisse von allen Anbietern verfügbar, einige Anbieter werden noch geladen","searchResults.allResultsAvailable":"{{count}} Ergebnisse von allen Anbietern verfügbar","searchResults.noResultsFoundAllProviders":"Keine Ergebnisse von allen Anbietern für {{query}} gefunden","searchResults.searchingProvider":"Suche in {{providerName}} nach {{query}}","searchResults.loadingProviderResults":"{{providerName}} Ergebnisse werden geladen...","searchResults.loadingMoreProviderResults":"Weitere {{providerName}} Ergebnisse werden geladen...","searchResults.providerResultsAvailable":"{{count}} Ergebnisse von {{providerName}} verfügbar","searchResults.noResultsFoundProvider":"Keine Ergebnisse von {{providerName}} für {{query}} gefunden","searchResults.focused":"Fokussiert: {{title}}","searchResults.viewMore":"Mehr anzeigen","aria.openBrowser":"Browser-Menü öffnen","aria.browserTabs":"Browser-Tab","aria.viewTab":"Tab „Ansicht“ für {{title}}","aria.viewTabWithKeyboardMac":"Tab „Ansicht“ für {{title}}. Drücken Sie Enter oder Leertaste, um einzutreten. Drücken Sie Command Shift E, um zu beenden","aria.viewTabWithKeyboardWindows":"Tab „Ansicht“ für {{title}}. Drücken Sie Enter oder Leertaste, um einzutreten. Drücken Sie Strg Shift E, um zu beenden","aria.closePage":"Button „Seite schließen“ für {{title}}","aria.closeTab":"Tab schließen {{title}}","aria.title":"Bezeichnung","aria.closeContextGroup":"Verwenden Sie die Escape-Taste, um den Dialog zur Auswahl von Kontextgruppen zu schließen","aria.colorLinking":"Farbverknüpfung ein- oder ausblenden","aria.applyColorLinking":"Bitte wählen Sie eine Ansicht, um die Farbverknüpfung anzuwenden","aria.assignColorLinkingCurrentView":"Aktuelle Ansicht, die der Kontextgruppe {{name}} zugeordnet ist","aria.assignColorLinkingCurrentViews":"Aktuelle Ansichten, die der Kontextgruppe {{name}} zugeordnet sind","aria.setColorLinkingActiveView":"Aktive Ansicht auf die Kontextgruppe {{name}} setzen","aria.setColorLinkingActiveViews":"Aktive Ansichten auf die Kontextgruppe {{name}} setzen","aria.escapeLayoutDialog":"Verwenden Sie die Escape-Taste, um den Dialog zur Layoutänderung zu schließen","global.supertab":"Supertab DE","global.tab":"Tab DE","bookmarks.editBookmark":"Edit Bookmark DE","bookmarks.bookmarkAdded":"Bookmark added DE","bookmarks.done":"Done DE","bookmarks.remove":"Remove DE","bookmarks.bookmarksPanel":"Bookmarks Panel DE","bookmarks.bookmarks":"Bookmarks DE","bookmarks.allBookmarks":"All Bookmarks DE","bookmarks.favorites":"Favorites DE","bookmarks.searchBookmarks":"Search Bookmarks DE","bookmarks.clearSearchInput":"Clear Search Input DE","bookmarks.createFolder":"Create New Folder DE","bookmarks.exitFolder":"Exit Folder DE","bookmarks.newFolder":"New Folder DE","bookmarks.namedFolder":"{{name}} Folder DE","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings DE","bookmarks.folderSettings":"{{name}} Folder Settings DE","bookmarks.noResultsFound":"No results found DE","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search DE","bookmarks.nothingToShow":"Nothing to show yet DE","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder DE","bookmarks.resultsFoundIn":"Results found in {{name}} DE","bookmarks.resultsInOtherFolders":"Results found in other folders DE","bookmarks.allResultsFoundIn":"All results found in DE","bookmarks.editName":"Edit Name DE","bookmarks.move":"Move DE","bookmarks.bookmarkAddedTitle":"Bookmark Added DE","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" DE","bookmarks.bookmarkEditedTitle":"Bookmark Edited DE","enterpriseContextMenu.saveSupertab":"Save Supertab DE","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... DE","enterpriseContextMenu.duplicate":"Duplicate DE","enterpriseContextMenu.deleteSupertab":"Delete Supertab DE","enterpriseContextMenu.newTab":"New Tab DE","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As DE","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? DE","saveSupertabCount_other":"Save {{count}} Supertabs before closing? DE"},"enterpriseSaveModal.renameSupertab":"Rename DE","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. DE","enterpriseSaveModal.closeTab":"Close Tab DE","enterpriseSaveModal.closeSupertab":"Close Supertab DE","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. DE","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? DE","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. DE","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved DE","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. DE","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted DE","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. DE","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab DE","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab DE","enterpriseCommandBar.switchToSupertab":"Switch to Supertab DE","enterpriseCommandBar.goTo":"Go to {{type}} DE","enterpriseCommandBar.viewMore":"View More DE","sidePanel.aiCenter":"AI Center DE","sidePanel.newChat":"New Chat DE","sidePanel.toggleSidePanel":"Toggle Side Panel DE","sidePanel.closeSidePanel":"Close Side Panel DE","sidePanel.openAiCenter":"Open AI Center DE","contextMenu.quitEnterpriseBrowser":"Quit DE","dock.removeFavorite":"Remove DE","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),qn=JSON.parse('{"contextMenu.newWindow":"新しいウィンドウ","contextMenu.newPage":"新しいページ","contextMenu.restore":"最後に保存された変更に戻す","contextMenu.switchWorkspace":"ワークスペースに切り替える","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"外観","contextMenu.saveWorkspace":"ワークスペースを保存","contextMenu.saveWorkspaceAs":"ワークスペースを別名で保存...","contextMenu.renameWorkspace":"ワークスペース名を変更","contextMenu.deleteWorkspace":"ワークスペースを削除","contextMenu.downloads":"ダウンロード","contextMenu.savePage":"ページを保存","contextMenu.savePageAs":"ページを別名で保存...","contextMenu.print":"印刷...","contextMenu.printScreen":"プリントスクリーン","contextMenu.closeWindow":"ウィンドウを閉じる","contextMenu.openStorefront":"ストアフロントを開く","contextMenu.quitPlatform":"プラットフォームを終了する","contextMenu.newView":"新しいビュー","contextMenu.openView":"デフォルトのウェブブラウザーでビューを開く","contextMenu.openViews":"デフォルトのウェブブラウザーでビューを開く","contextMenu.reload":"Reload JP","contextMenu.reloadView":"ビューをリロード","contextMenu.reloadViews":"ビューをリロード","contextMenu.duplicate":"Duplicate JP","contextMenu.duplicateView":"ビューを複製","contextMenu.duplicateViews":"ビューを複製","contextMenu.addView":"ビューをチャネルに追加","contextMenu.addViews":"ビューをチャネルに追加","contextMenu.removeView":"チャネルからビューを削除","contextMenu.removeViews":"チャネルからビューを削除","contextMenu.closeView":"ビューを閉じる","contextMenu.closeViews":"ビューを閉じる","contextMenu.closeTab":"Close Tab JP","contextMenu.duplicatePage":"ページを複製","contextMenu.submenu.print":"印刷","contextMenu.submenu.printAll":"すべてを印刷","saveMenu.saveWorkspaceAs":"ワークスペースを別名で保存","saveMenu.savePageAs":"ページを別名で保存","saveModal.enterValue":"Please enter a value JP","saveModal.alreadyExists":"{{title}}はすでに存在しています。","saveModal.pleaseEnterValidName":"有効な名前を入力してください","saveModal.renamePage":"ページ名を変更","saveModal.closePage":"ページを閉じる","saveModal.discardChanges":"変更を破棄","saveModal.discardAll":"すべて破棄","saveModal.saveAll":"すべて保存","saveModal.savePagesCount":"閉じる前に({{count}})つのページを保存しますか?","defaultPageTitle":"Untitled Page JP","enterpriseDefaultPageTitle":"Untitled Supertab JP","addNewPage":"新しいページを追加","addNewTab":"新しいタブを追加","addNewView":"新しいビュー","restoreModal":"本当に最後に保存された変更に戻しますか?","modal.discardWarning":"保存されていない変更は破棄されます","modal.discardPageWarning":"保存されていないこのページへの変更は失われます。","modal.saveChangesPrompt":"閉じる前に変更を保存しますか?","modal.pageClose":"ページを閉じる","switchWorkspaceModal":"本当に{{workspace}}に切り替えますか?","switchWorkspaceModal.warning":"保存されていない変更は破棄されます","deleteWorkspaceModal":"このワークスペースを永久に削除してもよろしいですか?","replaceWorkspaceModal.warning":"{{workspace}}という名前のワークスペースがすでに存在します。置き換えますか?","replaceWorkspaceModal.warning.body":"同じ名前のワークスペースがすでに存在します。置き換えると、現在の内容は上書きされます。","replaceWorkspaceModal.replace":"置き換える","closePlatform":"プラットフォームを閉じる","closePlatform.workspace":"{{workspace}}プラットフォームを閉じる","closePlatform.warning":"プラットフォームを閉じると、実行中のワークスペース、アプリ、プロセスがすべて閉じます。","back":"戻る","forward":"進む","reload":"リロード","green":"グリーン","purple":"パープル","orange":"オレンジ","red":"レッド","pink":"ピンク","yellow":"イエロー","theme.light":"ライト","theme.dark":"ダーク","theme.system":"OSの設定と同期","toolbar.hideTabs":"タブを非表示","toolbar.showTabs":"タブを表示","toolbar.lock":"ロック","toolbar.unlock":"ロック解除","toolbar.colorLinking":"カラーリンク","toolbar.changeLayout":"レイアウトを変更","toolbar.saveMenu":"メニューを保存","toolbar.maximizeWindow":"ウィンドウを最大化する","toolbar.restoreWindow":"ウィンドウを復元","toolbar.minimizeWindow":"ウィンドウを最小化する","toolbar.downloads":"ダウンロード","changeLayout.fullWidth":"全幅","changeLayout.columns":"列","changeLayout.Rows":"行","changeLayout.Grid":"グリッド","successIndicator.workspaceSwitched":"ワークスペースが切り替わりました","successIndicator.hidden":"タブが非表示になっています","successIndicator.shown":"タブが表示されています","successIndicator.locked":"ページがロックされています","successIndicator.unlocked":"ページのロックが解除されています","successIndicator.workspaceSaved":"ワークスペースが保存されました","successIndicator.workspaceSavedAs":"ワークスペースが{{workspace}}として保存されました","successIndicator.workspaceRenamed":"ワークスペース名が変更されました","successIndicator.pageSaved":"ページが保存されました","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. JP","successIndicator.pageCopySaved":"ページが{{title}}として保存されました","successIndicator.pageRenamed":"ページ名が変更されました","successIndicator.contextGroupApplied":"コンテキストグループが適用されました","successIndicator.namedContextGroupApplied":"{{colorName}}コンテキストグループが適用されました","successIndicator.viewRemoved":"コンテキストグループからビューが削除されました","successIndicator.viewsRemoved":"コンテキストグループからビューが削除されました","successIndicator.layoutApplied":"{{layoutName}}レイアウトが適用されました","successIndicator.workspaceDeleted":"ワークスペースが削除されました","errorIndicator.pageSaveFailed":"ページを保存できませんでした","errorIndicator.workspaceSaveFailed":"ワークスペースを保存できませんでした","errorIndicator.failedToDuplicatePage":"ページを複製できませんでした","infoIndicator.colorLinkAttempt":"このタブをカラーリンクしようとしましたが、サイト/コンテンツのオーナーがまだこれを有効にしていません","global.cancel":"キャンセル","global.confirm":"確認","global.save":"保存","global.delete":"Delete JP","appResults.header":"Featured content JP","recentlyClosed.header":"Recently Closed JP","landingPage.subheader":"Apps and websites selected by an admin will show here JP","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. JP","a11y.label":"Search command line interface. Use Escape key to go back. JP","searchResults.searchingFor":"すべてのプロバイダーで{{query}}を検索中","searchResults.resultsAvailableLoading":"すべてのプロバイダーから{{count}}件の結果が利用可能、一部のプロバイダーはまだ読み込み中","searchResults.allResultsAvailable":"すべてのプロバイダーから{{count}}件の結果が利用可能","searchResults.noResultsFoundAllProviders":"すべてのプロバイダーで{{query}}の結果が見つかりませんでした","searchResults.searchingProvider":"{{providerName}}で{{query}}を検索中","searchResults.loadingProviderResults":"{{providerName}}の結果を読み込み中...","searchResults.loadingMoreProviderResults":"{{providerName}}の追加結果を読み込み中...","searchResults.providerResultsAvailable":"{{providerName}}から{{count}}件の結果が利用可能","searchResults.noResultsFoundProvider":"{{providerName}}で{{query}}の結果が見つかりませんでした","searchResults.focused":"フォーカス: {{title}}","searchResults.viewMore":"さらに表示","aria.openBrowser":"ブラウザーメニューを開く","aria.browserTabs":"ブラウザータブ","aria.viewTab":"{{title}}のタブを表示","aria.viewTabWithKeyboardMac":"{{title}}のビュータブ。Enterキーまたはスペースキーを押して入力。Command Shift Eを押して終了","aria.viewTabWithKeyboardWindows":"{{title}}のビュータブ。Enterキーまたはスペースキーを押して入力。Ctrl Shift Eを押して終了","aria.closePage":"{{title}}のページタブボタンを閉じる","aria.closeTab":"{{title}}タブを閉じる","aria.title":"タイトル","aria.closeContextGroup":"エスケープを使用して、コンテキストグループ選択ダイアログを閉じる","aria.colorLinking":"カラーリンクの表示/非表示","aria.applyColorLinking":"カラーリンクを適用するビューを選択してください","aria.assignColorLinkingCurrentView":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.assignColorLinkingCurrentViews":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.setColorLinkingActiveView":"アクティブビューを{{name}}コンテキストグループに設定","aria.setColorLinkingActiveViews":"アクティブビューを{{name}}コンテキストグループに設定","aria.escapeLayoutDialog":"エスケープを使用して、レイアウト変更選択ダイアログを閉じる","global.supertab":"Supertab JP","global.tab":"Tab JP","bookmarks.editBookmark":"Edit Bookmark JP","bookmarks.bookmarkAdded":"Bookmark added JP","bookmarks.done":"Done JP","bookmarks.remove":"Remove JP","bookmarks.bookmarksPanel":"Bookmarks Panel JP","bookmarks.bookmarks":"Bookmarks JP","bookmarks.allBookmarks":"All Bookmarks JP","bookmarks.favorites":"Favorites JP","bookmarks.searchBookmarks":"Search Bookmarks JP","bookmarks.clearSearchInput":"Clear Search Input JP","bookmarks.createFolder":"Create New Folder JP","bookmarks.exitFolder":"Exit Folder JP","bookmarks.newFolder":"New Folder JP","bookmarks.namedFolder":"{{name}} Folder JP","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings JP","bookmarks.folderSettings":"{{name}} Folder Settings JP","bookmarks.noResultsFound":"No results found JP","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search JP","bookmarks.nothingToShow":"Nothing to show yet JP","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder JP","bookmarks.resultsFoundIn":"Results found in {{name}} JP","bookmarks.resultsInOtherFolders":"Results found in other folders JP","bookmarks.allResultsFoundIn":"All results found in JP","bookmarks.editName":"Edit Name JP","bookmarks.move":"Move JP","bookmarks.bookmarkAddedTitle":"Bookmark Added JP","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" JP","bookmarks.bookmarkEditedTitle":"Bookmark Edited JP","enterpriseContextMenu.saveSupertab":"Save Supertab JP","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... JP","enterpriseContextMenu.duplicate":"Duplicate JP","enterpriseContextMenu.deleteSupertab":"Delete Supertab JP","enterpriseContextMenu.newTab":"New Tab JP","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As JP","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? JP","saveSupertabCount_other":"Save {{count}} Supertabs before closing? JP"},"enterpriseSaveModal.renameSupertab":"Rename JP","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. JP","enterpriseSaveModal.closeTab":"Close Tab JP","enterpriseSaveModal.closeSupertab":"Close Supertab JP","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. JP","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? JP","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. JP","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved JP","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. JP","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted JP","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. JP","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab JP","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab JP","enterpriseCommandBar.switchToSupertab":"Switch to Supertab JP","enterpriseCommandBar.goTo":"Go to {{type}} JP","enterpriseCommandBar.viewMore":"View More JP","sidePanel.aiCenter":"AI Center JP","sidePanel.newChat":"New Chat JP","sidePanel.toggleSidePanel":"Toggle Side Panel JP","sidePanel.closeSidePanel":"Close Side Panel JP","sidePanel.openAiCenter":"Open AI Center JP","contextMenu.quitEnterpriseBrowser":"Quit JP","dock.removeFavorite":"Remove JP","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),Jn=JSON.parse('{"contextMenu.newWindow":"새 창","contextMenu.newPage":"새 페이지","contextMenu.restore":"마지막으로 저장한 변경 사항으로 복원","contextMenu.switchWorkspace":"작업 공간 전환","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"모양","contextMenu.saveWorkspace":"작업 공간 저장","contextMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장...","contextMenu.renameWorkspace":"작업 공간 이름 바꾸기","contextMenu.deleteWorkspace":"작업 공간 삭제","contextMenu.downloads":"다운로드","contextMenu.savePage":"페이지 저장","contextMenu.savePageAs":"다른 이름으로 페이지 저장...","contextMenu.print":"인쇄...","contextMenu.printScreen":"화면 인쇄","contextMenu.closeWindow":"창 닫기","contextMenu.openStorefront":"매장 열기","contextMenu.quitPlatform":"플랫폼 종료","contextMenu.newView":"새 뷰","contextMenu.openView":"기본 웹 브라우저로 뷰 열기","contextMenu.openViews":"기본 웹 브라우저로 뷰 열기","contextMenu.reload":"Reload KR","contextMenu.reloadView":"뷰 다시 로드","contextMenu.reloadViews":"뷰 다시 로드","contextMenu.duplicate":"Duplicate KR","contextMenu.duplicateView":"뷰 복제","contextMenu.duplicateViews":"뷰 복제","contextMenu.addView":"채널에 뷰 추가","contextMenu.addViews":"채널에 뷰 추가","contextMenu.removeView":"채널에서 뷰 제거","contextMenu.removeViews":"채널에서 뷰 제거","contextMenu.closeView":"뷰 닫기","contextMenu.closeViews":"뷰 닫기","contextMenu.closeTab":"Close Tab KR","contextMenu.duplicatePage":"페이지 복제","contextMenu.submenu.print":"인쇄","contextMenu.submenu.printAll":"모두 인쇄","saveMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장","saveMenu.savePageAs":"다른 이름으로 페이지 저장","saveModal.enterValue":"Please enter a value KR","saveModal.alreadyExists":"{{title}}이(가) 이미 존재합니다.","saveModal.pleaseEnterValidName":"유효한 이름을 입력하십시오.","saveModal.renamePage":"페이지 이름 바꾸기","saveModal.closePage":"페이지 닫기","saveModal.discardChanges":"변경 사항 폐기","saveModal.discardAll":"모두 폐기","saveModal.saveAll":"모두 저장","saveModal.savePagesCount":"닫기 전에 페이지({{count}}개)를 저장하시겠습니까?","defaultPageTitle":"Untitled Page KR","enterpriseDefaultPageTitle":"Untitled Supertab KR","addNewPage":"새 페이지 추가","addNewTab":"새 탭 추가","addNewView":"새 뷰","restoreModal":"마지막으로 저장한 변경 사항으로 복원하시겠습니까?","modal.discardWarning":"저장하지 않은 변경 사항은 모두 폐기됩니다","modal.discardPageWarning":"이 페이지의 저장하지 않은 변경 사항은 모두 손실됩니다.","modal.saveChangesPrompt":"닫기 전에 변경 사항을 저장하시겠습니까?","modal.pageClose":"페이지 닫기","switchWorkspaceModal":"{{workspace}}(으)로 전환하시겠습니까?","switchWorkspaceModal.warning":"저장하지 않은 변경 사항은 모두 폐기됩니다","deleteWorkspaceModal":"이 작업 공간을 영구적으로 삭제하시겠습니까?","replaceWorkspaceModal.warning":"{{workspace}}(이)라는 이름의 작업 공간이 이미 존재합니다. 교체하시겠습니까?","replaceWorkspaceModal.warning.body":"같은 이름의 작업 공간이 이미 존재합니다. 교체하면 현재 내용을 덮어쓰게 됩니다.","replaceWorkspaceModal.replace":"교체","closePlatform":"플랫폼 닫기","closePlatform.workspace":"{{workspace}} 플랫폼 닫기","closePlatform.warning":"플랫폼을 닫으면 실행 중인 모든 작업 공간, 앱 또는 프로세스가 닫힙니다.","back":"뒤로 가기","forward":"앞으로 가기","reload":"새로고침","green":"녹색","purple":"보라색","orange":"오렌지색","red":"빨간색","pink":"핑크색","yellow":"노란색","theme.light":"밝은","theme.dark":"어두운","theme.system":"OS 설정과 동기화","toolbar.hideTabs":"탭 숨기기","toolbar.showTabs":"탭 표시","toolbar.lock":"잠금","toolbar.unlock":"잠금 해제","toolbar.colorLinking":"색상 연결","toolbar.changeLayout":"레이아웃 변경","toolbar.saveMenu":"저장 메뉴","toolbar.maximizeWindow":"창 최대화","toolbar.restoreWindow":"창 복원","toolbar.minimizeWindow":"창 최소화","toolbar.downloads":"다운로드","changeLayout.fullWidth":"전체 너비","changeLayout.columns":"열","changeLayout.Rows":"행","changeLayout.Grid":"그리드","successIndicator.workspaceSwitched":"작업 공간 전환","successIndicator.hidden":"탭 숨김","successIndicator.shown":"탭 표시","successIndicator.locked":"페이지 잠금","successIndicator.unlocked":"페이지 잠금 해제됨","successIndicator.workspaceSaved":"작업 공간 저장됨","successIndicator.workspaceSavedAs":"작업 공간이 {{workspace}}(으)로 저장됨","successIndicator.workspaceRenamed":"작업 공간 이름 변경됨","successIndicator.pageSaved":"페이지 저장됨","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. KR","successIndicator.pageCopySaved":"페이지가 {{title}}(으)로 저장됨","successIndicator.pageRenamed":"페이지 이름 변경됨","successIndicator.contextGroupApplied":"컨텍스트 그룹 적용됨","successIndicator.namedContextGroupApplied":"{{colorName}} 컨텍스트 그룹 적용됨","successIndicator.viewRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.viewsRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.layoutApplied":"{{layoutName}} 레이아웃 적용됨","successIndicator.workspaceDeleted":"작업 공간 삭제됨","errorIndicator.pageSaveFailed":"페이지 저장 실패","errorIndicator.workspaceSaveFailed":"작업 공간 저장 실패","errorIndicator.failedToDuplicatePage":"페이지 복제 실패","infoIndicator.colorLinkAttempt":"이 탭의 색상 링크를 시도했지만 사이트/콘텐츠 소유자가 아직 활성화하지 않았습니다.","global.cancel":"취소","global.confirm":"확인","global.save":"저장","global.delete":"Delete KR","appResults.header":"Featured Content KR","recentlyClosed.header":"Recently Closed KR","landingPage.subheader":"Apps and websites selected by an admin will show here KR","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. KR","a11y.label":"Search command line interface. Use Escape key to go back. KR","searchResults.searchingFor":"모든 공급자에서 {{query}} 검색 중","searchResults.resultsAvailableLoading":"모든 공급자에서 {{count}}개 결과 사용 가능, 일부 공급자가 아직 로드 중","searchResults.allResultsAvailable":"모든 공급자에서 {{count}}개 결과 사용 가능","searchResults.noResultsFoundAllProviders":"모든 공급자에서 {{query}}에 대한 결과를 찾을 수 없음","searchResults.searchingProvider":"{{providerName}}에서 {{query}} 검색 중","searchResults.loadingProviderResults":"{{providerName}} 결과 로드 중...","searchResults.loadingMoreProviderResults":"{{providerName}} 추가 결과 로드 중...","searchResults.providerResultsAvailable":"{{providerName}}에서 {{count}}개 결과 사용 가능","searchResults.noResultsFoundProvider":"{{providerName}}에서 {{query}}에 대한 결과를 찾을 수 없음","searchResults.focused":"포커스: {{title}}","searchResults.viewMore":"더 보기","aria.openBrowser":"브라우저 메뉴 열기","aria.browserTabs":"브라우저 탭","aria.viewTab":"{{title}}의 뷰 탭","aria.viewTabWithKeyboardMac":"{{title}}의 뷰 탭. Enter 또는 스페이스바를 눌러 입력. Command Shift E를 눌러 종료","aria.viewTabWithKeyboardWindows":"{{title}}의 뷰 탭. Enter 또는 스페이스바를 눌러 입력. Ctrl Shift E를 눌러 종료","aria.closePage":"{{title}}의 페이지 닫기 탭","aria.closeTab":"탭 {{title}} 닫기","aria.title":"제목","aria.closeContextGroup":"이스케이프를 사용하여 컨텍스트 그룹 선택 대화상자 닫기","aria.colorLinking":"색상 연결 표시 또는 숨기기","aria.applyColorLinking":"색상 연결을 적용하려면 뷰를 선택하십시오.","aria.assignColorLinkingCurrentView":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.assignColorLinkingCurrentViews":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.setColorLinkingActiveView":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.setColorLinkingActiveViews":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.escapeLayoutDialog":"이스케이프를 사용하여 레이아웃 변경 대화상자 닫기","global.supertab":"Supertab KR","global.tab":"Tab KR","bookmarks.editBookmark":"Edit Bookmark KR","bookmarks.bookmarkAdded":"Bookmark added KR","bookmarks.done":"Done KR","bookmarks.remove":"Remove KR","bookmarks.bookmarksPanel":"Bookmarks Panel KR","bookmarks.bookmarks":"Bookmarks KR","bookmarks.allBookmarks":"All Bookmarks KR","bookmarks.favorites":"Favorites KR","bookmarks.searchBookmarks":"Search Bookmarks KR","bookmarks.clearSearchInput":"Clear Search Input KR","bookmarks.createFolder":"Create New Folder KR","bookmarks.exitFolder":"Exit Folder KR","bookmarks.newFolder":"New Folder KR","bookmarks.namedFolder":"{{name}} Folder KR","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings KR","bookmarks.folderSettings":"{{name}} Folder Settings KR","bookmarks.noResultsFound":"No results found KR","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search KR","bookmarks.nothingToShow":"Nothing to show yet KR","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder KR","bookmarks.resultsFoundIn":"Results found in {{name}} KR","bookmarks.resultsInOtherFolders":"Results found in other folders KR","bookmarks.allResultsFoundIn":"All results found in KR","bookmarks.editName":"Edit Name KR","bookmarks.move":"Move KR","bookmarks.bookmarkAddedTitle":"Bookmark Added KR","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" KR","bookmarks.bookmarkEditedTitle":"Bookmark Edited KR","enterpriseContextMenu.saveSupertab":"Save Supertab KR","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... KR","enterpriseContextMenu.duplicate":"Duplicate KR","enterpriseContextMenu.deleteSupertab":"Delete Supertab KR","enterpriseContextMenu.newTab":"New Tab KR","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As KR","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? KR","saveSupertabCount_other":"Save {{count}} Supertabs before closing? KR"},"enterpriseSaveModal.renameSupertab":"Rename KR","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. KR","enterpriseSaveModal.closeTab":"Close Tab KR","enterpriseSaveModal.closeSupertab":"Close Supertab KR","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. KR","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? KR","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. KR","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved KR","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. KR","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted KR","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. KR","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab KR","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab KR","enterpriseCommandBar.switchToSupertab":"Switch to Supertab KR","enterpriseCommandBar.goTo":"Go to {{type}} KR","enterpriseCommandBar.viewMore":"View More KR","sidePanel.aiCenter":"AI Center KR","sidePanel.newChat":"New Chat KR","sidePanel.toggleSidePanel":"Toggle Side Panel KR","sidePanel.closeSidePanel":"Close Side Panel KR","sidePanel.openAiCenter":"Open AI Center KR","contextMenu.quitEnterpriseBrowser":"Quit KR","dock.removeFavorite":"Remove KR","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),Zn=JSON.parse('{"contextMenu.newWindow":"Новое окно","contextMenu.newPage":"Новая страница","contextMenu.restore":"Восстановить последние сохраненные изменения","contextMenu.switchWorkspace":"Переключить рабочую область","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"Внешний вид","contextMenu.saveWorkspace":"Сохранить рабочую область","contextMenu.saveWorkspaceAs":"Сохранить рабочую область как...","contextMenu.renameWorkspace":"Переименовать рабочую область","contextMenu.deleteWorkspace":"Удалить рабочую область","contextMenu.downloads":"Загрузки","contextMenu.savePage":"Сохранить страницу","contextMenu.savePageAs":"Сохранить страницу как...","contextMenu.print":"Печать...","contextMenu.printScreen":"Распечатать экран","contextMenu.closeWindow":"Закрыть окно","contextMenu.openStorefront":"Открыть Storefront","contextMenu.quitPlatform":"Выйти из платформы","contextMenu.newView":"Новое представление","contextMenu.openView":"Открыть представление с помощью веб-браузера по умолчанию","contextMenu.openViews":"Открыть представления с помощью веб-браузера по умолчанию","contextMenu.reload":"Reload RU","contextMenu.reloadView":"Перезагрузить представление","contextMenu.reloadViews":"Перезагрузить представления","contextMenu.duplicate":"Duplicate RU","contextMenu.duplicateView":"Дублировать представление","contextMenu.duplicateViews":"Дублировать представления","contextMenu.addView":"Добавить представление на канал","contextMenu.addViews":"Добавить представления на канал","contextMenu.removeView":"Удалить представление из канала","contextMenu.removeViews":"Удалить представления из канала","contextMenu.closeView":"Закрыть представление","contextMenu.closeViews":"Закрыть представления","contextMenu.closeTab":"Close Tab RU","contextMenu.duplicatePage":"Дублировать страницу","contextMenu.submenu.print":"Печатать","contextMenu.submenu.printAll":"Печатать все","saveMenu.saveWorkspaceAs":"Сохранить рабочую область как","saveMenu.savePageAs":"Сохранить страницу как","saveModal.enterValue":"Please enter a value RU","saveModal.alreadyExists":"{{title}} уже существует.","saveModal.pleaseEnterValidName":"Введите подходящее имя","saveModal.renamePage":"Переименовать страницу","saveModal.closePage":"Закрыть страницу","saveModal.discardChanges":"Отменить изменения","saveModal.discardAll":"Отменить все","saveModal.saveAll":"Сохранить все","saveModal.savePagesCount":"Сохранить ({{count}}) страниц перед закрытием?","defaultPageTitle":"Untitled Page RU","enterpriseDefaultPageTitle":"Untitled Supertab RU","addNewPage":"Добавить новую страницу","addNewTab":"Добавить новую вкладку","addNewView":"Новое представление","restoreModal":"Вы уверены, что хотите восстановить последние сохраненные изменения?","modal.discardWarning":"Все несохраненные изменения будут отменены","modal.discardPageWarning":"Все несохраненные изменения на этой странице будут потеряны.","modal.saveChangesPrompt":"Сохранить изменения перед закрытием?","modal.pageClose":"Закрыть страницу","switchWorkspaceModal":"Вы уверены, что хотите перейти в {{workspace}}?","switchWorkspaceModal.warning":"Все несохраненные изменения будут отменены","deleteWorkspaceModal":"Вы уверены, что хотите навсегда удалить эту рабочую область?","replaceWorkspaceModal.warning":"Рабочая область с именем {{workspace}} уже существует. Вы хотите заменить ее?","replaceWorkspaceModal.warning.body":"Рабочая область с таким же именем уже существует. При ее замене текущее содержимое будет перезаписано.","replaceWorkspaceModal.replace":"Заменить","closePlatform":"Закрыть платформу","closePlatform.workspace":"Закрыть платформу {{workspace}}","closePlatform.warning":"Закрытие платформы приведет к закрытию всех рабочих областей, приложений и запущенных процессов.","back":"Назад","forward":"Вперед","reload":"Перезагрузить ","green":"Зеленый","purple":"Фиолетовый","orange":"Оранжевый","red":"Красный","pink":"Розовый","yellow":"Желтый","theme.light":"Светлый","theme.dark":"Темный","theme.system":"Синхронизировать с настройками ОС","toolbar.hideTabs":"Скрыть вкладки","toolbar.showTabs":"Показать вкладки","toolbar.lock":"Заблокировать","toolbar.unlock":"Разблокировать","toolbar.colorLinking":"Привязка к цвету","toolbar.changeLayout":"Изменить макет","toolbar.saveMenu":"Меню сохранения","toolbar.maximizeWindow":"Увеличить окно","toolbar.restoreWindow":"Восстановить окно","toolbar.minimizeWindow":"Свернуть окно","toolbar.downloads":"Загрузки","changeLayout.fullWidth":"Полная ширина","changeLayout.columns":"Столбцы","changeLayout.Rows":"Строки","changeLayout.Grid":"Сетка","successIndicator.workspaceSwitched":"Рабочая область переключена","successIndicator.hidden":"Вкладки скрыты","successIndicator.shown":"Вкладки показаны","successIndicator.locked":"Страница заблокирована","successIndicator.unlocked":"Страница разблокирована","successIndicator.workspaceSaved":"Рабочая область сохранена","successIndicator.workspaceSavedAs":"Рабочая область сохранена как {{workspace}}","successIndicator.workspaceRenamed":"Рабочая область переименована","successIndicator.pageSaved":"Страница сохранена","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. RU","successIndicator.pageCopySaved":"Страница сохранена как {{title}}","successIndicator.pageRenamed":"Страница переименована","successIndicator.contextGroupApplied":"Контекстная группа применена","successIndicator.namedContextGroupApplied":"Контекстная группа {{colorName}} применена","successIndicator.viewRemoved":"Представление удалено из контекстной группы","successIndicator.viewsRemoved":"Представления удалены из контекстной группы","successIndicator.layoutApplied":"Макет {{layoutName}} применен","successIndicator.workspaceDeleted":"Рабочая область удалена","errorIndicator.pageSaveFailed":"Не удалось сохранить страницу","errorIndicator.workspaceSaveFailed":"Не удалось сохранить рабочую область","errorIndicator.failedToDuplicatePage":"Не удалось продублировать страницу","infoIndicator.colorLinkAttempt":"Мы попытались привязать цвет к этой вкладке, но владелец сайта/контента еще не включил эту возможность","global.cancel":"Отменить","global.confirm":"Подтвердить","global.save":"Сохранить","global.delete":"Delete RU","appResults.header":"Featured Content RU","recentlyClosed.header":"Recently Closed RU","landingPage.subheader":"Apps and websites selected by an admin will show here RU","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. RU","a11y.label":"Search command line interface. Use Escape key to go back. RU","searchResults.searchingFor":"Поиск по всем источникам: {{query}}","searchResults.resultsAvailableLoading":"Доступно результатов от всех источников: {{count}}, некоторые источники все еще загружаются","searchResults.allResultsAvailable":"Доступно результатов от всех источников: {{count}}","searchResults.noResultsFoundAllProviders":"Результаты не найдены во всех источниках для {{query}}","searchResults.searchingProvider":"Поиск в {{providerName}}: {{query}}","searchResults.loadingProviderResults":"Загрузка результатов {{providerName}}...","searchResults.loadingMoreProviderResults":"Загрузка дополнительных результатов {{providerName}}...","searchResults.providerResultsAvailable":"Доступно результатов от {{providerName}}: {{count}}","searchResults.noResultsFoundProvider":"Результаты не найдены в {{providerName}} для {{query}}","searchResults.focused":"В фокусе: {{title}}","searchResults.viewMore":"Показать еще","aria.openBrowser":"Открыть меню браузера","aria.browserTabs":"Вкладки браузера","aria.viewTab":"Вкладка представления {{title}}","aria.viewTabWithKeyboardMac":"Вкладка представления {{title}}. Нажмите Enter или Пробел, чтобы войти. Нажмите Command Shift E, чтобы выйти","aria.viewTabWithKeyboardWindows":"Вкладка представления {{title}}. Нажмите Enter или Пробел, чтобы войти. Нажмите Ctrl Shift E, чтобы выйти","aria.closePage":"Кнопка «Закрыть» на вкладке для страницы {{title}}","aria.closeTab":"Закрыть вкладку {{title}}","aria.title":"Название","aria.closeContextGroup":"Чтобы закрыть диалог выбора контекстной группы, используйте escape","aria.colorLinking":"Показать или скрыть привязку к цвету","aria.applyColorLinking":"Выберите представление, чтобы применить привязку к цвету","aria.assignColorLinkingCurrentView":"Текущее представление, назначенное контекстной группе {{name}}","aria.assignColorLinkingCurrentViews":"Текущие представления, назначенные контекстной группе {{name}}","aria.setColorLinkingActiveView":"Установить активное представление в контекстную группу {{name}}","aria.setColorLinkingActiveViews":"Установить активные представления в контекстную группу {{name}}","aria.escapeLayoutDialog":"Чтобы закрыть диалог изменения макета, используйте escape","global.supertab":"Supertab RU","global.tab":"Tab RU","bookmarks.editBookmark":"Edit Bookmark RU","bookmarks.bookmarkAdded":"Bookmark added RU","bookmarks.done":"Done RU","bookmarks.remove":"Remove RU","bookmarks.bookmarksPanel":"Bookmarks Panel RU","bookmarks.bookmarks":"Bookmarks RU","bookmarks.allBookmarks":"All Bookmarks RU","bookmarks.favorites":"Favorites RU","bookmarks.searchBookmarks":"Search Bookmarks RU","bookmarks.clearSearchInput":"Clear Search Input RU","bookmarks.createFolder":"Create New Folder RU","bookmarks.exitFolder":"Exit Folder RU","bookmarks.newFolder":"New Folder RU","bookmarks.namedFolder":"{{name}} Folder RU","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings RU","bookmarks.folderSettings":"{{name}} Folder Settings RU","bookmarks.noResultsFound":"No results found RU","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search RU","bookmarks.nothingToShow":"Nothing to show yet RU","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder RU","bookmarks.resultsFoundIn":"Results found in {{name}} RU","bookmarks.resultsInOtherFolders":"Results found in other folders RU","bookmarks.allResultsFoundIn":"All results found in RU","bookmarks.editName":"Edit Name RU","bookmarks.move":"Move RU","bookmarks.bookmarkAddedTitle":"Bookmark Added RU","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" RU","bookmarks.bookmarkEditedTitle":"Bookmark Edited RU","enterpriseContextMenu.saveSupertab":"Save Supertab RU","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... RU","enterpriseContextMenu.duplicate":"Duplicate RU","enterpriseContextMenu.deleteSupertab":"Delete Supertab RU","enterpriseContextMenu.newTab":"New Tab RU","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As RU","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? RU","saveSupertabCount_other":"Save {{count}} Supertabs before closing? RU"},"enterpriseSaveModal.renameSupertab":"Rename RU","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. RU","enterpriseSaveModal.closeTab":"Close Tab RU","enterpriseSaveModal.closeSupertab":"Close Supertab RU","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. RU","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? RU","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. RU","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved RU","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.RU","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted RU","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. RU","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab RU","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab RU","enterpriseCommandBar.switchToSupertab":"Switch to Supertab RU","enterpriseCommandBar.goTo":"Go to {{type}} RU","enterpriseCommandBar.viewMore":"View More RU","sidePanel.aiCenter":"AI Center RU","sidePanel.newChat":"New Chat RU","sidePanel.toggleSidePanel":"Toggle Side Panel RU","sidePanel.closeSidePanel":"Close Side Panel RU","sidePanel.openAiCenter":"Open AI Center RU","contextMenu.quitEnterpriseBrowser":"Quit RU","dock.removeFavorite":"Remove RU","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}');const jn=Gn().t,Qn=async e=>{const t=await Da(e);return await t.dispatch(La.GetPages)},Yn=async e=>(await Da(e.identity)).dispatch(La.UpdatePageForWindow,e);let Xn,eo=!1;const to=()=>eo,ao=()=>Xn||{enabled:!1};async function no(e,t){const a=!!t;let n=new Set;if(a){const{identity:e,pageId:a}=t,o=xn().Browser.wrapSync(e),r=await o.getPage(a);r?.panels&&(n=new Set(r.panels.map(({viewOptions:e})=>e.name)))}return e.map(e=>{const t=e.viewOptions.name,o=t?.startsWith(Rn);o&&(!a||a&&!n.has(t))&&delete e.viewOptions.name;const r=(i=e.viewOptions,i.name||=`${Rn}${wa()}`,i);var i;return{...e,viewOptions:{...r,uuid:We.uuid}}})}async function oo(e){for(const t of e)t.panels&&await io(t.panels)}const ro=e=>null!==e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&/ERR_([A-Z]+_*)+/.test(e.message);async function io(e){const t=e.map(e=>fin.Platform.getCurrentSync().createView(e.viewOptions,fin.me.identity).catch(e=>{if(!ro(e))throw e;console.error(e)}));return await Promise.all(t)}const so=(e,t)=>!t.find(t=>t===e),co=(e,t)=>`${e} (${t})`,lo=(e,t)=>{if(so(e,t))return e;let a=1;const n=e.replace(/ *\(\d+\)$/,"");for(;!so(co(n,a),t);)a+=1;return co(n,a)},uo=async()=>{const e=await Ee();return(await Promise.all(e.map(async e=>{try{return Qn(e.identity)}catch(t){JSON.stringify(e.identity);const a=await e.getOptions();return a.workspacePlatform?.pages||[]}}))).reduce((e,t)=>e.concat(t),[])},po=async()=>(await pt(We)).dispatch(lt.GetSavedPages,void 0),wo=async e=>(await pt(We)).dispatch(lt.GetSavedPage,e),ho=async(e,t)=>{const a=await(async e=>(await uo()).find(t=>t.pageId===e))(e);return!a||a.title===t.title&&e===t.pageId||await Yn({identity:a.parentIdentity,pageId:e,page:{pageId:t.pageId,title:t.title}}),a},go=async({page:e})=>{await ho(e.pageId,e),await(async e=>(await pt(We)).dispatch(lt.CreateSavedPage,e))({page:e})},mo=async e=>{await wo(e)&&await(async e=>(await pt(We)).dispatch(lt.DeleteSavedPage,e))(e)},ko=async({pageId:e,page:t})=>{await ho(e,t);return await(async e=>(await pt(We)).dispatch(lt.UpdateSavedPage,e))({pageId:e,page:t})},fo=async e=>await wo(e.pageId)?ko({pageId:e.pageId,page:e}):go({page:e}),bo=async e=>{await(async e=>(await Da(e.identity)).dispatch(La.AttachPagesToWindow,e))(e)},yo=async e=>{const t={...e.page,panels:e.page.panels&&await no(e.page.panels,e)};t.panels&&await io(t.panels),await Yn({...e,page:t})},vo=async e=>{await(async e=>(await Da(e.identity)).dispatch(La.DetachPagesFromWindow,e))(e)},So=async e=>{await(async e=>(await Da(e.identity)).dispatch(La.SetActivePageForWindow,e))(e)},Po=e=>Qn(e),Co=async({identity:e,pageId:t})=>(await Po(e)).find(e=>e.pageId===t),Mo=async e=>{await(async e=>(await Da(e.identity)).dispatch(La.ReorderPagesForWindow,e))(e)},Io=new class{constructor(){this.queue=[],this.locked=!1}lock(){return new Promise(e=>{this.locked?this.queue.push(e):(this.locked=!0,e())})}unlock(){if(this.queue.length>0){const e=this.queue.shift();e&&e()}else this.locked=!1}};async function xo(e){await Io.lock();try{const t=to()?jn("enterpriseDefaultPageTitle"):jn("defaultPageTitle"),a=e??t,[n,o]=await Promise.all([po(),uo()]),r=[...n,...o].map(({title:e})=>e);return lo(a,r)}finally{Io.unlock()}}async function Ao({page:e}){return{shouldShowModal:!(!e||!e.hasUnsavedChanges)}}async function Wo({page:e,identity:t}){const a=fin.Application.getCurrentSync();if((await a.getInfo()).initialOptions.enableBeforeUnload){const a=await fin.Application.getCurrentSync().getViews(),n=Nn(e.layout.content).filter(e=>e.name&&a.some(t=>t.identity.name===e.name)).map(e=>fin.View.wrapSync({name:e.name,uuid:t.uuid})),o=await this.checkViewsForPreventUnload(n);if(o.viewsPreventingUnload.length>0){if((await this.getUserDecisionForBeforeUnload({...o,windowId:t,windowShouldClose:!1,closeType:"page"})).viewsToClose.length!==n.length)return e.pageId,{shouldPageClose:!1}}}return{shouldPageClose:!0}}async function Ro({pages:e,identity:t}){const a=await Promise.all(e.map(e=>this.shouldPageClose({page:e,closeType:"window",identity:t}))),{pagesPreventingClose:n,pagesNotPreventingClose:o}=e.reduce((e,t,n)=>!a[n].shouldPageClose?{pagesNotPreventingClose:e.pagesNotPreventingClose,pagesPreventingClose:[...e.pagesPreventingClose,t]}:{pagesPreventingClose:e.pagesPreventingClose,pagesNotPreventingClose:[...e.pagesNotPreventingClose,t]},{pagesPreventingClose:[],pagesNotPreventingClose:[]});return this.handlePagesAndWindowClose({pagesNotPreventingClose:o,pagesPreventingClose:n,identity:t})}async function Do({pagesPreventingClose:e,pagesNotPreventingClose:t,identity:a}){return{shouldWindowClose:0===e.length}}async function To({page:e}){return va(e)}async function Bo(e){return{hasUnsavedChanges:!0}}const Eo=async()=>{const e=xn(),t=(await Ee()).map(t=>e.Browser.wrapSync(t.identity));await Promise.all(t.map(async e=>{const t=await e.getPages();await Promise.all(t.map(async t=>{t.title,await e.updatePage({pageId:t.pageId,page:{hasUnsavedChanges:!1}}),t.pageId,t.title,await fo({...t,hasUnsavedChanges:!1})}))}))},Fo=new Map,No=()=>Fo,Vo=e=>Fo.delete(e);let Lo=!1;const Uo=()=>{Lo||(Lo=!0,fin.Window.wrapSync(De).once("closed",()=>{Lo=!1,(async(e,t)=>{await ra(oa(e),{source:"Store",...t})})(fin.me.identity,{type:"Navigation",action:"Close Store",skipValueHashing:!0})}))};let _o,Oo,Go;const Ho=async()=>(void 0===Go&&(Go=!!(await Y()).disableOpenFinAnalytics),Go);async function $o(e){e.forEach(e=>{var t,a;"Page"===e.type?"Open Page"===e.action?(t=e.data.uuid,a=e,Fo.set(t,a)):"Close Page"===e.action&&Vo(e.data.uuid):"Store"===e.source&&"Close"!==e.action&&Uo()}),await(async e=>{_o?.sendToOpenFin&&(await Ho()||e.forEach(async e=>{const t=da({},e);t.entityId&&(t.entityId.uuid=await ca(t.entityId.uuid),t.entityId.name=await ca(t.entityId.name)),!e.skipValueHashing&&"value"in t&&(t.value=await ca(t.value)),Oo(t)}))})(e);const t=e.map(({skipValueHashing:e,...t})=>t);this.handleAnalytics(t)}const Ko=async e=>{_o=e;_o?.sendToOpenFin&&!await Ho()&&(()=>{const e=L,t=e+z.Analytics,a=document.createElement("IFRAME");a.setAttribute("src",t),a.setAttribute("style","width: 0px !important"),a.setAttribute("style","height: 0px !important"),a.setAttribute("style","display: none !important"),document.body.appendChild(a),Oo=async t=>{a.contentWindow.postMessage(t,e)}})();const t=fin.Application.getCurrentSync();t.addListener("view-created",async e=>{var t;ia({type:"View",action:"Open View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid,url:await(t=e.viewIdentity,fin.View.wrapSync(t).getInfo().then(e=>e.url))}})}),t.addListener("view-destroyed",async e=>{ia({type:"View",action:"Close View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid}})}),t.addListener("window-closed",e=>{e.name.startsWith(Me.BrowserMenu)||(ia({type:"Window",action:"Close Window",value:e.name,data:{uuid:e.uuid}}),(async()=>{const e=No(),t=await uo();if(t.length===e.size)return;const a=t.reduce((e,t)=>e.set(t.pageId,1),new Map);for(const[t,n]of e)a.has(t)||(n.action="Close Page",ia(n),Vo(t))})())})},zo=_e({alwaysOnTop:!0,autoShow:!1,frame:!1,resizable:!1,showTaskbarIcon:!1});const qo=function(e=zo){const t=new Map;return async(a,n,o,r,i)=>{if(t.has(a)){const{currentUrl:e,currentName:o}=t.get(a);if(e===n)return;const r=fin.Window.wrapSync({uuid:fin.me.uuid,name:o});await r.close()}const s=`${Me.BrowserIndicator}-${Date.now()}${Math.random()}`;t.set(a,{currentUrl:n,currentName:s});const c=`New ${r} indicator: ${o} ${i}`,l=await fin.Platform.getCurrentSync().createWindow({...e,name:s,url:n});((e,t)=>{const a=document.createElement("div");a.setAttribute("role","alert"),a.setAttribute("aria-live",t||"polite"),(e=>{e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.padding="0",e.style.margin="-1px",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.border="0"})(a),document.body.appendChild(a),setTimeout(()=>{a.innerHTML=e},300),setTimeout(()=>{document.body.removeChild(a)},1e3)})(c),l.once("closed",()=>{t.delete(a)})}}();async function Jo(e){const{parentBrowserName:t}=e;if(t&&t.includes(Me.BrowserWindow)&&fin.me.name!==t){return(await Da({uuid:fin.me.uuid,name:t})).dispatch(La.ShowBrowserIndicator,e)}return async function(e){const{type:t,message:a,parentBrowserName:n,secondaryMessage:o,icon:r,isEnterprise:i,positioning:s}=e,c=new URLSearchParams;if(c.append("type",t),c.append("message",a),c.append("parentName",n||""),c.append("secondaryMessage",o||""),c.append("icon",r||""),c.append("isEnterprise",`${i}`||""),s===Oe.RelativeToMonitor&&c.append("positioning",Oe.RelativeToMonitor),n){const e=Ae(n?{uuid:B,name:n}:void 0),t=`${(l=await e.getBounds()).top},${l.left},${l.height},${l.width},${l.bottom},${l.right},${l.content.top},${l.content.left},${l.content.height},${l.content.width}`;c.append("parentBounds",t)}var l;const d=`${(i?await ne():await ae())+z.BrowserIndicator}#${c.toString()}`;return qo("browser"+n,d,a,t,o)}(e)}async function Zo(e){const t=e.isEnterprise??await jt(e.parentBrowserName?{uuid:B,name:e.parentBrowserName}:void 0);return Jo({type:"success",message:e.message,parentBrowserName:e.parentBrowserName,secondaryMessage:e.secondaryMessage,icon:e.icon,isEnterprise:t,positioning:e.positioning})}const jo=async(e=We)=>{const{workspacePlatform:t}=await Ae(e).getOptions(),a=t?.newPageUrl,n=t?.newTabUrl;return{newPageUrl:a,newTabUrl:n}},Qo=async(e=We)=>{const t=await jt(e)||to(),a=t?null:await xn().Browser.getUniquePageTitle();let n;if(e&&await Be(e))n=await(async(e,t=We)=>{const{newPageUrl:a}=await jo(t);if(!a)throw new Error("Trying to create a new page without a newPageUrl set");return Vn(e,a,t)})(a,e);else if(t){const e=await oe();n=await Vn(a,e)}t&&(n.settings=n.settings??{},n.dimensions=n.dimensions??{},n.settings.hasHeaders=!1,n.settings.reorderEnabled=!0,n.dimensions.headerHeight=0);const o=await ya(a,n);return t&&(o.hasUnsavedChanges=!1),o},Yo=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t)=>{const a=await jt(t);return{title:"Switch Workspace",windowOptions:{url:await re(a,!1)+z.ResponseModal,name:Me.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:t},content:{title:jn("switchWorkspaceModal",{workspace:e}),body:jn("switchWorkspaceModal.warning"),buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel"},{label:jn("global.confirm"),type:"primary",id:"Confirm"}]}}}})(t,a?void 0:e),r=await Ke(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await rn({options:i,content:o})).data.actionName},Xo=async({workspaceTitle:e,windowIdentity:t})=>{const{windowOptions:a,content:n}=await(async({workspaceTitle:e,windowIdentity:t})=>{const a=await jt(t);return{title:"Delete Workspace",windowOptions:{url:await re(a,!1)+z.ResponseModal,name:Me.BrowserMenu,defaultHeight:144,defaultWidth:410,modalParentIdentity:t},content:{title:jn("deleteWorkspaceModal"),body:`${e}`,buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel"},{label:jn("global.confirm"),type:"primary",id:"Confirm"}]}}}})({workspaceTitle:e,windowIdentity:t}),o=await Ke(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Confirm"===(await rn({options:r,content:n})).data.actionName},er=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>{const n=await jt(e);return{title:"Platform Quit",windowOptions:{url:await re(n,!1)+z.ResponseModal,name:Me.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:a?void 0:e},content:{title:jn("Platform"===t?"closePlatform":"closePlatform.workspace",{workspace:t}),body:jn("closePlatform.warning"),buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel"},{label:jn("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t,a),r=await Ke(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await rn({options:i,content:o})).data.actionName},tr=async e=>{const{windowOptions:t,content:a}=await(async e=>{const t=await jt(e);return{title:"Restore Changes",windowOptions:{url:await re(t,!1)+z.ResponseModal,name:Me.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:e},content:{title:jn("restoreModal"),body:jn("modal.discardWarning"),buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel"},{label:jn("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e),n=await Ke(t,t.modalParentIdentity),o={...t,top:n.top,left:n.left};return"Confirm"===(await rn({options:o,content:a})).data.actionName},ar=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await jt(e);return{title:"Delete Page",windowOptions:{url:new URL(await re(a,!1)+z.ResponseModal).toString(),name:Me.BrowserMenu,defaultHeight:172,defaultWidth:464,modalParentIdentity:e},content:{title:jn("enterpriseDeleteModal.deleteSupertab",{title:t}),body:jn("enterpriseDeleteModal.deleteSupertabWarning"),buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel",variant:a?"outline":void 0},{label:jn("global.delete"),type:"primary",id:"Delete",variant:a?"submit":void 0}]}}}})(e,t),o=await Ke(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Delete"===(await rn({options:r,content:n})).data.actionName},nr=async({identity:e,title:t,description:a})=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>({title:"Update Version",windowOptions:{url:await ne()+z.ResponseModal,name:Me.UpdateVersionModal,defaultHeight:172,defaultWidth:464,modalParentIdentity:e,preventBlur:!0,closeOnResponse:!0,includeInSnapshots:!1},content:{title:t,body:a,buttons:{right:[{label:"Snooze",type:"secondary",id:"snooze"},{label:"Restart",type:"primary",id:"restart"}]}}}))(e,t,a),r=fin.Window.wrapSync({uuid:e.uuid,name:`${n.name}--${n.modalParentIdentity?.name}`});try{if(await(r?.isShowing()))return}catch(e){}const i=await Ke(n,n.modalParentIdentity),s={...n,top:i.top,left:i.left};return(await rn({options:s,content:o})).data};async function or({options:e,...t}){if(!(!!e?.skipPrompt||await Yo(e?.promptContainerWindowIdentity,t.title,e?.shouldCenterModalOnMonitor)))return!1;const a=!!(await fin.Application.getCurrentSync().getChildWindows()).find(({identity:e})=>e.name===Me.DockCompanion||e.name===le)||to()?{closeExistingWindows:!1,closeSnapshotWindows:!0}:{closeExistingWindows:e?.applySnapshotOptions?.closeExistingWindows??!0},n=xn();return await n.applySnapshot(t.snapshot,{...e?.applySnapshotOptions??{},...a}),sr(t),Jo({type:"success",message:jn("successIndicator.workspaceSwitched"),positioning:Oe.RelativeToMonitor}).catch(console.warn),!0}async function rr(e){try{return await or(e)}catch(e){return console.error("failed to apply the current workspace: ",e),!1}}async function ir(e){try{const t=await async function(){const e=xn(),t=await e.getCurrentWorkspace({skipSnapshotUpdate:!0});return(await e.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId)}();if(!t)return"not-saved-workspace";return!!e?.skipPrompt||await tr(e?.promptContainerWindowIdentity)?(await or({options:{skipPrompt:!0,applySnapshotOptions:e?.applySnapshotOptions},...t}),"success"):"user-declined"}catch(e){throw console.error("failed to restore last saved workspace: ",e),e}}function sr(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);Tt(Nt.CurrentWorkspaceId,t)}catch(e){console.error("failed to set the active workspace: ",e)}}async function cr(){const e=xn(),t=await e.getSnapshot();return{workspaceId:wa(),title:await pr(),metadata:{APIVersion:O},snapshot:t}}async function lr(e){if("undefined"==typeof localStorage)return cr();const t=Bt(Nt.CurrentWorkspaceId);if(!t)return cr();const a=JSON.parse(t);if(e?.skipSnapshotUpdate)return a;const n=xn(),o=await n.getSnapshot();return{...a,metadata:{APIVersion:O},snapshot:o}}const dr=async()=>(await pt(We)).dispatch(lt.GetSavedWorkspaces,void 0),ur=async e=>await(async e=>(await pt(We)).dispatch(lt.GetSavedWorkspace,e))(e.workspaceId)?(async e=>(await pt(We)).dispatch(lt.UpdateSavedWorkspace,e))({workspaceId:e.workspaceId,workspace:e}):(async e=>(await pt(We)).dispatch(lt.CreateSavedWorkspace,e))({workspace:e});async function pr(e="Untitled Workspace"){const t=(await dr()).map(({title:e})=>e);return lo(e,t)}const wr=e=>({...e,snapshot:{...e.snapshot,windows:e.snapshot.windows.map(e=>({...e,workspacePlatform:{...e.workspacePlatform,pages:e.workspacePlatform?.pages?.map(e=>({...e,hasUnsavedChanges:!1}))}}))}}),hr=async(e,t)=>{const a=t??xn();await a.Storage.saveWorkspace(wr(e)),await(async()=>(await pt(We)).dispatch(lt.MarkUnsavedPagesAsSavedInternal,void 0))()},gr=async e=>{const t=xn();await(async({showModal:e,afterSuccessSave:t})=>{const a=xn(),n=await a.getCurrentWorkspace(),o=await a.Storage.getWorkspacesMetadata(),r=n.workspaceId;o.some(e=>e.workspaceId===r)?(await hr(n,a),await a.setActiveWorkspace(n),await t()):await e()})({showModal:async()=>{const a=t.Browser.wrapSync(e);await a._openSaveModal({menuType:x.SAVE_WORKSPACE_AS})},afterSuccessSave:async()=>{await Zo({message:jn("successIndicator.workspaceSaved"),parentBrowserName:e.name})}})},mr=e=>{xn().Browser.wrapSync(e)._openSaveModal({menuType:x.SAVE_WORKSPACE_AS})},kr=async e=>{const t=xn().Browser.wrapSync(e),{newPageUrl:a}=await jo(),n=await Qo(e),o=a||void 0;await t._addDefaultPage({identity:e,page:n,newPageUrl:o})},fr=async(e,t)=>{const a=xn().Browser.wrapSync(e),n=await xn().Storage.getPages(),o=(await a.getPages()).find(e=>t?e.pageId===t:e.isActive),r=n.some(e=>o.pageId===e.pageId),i=await jt(e);if(r)try{await xn().Storage.savePage((s=o,{...s,hasUnsavedChanges:void 0,parentIdentity:void 0,isActive:void 0,layout:Fn(s.layout)})),await a.updatePage({pageId:o.pageId,page:{hasUnsavedChanges:!1}}),Zo({message:jn(i?"enterpriseSuccessIndicator.supertabSaved":"successIndicator.pageSaved"),parentBrowserName:e.name,secondaryMessage:jn(i?"enterpriseSuccessIndicator.supertabHasBeenSaved":"successIndicator.pageHasBeenSaved",{title:o.title}),isEnterprise:i})}catch{!async function(e){const t=e.isEnterprise??await jt(e.parentBrowserName?{uuid:B,name:e.parentBrowserName}:void 0);Jo({type:"error",message:e.message,parentBrowserName:e.parentBrowserName,icon:e.icon,isEnterprise:t,positioning:e.positioning})}({message:jn("errorIndicator.pageSaveFailed"),parentBrowserName:o.parentIdentity.name})}else a._openSaveModal({id:o.pageId,menuType:x.SAVE_PAGE});var s},br=async(e,t)=>{const a=xn().Browser.wrapSync(e),n=(await a.getPages()).find(e=>t?e.pageId===t:e.isActive);a._openSaveModal({id:n.pageId,menuType:x.SAVE_PAGE_AS}),ia({type:"Page Modal",action:"Select Save As",value:n.title,skipValueHashing:!0})},yr=async(e,t)=>{await(async({workspaceItemData:e,winIdentity:t,positioning:a})=>{const n=xn(),o=(await n.Storage.getWorkspacesMetadata()).find(t=>t.workspaceId===e.workspaceId);o&&await Xo({workspaceTitle:o.title,windowIdentity:t})&&(await n.Storage.deleteWorkspace(e.workspaceId),await Zo({message:jn("successIndicator.workspaceDeleted"),parentBrowserName:t?.name,positioning:a}))})({workspaceItemData:t,winIdentity:e})},vr={title:"Downloads",pageId:"downloads-page-id",layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{name:"show-download-view",url:"chrome://downloads/"}}]}]}},Sr=async e=>{const t=Ae(e),a=await t.getCurrentViews(),n=(await xn().Browser.wrapSync(t.identity).getPages()).find(e=>e.isActive);try{const t=(await Promise.all(a.map(async e=>({identity:e.identity,info:await fin.View.wrapSync(e.identity).getInfo()})))).find(e=>"chrome://downloads/"===e.info.url);if(t)await fin.View.wrapSync(t.identity).focus();else{const t=xn();if(n?.isLocked){const e=(await fin.Application.getCurrentSync().getChildWindows()).find(e=>"show-download-window"===e.identity.name);return void(e?await e.focus():t.Browser.createWindow({name:"show-download-window",workspacePlatform:{pages:[vr]}}))}(await xn().createView({name:"show-download-view",url:"chrome://downloads/",target:e},e)).focus()}}catch(e){console.error("Couldn't open downloads view",e)}},Pr=async e=>{const t=e.map(e=>fin.View.wrapSync(e).print());await Promise.all(t)},Cr=e=>{const[t,a,n]=e.split(".").map(e=>"x"===e?0:1);return 100*t+10*a+1*n};class Mr extends Error{}const Ir=async e=>{try{const a=await async function(){const e=await Y(),t=e?.translationOverridesUrl??"https://workspace.openfin.co/workspace/assets/translation-override.json";if(""===t)throw new Mr("Empty string provided as url to translationOverridesUrl, overrides will not be fetched.");return await fetch(t).then(e=>e.json())}();(t=(e=>{const t=O.split(".");return Object.keys(e).filter(e=>{const a=e.split(".");if(3!==a.length)return console.warn(`Encountered a translation override version string in an unsupported format: ${e}. Versions must be in A.B.C format where A, B, C are either integers or the wildcard symbol 'x'.`),!1;const[n,o,r]=a;return!(n!==t[0]&&"x"!==n||o!==t[1]&&"x"!==o||r!==t[2]&&"x"!==r)})})(a),[...t].sort((e,t)=>Cr(e)-Cr(t))).forEach(t=>{const n=a[t];Object.keys(n).forEach(t=>{e.addResourceBundle(t,"translation",n[t],!0,!0)})})}catch(e){e instanceof Mr?console.warn(e.message):console.error("Error applying a translation override: ",e)}var t};function xr(){return Gn().language}const Ar=async e=>{Dr(e),(e=>{Gn().changeLanguage(e)})(e),await(async e=>{const t=await Ee();return Promise.all(t.map(async t=>{const a=await Da(t.identity);await a.dispatch(La.SetSelectedLanguage,e)}))})(e)};function Wr(){if(!Gn().options.resources)throw new Error("No language resources found");return{currentLanguage:xr(),resources:Gn().options.resources}}async function Rr(e="en-US"){Dr(e),function(e="en-US"){Gn().use(_n.initReactI18next).init({lng:e,fallbackLng:"en-US",resources:{"en-US":{translation:Kn},"ja-JP":{translation:qn},"zh-CN":{translation:Hn},"ko-KR":{translation:Jn},"ru-RU":{translation:Zn},"de-DE":{translation:zn},"zh-Hant":{translation:$n}},interpolation:{escapeValue:!1}})}(e),await Ir(Gn())}function Dr(e){if(!I.includes(e))throw new Error(`The ISO language provided ${e} is not supported`)}const Tr=new Map;let Br=Date.now();function Er(){const e=Date.now();return Br=Math.max(e,Br+1),Br}async function Fr(){const e=Array.from(Tr.values()).sort((e,t)=>t.lastFocusedTime-e.lastFocusedTime);if(e.length>0)return e[0].identity;try{const e=Bt(Nt.LastFocusedBrowserWindow);if(!e)return;const t=JSON.parse(e);if(await Ne(t))return await Lr(t),t}catch(e){console.error("failed to get last focused browser window from localStorage:",e)}}async function Nr(){const e=fin.Application.getCurrentSync();return(await e.getChildWindows()).filter(e=>e.identity.name.startsWith(Me.BrowserWindow))}async function Vr(){const e=xn(),t=fin.Window.wrapSync({uuid:fin.me.uuid,name:Me.DockCompanion}),a=await Ue(await t.getBounds()),n=await async function(e,t,a){const n=await fin.System.getMonitorInfo(),o=a?.availableRect??n.primaryMonitor.availableRect,r={width:o.right-o.left,height:o.bottom-o.top},i=Math.min(e,r.height),s=Math.min(t,r.width),c=o.top+Math.floor((r.height-i)/2);return{height:i,width:s,left:o.left+Math.floor((r.width-s)/2),top:c}}(600,900,a),o=await Qo();return(await e.Browser.createWindow({defaultHeight:600,defaultWidth:900,defaultLeft:n.left,defaultTop:n.top,workspacePlatform:{pages:[o]}})).identity}async function Lr(e,t,a=!1){if(!await Be(e))return;const n=fin.Window.wrapSync(e),o=t??await n.isShowing(),r=Tr.get(e.name),i={identity:e,lastFocusedTime:a?Er():r?.lastFocusedTime??Er(),isVisible:o};Tr.set(e.name,i),a&&function(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);Tt(Nt.LastFocusedBrowserWindow,t)}catch(e){console.error("failed to save last focused browser window: ",e)}}(e)}async function Ur(e=fin.me.identity){Tr.delete(e.name)}const _r=pa()(async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,a=!1;for(const n of e)if(n.identity.name===Me.BrowserMenu||n.identity.name===Me.BrowserSaveMenu?t=n:await Be(n.identity)&&(a=!0),a)break;!a&&t&&t.close()},100,{leading:!1,trailing:!0});let Or={};const Gr=async({actionId:e,payload:t})=>{if("function"!=typeof Or[e])throw new Error(`Cannot find a configured function for the action '${e}'`);return Or[e](t)};let Hr;const $r=()=>`custom-context-menu-${xn().identity.uuid}-${O}`,Kr=()=>`custom-bookmark-context-menu-${xn().identity.uuid}-${O}`,zr=async()=>(Hr||(Hr=await fin.InterApplicationBus.Channel.connect($r())),Hr);var qr,Jr;!function(e){e.Save="Save",e.SaveAs="SaveAs"}(qr||(qr={})),function(e){e.GlobalMenu="global-menu",e.ContextMenu="context-menu",e.RenameSupertab="rename-supertab",e.AddEditBookmark="add-edit-bookmark",e.DropdownMenu="dropdown-menu",e.ZoomControls="zoom-controls"}(Jr||(Jr={}));const Zr=(e,t="")=>e.toLowerCase().includes(t.toLowerCase()),jr="visited-sites",Qr="removed-tab-stack",Yr=D&&W&&Ut("openfin-home-pages","pages"),Xr=D&&W&&new Wt.Dexie(Vt("openfin-enterprise-site-history"));Xr&&Xr.version(.1).stores({[jr]:"id, url"});const ei=D&&W&&new Wt.Dexie(Vt("openfin-enterprise-tab-history"));async function ti(e){if(!Yr)throw new Error("Unable to get page - IndexDB not supported");const t=await Yr.pages.get(e);if(t)return t.pageId=e.toString(),t.title=t.title||t.pageId,t}async function ai(e){if(!Yr)throw new Error("Unable to get page list - IndexDB not supported");const t=await Yr.pages.toCollection().keys(),a=(await Promise.all(t.map(e=>ti(e.toString())))).filter(e=>!!e);return e?a.filter(t=>Zr(t.title,e)):a}async function ni({page:e}){if(!Yr)throw new Error("Unable to create page - IndexDB not supported");await Yr.pages.put(e,e.pageId)}async function oi(e){if(!Yr)throw new Error("Unable to delete page - IndexDB not supported");await Yr.pages.delete(e)}async function ri({pageId:e,page:t}){if(!Yr)throw new Error("Unable to update page - IndexDB not supported");if(void 0===await ti(e))throw new Error("page not found");await ni({page:t}),e!==t.pageId&&await oi(e)}ei&&ei.version(.1).stores({[Qr]:""});const ii=async e=>{if(!ei)throw new Error("Unable to add removed tab - IndexDB not supported");const t=Date.now().toString(),a={...e,id:t};await ei[Qr].put(a,t)};function si(e){return"app"===e.type||"website"===e.type}const ci=async e=>{if("website"===e.type){const t=e,a=t.url||"";let n=await Xr[jr].get(a);n&&si(n)?(n.icon=t.icon,n.title=t.title,n.type=t.type,n.visitCount=(n.visitCount||0)+1,n.url=t.url):n={...t,id:a,visitCount:1,accessTime:void 0},n.accessTime=Date.now(),await Xr[jr].put(n,a)}},li=async()=>{if(!Xr)throw new Error("Unable to get frequently visited sites - IndexDB not supported");const e=Xr[jr],t=await e.toCollection().toArray();t.sort((e,t)=>(t.visitCount||0)-(e.visitCount||0));return(t.length>5?t.slice(0,5):t).map(({id:e,...t})=>t)};const di=async()=>(await fin.System.getHostSpecs()).name.toLowerCase().includes("windows"),ui=async({browserIdentity:e,url:t,shiftKey:a,activePage:n,pages:o})=>{const r=xn().Browser.wrapSync(e),i=await Vn(t,t,e),s={...await ya(t,i),attachedPageType:"singleView",singleViewName:t},c=o.findIndex(e=>e.pageId===n.pageId);await r._addPage(s,{index:c+1}),a&&await r.setActivePage(s.pageId)},pi=async e=>{const{url:t}=e.bookmark,{sourceIdentity:a,sourceEvent:n}=e,o=await di(),r=xn();let i=!1,s=a;if(!await Be(a)){const t=await async function(){const e=Array.from(Tr.values());for(let t=e.length-1;t>=0;t--)if(e[t].isVisible)return e[t].identity}();if(!t)return await(async e=>{const t=xn(),a=await Vn(e.url,e.url),n=await ya(e.url,a);Te((await t.Browser.createWindow({workspacePlatform:{pages:[n]}})).identity)})(e.bookmark);i=!0,s=t}const c=r.Browser.wrapSync(s),l=await c.getPages(),d=(await c._getLayoutsWithSelectedViews()).find(e=>e.isActive);if(!d)throw Error(`Browser ${s} does not have any active layouts`);const u=l.find(e=>e.isActive),p=1===Un(u.layout.content),w=d.selectedViews[0];i?await ui({browserIdentity:s,url:t,shiftKey:!0,activePage:u,pages:l}):p?await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activePage:o,pages:r,sourceEvent:i})=>{const{ctrlKey:s,metaKey:c,shiftKey:l}=i;(e?s:c)?await ui({browserIdentity:a,url:n,shiftKey:l,activePage:o,pages:r}):await fin.View.wrapSync(t).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activePage:u,pages:l,sourceEvent:n}):await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activeLayout:o,sourceEvent:r})=>{const{ctrlKey:i,metaKey:s,shiftKey:c}=r;if(e?i:s){const e=fin.View.wrapSync(t),o=await e.getCurrentStack(),r=(await o.getViews()).findIndex(e=>e.name===t.name),i={url:n,browserIdentity:a,title:n};await o.addView(i,{index:r+1})}else await fin.View.wrapSync(o.selectedViews[0]).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activeLayout:d,sourceEvent:n})};var wi;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(wi||(wi={}));let hi={locked:!1,x:-1,y:-1};const gi=async(e,t,a,n)=>{if(!W)throw new Error("showEnterpriseContextMenu can only be used in a HERE env. Avoid calling this method during pre-rendering.");if(!n&&!fin.me.isWindow)throw new Error("showEnterpriseContextMenu can only be used in a HERE window.");const{x:o,y:r,template:i}=e;if(((e,t)=>{const{x:a,y:n,locked:o}=hi;return o&&e===a&&t===n})(o,r))return new Promise((e,t)=>e({data:void 0}));hi={locked:!0,x:o,y:r};const s=await zr(),c=wa(),l=new Promise((e,t)=>{s.register(`response-${c}`,t=>{hi.locked=!1,s.remove(`response-${c}`),e(t)})});return await s.dispatch("open",{parentIdentity:n.identity,responseIdentity:We,requestId:c,type:t,anchorBehavior:a,x:o,y:r,payload:{template:i}}),l},mi={type:wi.Separator,data:void 0},ki=async()=>({type:wi.Submenu,label:jn("contextMenu.print"),submenu:[{type:wi.Label,label:jn("contextMenu.submenu.print"),data:{type:v.Print}},{type:wi.Label,label:jn("contextMenu.submenu.printAll"),data:{type:v.PrintAll}},mi,{type:wi.Label,label:jn("contextMenu.printScreen"),data:{type:v.PrintScreen}}]}),fi=()=>({type:wi.Label,label:jn("contextMenu.closeWindow"),data:{type:m.CloseWindow}}),bi=e=>({type:wi.Label,label:jn(e?"contextMenu.quitEnterpriseBrowser":"contextMenu.quitPlatform"),data:{type:m.Quit}}),yi=()=>({type:wi.Label,label:jn("contextMenu.newWindow"),data:{type:m.NewWindow}}),vi=e=>({type:wi.Label,label:jn(e?"enterpriseContextMenu.saveSupertab":"contextMenu.savePage"),data:{type:m.SavePage}}),Si=e=>({type:wi.Label,label:jn(e?"enterpriseContextMenu.saveSupertabAs":"contextMenu.savePageAs"),data:{type:m.SavePageAs}}),Pi=(e,t)=>({type:wi.Label,label:jn(t?"enterpriseContextMenu.newTab":"contextMenu.newPage"),data:{type:m.NewPage},enabled:e}),Ci=()=>({label:jn("contextMenu.switchWorkspace")}),Mi=()=>({label:jn("contextMenu.deleteWorkspace")}),Ii=()=>({label:jn("contextMenu.appearance")}),xi=(e,t,a)=>t.map(t=>{const n=t.workspaceId===e.workspaceId;return{label:t.title,type:wi.Checkbox,enabled:!n,checked:n,data:{type:a,workspaceId:t.workspaceId}}}),Ai=async()=>{const e=await xn().Theme.getSelectedScheme();return[{label:jn("theme.light"),type:wi.Checkbox,checked:e===k.Light,data:{type:m.Appearance,scheme:k.Light}},{label:jn("theme.dark"),type:wi.Checkbox,checked:e===k.Dark,data:{type:m.Appearance,scheme:k.Dark}},{label:jn("theme.system"),type:wi.Checkbox,checked:e===k.System,data:{type:m.Appearance,scheme:k.System}}]},Wi=async(e,t=[])=>{const a=await Ve(),{newPageUrl:n}=await jo(e),o=await(async e=>{const t=Ae(e),{workspacePlatform:a}=await t.getOptions();return a?.disableMultiplePages})(e),r=await(async e=>{const t=Ae(e),{workspacePlatform:a}=await t.getOptions();return a?.isLocked})(e),i=await jt(e),s=[],c=t.length>0;n&&(s.push(yi()),o||s.push(Pi(!r,i))),s.push(mi);const l=xn(),d=await l.getCurrentWorkspace({skipSnapshotUpdate:!0}),u=await l.Storage.getWorkspacesMetadata(),p=u.find(e=>e.workspaceId===d.workspaceId),w=l.Browser.wrapSync(e),h=(await w.getPages()).find(e=>e.isActive),g=!!h&&await l.Storage.getPage(h.pageId);s.push({type:wi.Label,label:jn("contextMenu.restore"),data:{type:m.RestoreChanges},enabled:!!p}),s.push({type:wi.Label,label:jn("contextMenu.saveWorkspace"),data:{type:m.SaveWorkspace},enabled:!!p}),s.push({type:wi.Label,label:jn("contextMenu.saveWorkspaceAs"),data:{type:m.SaveWorkspaceAs}}),s.push({type:wi.Label,label:jn("contextMenu.renameWorkspace"),data:{type:m.RenameWorkspace},enabled:!!p}),u.some(e=>e.workspaceId!==d.workspaceId)?s.push({label:Ci().label,submenu:xi(d,u,m.SwitchWorkspace),data:void 0},{label:Mi().label,submenu:xi(d,u,m.DeleteWorkspace),data:void 0}):s.push({label:Ci().label,enabled:!1,data:void 0},{label:Mi().label,enabled:!1,data:void 0}),s.push({label:jn("contextMenu.downloads"),data:{type:m.Downloads}}),s.push({label:Ii().label,submenu:await Ai(),data:void 0});const k={...vi(i),enabled:!!g};return s.push(mi,k,Si(i),await(async e=>{const t=await di();return{label:jn("contextMenu.print"),submenu:[{type:wi.Label,label:jn("contextMenu.submenu.print"),data:{type:m.Print},enabled:e},{type:wi.Label,label:jn("contextMenu.submenu.printAll"),data:{type:m.PrintAll}},...t?[mi,{type:wi.Label,label:jn("contextMenu.printScreen"),data:{type:m.PrintScreen}}]:[]],data:void 0}})(c)),a?[...s,fi(),mi,{type:wi.Label,label:jn("contextMenu.openStorefront"),data:{type:m.OpenStorefront}},mi,bi()]:[...s,mi,fi(),mi,bi()]},Ri=async(e,t)=>{const a=t.selectedViews[0],n=fin.View.wrapSync(a),o=await(async e=>{const{newTabUrl:t}=await jo(e);if(!t)throw new Error("Trying to create a new page without a newTabUrl set");return{url:t,target:e,title:"New Tab"}})(e);await xn().createView(o,e,n.identity)},Di=async(e,t)=>{const a=xn().Browser.wrapSync(e),n=(await a.getPages()).find(e=>e.isActive),o=await fin.Window.wrapSync(e).getCurrentViews();if(t.length===o.length-(n.panels??[]).length){return void(await Da(e)).dispatch(La.ClosePage,{pageId:n?.pageId})}const r=fin.Platform.getCurrentSync();t.forEach(async t=>{const o=await fin.View.wrapSync(t).getParentLayout();await r.closeView(t);const{hasUnsavedChanges:i}=await(async e=>(await wt(We)).dispatch(lt.HandlePageChanges,e))({page:{...n,layout:await o.getConfig()},identity:e,eventDetails:{type:g.ViewRemoved,viewIdentity:t}});i&&await a.updatePage({pageId:n.pageId,page:{hasUnsavedChanges:!0}})})},Ti=async(e,t)=>{const a=await(e=>Promise.all(e.map(async e=>fin.View.wrapSync(e).getInfo())))(t),{newPageUrl:n,newTabUrl:o}=await jo(e);a.forEach(async e=>{e.url!==n&&e.url!==o&&await fin.System.openUrlWithBrowser(e.url)})},Bi=(e,t)=>{t.forEach(async t=>{const a=fin.View.wrapSync(t);await(async(e,t)=>{const{url:a}=await t.getInfo(),n={...await t.getOptions(),url:a,target:e,name:void 0};await xn().createView(n,e,t.identity)})(e,a)})},Ei=async(e,t,a)=>{const n={newChannelId:t,selectedViews:a};(await Da(e)).dispatch(La.AddToChannel,n)},Fi=async(e,t)=>{(await Da(e)).dispatch(La.RemoveFromChannel,t)},Ni=async(e,t)=>{if(!e)return;const a=t.identity,n=fin.Window.wrapSync(a);switch(ia({type:"View Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e.type){case v.Back:await(async e=>{const t=e.map(e=>fin.View.wrapSync(e).navigateBack());await Promise.all(t)})(t.selectedViews);break;case v.Forward:await(async e=>{const t=e.map(e=>fin.View.wrapSync(e).navigateForward());await Promise.all(t)})(t.selectedViews);break;case v.Print:await Pr(t.selectedViews);break;case v.PrintAll:await n.print({content:"views",includeSelf:!1});break;case v.PrintScreen:await n.print({content:"screenshot"});break;case v.CloseViews:await Di(a,t.selectedViews);break;case v.OpenWithDefaultBrowser:await Ti(a,t.selectedViews);break;case v.ReloadViews:t.selectedViews.forEach(async e=>{const t=fin.View.wrapSync(e);await t.reload()});break;case v.NewView:await Ri(a,t);break;case v.DuplicateViews:Bi(a,t.selectedViews);break;case v.AddToChannel:Ei(a,e.option,t.selectedViews);break;case v.RemoveFromChannel:Fi(a,t.selectedViews);break;case v.Custom:if(e.action){const n={callerType:M.ViewTabContextMenu,windowIdentity:a,selectedViews:t.selectedViews,customData:e.action.customData};xn()._invokeCustomAction(e.action.id,n)}}},Vi=async e=>{const t=await(async e=>{const t="find-in-page";let a;a=e?`${t}-${e}`:`${t}-${(await(fin.me.isWindow?fin.me:fin.me.getCurrentWindow())).identity.name}`;return a})(e);return new BroadcastChannel(t)},Li=async(e,t)=>{const a=t.identity,n=xn().Browser.wrapSync(a),o=(await n.getPages()).find(e=>e.isActive),r=Sa({...a,layoutName:o.layoutContainerKey}),i=t.selectedViews;switch(e?.type){case b.Lock:await n.updatePage({pageId:o.pageId,page:{isLocked:!o.isLocked}});break;case b.AddToChanel:e.option?await Ei(a,e.option,i):null===e.option&&await Fi(a,i);break;case b.ManageDesktopSignals:await ln(a);break;case b.FindInPage:await(async e=>{const t=await Vi(e.name);((e,t)=>{e.postMessage(t)})(t,{type:"show"}),(e=>{e.close()})(t)})(a);break;case m.NewWindow:{const e=await Qo(a);await xn().Browser.createWindow({workspacePlatform:{pages:[e],windowType:"enterprise"}});break}case b.Pin:{const{alwaysOnTop:e}=await n.openfinWindow.getOptions();await n.openfinWindow.updateOptions({alwaysOnTop:!e});break}case b.ShowHideTabs:await r.isShowingTabs()?await r.hide():await r.show();break;default:return!1}return!0},Ui=(require("title-case"),new Map([["blue",{name:"Blue",color:"#0091EB"}],["indigo",{name:"Indigo",color:"#6450FF"}],["pink",{name:"Pink",color:"#E878CF"}],["teal",{name:"Teal",color:"#24D1D1"}],["green",{name:"Green",color:"#00AF78"}],["orange",{name:"Orange",color:"#FF7D37"}],["red",{name:"Red",color:"#F94144"}],["yellow",{name:"Yellow",color:"#F9C74F"}],["gray",{name:"Gray",color:"#828788"}]]));function _i(){return{type:wi.Label,label:jn("contextMenu.manageDesktopSignals"),data:{type:f.ManageDesktopSignals}}}function Oi(e){const t=Array.from(Ui.entries()),a=e.contextGroup;return{type:"widget",config:{type:"add-to-channel",channels:[...t.map(([e,t])=>({label:t.name,data:{type:f.AddToChannel,option:e},color:t.color,checked:a===e})),{label:"unlink",data:{type:f.AddToChannel,option:"unlink"},isNone:!0}]},label:"Link to Channel"}}let Gi="Platform";const Hi=async()=>Gi;const $i=async(e,t)=>{if(!e)return;const a=t.identity,n=await Da(a),o=xn().Browser.wrapSync(a),r=fin.Window.wrapSync(a);if(ia({type:"Global Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0,data:{action:e.action?.id}}),await jt(a)){if(await Li(e,t))return}switch(e.type){case m.NewWindow:{const{newPageUrl:e}=await jo(a);if(!e)throw new Error("Trying to create a new empty window without a newPageUrl set");xn().createView({target:void 0,url:e});break}case m.NewPage:await kr(a);break;case m.CloseWindow:n.dispatch(La.CloseBrowserWindow);break;case m.SaveWorkspace:await gr(a);break;case m.SavePage:await fr(a);break;case m.SavePageAs:await br(a);break;case m.SaveWorkspaceAs:await mr(a);break;case m.RenameWorkspace:o._openSaveModal({menuType:x.RENAME_WORKSPACE});break;case m.SwitchWorkspace:await(async(e,t)=>{const a=xn(),n=(await a.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId);a.applyWorkspace(n,{skipPrompt:!1,promptContainerWindowIdentity:e})})(a,e);break;case m.DeleteWorkspace:await yr(a,e);break;case m.Downloads:await Sr(a);break;case m.Appearance:await xn().Theme.setSelectedScheme(e.scheme);break;case m.Quit:{const e=Hi();await er(a,await e)&&fin.Platform.getCurrentSync().quit()}break;case m.OpenStorefront:(async()=>{await Ve()&&Te(De)})();break;case m.RestoreChanges:await ir();break;case m.Print:await Pr(t.selectedViews);break;case m.PrintAll:await r.print({content:"views",includeSelf:!1});break;case m.PrintScreen:await r.print({content:"screenshot"});break;case m.Custom:if(e.action){const t={callerType:M.GlobalContextMenu,windowIdentity:a,customData:e.action.customData};xn()._invokeCustomAction(e.action.id,t)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}},Ki=async(e,t,a)=>{const n=xn().Browser.wrapSync(t.identity),o=fin.Window.wrapSync(t.identity),r=await Da(t.identity),i=await jt();switch(e&&ia({type:"Page Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e?.type){case f.Save:await fr(t.identity,t.pageId);break;case f.SaveAs:await br(t.identity,t.pageId);break;case f.NewPage:await kr(t.identity);break;case f.DeletePage:await(async(e,t)=>{const a=xn(),n=a.Browser.wrapSync(e),o=(await a.Storage.getPages()).find(e=>e.pageId===t);o&&await ar(e,o.title)&&(await a.Storage.deletePage(o.pageId),await n.removePage(t),Zo({message:jn("enterpriseSuccessIndicator.supertabDeleted"),parentBrowserName:e.name,secondaryMessage:jn("enterpriseSuccessIndicator.supertabHasBeenDeleted",{title:o.title})}))})(t.identity,t.pageId);break;case f.Rename:if(await jt(t.identity)){await n.setActivePage(t.pageId);const e=await zr();await e.dispatch("open",{parentIdentity:t.identity,responseIdentity:We,type:Jr.RenameSupertab,anchorBehavior:qi.Center,x:a.left+a.width/2-164,y:a.bottom-8,payload:{pageId:t.pageId}})}else await n._openSaveModal({menuType:x.RENAME_PAGE,id:t.pageId});break;case f.Duplicate:r.dispatch(La.DuplicatePage,t.pageId);break;case f.Close:i?await(async(e,t)=>{const a=xn().Browser.wrapSync(e),n=await a.getPages();for(const o of n)if(o.pageId===t){await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o});break}})(t.identity,t.pageId):r.dispatch(La.ClosePage,{pageId:t.pageId});break;case f.Custom:if(e.action){const a={callerType:M.PageTabContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};xn()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`);break;case f.Refresh:await(async(e,t)=>{const a=xn(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find(e=>t?e.pageId===t:e.isActive);o?.layout?.content&&Nn(o.layout.content).forEach(async e=>{(await fin.View.wrap({uuid:a.identity.uuid,name:e.name})).reload()})})(t.identity,t.pageId);break;case f.CloseOthers:await(async(e,t)=>{const a=xn().Browser.wrapSync(e),n=await a.getPages();for(const o of n)o.pageId!==t&&(await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o}))})(t.identity,t.pageId);break;case f.SaveWorkspaceAs:await mr(t.identity);break;case f.Print:{const e=await n._getLayoutsWithSelectedViews(),{selectedViews:a}=e.find(e=>e.pageId===t.pageId);await Pr(a);break}case f.PrintAll:await n.setActivePage(t.pageId),await o.print({content:"views",includeSelf:!1});break;case f.PrintScreen:await n.setActivePage(t.pageId),await o.print({content:"screenshot"});break;case f.AddToChannel:await n.updatePage({pageId:t.pageId,page:{contextGroup:"unlink"===e.option?null:e.option}});break;case f.ManageDesktopSignals:await ln(t.identity)}},zi=async(e,t)=>{if(e?.type){const a=t.identity;switch(e.type){case P.SavePage:await fr(a);break;case P.SaveWorkspace:await gr(a);break;case P.SavePageAs:await br(a);break;case P.SaveWorkspaceAs:await mr(a);break;case P.Custom:if(e.action){const a={callerType:M.SaveButtonContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};xn()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}}};var qi;!function(e){e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e[e.Center=4]="Center"}(qi||(qi={}));const Ji=async(e,t,a,n)=>{const{x:o,y:r,identity:i,template:s,callback:c}=e,l=await jt(i),{data:d}=l?await gi({x:o,y:r,template:s},a,n,fin.Window.wrapSync(i)):await function(e,t){if(!W)throw new Error("showContextMenu can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");if(!t&&!fin.me.isWindow)throw new Error("showContextMenu can only be used in an OpenFin window.");return(t||fin.Window.getCurrentSync()).showPopupMenu(e)}({x:o,y:r,template:s},fin.Window.wrapSync(i));c(d,e)};async function Zi(e,t){const a=Ma(),n=await jt(e.identity);n&&xa(a);const o=n?await(async({identity:e,selectedViews:t})=>{const a=xn(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find(e=>e.isActive),r=await a.Storage.getPage(o.pageId),i=Un(o.layout.content)>1,s=await jt(e),c=await a.Theme.getThemes(),l=c[0]&&"palettes"in c[0]||!c[0]||0===c.length,d={...vi(s),enabled:!!r},u={...Si(s),enabled:i};return[yi(),Pi(!0,s),{type:wi.Separator},d,u,{type:wi.Separator},{type:wi.Label,label:jn("contextMenu.manageDesktopSignals"),data:{type:m.ManageDesktopSignals}},{type:wi.Label,label:jn("contextMenu.findInPage"),data:{type:m.FindInPage}},{type:wi.Separator},...l?[{type:wi.Submenu,label:Ii().label,submenu:await Ai()}]:[],{type:wi.Separator},fi(),{type:wi.Separator},bi(!0)]})({identity:e.identity,selectedViews:e.selectedViews}):await Wi(e.identity,e.selectedViews),r=await Hi();n||(o.find(e=>e.data?.type===m.Quit).label=`Quit ${r}`);const{rect:i,...s}=e,{x:c,y:l}=n?{x:i.left+i.width,y:i.bottom}:e,d={...s,x:c,y:l,template:o,callback:$i};Ia(a),await this.openGlobalContextMenu(d,t)}async function ji(e,t){const a={...e,callback:Ni};await this.openViewTabContextMenu(a,t)}async function Qi(e,t){const a=Ma(),n=await jt(e.identity);n&&xa(a);const o=await(async(e,t,a)=>{const n=await xn().Storage.getPage(e),o=(await uo()).find(t=>t.pageId===e),r=Un(o.layout.content)>1,{workspacePlatform:i}=await Ae(t).getOptions(),s=!(i.isLocked||i.preventPageClose||o.closeButton?.disabled||o.closeButton?.hidden),c=[{type:wi.Label,label:jn("enterpriseContextMenu.newTab"),data:{type:f.NewPage}},mi,Oi(o),_i(),mi,{type:wi.Label,label:jn("reload"),data:{type:f.Refresh}},{type:wi.Label,label:jn("enterpriseContextMenu.duplicate"),data:{type:f.Duplicate},enabled:!i.isLocked},await ki(),mi,{type:wi.Label,label:jn(r?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:f.Close},enabled:s}],l=[{type:wi.Label,label:jn("enterpriseContextMenu.newTab"),data:{type:f.NewPage}},mi,Oi(o),_i(),mi,{type:wi.Label,label:jn("enterpriseSaveModal.renameSupertab"),data:{type:f.Rename},enabled:!i.isLocked&&!!n&&r},{type:wi.Label,label:jn("enterpriseContextMenu.duplicate"),data:{type:f.Duplicate},enabled:!i.isLocked},mi,{type:wi.Label,label:jn("enterpriseContextMenu.saveSupertab"),data:{type:f.Save},enabled:r&&!!n},{type:wi.Label,label:jn("enterpriseContextMenu.saveSupertabAs"),data:{type:f.SaveAs},enabled:r},mi,{type:wi.Label,label:jn("enterpriseContextMenu.deleteSupertab"),data:{type:f.DeletePage},enabled:!!n},mi,{type:wi.Label,label:jn(r?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:f.Close},enabled:s}],d=[{type:wi.Label,label:jn("contextMenu.savePage"),data:{type:f.Save},enabled:!!n},{type:wi.Label,label:jn("saveMenu.savePageAs"),data:{type:f.SaveAs},enabled:!0},{type:wi.Label,label:"Save Workspace As",data:{type:f.SaveWorkspaceAs}},{type:wi.Label,label:"Refresh",data:{type:f.Refresh}},mi,{type:wi.Label,label:jn("saveModal.renamePage"),data:{type:f.Rename},enabled:!!n},{type:wi.Label,label:jn("contextMenu.duplicatePage"),data:{type:f.Duplicate},enabled:!i.isLocked},mi,{type:wi.Label,label:jn("saveModal.closePage"),data:{type:f.Close},enabled:s}];return a?r?l:c:d})(e.pageId,e.identity,n),r={...e,template:o,callback:(t,a)=>{Ki(t,a,e.rect)}};Ia(a),await this.openPageTabContextMenu(r,t)}async function Yi(e,t){const a=await(async e=>{const t=xn(),a=await t.getCurrentWorkspace({skipSnapshotUpdate:!0}),n=(await t.Storage.getWorkspacesMetadata()).find(e=>e.workspaceId===a.workspaceId),o=await t.Storage.getPage(e);return[{type:wi.Label,label:jn("contextMenu.saveWorkspace"),enabled:!!n,data:{type:P.SaveWorkspace}},{type:wi.Label,label:jn("saveMenu.saveWorkspaceAs"),data:{type:P.SaveWorkspaceAs}},{type:wi.Separator,data:void 0},{type:wi.Label,enabled:!!o,label:jn("contextMenu.savePage"),data:{type:P.SavePage}},{type:wi.Label,label:jn("saveMenu.savePageAs"),data:{type:P.SavePageAs}}]})(e.pageId),n={...e,template:a,callback:zi};await this.openSaveButtonContextMenu(n,t)}const Xi="dock-companion-updates",es=async()=>(await fin.Application.getCurrentSync().getChildWindows()).find(e=>e.identity.name===Me.DockCompanion),ts=async()=>{const e=await es();if(e){const t=await Da(e.identity,Xi);await t.dispatch(La.RefreshBookmarksInternal)}},as=ge(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-dock`),ns=async()=>{const e=xn(),t=await async function(){const e=await Nr();await Promise.all(e.map(async e=>{await Lr(e.identity)}));const t=Array.from(Tr.values()).sort((e,t)=>t.lastFocusedTime-e.lastFocusedTime),a=t.find(e=>e.isVisible);if(a){const e=fin.Window.wrapSync(a.identity);return await e.focus(),a.identity}const n=t[0];if(n){const e=fin.Window.wrapSync(n.identity);return await e.restore(),await e.focus(),n.identity}return Vr()}(),a=e.Browser.wrapSync(t),n=(await a.getPages()).at(-1),o=Nn(n.layout.content),r=1===o.length&&Xt(o[0].url);if(ja.emit("search-menu-opening",a.identity.name),r)await a.setActivePage(n.pageId);else{const e=await Qo(t),{newPageUrl:n}=await jo();await a._addDefaultPage({identity:a.identity,page:e,newPageUrl:n||void 0})}(await Da(t)).dispatch(La.FocusAndExpandSearchInternal)},os="dock-provider-configs",rs=D&&W&&new Wt.Dexie(Vt("dock-provider-configs"));async function is(e){if(!rs)throw new Error("Unable to get Dock provider config - IndexedDB not supported");try{return await rs[os].get(e)}catch(e){return void console.warn("Failed to retrieve Dock provider config from IndexedDb",e)}}async function ss(e){if(!rs)throw new Error("Unable to save Dock provider config - IndexedDb not supported");await rs[os].put(e,e.id)}rs&&rs.version(.1).stores({[os]:""});const cs="workspaces",ls=D&&W&&Ut("openfin-workspace-platform-workspaces",cs);async function ds(e){if(!ls)throw new Error("Unable to get workspace - IndexDB not supported");const t=await ls[cs].get(e);return t&&(t.workspaceId=e.toString(),t.title=t.title||t.workspaceId),t}async function us(e){if(!ls)throw new Error("Unable to get workspaces - IndexDB not supported");const t=await ls[cs].toCollection().keys(),a=(await Promise.all(t.map(e=>ds(e.toString())))).filter(e=>!!e);return e?a.filter(t=>Zr(t.title,e)):a}async function ps({workspace:e}){if(!ls)throw new Error("Unable to create workspace - IndexDB not supported");const t=(await us()).find(t=>t.title===e.title);if(t&&t.workspaceId!==e.workspaceId)throw new Error(`Workspace with title '${e.title}' already exists.`);await ls[cs].put(e,e.workspaceId)}async function ws(e){if(!ls)throw new Error("Unable to delete workspace - IndexDB not supported");await ls[cs].delete(e)}async function hs({workspaceId:e,workspace:t}){if(!ls)throw new Error("Unable to update workspace - IndexDB not supported");if(!await ds(e))throw new Error("workspace not found");await ps({workspace:t}),e!==t.workspaceId&&await ws(e)}const gs=e=>{const t=e.layout,a=t.content?Nn(t.content):[],n=a.length;return n>1?{...e,singleViewName:null}:1===n?{...e,singleViewName:a[0].name}:void 0},ms=async(e,t,a)=>{const n=await xn().Browser.getAllAttachedPages(),o=new Set(n.map(e=>e.title).filter(e=>!!e)),r=new Set(n.map(e=>e.pageId).filter(e=>!!e)),i=t?.defaultPageOptions,s="enterprise"===a?.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType,c=await(async(e,t,a)=>{if(a)return oe();const n=t?.workspacePlatform?.newTabUrl;if(n)return n;const o=e?.defaultWindowOptions?.workspacePlatform?.newTabUrl;return o||void 0})(t,a,s);return Promise.all(e.map(async e=>{if("reparent"===e.multiInstanceViewBehavior)return{...e,layoutContainerKey:wa()};((e,t)=>{e.pageId||=wa(),t.has(e.pageId)&&(console.warn("PageID collision detected. All Page IDs should be unique. A random new pageId will be generated"),e.pageId=wa()),t.add(e.pageId)})(e,r),s||(e.title=lo(e.title,Array.from(o.keys()))),o.add(e.title),e.panels?.reduce((e,t)=>{const a=Object.values(h);if(!a.includes(t.position))throw new Error(`Encountered a panel with unsupported position "${t.position}". Supported positions are: ${a.toString()}`);if(1==e[t.position])throw new Error(`Found more than 1 panel at position: ${t.position}. Only 1 panel at a given position is currently supported.`);return{...e,[t.position]:e[t.position]+1}},{[h.Left]:0,[h.Right]:0,[h.Top]:0,[h.Bottom]:0});const a="panels"in e?e.panels:i?.panels;let n=(l=e.layout,d=t?.defaultViewOptions,Dn({...l},e=>Tn(e,d)));var l,d;c&&(n={...n,settings:{...n?.settings,newTabButton:{url:c}}});return{...i,...e,panels:a&&await no(a),layoutContainerKey:wa(),layout:n,isLayoutCreated:!1}}))},ks=async(e,t)=>{try{await fin.Platform.getCurrentSync().createView({name:e,url:t,target:fin.me.identity,bounds:{top:0,left:0,width:0,height:0}},fin.me.identity)}catch(e){}},fs=e=>{const t=e.name===Me.Home,a=e.name?.startsWith(Me.HomeInternal),n=e.name?.startsWith(Me.BrowserMenu)||e.name?.startsWith(Me.BrowserSaveMenu)||e.name?.startsWith(Me.DockSaveWorkspaceMenu);return!t&&!a&&!n};const bs=e=>JSON.parse(JSON.stringify(e));async function ys(e){return e?"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==":(await Y()).displayViewTabDefaultIcon?"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==":"data:image/svg+xml,%3Csvg%20style%3D%22background-color%3A%237D808A%22%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.64648%200.874962C4.84174%200.6797%205.15833%200.6797%205.35359%200.874962L9.12482%204.6462C9.32009%204.84146%209.32009%205.15804%209.12482%205.3533L5.35359%209.12454C5.15833%209.3198%204.84174%209.3198%204.64648%209.12454L0.875245%205.3533C0.679982%205.15804%200.679982%204.84146%200.875245%204.6462L4.64648%200.874962ZM5.00003%201.93562L1.9359%204.99975L5.00003%208.06388L8.06416%204.99975L5.00003%201.93562Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"}const vs={dimensions:{borderWidth:3,headerHeight:30}};async function Ss(e,t,a){let n=e;const o="enterprise"===n.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType;if(n.layout&&!n.workspacePlatform?.pages?.length){const e=await xo(),a={...await ya(e,n.layout),isActive:!0};n.workspacePlatform||={},n.workspacePlatform.pages=await ms([a],t,n)}t?.browserIconSize&&(n.workspacePlatform||={},n.workspacePlatform.browserIconSize=t.browserIconSize);const r=a?.themes?.[0];if(n.workspacePlatform?.pages?.length){const e=await ms(n.workspacePlatform.pages,t,n),i=e,s=(e=>{if(!e)return;let t=e.find(e=>e.isActive);return!t&&e.length>0&&(e[0].isActive=!0,t=e[0]),t})(i);if(i.forEach(e=>{e.pageId!==s?.pageId&&(e.isActive=!1)}),await oo(i),n.workspacePlatform.pages=e,n=da({},await(async e=>({downloadBubble:{enabled:!e},contextMenuOptions:{enabled:!1},experimental:{showFavicons:!0,defaultFaviconUrl:await ys(e)},viewVisibility:{showViewsOnSplitterDrag:{enabled:!0},showViewsOnWindowResize:{enabled:!0}}}))(o),t?.defaultWindowOptions,n,await(async e=>({backgroundThrottling:!0,url:await re(e,!0),contextMenu:!0,closeOnLastViewRemoved:!1,permissions:{System:{openUrlWithBrowser:{enabled:!0,protocols:["mailto"]}}}}))(o)),s.layout=da(s.layout,vs),async function(e){if(e.icon||e.taskbarIcon){const t=fin.Application.getCurrentSync(),a=await(await t.getWindow()).getOptions();e.taskbarIconGroup||=a.taskbarIconGroup||fin.me.identity.uuid}if(e.workspacePlatform.icon)if("object"==typeof e.workspacePlatform.icon){const t=window.matchMedia("(prefers-color-scheme: dark)");e.icon=t.matches?e.workspacePlatform.icon.dark:e.workspacePlatform.icon.light}else e.icon=e.workspacePlatform.icon}(n),!n.backgroundColor&&r)if("palette"in r)n.backgroundColor=r?.palette?.background2||r?.palette?.backgroundPrimary;else{const e=a.selectedScheme===k.Dark||a.selectedScheme===k.System&&window.matchMedia("(prefers-color-scheme: dark)")?r?.palettes.dark:r?.palettes.light;n.backgroundColor=e?.background2||e?.backgroundPrimary}n=_e(n,!0);const c=await re(o,!0);if(c&&(n.url=c),n.layout=s.layout,n.layoutSnapshot=((e,t)=>({layouts:e.reduce((e,a)=>{if(!a.isActive){if(!t)return e;if(!gs(a).singleViewName)return e}return e[a.layoutContainerKey]=a.layout,e},{}),pages:e}))(n.workspacePlatform.pages,o),n.workspacePlatform.windowType=n.workspacePlatform.windowType??C.Browser,o){const e=await oe();n.workspacePlatform.newPageUrl=e,n.workspacePlatform.newTabUrl=e,n.layout&&(n.layout.dimensions.borderWidth=4,n.layout.dimensions.headerHeight=28);const{enabled:t}=ao();n.workspacePlatform.isAiEnabled=t,n.minWidth=Math.max(654,n.minWidth??0),n.minHeight=Math.max(488,n.minHeight??0)}else n.minWidth=Math.max(232,n.minWidth??0),function(e){const t=e.workspacePlatform?.viewTabDimensions,a=e.workspacePlatform?.pageTabDimensions,n=/^[0-9]+(px|%)$/;if(t){if(t.minWidth&&!n.test(t.minWidth))throw new Error(`Provided viewTabDimensions.min value "${t.minWidth}" is not in a supported format.`);if(t.maxWidth&&!n.test(t.maxWidth))throw new Error(`Provided viewTabDimensions.max value "${t.maxWidth}" is not in a supported format.`)}if(a){if(a.minWidth&&!n.test(a.minWidth))throw new Error(`Provided pageTabDimensions.min value "${a.minWidth}" is not in a supported format.`);if(a.maxWidth&&!n.test(a.maxWidth))throw new Error(`Provided pageTabDimensions.max value "${a.maxWidth}" is not in a supported format.`)}}(n);n.name=n.name||`${Me.BrowserWindow}-${wa()}`,(async(e,t)=>{const a=await re(e),n=[],o=Me.FindInPageViewPrefix+t.name,r=a+z.FindInPageModal,i=ks(o,r);if(n.push(i),e){const e=Me.BrowserAddressSearchPrefix+t.name,o=a+z.BrowserPopupMenuAddressSearchResultsView,r=ks(e,o);n.push(r);const i=Me.AICompanionPrefix+t.name,{url:s,enabled:c}=ao();if(c){const e=ks(i,s);n.push(e)}}Promise.all(n)})(o,n)}return n.cornerRounding&&delete n.cornerRounding,n.name||n.layoutSnapshot?n.contextMenuOptions?.template?.length>0?n.contextMenuOptions.template=n.contextMenuOptions.template.filter(e=>"print"!==e):n.contextMenuOptions={template:[],enabled:!1}:n.name=`${Me.ClassicWindow}-${wa()}`,n.workspacePlatform&&a&&(n.workspacePlatform._themeData=a),n}const Ps=async(e,t)=>{const a={uuid:t.uuid,name:t.name};await er(a,e.title??await Hi(),e.shouldCenterOnMonitor)&&fin.Platform.getCurrentSync().quit()},Cs=async(e,t)=>{const a=xn(),n=await a.Browser.getLastFocusedWindow();if(!n)return;const o=a.Browser.wrapSync(n),{title:r,description:i}=e,s=await nr({title:r,description:i,identity:o.identity});s&&o._sendUpdateVersionModalResponse({identity:t,response:s})};async function Ms(e,t,a){const n=e.manifestUrl?await t({manifestUrl:e.manifestUrl},a):void 0;if(n?.interop&&e.interop){const t={...e,...n,interop:e.interop};return delete t.manifestUrl,t}return e}const Is=e=>{const t=bs(e);return t._internalWorkspaceData?.browserNavigationButtons&&(t.workspacePlatform={...t.workspacePlatform,browserNavigationButtons:t._internalWorkspaceData.browserNavigationButtons},delete t._internalWorkspaceData.browserNavigationButtons),t},xs=e=>{const t=bs(e);return t.workspacePlatform&&(t._internalWorkspaceData={...t._internalWorkspaceData,...t.workspacePlatform},delete t.workspacePlatform),t},As={reload:[{keys:"Ctrl+R",preventDefault:!0}],back:[{keys:"Alt+Left",preventDefault:!0}],forward:[{keys:"Alt+Right",preventDefault:!0}]},Ws={reload:[{keys:"Cmd+R",preventDefault:!0}],back:[{keys:"Cmd+[",preventDefault:!0},{keys:"Cmd+Left",preventDefault:!0}],forward:[{keys:"Cmd+]",preventDefault:!0},{keys:"Cmd+Right",preventDefault:!0}]},Rs=async()=>await di()?As:Ws,Ds=(e,t)=>{const a=fin.View.wrapSync(e);if(!t)return;const n=e=>{(async(e,t,a)=>{if("keyDown"!==a.inputType)return;const n=await(async e=>{const t=await e.getCurrentWindow(),a=await t.getOptions(),n=a.workspacePlatform?.navigationButtons;return n.enabled&&!n.hotkeysDisabled})(e),o=await di();if(n){if(t.reload){const n=a.ctrlKey&&!a.altKey&&!a.metaKey&&!a.shiftKey&&"r"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"r"===a.key;(o?n:r)&&t?.reload&&(e.reload(),ia({type:"View",action:"Reload",value:e.identity.name}))}if(t.back){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"["===a.key;(o?n:r||i)&&t?.back&&(e.navigateBack(),ia({type:"View",action:"Back",value:e.identity.name}))}if(t.forward){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"]"===a.key;(o?n:r||i)&&t?.forward&&(e.navigateForward(),ia({type:"View",action:"Forward",value:e.identity.name}))}}})(a,t,e)};a.addListener("hotkey",n),a.once("destroyed",()=>{a.removeListener("hotkey",n)})},Ts=(e,t)=>bs(e).map(e=>("componentState"in e?e.componentState=t(e.componentState):"content"in e&&(e.content=Ts(e.content,t)),e)),Bs=e=>{if(e){const t=bs(e);return t.content&&(t.content=Ts(t.content,Is)),t}return e},Es=e=>{if(e){const t=bs(e);return t.content&&(t.content=Ts(t.content,xs)),t}return e};async function Fs({app:e,target:t}){const a=fin.Platform.getCurrentSync();switch(e.manifestType){case l.Snapshot:return a.applySnapshot(e.manifest);case l.View:return async function(e,t){const a=fin.Platform.getCurrentSync();if("view"===t.entityType){const a=fin.View.wrapSync(t),n=await a.getParentLayout();return await n.replaceView(t,{manifestUrl:e.manifest,url:void 0,target:void 0}),a.destroy()}return a.createView({name:void 0,url:void 0,manifestUrl:e.manifest,target:void 0})}(e,t);case l.External:return fin.System.launchExternalProcess({path:e.manifest,uuid:e.appId});default:return fin.Application.startFromManifest(e.manifest)}}let Ns;const Vs=()=>{if(!Ns){const e=ge(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-app-directory`);Ns=e()}return Ns};async function Ls(e){if(!await jt(e.identity))return[];return(await Vs()).dispatch(Ea.GetApps,e.req)}async function Us(e){if(!await jt(e.identity))return[];return(await Vs()).dispatch(Ea.GetSearchProviders,e)}async function _s(e){return(await Vs()).dispatch(Ea.GetCuratedContent,e)}async function Os(e){return(await Vs()).dispatch(Ea.GetRecentlyVisited,e)}async function Gs(e){const t=(await Ee()).map(async e=>{const t=await e.getOptions();t.workspacePlatform?.pages&&t.layout&&await(async e=>(await Da(e)).dispatch(La.UpdatePagesWindowOptions))(e.identity)});return await Promise.all(t),e?e():fa()}let Hs=[];const $s=()=>Hs;async function Ks(e){const t=e=>{if(!e.includes("#")&&!e.includes("rgb")&&!e.includes("hsl"))throw new Error("Background primary color is not the right format.")};e?.forEach(e=>{"palette"in e&&t(e.palette.backgroundPrimary),"palettes"in e&&(t(e.palettes.dark.backgroundPrimary),t(e.palettes.light.backgroundPrimary))});const a=((e,t)=>{if(we("ThemeStorage: initialiseStoragePalettes called",{customThemes:e,isWindows:t}),!e||!e[0]){we("ThemeStorage: Using default OpenFin theme");const{dark:e,light:a}=ft[0].palettes;return gn.setPalettes({dark:e,light:a},t),we("ThemeStorage: Default theme set successfully"),ft}{const a=e[0];if(we("ThemeStorage: Using custom theme",a),"default"in a&&a.default&&(a.default,gn.setThemeDefaultScheme(a.default)),"palette"in a){we("ThemeStorage: Processing single palette theme");const{palette:n}=a,o={...kt,...n};return gn.setPalettes({dark:o,light:o},t),a.palette=o,we("ThemeStorage: Single palette theme set successfully"),e}if("palettes"in a){we("ThemeStorage: Processing dual palettes theme");const{dark:n,light:o}=a.palettes,r={...kt,...n},i={...mt,...o};return gn.setPalettes({dark:r,light:i},t),a.palettes={dark:r,light:i},we("ThemeStorage: Dual palettes theme set successfully"),e}}})(e,await di());Hs=a}const zs=(e,t)=>a=>{const n=null!==e;return class extends a{constructor(){super(),this.isWorkspacePlatform=()=>({isWorkspacePlatform:!0,isBrowserInitialized:!!e,analytics:{isSupported:!0}}),this.detachPagesFromWindow=vo,this.getAllAttachedPages=uo,this.getPagesForWindow=Po,this.getPageForWindow=Co,this.markUnsavedPagesAsSavedInternal=Eo,this.launchApp=Fs,this.savePage=fo,this.saveWorkspace=ur,this.createSavedPageInternal=go,this.updateSavedPageInternal=ko,this.deleteSavedPageInternal=mo,this.reorderPagesForWindow=Mo,this.getUniquePageTitle=xo,this.updatePageForWindow=yo,this.getLastFocusedBrowserWindow=Fr,this.getThemes=$s,this.invokeCustomActionInternal=Gr,this.requestQuitPlatformDialogInternal=Ps,this.getCurrentWorkspace=lr,this.setActiveWorkspace=sr,this.getLanguageResourcesInternal=Wr,this.getPageByViewIdentity=async e=>{const t=await fin.Platform.Layout.getLayoutByViewIdentity(e),a=t.identity;if(!("layoutName"in a))throw new Error("Failed to get layout's identity");const n=await xn().Browser.wrapSync(t.identity).getPages(),o=n.findIndex(e=>e.layoutName===a.layoutName);if(-1===o)throw new Error("Failed to get page's index");return{windowIdentity:{name:t.identity.name,uuid:t.identity.uuid},page:n[o],pageIndex:o}},this.openGlobalContextMenuInternal=this.openGlobalContextMenuInternal.bind(this),this.openGlobalContextMenu=this.openGlobalContextMenu.bind(this),this.getSavedPages=this.getSavedPages.bind(this),this.getSavedPage=this.getSavedPage.bind(this),this.createSavedPage=this.createSavedPage.bind(this),this.updateSavedPage=this.updateSavedPage.bind(this),this.deleteSavedPage=this.deleteSavedPage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.attachPagesToWindow=this.attachPagesToWindow.bind(this),this.openViewTabContextMenuInternal=this.openViewTabContextMenuInternal.bind(this),this.openViewTabContextMenu=this.openViewTabContextMenu.bind(this),this.openPageTabContextMenuInternal=this.openPageTabContextMenuInternal.bind(this),this.openPageTabContextMenu=this.openPageTabContextMenu.bind(this),this.getSavedWorkspaces=this.getSavedWorkspaces.bind(this),this.getSavedWorkspacesMetadata=this.getSavedWorkspacesMetadata.bind(this),this.getSavedWorkspace=this.getSavedWorkspace.bind(this),this.createSavedWorkspace=this.createSavedWorkspace.bind(this),this.updateSavedWorkspace=this.updateSavedWorkspace.bind(this),this.deleteSavedWorkspace=this.deleteSavedWorkspace.bind(this),this.getCurrentWorkspace=this.getCurrentWorkspace.bind(this),this.getDockProviderConfig=this.getDockProviderConfig.bind(this),this.saveDockProviderConfig=this.saveDockProviderConfig.bind(this),this.applyWorkspace=this.applyWorkspace.bind(this),this.restoreLastSavedWorkspaceInternal=this.restoreLastSavedWorkspaceInternal.bind(this),this.setActiveWorkspace=this.setActiveWorkspace.bind(this),this.openSaveButtonContextMenu=this.openSaveButtonContextMenu.bind(this),this.openSaveButtonContextMenuInternal=this.openSaveButtonContextMenuInternal.bind(this),this.getSelectedScheme=this.getSelectedScheme.bind(this),this.setSelectedScheme=this.setSelectedScheme.bind(this),this.analyticsInternal=this.analyticsInternal.bind(this),this.handleAnalytics=this.handleAnalytics.bind(this),this.getLanguage=this.getLanguage.bind(this),this.setLanguage=this.setLanguage.bind(this),this.handleSaveModalOnPageClose=this.handleSaveModalOnPageClose.bind(this),this.shouldPageClose=this.shouldPageClose.bind(this),this.shouldWindowClose=this.shouldWindowClose.bind(this),this.handlePagesAndWindowClose=this.handlePagesAndWindowClose.bind(this),this.setActivePage=this.setActivePage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.copyPage=this.copyPage.bind(this),this.addPage=this.addPage.bind(this),this.addDefaultPage=this.addDefaultPage.bind(this),this.markUnsavedPagesAsSavedInternal=this.markUnsavedPagesAsSavedInternal.bind(this),this.trackRemovedTabInternal=this.trackRemovedTabInternal.bind(this),this.restoreRemovedTabInternal=this.restoreRemovedTabInternal.bind(this),this.trackVisitedSiteInternal=this.trackVisitedSiteInternal.bind(this),this.getRecentlyVisitedSitesInternal=this.getRecentlyVisitedSitesInternal.bind(this),this.getFrequentlyVisitedSitesInternal=this.getFrequentlyVisitedSitesInternal.bind(this),this.searchSitesInternal=this.searchSitesInternal.bind(this),this.getSearchProvidersInternal=this.getSearchProvidersInternal.bind(this),this.getCuratedContentInternal=this.getCuratedContentInternal.bind(this),this.handleRequestNavigationInternal=this.handleRequestNavigationInternal.bind(this),this.refreshBookmarksInternal=this.refreshBookmarksInternal.bind(this),this.launchBookmarkInternal=this.launchBookmarkInternal.bind(this),this.getNotificationsConfig=this.getNotificationsConfig.bind(this),this.updateDockFavoritesInternal=this.updateDockFavoritesInternal.bind(this),this.updateContentMenuInternal=this.updateContentMenuInternal.bind(this),this.launchDockEntryInternal=this.launchDockEntryInternal.bind(this),this.setDockFavoritesOrderInternal=this.setDockFavoritesOrderInternal.bind(this),this.navigateContentMenuInternal=this.navigateContentMenuInternal.bind(this),this.setDefaultDockButtonsOrderInternal=this.setDefaultDockButtonsOrderInternal.bind(this),this.getDockWorkspacesContextMenuInternal=this.getDockWorkspacesContextMenuInternal.bind(this),this.handleDockWorkspacesMenuResponseInternal=this.handleDockWorkspacesMenuResponseInternal.bind(this),this.refreshDockCollectionMenuInternal=this.refreshDockCollectionMenuInternal.bind(this),this.launchCollectionInternal=this.launchCollectionInternal.bind(this),this.removeDockFavoriteInternal=this.removeDockFavoriteInternal.bind(this),this.addDockFavoriteInternal=this.addDockFavoriteInternal.bind(this),this.focusAndExpandSearchInternal=this.focusAndExpandSearchInternal.bind(this),this.sendUpdateVersionModalResponseInternal=this.sendUpdateVersionModalResponseInternal.bind(this),this.requestQuitPlatformDialogInternal=Ps.bind(this),this.showUpdateVersionModalInternal=Cs.bind(this)}async applyWorkspace(...e){return rr.apply(this,e)}async restoreLastSavedWorkspaceInternal(...e){return ir.apply(this,e)}async getSnapshot(){const e=n?await Gs(async()=>fa(await super.getSnapshot(void 0,fin.me.identity))):await fa(await super.getSnapshot(void 0,fin.me.identity));let t={...e,windows:e.windows.filter(fs).map(ka)};return t=(e=>{const t=bs(e);return t.windows.forEach(e=>{e.layout&&(e.layout=Bs(e.layout)),e.workspacePlatform?.pages?.forEach(e=>{e?.layout&&(e.layout=Bs(e.layout))})}),t})(t),t}async getViewSnapshot(e){let t=await super.getViewSnapshot(e);return t=Is(t),t}async applySnapshot({snapshot:e,options:t}){let a=e;"string"==typeof a&&(a=await super.fetchManifest({manifestUrl:a},fin.me.identity));const o=function(e){for(const t of e.windows)if(t.workspacePlatform?.pages?.length)return!0;return!1}(a);if(!n&&o)throw new Error("This snapshot cannot be applied as the platform has been initialized without the browser.");return a=(e=>{const t=bs(e);return t.windows.forEach(e=>{e.layout=Es(e.layout),e.workspacePlatform?.pages?.forEach(e=>{e.layout=Es(e.layout)})}),t})(a),super.applySnapshot({snapshot:a,options:t})}async createWindow(t,a){if(n&&"tearout"===t.reason){const e=await fin.Window.wrapSync(a).getOptions(),n=e.workspacePlatform?.windowType;t.taskbarIconGroup=e.taskbarIconGroup,n&&(t.workspacePlatform||={},t.workspacePlatform.windowType=e.workspacePlatform.windowType,n===C.Platform&&(t.url=e.url))}if(!n||t.workspacePlatform?.windowType===C.Platform){const e=await super.createWindow(t,a);return ia({type:"Window",action:"Open Window",value:e.identity.name,data:{uuid:e.identity.uuid}}),e}var o;o={allowed:!0},aa||(aa=!0,ta(ea.Browser,o)),((e=[])=>{const t=e.filter(e=>e.type!==S.Custom),a=new Set,n=[];for(const e of t)a.has(e.type)&&n.push(e.type),a.add(e.type);if(n.length>0){const e=n.join(", ");throw new Error(`Encountered a duplicate "${e}" toolbar button. No more than one instance of a button type may be provided.`)}})(t.workspacePlatform?.toolbarOptions?.buttons);let r=(e=>"workspacePlatform"in e?e:(({workstacks:e,pages:t,...a})=>({...a,workspacePlatform:{pages:t||e||null}}))(e))(t);r=await Ss(r,e,{themes:$s(),selectedScheme:this.getSelectedScheme()}),r=await(async e=>{const t=await fin.System.getMonitorInfo();let a=t.primaryMonitor;const n=e.defaultLeft,o=e.defaultTop;t.nonPrimaryMonitors.forEach(e=>{const{top:t,bottom:r,left:i,right:s}=e.availableRect;n>=i&&n<=s&&o>=t&&o<=r&&(a=e)});const r=a.availableRect.bottom-a.availableRect.top,i=a.availableRect.right-a.availableRect.left;return e.defaultHeight=Math.min(e.defaultHeight||800,r),e.defaultWidth=Math.min(e.defaultWidth||800,i),e})(r);const i=await(e=>async(t,a)=>{let n=!1;const o=await e(t,a);return t?.workspacePlatform?._internalDeferShowOptions?.deferShowEnabled?(await o.addListener("show-requested",async()=>{if(n)return;const e=await o.getOptions();await o.updateOptions({workspacePlatform:{...e.workspacePlatform,_internalDeferShowOptions:{...e.workspacePlatform._internalDeferShowOptions,autoShow:!0}}}),n=!0}),o):o})((e,t)=>super.createWindow(e,t))(r,a);return ia({type:"Window",action:"Open Window",value:i.identity.name,data:{uuid:i.identity.uuid}}),i}async createView(t,a){t.opts=Wn(t.opts,e?.defaultViewOptions),t.opts=await Ms(t.opts,this.fetchManifest,a),t.opts=await(async e=>{const t=bs(e),a=t.workspacePlatform?.browserNavigationButtons;if(a){const e=Object.keys(a);for(const n of e)if(a[n]){const e=(await Rs())[n];t.hotkeys?t.hotkeys.push(...e):t.hotkeys=[...e]}}return t})(t.opts),t.opts=xs(t.opts);const n=await super.createView(t,a);return Ds(n.identity,t.opts._internalWorkspaceData?.browserNavigationButtons),n}async replaceView(t,a){return t.opts.newView=await Wn(t.opts.newView,e?.defaultViewOptions),t.opts.newView=await Ms(t.opts.newView,this.fetchManifest,a),super.replaceView(t,a)}async replaceLayout(e,t){return await jt(t)||delete e.opts.layout?.dimensions,super.replaceLayout(e,t)}async getSavedPage(...e){return ti.apply(this,e)}async getSavedPages(...e){return ai.apply(this,e)}async createSavedPage(...e){return ni.apply(this,e)}async deleteSavedPage(...e){return oi.apply(this,e)}async updateSavedPage(...e){return ri.apply(this,e)}async getSavedWorkspace(...e){return ds.apply(this,e)}async getSavedWorkspaces(...e){return us.apply(this,e)}async getSavedWorkspacesMetadata(...e){return(await this.getSavedWorkspaces(...e)).map(e=>({workspaceId:e.workspaceId,title:e.title}))}async createSavedWorkspace(...e){return ps.apply(this,e)}async deleteSavedWorkspace(...e){return ws.apply(this,e)}async updateSavedWorkspace(...e){return hs.apply(this,e)}async getDockProviderConfig(...e){return is.apply(this,e)}async saveDockProviderConfig(...e){return ss.apply(this,e)}async attachPagesToWindow(t){const a=await ms(t.pages,e);await oo(a),await bo({...t,pages:a})}async addPage(e){const t=await jt(e.identity),a=await wt(e.identity),{page:n,insertionIndex:o}=e;n?.title||t||(n.title=await a.dispatch(lt.GetUniquePageTitle,void 0));const r=(await this.getAllAttachedPages()).find(e=>e.pageId===n.pageId||e.title===n.title);if(r){if(r.pageId===n.pageId)throw new Error(`page with id ${n.pageId} is already attached to a browser window ${r.parentIdentity.name}`);if(!t)throw new Error(`addPage title collision, page with title ${n.title} already exists, conflicting page id: ${r.pageId} with title ${r.title}`)}const i={identity:e.identity,pages:[{...n,multiInstanceViewBehavior:e.multiInstanceViewBehavior||"duplicate"}],insertionIndex:o};await this.attachPagesToWindow(i)}async addDefaultPage(e){await this.addPage(e),await this.setActivePage({identity:e.identity,pageId:e.page.pageId})}async setActivePage(...e){return So.apply(this,e)}async openGlobalContextMenuInternal(...e){return Zi.apply(this,e)}async openGlobalContextMenu(...e){return Ji.apply(this,[...e,Jr.GlobalMenu,qi.BottomRight])}async openViewTabContextMenuInternal(...e){return ji.apply(this,e)}async openViewTabContextMenu(...e){return Ji.apply(this,[...e,Jr.ContextMenu])}async openPageTabContextMenuInternal(...e){return Qi.apply(this,e)}async openPageTabContextMenu(...e){return Ji.apply(this,[...e,Jr.ContextMenu])}async openSaveButtonContextMenu(...e){return Ji.apply(this,e)}async openSaveButtonContextMenuInternal(...e){return Yi.apply(this,e)}getSelectedScheme(...e){return Mn.apply(this,e)}async setSelectedScheme(...e){return Cn.apply(this,e)}async handlePageChanges(...e){return Bo.apply(this,e)}async analyticsInternal(...e){return $o.apply(this,e)}async handleAnalytics(...e){}async handleSaveModalOnPageClose(...e){return Ao.apply(this,e)}async shouldPageClose(...e){return Wo.apply(this,e)}async shouldWindowClose(...e){return Ro.apply(this,e)}handlePagesAndWindowClose(...e){return Do.apply(this,e)}async copyPage(...e){return To.apply(this,e)}async getNotificationsConfig(){return t}async setLanguage(...e){return Ar.apply(this,e)}async getLanguage(){return xr.apply(this)}async trackRemovedTabInternal(...e){return ii.apply(this,e)}async restoreRemovedTabInternal(){const e=await(async()=>{if(!ei)throw new Error("Unable to pop last removed tab - IndexDB not supported");const e=ei[Qr],t=await e.toCollection().keys();if(t.length>0){const a=Math.max(...t.map(e=>Number(e))).toString(),n=await e.get(a);if(n){await e.delete(a);const{id:t,...o}=n;return o}}})();if("page"in e)if(await Ne(e.identity)){const t=xn().Browser.wrapSync(e.identity);await t.addPage(e.page),await t.setActivePage(e.page.pageId)}else xn().createWindow({name:e.identity.name,workspacePlatform:{pages:[e.page],windowType:C.Browser}});else(function(e){return"window"in e})(e)&&xn().createWindow({workspacePlatform:{pages:e.window.pages,windowType:C.Browser}})}async trackVisitedSiteInternal(...e){return ci.apply(this,e)}async getRecentlyVisitedSitesInternal(...e){return await Os.apply(this,e)}async getFrequentlyVisitedSitesInternal(...e){return li.apply(this,e)}async searchSitesInternal(...e){return await Ls.apply(this,e)}async getSearchProvidersInternal(...e){return await Us.apply(this,e)}async getCuratedContentInternal(...e){return await _s.apply(this,e)}async handleRequestNavigationInternal(...e){}async launchBookmarkInternal(e){return pi(e)}async refreshBookmarksInternal(){const e=await xn().Browser.getAllWindows();Promise.all([Promise.all(e.map(async({identity:e})=>{(await Da(e)).dispatch(La.RefreshBookmarksInternal)})).catch(e=>{}),(async()=>{(await Ra(Kr())).dispatch(La.RefreshBookmarksInternal)})().catch(e=>{}),ts().catch(e=>{})]).catch(()=>{})}async updateDockFavoritesInternal(e){return(async e=>{const t=await es();if(!t)throw new Error("Companion Dock window not found");{const a=await Da(t.identity,Xi);await a.dispatch(Na.UpdateFavoriteEntries,e)}})(e)}async updateContentMenuInternal(e){return(async e=>{const t=await es();if(!t)throw new Error("Companion Dock window not found");{const a=await Da(t.identity,Xi);await a.dispatch(Na.UpdateContentMenu,e)}})(e)}async launchDockEntryInternal(e){return(async e=>(await as()).dispatch("launch-entry",e))(e)}async setDefaultDockButtonsOrderInternal(e){return(async e=>(await as()).dispatch("set-default-dock-buttons-order",e))(e)}async setDockFavoritesOrderInternal(e){return(async e=>(await as()).dispatch("set-dock-favorites-order",e))(e)}async addDockFavoriteInternal(e){return(async e=>(await as()).dispatch("add-favorite-entry",e))(e)}async removeDockFavoriteInternal(e){return(async e=>(await as()).dispatch("remove-favorite-entry",e))(e)}async navigateContentMenuInternal(e){return(async e=>{const t=await es();if(!t)throw new Error("Companion Dock window not found");{const a=await Da(t.identity,Xi);await a.dispatch(Na.NavigateContentMenu,e)}})(e)}async getDockWorkspacesContextMenuInternal(){return(async()=>(await as()).dispatch("get-dock-workspaces-context-menu",void 0))()}async handleDockWorkspacesMenuResponseInternal(e){return(async e=>(await as()).dispatch("handle-dock-workspaces-menu-response",e))(e)}async refreshDockCollectionMenuInternal(e){return(async e=>{const t=await es();if(t){const a=await Da(t.identity,Xi);await a.dispatch(Na.RefreshDockCollectionMenu,e)}return(await as()).dispatch("refresh-dock-collection-menu",e)})(e)}async launchCollectionInternal(e){return(async e=>(await as()).dispatch("launch-collection",e))(e)}async focusAndExpandSearchInternal(){return ns()}async sendUpdateVersionModalResponseInternal(e){return cn(e)}async showUpdateVersionModalInternal(e,t){return Cs(e,t)}}};function qs(e,t,a){const n=zs(e,a);try{return"function"==typeof t?e=>t(n(e)):Array.isArray(t)?[...t,n]:e=>new(n(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}}const Js=["green","purple","orange","red","pink","yellow"],Zs="CONTEXT_GROUP_PAGE",js=()=>e=>class extends e{getContextGroups(){return super.getContextGroups().map(e=>Js.includes(e.displayMetadata?.name)?{...e,displayMetadata:{...e.displayMetadata,name:jn(e.displayMetadata?.name)}}:e)}},Qs=()=>{const e=new Set(Ui.keys());return t=>class extends t{constructor(){super(),this.onClientConnected=async e=>{if(e.name.startsWith("internal-generated-view")){const{page:t}=await xn().Browser.getPageByViewIdentity(e),a=t.contextGroup;this.joinContextGroup({contextGroupId:a??Zs,target:e},{uuid:this.fin.me.uuid,name:this.fin.me.name})}},this.selfAssignedClientMap=new Set;const e=this.interopClients.set;this.interopClients.set=(t,a)=>{e.call(this.interopClients,t,a),this.onClientConnected(a.clientIdentity)}}async joinContextGroup({contextGroupId:t,target:a},n){const{name:o,uuid:r}=n,i=`${r}-${o}`,{name:s,uuid:c}=a||{},l=a?`${c}-${s}`:"";if(!a)return this.selfAssignedClientMap.add(i),super.joinContextGroup({contextGroupId:t,target:a},n);if(!this.selfAssignedClientMap.has(l)){if(t!==Zs)return super.joinContextGroup({contextGroupId:t,target:a},n);try{const t=await xn().Browser.getPageByViewIdentity(a);if(this.selfAssignedClientMap.has(l))return;const o=t.page.layoutName;if(!o)throw new Error("View does not belong to a page");if(!e.has(o)&&(e.add(o),!this.contextGroupsById.has(o))){const e=new Map;this.contextGroupsById.set(o,e)}await super.joinContextGroup({contextGroupId:o,target:a},n),a.name}catch(e){JSON.stringify(a),e.stack}}}getContextGroups(){return Array.from(e).map(e=>({id:e,displayMetadata:Ui.get(e)??{}}))}setContextForGroup(e,t){if(!this.contextGroupsById.has(t)){const e=new Map;this.contextGroupsById.set(t,e)}return super.setContextForGroup(e,t)}}},Ys=(e,t)=>{const a=(e=>Qt(e)?Qs():js())(t);try{return"function"==typeof e?t=>e(a(t)):Array.isArray(e)?[...e,a]:e=>new(a(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}};async function Xs(){(async()=>{Ce().on("window-closed",_r)})(),async function(){const e=fin.Application.getCurrentSync(),t=await Nr();await Promise.all(t.map(async e=>{await Lr(e.identity,void 0,!0)}));const a=await fin.System.getFocusedWindow();a&&a.name.startsWith(Me.BrowserWindow)&&await Lr(a,void 0,!0),await e.addListener("window-focused",async e=>{await Lr(e,void 0,!0)}),await e.addListener("window-minimized",async e=>{await Lr(e,!1)}),await e.addListener("window-restored",async e=>{await Lr(e,!0)}),await e.addListener("window-closed",Ur)}();sr(await cr())}let ec;function tc({overrideCallback:e,interopOverride:t,browser:a,notifications:n,analytics:o,integrations:r=[],workspaceAsar:i}){if(!W)throw new Error("Cannot be used outside an OpenFin env.");return ec||(ec=(async()=>{const s=fin.Platform.getCurrentSync();var c,l;if(s.once("platform-api-ready",()=>Xs()),s.on("window-show-all-downloads",({name:e,uuid:t})=>{Sr({name:e,uuid:t})}),a?.title&&(c=a.title,Gi=c),Ko(o),i){const e=`workspace-${encodeURIComponent(fin.me.uuid)}`,{baseUrl:t}=await fin.System.serveAsset({...i,hostName:e});X(t)}a?.browserBaseUrl&&X(a.browserBaseUrl),Qt(a)&&(eo=!0,l=a,Xn=l?.aiPanelOptions,ao());const d=mn();var u;return d.setWorkspaceStorage(Rt(`${B}-workspace`)),d.trySynchronizeWorkspaceStorage(),await fin.Platform.init({overrideCallback:qs(a,e||a?.overrideCallback,n),interopOverride:Ys(t||a?.interopOverride,a)}),u={allowed:!0},ta(ea.Platform,u),await Promise.all(r.map(async e=>{((e,t)=>{ta(`${ea.Microflow}:${e}`,t,"integration-feature")})(e.workflowIntegrationName,{allowed:!0,apiVersion:_}),await e._initializeWorkflows()})),s})()),ec}const ac=async({theme:e,customActions:t,language:a,...n})=>{const o=_.split(".").map(e=>parseInt(e)),r=await(async e=>{if((await Y()).disableRuntimeValidation)return!0;if(await jt())return!0;const t=(await fin.System.getVersion()).split(".").map(e=>parseInt(e));return e.every((a,n)=>!(n<3)||t[n]===e[n])})(o);if(!r)throw new Error(`Runtime version is not supported. ${o[0]}.${o[1]}.${o[2]}.* is required`);var i;Ks(e),e&&(i={allowed:!0},ta(ea.Theming,i)),t&&(Or=t),await Rr(a?.initialLanguage);return await tc(n)}})(),module.exports=n})();
|
|
1
|
+
(()=>{var e={877:()=>{},67:()=>{},516:(e,t)=>{var a={9037:function(e,t,a){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbaColor=t.getMostReadable=t.darkenColor=t.lightenColor=void 0;const o=n(a(6535)),r=(e,t,a)=>{if(a&&(a<0||a>100))throw new Error(`${a} must be a number between 0 and 100`);return(0,o.default)(e)[t](a).toString()};t.lightenColor=(e,t)=>r(e,"lighten",t),t.darkenColor=(e,t)=>r(e,"darken",t),t.getMostReadable=(e,t)=>o.default.mostReadable(e,t).toHexString(),t.toRgbaColor=(e,t=1)=>(0,o.default)(e).setAlpha(t).toRgbString()},5820:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IconSize=t.Transition=t.LineHeight=t.FontWeight=t.FontSize=t.FontFamily=t.Shadow=t.Radius=t.UnitPx=t.Unit=t.SizeName=t.Size=t.Color=void 0,t.Color={white:"#FFFFFF",lightGray1:"#FAFBFE",lightGray2:"#F3F5F8",lightGray3:"#ECEEF1",lightGray4:"#DDDFE4",lightGray5:"#C9CBD2",neutralGray:"#7D808A",neutralGray80:"rgba(125,128,138,0.8)",silverGray:"#C0C1C2",darkGray1:"#53565F",darkGray2:"#383A40",darkGray3:"#2F3136",darkGray4:"#24262B",darkGray5:"#1E1F23",darkGray6:"#111214",openFinDarkest:"#3D39CD",openFinDarker:"#4642E0",openFin:"#504CFF",openFinLight:"#5254FB",openFinLighter:"#5C5EFE",openFinLightest:"#6864FF",functional1:"#207735",functional2:"#46C8F1",functional3:"#0A76D3",functional4:"#6CADE5",functional5:"#0A76D3",functional6:"#882BFE",functional7:"#F31818",functional8:"#C93400",functional9:"#FF5E60",functional10:"#F48F00",purple:"#8C61FF",lightblue:"#36C3FE",aqua:"#00CC88",yellow:"#FFEB00",salmon:"#FF8C4C",pink:"#FF5E60",lightpink:"#FF8FB8",white00:"rgba(255,255,255,0.0)",white10:"rgba(255,255,255,0.1)",white20:"rgba(255,255,255,0.2)",white30:"rgba(255,255,255,0.3)",white40:"rgba(255,255,255,0.4)",white50:"rgba(255,255,255,0.5)",white60:"rgba(255,255,255,0.6)",white70:"rgba(255,255,255,0.7)",white80:"rgba(255,255,255,0.8)",white90:"rgba(255,255,255,0.9)",black00:"rgba(0,0,0,0.0)",black10:"rgba(0,0,0,0.1)",black20:"rgba(0,0,0,0.2)",black30:"rgba(0,0,0,0.3)",black40:"rgba(0,0,0,0.4)",black50:"rgba(0,0,0,0.5)",black60:"rgba(0,0,0,0.6)",black70:"rgba(0,0,0,0.7)",black80:"rgba(0,0,0,0.8)",black90:"rgba(0,0,0,0.9)",transparent:"transparent",openFinActive:"#4642FF",openFinHover:"#6965FF",lightGray4Active:"#D7DADF",lightGray4Hover:"#EBECEF",darkGray2Active:"#33353B",darkGray2Hover:"#44464E"},t.Size={xsmall:"xsmall",small:"small",base:"base",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge",xxxxlarge:"xxxxlarge"},t.SizeName={[t.Size.xsmall]:"Extra Small",[t.Size.small]:"Small",[t.Size.base]:"Base",[t.Size.large]:"Large",[t.Size.xlarge]:"Extra Large",[t.Size.xxlarge]:"2X Large",[t.Size.xxxlarge]:"3X Large",[t.Size.xxxxlarge]:"4X Large"},t.Unit={[t.Size.xsmall]:4,[t.Size.small]:8,[t.Size.base]:12,[t.Size.large]:16,[t.Size.xlarge]:20,[t.Size.xxlarge]:24,[t.Size.xxxlarge]:32,[t.Size.xxxxlarge]:48},t.UnitPx={[t.Size.xsmall]:"4px",[t.Size.small]:"8px",[t.Size.base]:"12px",[t.Size.large]:"16px",[t.Size.xlarge]:"20px",[t.Size.xxlarge]:"24px",[t.Size.xxxlarge]:"32px",[t.Size.xxxxlarge]:"48px"},t.Radius={[t.Size.xsmall]:"2px",[t.Size.small]:"4px",[t.Size.base]:"8px",[t.Size.large]:"24px",pill:"100vh",round:"50%",none:"0"},t.Shadow={[t.Size.base]:"0 4px 4px rgba(0, 0, 0, 0.25)"},t.FontFamily=["Inter","system-ui","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"].join(","),t.FontSize={[t.Size.xsmall]:"8px",[t.Size.small]:"10px",[t.Size.base]:"12px",[t.Size.large]:"14px",[t.Size.xlarge]:"16px",[t.Size.xxlarge]:"18px",[t.Size.xxxlarge]:"20px",[t.Size.xxxxlarge]:"40px"},t.FontWeight={normal:400,bold:600},t.LineHeight={ui:1,heading:1.2,text:1.5},t.Transition={base:"200ms cubic-bezier(0.16, 1, 0.3, 1)",none:"0ms"},t.IconSize={[t.Size.xsmall]:t.UnitPx.small,[t.Size.small]:t.UnitPx.base,[t.Size.base]:"15px",[t.Size.large]:t.UnitPx.xlarge,[t.Size.xlarge]:t.UnitPx.xxlarge,[t.Size.xxlarge]:t.UnitPx.xxxlarge,[t.Size.xxxlarge]:t.UnitPx.xxxxlarge}},1848:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTheme=void 0;const n=a(5820),o=a(9037),r=a(4502),i={fontFamily:n.FontFamily,fontSize:n.FontSize,fontWeight:n.FontWeight,lineHeight:n.LineHeight,iconSize:n.IconSize,radius:n.Radius,shadow:n.Shadow,transition:n.Transition,unit:n.Unit,px:n.UnitPx},s=(e,t)=>({[`${e}Active`]:(0,o.darkenColor)(t,2),[`${e}Hover`]:(0,o.lightenColor)(t,5),[`${e}Focused`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5]),[`${e}Text`]:(0,o.getMostReadable)(t,[n.Color.white,n.Color.darkGray5])});t.createTheme=e=>Object.assign(Object.assign({},i),{palette:Object.assign(Object.assign(Object.assign({},s(r.Palette.brandPrimary,e.brandPrimary)),s(r.Palette.brandSecondary,e.brandSecondary)),e)})},4502:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Palette=void 0,t.Palette={background1:"background1",background2:"background2",background3:"background3",background4:"background4",background5:"background5",background6:"background6",brandPrimary:"brandPrimary",brandSecondary:"brandSecondary",brandPrimaryActive:"brandPrimaryActive",brandPrimaryHover:"brandPrimaryHover",brandPrimaryFocused:"brandPrimaryFocused",brandPrimaryText:"brandPrimaryText",brandSecondaryActive:"brandSecondaryActive",brandSecondaryHover:"brandSecondaryHover",brandSecondaryFocused:"brandSecondaryFocused",brandSecondaryText:"brandSecondaryText",inputBackground:"inputBackground",inputColor:"inputColor",inputPlaceholder:"inputPlaceholder",inputDisabled:"inputDisabled",inputFocused:"inputFocused",inputBorder:"inputBorder",statusSuccess:"statusSuccess",statusWarning:"statusWarning",statusCritical:"statusCritical",statusActive:"statusActive",textDefault:"textDefault",textHelp:"textHelp",textInactive:"textInactive",borderNeutral:"borderNeutral",contentBackground1:"contentBackground1",contentBackground2:"contentBackground2",contentBackground3:"contentBackground3",contentBackground4:"contentBackground4",contentBackground5:"contentBackground5",linkDefault:"linkDefault",linkHover:"linkHover"}},6535:function(e){e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var t=/^\s+/,a=/\s+$/;function n(o,r){if(r=r||{},(o=o||"")instanceof n)return o;if(!(this instanceof n))return new n(o,r);var i=function(n){var o,r,i,s={r:0,g:0,b:0},c=1,l=null,d=null,u=null,p=!1,w=!1;return"string"==typeof n&&(n=function(e){e=e.replace(t,"").replace(a,"").toLowerCase();var n,o=!1;if(y[e])e=y[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=B.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=B.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=B.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=B.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=B.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=B.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=B.hex8.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),a:W(n[4]),format:o?"name":"hex8"}:(n=B.hex6.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),format:o?"name":"hex"}:(n=B.hex4.exec(e))?{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),a:W(n[4]+""+n[4]),format:o?"name":"hex8"}:!!(n=B.hex3.exec(e))&&{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),format:o?"name":"hex"}}(n)),"object"==e(n)&&(E(n.r)&&E(n.g)&&E(n.b)?(o=n.r,r=n.g,i=n.b,s={r:255*P(o,255),g:255*P(r,255),b:255*P(i,255)},p=!0,w="%"===String(n.r).substr(-1)?"prgb":"rgb"):E(n.h)&&E(n.s)&&E(n.v)?(l=x(n.s),d=x(n.v),s=function(e,t,a){e=6*P(e,360),t=P(t,100),a=P(a,100);var n=Math.floor(e),o=e-n,r=a*(1-t),i=a*(1-o*t),s=a*(1-(1-o)*t),c=n%6;return{r:255*[a,i,r,r,s,a][c],g:255*[s,a,a,i,r,r][c],b:255*[r,r,s,a,a,i][c]}}(n.h,l,d),p=!0,w="hsv"):E(n.h)&&E(n.s)&&E(n.l)&&(l=x(n.s),u=x(n.l),s=function(e,t,a){var n,o,r;function i(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}if(e=P(e,360),t=P(t,100),a=P(a,100),0===t)n=o=r=a;else{var s=a<.5?a*(1+t):a+t-a*t,c=2*a-s;n=i(c,s,e+1/3),o=i(c,s,e),r=i(c,s,e-1/3)}return{r:255*n,g:255*o,b:255*r}}(n.h,l,u),p=!0,w="hsl"),n.hasOwnProperty("a")&&(c=n.a)),c=S(c),{ok:p,format:n.format||w,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:c}}(o);this._originalInput=o,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||i.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=i.ok}function o(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=(r+i)/2;if(r==i)n=o=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,l:s}}function r(e,t,a){e=P(e,255),t=P(t,255),a=P(a,255);var n,o,r=Math.max(e,t,a),i=Math.min(e,t,a),s=r,c=r-i;if(o=0===r?0:c/r,r==i)n=0;else{switch(r){case e:n=(t-a)/c+(t<a?6:0);break;case t:n=(a-e)/c+2;break;case a:n=(e-t)/c+4}n/=6}return{h:n,s:o,v:s}}function i(e,t,a,n){var o=[I(Math.round(e).toString(16)),I(Math.round(t).toString(16)),I(Math.round(a).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function s(e,t,a,n){return[I(A(n)),I(Math.round(e).toString(16)),I(Math.round(t).toString(16)),I(Math.round(a).toString(16))].join("")}function c(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s-=t/100,a.s=C(a.s),n(a)}function l(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.s+=t/100,a.s=C(a.s),n(a)}function d(e){return n(e).desaturate(100)}function u(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l+=t/100,a.l=C(a.l),n(a)}function p(e,t){t=0===t?0:t||10;var a=n(e).toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(-t/100*255))),a.g=Math.max(0,Math.min(255,a.g-Math.round(-t/100*255))),a.b=Math.max(0,Math.min(255,a.b-Math.round(-t/100*255))),n(a)}function w(e,t){t=0===t?0:t||10;var a=n(e).toHsl();return a.l-=t/100,a.l=C(a.l),n(a)}function h(e,t){var a=n(e).toHsl(),o=(a.h+t)%360;return a.h=o<0?360+o:o,n(a)}function g(e){var t=n(e).toHsl();return t.h=(t.h+180)%360,n(t)}function m(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var a=n(e).toHsl(),o=[n(e)],r=360/t,i=1;i<t;i++)o.push(n({h:(a.h+i*r)%360,s:a.s,l:a.l}));return o}function k(e){var t=n(e).toHsl(),a=t.h;return[n(e),n({h:(a+72)%360,s:t.s,l:t.l}),n({h:(a+216)%360,s:t.s,l:t.l})]}function f(e,t,a){t=t||6,a=a||30;var o=n(e).toHsl(),r=360/a,i=[n(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(n(o));return i}function b(e,t){t=t||6;for(var a=n(e).toHsv(),o=a.h,r=a.s,i=a.v,s=[],c=1/t;t--;)s.push(n({h:o,s:r,v:i})),i=(i+c)%1;return s}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,a,n=this.toRgb();return e=n.r/255,t=n.g/255,a=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))},setAlpha:function(e){return this._a=S(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=r(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=r(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+a+"%, "+n+"%)":"hsva("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=o(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=o(this._r,this._g,this._b),t=Math.round(360*e.h),a=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+a+"%, "+n+"%)":"hsla("+t+", "+a+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return i(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,a,n,o){var r=[I(Math.round(e).toString(16)),I(Math.round(t).toString(16)),I(Math.round(a).toString(16)),I(A(n))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*P(this._r,255))+"%",g:Math.round(100*P(this._g,255))+"%",b:Math.round(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%)":"rgba("+Math.round(100*P(this._r,255))+"%, "+Math.round(100*P(this._g,255))+"%, "+Math.round(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(v[i(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+s(this._r,this._g,this._b,this._a),a=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=n(e);a="#"+s(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+a+")"},toString:function(e){var t=!!e;e=e||this._format;var a=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(a=this.toRgbString()),"prgb"===e&&(a=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(a=this.toHexString()),"hex3"===e&&(a=this.toHexString(!0)),"hex4"===e&&(a=this.toHex8String(!0)),"hex8"===e&&(a=this.toHex8String()),"name"===e&&(a=this.toName()),"hsl"===e&&(a=this.toHslString()),"hsv"===e&&(a=this.toHsvString()),a||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var a=e.apply(null,[this].concat([].slice.call(t)));return this._r=a._r,this._g=a._g,this._b=a._b,this.setAlpha(a._a),this},lighten:function(){return this._applyModification(u,arguments)},brighten:function(){return this._applyModification(p,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(l,arguments)},greyscale:function(){return this._applyModification(d,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(f,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(b,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(m,[3])},tetrad:function(){return this._applyCombination(m,[4])}},n.fromRatio=function(t,a){if("object"==e(t)){var o={};for(var r in t)t.hasOwnProperty(r)&&(o[r]="a"===r?t[r]:x(t[r]));t=o}return n(t,a)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,t,a){a=0===a?0:a||50;var o=n(e).toRgb(),r=n(t).toRgb(),i=a/100;return n({r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a})},n.readability=function(e,t){var a=n(e),o=n(t);return(Math.max(a.getLuminance(),o.getLuminance())+.05)/(Math.min(a.getLuminance(),o.getLuminance())+.05)},n.isReadable=function(e,t,a){var o,r,i,s,c,l=n.readability(e,t);switch(r=!1,(i=a,"AA"!==(s=((i=i||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==s&&(s="AA"),"small"!==(c=(i.size||"small").toLowerCase())&&"large"!==c&&(c="small"),o={level:s,size:c}).level+o.size){case"AAsmall":case"AAAlarge":r=l>=4.5;break;case"AAlarge":r=l>=3;break;case"AAAsmall":r=l>=7}return r},n.mostReadable=function(e,t,a){var o,r,i,s,c=null,l=0;r=(a=a||{}).includeFallbackColors,i=a.level,s=a.size;for(var d=0;d<t.length;d++)(o=n.readability(e,t[d]))>l&&(l=o,c=n(t[d]));return n.isReadable(e,c,{level:i,size:s})||!r?c:(a.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],a))};var y=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},v=n.hexNames=function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&(t[e[a]]=a);return t}(y);function S(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var a=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),a&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function C(e){return Math.min(1,Math.max(0,e))}function M(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function x(e){return e<=1&&(e=100*e+"%"),e}function A(e){return Math.round(255*parseFloat(e)).toString(16)}function W(e){return M(e)/255}var R,D,T,B=(D="[\\s|\\(]+("+(R="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",T="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function E(e){return!!B.CSS_UNIT.exec(e)}return n}()}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={exports:{}};return a[e].call(r.exports,r,r.exports,o),r.exports}var r={};(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=e.Palette=e.Color=void 0;var t=o(5820);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return t.Color}});var a=o(4502);Object.defineProperty(e,"Palette",{enumerable:!0,get:function(){return a.Palette}});var n=o(1848);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return n.createTheme}})})();var i=t;for(var s in r)i[s]=r[s];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";a.r(n),a.d(n,{AppManifestType:()=>l,BookmarkItemContextMenuOptionType:()=>y,BrowserButtonType:()=>S,ColorSchemeOptionType:()=>k,CustomActionCallerType:()=>M,Dock:()=>u,EnterpriseMainContextMenuOptionType:()=>b,GlobalContextMenuOptionType:()=>m,PageChangeEventType:()=>g,PageTabContextMenuOptionType:()=>f,PanelPosition:()=>h,SUPPORTED_LANGUAGES:()=>I,SaveButtonContextMenuOptionType:()=>P,SaveModalType:()=>x,ViewTabMenuOptionType:()=>v,WindowType:()=>C,getCurrentSync:()=>xn,init:()=>ac,wrapSync:()=>In});var e={};a.r(e),a.d(e,{createNamespacedLocalStorage:()=>Rt,getItem:()=>Bt,removeItem:()=>Et,setItem:()=>Tt});var t,o,r,i,s,c,l,d,u={};a.r(u),a.d(u,{init:()=>Zt}),function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(t||(t={})),function(e){e.UserAction="user-action",e.FocusChange="focus-change",e.Reload="reload"}(o||(o={})),function(e){e.Active="active",e.Default="default"}(r||(r={})),function(e){e.Suggestion="suggestion"}(i||(i={})),function(e){e.Contact="Contact",e.Custom="Custom",e.List="List",e.Plain="Plain",e.SimpleText="SimpleText",e.Loading="Loading",e.Error="Error"}(s||(s={})),function(e){e.MultiSelect="MultiSelect"}(c||(c={})),function(e){e.Snapshot="snapshot",e.Manifest="manifest",e.View="view",e.External="external"}(l||(l={})),function(e){e.LandingPage="landingPage",e.AppGrid="appGrid"}(d||(d={}));var p,w,h,g,m,k,f,b,y,v,S,P,C,M;!function(e){e.Primary="primary",e.Secondary="secondary",e.TextOnly="textOnly"}(p||(p={})),function(e){e.ActionButton="ActionButton",e.DropdownButton="DropdownButton"}(w||(w={})),function(e){e.Left="Left",e.Right="Right",e.Top="Top",e.Bottom="Bottom"}(h||(h={})),function(e){e.UrlChange="URL_CHANGE",e.ViewAdded="VIEW_ADDED",e.ViewRemoved="VIEW_REMOVED",e.PageContextAdded="PAGE_CONTEXT_ADDED",e.PageContextRemoved="PAGE_CONTEXT_REMOVED"}(g||(g={})),function(e){e.NewWindow="NewWindow",e.NewPage="NewPage",e.SavePage="SavePage",e.SavePageAs="SavePageAs",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.CloseWindow="CloseWindow",e.RestoreChanges="RestoreChanges",e.SaveWorkspace="SaveWorkspace",e.SaveWorkspaceAs="SaveWorkspaceAs",e.RenameWorkspace="RenameWorkspace",e.SwitchWorkspace="SwitchWorkspace",e.DeleteWorkspace="DeleteWorkspace",e.Downloads="Downloads",e.OpenStorefront="OpenStorefront",e.ManageDesktopSignals="ManageDesktopSignals",e.FindInPage="FindInPage",e.Appearance="Appearance",e.Quit="Quit",e.Custom="Custom"}(m||(m={})),function(e){e.Light="light",e.Dark="dark",e.System="system"}(k||(k={})),function(e){e.Close="Close",e.Duplicate="Duplicate",e.Rename="Rename",e.Save="Save",e.SaveAs="Save As",e.NewPage="New Page",e.DeletePage="Delete Page",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Refresh="Refresh",e.CloseOthers="Close others",e.Delete="Delete",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.ManageDesktopSignals="ManageDesktopSignals",e.AddToChannel="AddToChannel",e.Custom="Custom"}(f||(f={})),function(e){e.Lock="Lock",e.ShowHideTabs="ShowHideTabs",e.AddToChanel="AddToChannel",e.ManageDesktopSignals="ManageDesktopSignals",e.FindInPage="FindInPage",e.Print="Print",e.Pin="Pin"}(b||(b={})),function(e){e.EditName="Edit Name",e.Move="Move",e.Delete="Delete"}(y||(y={})),function(e){e.NewView="NewView",e.DuplicateViews="DuplicateView",e.OpenWithDefaultBrowser="OpenWithDefaultBrowser",e.ReloadViews="ReloadTab",e.CloseViews="CloseTab",e.AddToChannel="AddToChannel",e.RemoveFromChannel="RemoveFromChannel",e.Back="Back",e.Forward="Forward",e.Print="Print",e.PrintAll="PrintAll",e.PrintScreen="PrintScreen",e.Custom="Custom"}(v||(v={})),function(e){e.ShowHideTabs="ShowHideTabs",e.ColorLinking="ColorLinking",e.PresetLayouts="PresetLayouts",e.LockUnlockPage="LockUnlockPage",e.SaveMenu="SaveMenu",e.SavePage="SavePage",e.Download="Download",e.Minimise="Minimise",e.Maximise="Maximise",e.Close="Close",e.Custom="Custom"}(S||(S={})),function(e){e.SavePage="SavePage",e.SaveWorkspace="SaveWorkspace",e.SavePageAs="SavePageAs",e.SaveWorkspaceAs="SaveWorkspaceAs",e.Custom="Custom"}(P||(P={})),function(e){e.Browser="browser",e.Platform="platform"}(C||(C={})),function(e){e.CustomButton="CustomButton",e.StoreCustomButton="StoreCustomButton",e.CustomDropdownItem="CustomDropdownItem",e.GlobalContextMenu="GlobalContextMenu",e.ViewTabContextMenu="ViewTabContextMenu",e.PageTabContextMenu="PageTabContextMenu",e.SaveButtonContextMenu="SaveButtonContextMenu",e.API="API"}(M||(M={}));const I=["en-US","ja-JP","zh-CN","ko-KR","ru-RU","de-DE","zh-Hant"];var x,A;!function(e){e.SAVE_PAGE="SAVE_PAGE",e.SAVE_WORKSPACE="SAVE_WORKSPACE",e.SAVE_PAGE_AS="SAVE_PAGE_AS",e.SAVE_WORKSPACE_AS="SAVE_WORKSPACE_AS",e.RENAME_PAGE="RENAME_PAGE",e.RENAME_WORKSPACE="RENAME_WORKSPACE"}(x||(x={})),function(e){e.Local="local",e.Dev="dev",e.Staging="staging",e.Prod="prod"}(A||(A={}));const W="undefined"!=typeof window&&"undefined"!=typeof fin,R=("undefined"==typeof process||process.env,"undefined"!=typeof window),D=R&&"undefined"!=typeof indexedDB,T=R?window.origin:A.Local,B=W&&fin.me.uuid,E=W&&fin.me.name,F=W&&fin.me.entityType,N=(A.Local,A.Dev,A.Staging,"prod"===A.Prod),V=e=>e.startsWith("http://")||e.startsWith("https://")?e:T+e,L=V("https://workspace.openfin.co/workspace/23.1.6"),U=V("https://workspace.openfin.co/workspace/23.1.6"),_=("undefined"!=typeof WORKSPACE_DOCS_PLATFORM_URL&&V(WORKSPACE_DOCS_PLATFORM_URL),"undefined"!=typeof WORKSPACE_DOCS_CLIENT_URL&&V(WORKSPACE_DOCS_CLIENT_URL),"43.142.101.2"),O="23.1.6";"undefined"!=typeof WORKSPACE_BUILD_SHA&&WORKSPACE_BUILD_SHA;var G,H;!function(e){e.Home="/home/",e.HomeSearch="/home/?deeplink=search",e.HomePagesRename="/home/pages/rename/",e.Dock="/dock/",e.Docs="/provider/docs/",e.Storefront="/storefront/",e.DeprecatedAlert="/provider/deprecated-alert/",e.Analytics="/provider/analytics/",e.Provider="/provider/"}(G||(G={})),function(e){e.Browser="/browser/",e.BrowserPopupMenu="/popup-menu/",e.BrowserPopupMenuSaveModal="/popup-menu/save-modal/",e.BrowserPopupMenuLayouts="/popup-menu/layouts/layouts/",e.BrowserPopupMenuColorLinking="/popup-menu/color-linking/color-linking/",e.BrowserIndicator="/indicator/",e.BrowserPopupMenuAddressSearchResultsView="/popup-menu/address-search-results-view/",e.ResponseModal="/popup-menu/response-modal/",e.CloseConfirmationModal="/popup-menu/close-confirmation-modal/",e.EnterpriseBrowser="/enterprise/",e.EnterpriseLandingPage="/enterprise/landing/",e.EnterpriseContextMenu="/context-menu/",e.EnterpriseBookmarkDialog="/bookmark-dialog/",e.EnterpriseAboutPage="/popup-menu/about/",e.DropdownMenu="/dropdown-menu/",e.EnterpriseDock="/dock/",e.ZoomControlsDialog="/zoom-controls-dialog/",e.DesktopSignalsModal="/popup-menu/desktop-signals-modal/",e.IntentsResolverModal="/popup-menu/intents-resolver-modal/",e.FindInPageModal="/popup-menu/find-in-page-modal/"}(H||(H={}));const $={...G,...H};var K;!function(e){e.Search="search"}(K||(K={}));const z=$;async function q(){const e="getManifestOverrides",{manifest:t,initialOptions:a}=await fin.Application.getCurrentSync().getInfo();return t?.platform.workspace||t?.platform.home||a?.workspace||a?.home||console.warn(`${e}: Missing Home development manifest overrides, using Desktop Owner Settings.`),t?.platform.workspace?(JSON.stringify(t?.platform.workspace),t?.platform.workspace):t?.platform.home?(JSON.stringify(t?.platform.home),t?.platform.home):a?.workspace?(JSON.stringify(a?.workspace),a?.workspace):a?.home?(JSON.stringify(a?.home),a?.home):{}}const J=e=>fin.System.getSystemAppConfig(e);async function Z(){const e="getDOSOverrides";if(!W)return console.warn(`${e}: the fin API was not available, returning no result`),{};try{let e=await J("workspace").catch(e=>{});return e||(e=await J("home")),JSON.stringify(e),e}catch(t){if(!N)return{};if(!(t instanceof Error))throw t;console.warn(`${e}: Missing Workspace Desktop Owner Settings configuration, using defaults. ${t?.message}`)}return{}}let j,Q;async function Y(){if(j)return j;const e="getOverrides";if(!W)return R&&console.warn(`${e}: The Fin API was not available. Returning an empty result.`),{};const[t,a]=await Promise.all([Z(),q()]);return j={...a,...t,disableRuntimeValidation:a.disableRuntimeValidation||t.disableRuntimeValidation},j}function X(e){Q=e}const ee=e=>e.replace(/\/$/,"");async function te(){const e=(await Y()).browserBaseUrl;if(e)try{const t=new URL(e);if(t.pathname.endsWith("/"))t.pathname=ee(t.pathname);else{if("/workspace"===t.pathname)return t.pathname+=`/${O}`,t.toString();console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url, with path: /workspace. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}}catch(t){console.warn(`@openfin/workspace-platform: browserOverrideBaseUrl must be a valid url. Expected <protocol>://<optional subdomain>.<domain>/workspace but got ${e}`)}return Q??U}async function ae(e=!1){const t=await te()+z.Browser;return e?t:ee(t)}async function ne(e=!1){const t=await te()+z.EnterpriseBrowser;return e?t:ee(t)}async function oe(){return await ne()+"/landing/"}const re=async(e,t=!1)=>e?ne(t):ae(t),ie=56,se=728,ce=150,le="dock3",de=e=>{const t=e||"undefined"!=typeof fin&&fin.me.identity.uuid;if(!t)throw new Error("UUID is required to get the Dock3 channel name.");return`${t}-dock3`},ue=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&("undefined"!=typeof LOG_DEBUG&&!0===LOG_DEBUG),pe=(e,...t)=>{const a=console[e];try{a(...t.map(e=>"object"==typeof e?JSON.stringify(e,null,2):e))}catch(e){console.error("Error printing stringified log, logging directly",e),a(...t)}},we=(...e)=>{ue()&&pe("debug",...e)},he=R&&"complete"!==document.readyState&&new Promise(e=>document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&e()}));function ge(e){let t;const a=new Set;return()=>{if(!W)throw new Error("getChannelClient cannot be used outside an OpenFin env. Avoid using this method during pre-rendering.");return t||(t=(async()=>{await he;const n={clientAPIVersion:O},o=await fin.InterApplicationBus.Channel.connect(e,{payload:n});return o.onDisconnection(async()=>{a.forEach(e=>e()),a.clear(),console.warn(`disconnected from channel provider ${e}`),t=void 0}),o})().then(e=>(e.addDisconnectionListener=e=>{a.add(e)},e)).catch(a=>{throw t=void 0,new Error(`failed to connect to channel provider ${e}: ${a}`)})),t}}const me="of-workspace-notifications-sync";var ke;async function fe(){const e=await async function(){try{const e=await fin.Application.getCurrentSync().getManifest(),t=e?.notifications?.customManifest?.manifestUuid;return t||Re.uuid}catch(e){return console.warn("Could not get manifest options for notifications, defaulting to standard notification center uuid.",e),Re.uuid}}();return e!==Re.uuid?`${e}-${me}`:me}let be;!function(e){e.UpdatePlatformThemeScheme="update-platform-theme-scheme"}(ke||(ke={}));var ye,ve;!function(e){e.Workspace="openfin-workspace",e.OldWorkspace="openfin-browser"}(ye||(ye={})),function(e){e.FinProtocol="fin-protocol"}(ve||(ve={}));const Se={uuid:B},Pe=(ye.Workspace,e=>{if(!W)throw new Error("getApplication cannot be used in a non OpenFin env. Avoid using this during pre-rendering.");return fin.Application.wrapSync(e)}),Ce=()=>Pe(Se);var Me;!function(e){e.Home="openfin-home",e.Dock="openfin-dock",e.Storefront="openfin-storefront",e.HomeInternal="openfin-home-internal",e.BrowserIndicator="openfin-browser-indicator",e.BrowserWindow="internal-generated-window",e.ClassicWindow="internal-generated-classic-window",e.BrowserAddressSearchPrefix="openfin-browser-menu-address-search-",e.DockCompanion="openfin-dock-companion",e.AICompanionPrefix="openfin-ai-companion-",e.AboutPageWindow="here-about-page",e.FindInPageViewPrefix="here-find-in-page-view-",e.BrowserMenu="openfin-browser-menu",e.BrowserSaveMenu="openfin-browser-save-menu",e.DockSaveWorkspaceMenu="openfin-dock3-save-workspace-menu",e.DropdownMenu="openfin-enterprise-dropdown-menu",e.EnterpriseContextMenu="openfin-enterprise-context-menu",e.EnterpriseBookmarkDialogWindow="openfin-enterprise-bookmark-dialog",e.ZoomControlsDialog="here-zoom-controls-dialog",e.UpdateVersionModal="here-update-version-modal",e.DesktopSignalsModal="here-desktop-signals-modal",e.IntentsResolverModal="here-intents-resolver-modal"}(Me||(Me={}));const Ie=e=>({left:(e.left+(e.right??e.left+e.width))/2,top:(e.top+(e.bottom??e.top+e.height))/2}),xe=(e,t)=>{const a=t.width/2,n=t.height/2;return{left:Math.round(e.left-a),top:Math.round(e.top-n),width:t.width,height:t.height}};function Ae(e){if(!W)throw new Error("getOFWindow can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");return fin.Window.wrapSync(e)}const We={name:E,uuid:B};Me.Home,ye.Workspace,Me.Dock,ye.Workspace;const Re={name:"Notification-Center",uuid:"notifications-service"},De={name:Me.Storefront,uuid:ye.Workspace};ye.Workspace,ye.Workspace;async function Te(e){const t=Ae(e);"minimized"===await t.getState()&&await t.restore(),await t.show(),await t.setAsForeground()}const Be=async e=>{try{const t=await fin.Window.wrapSync({name:e.name,uuid:e.uuid??fin.me.uuid}).getOptions();return("browser"===t.workspacePlatform?.windowType||"enterprise"===t.workspacePlatform?.windowType)&&t.workspacePlatform?.pages}catch(e){return console.warn("isBrowserWindow error: ",e),!1}};async function Ee(){const e=await fin.Application.getCurrentSync().getChildWindows(),t=await Promise.all(e.map(async e=>Be(e.identity)));return e.filter((e,a)=>t[a])}async function Fe(){return(await fin.Application.getCurrentSync().getChildWindows()).filter(e=>e.identity.name.startsWith(Me.BrowserMenu))}const Ne=e=>Ae(e).getInfo().then(()=>!0).catch(()=>!1),Ve=()=>Ne(De);function Le(e,t){const a=e.top,n=e.left,o=e.top+e.height,r=e.left+e.width,i=t.monitorRect.top,s=t.monitorRect.left,c=t.monitorRect.bottom,l=t.monitorRect.right;if(a>c||o<i||n>l||r<s)return 0;const d=Math.max(a,i),u=Math.max(n,s);return(Math.min(o,c)-d)*(Math.min(r,l)-u)/(e.height*e.width)}async function Ue(e){const t=await fin.System.getMonitorInfo();return[t.primaryMonitor,...t.nonPrimaryMonitors].reduce((t,a)=>{const n=Le(e,a);return n>t.percentage?{percentage:n,monitor:a}:t},{percentage:0,monitor:t.primaryMonitor}).monitor}const _e=(e,t)=>{const a=e;return a.workspacePlatform||(a.workspacePlatform={}),a.workspacePlatform._internalDeferShowOptions={setAsForeground:!!t,deferShowEnabled:!0,autoShow:a.workspacePlatform?._internalAutoShow||a.workspacePlatform?._internalDeferShowOptions?.autoShow||void 0===a.autoShow||a.autoShow},a.autoShow=!1,a};var Oe,Ge;!function(e){e.RelativeToParentWindow="relative-to-parent-window",e.RelativeToMonitor="relative-to-monitor"}(Oe||(Oe={})),function(e){e.Top="top",e.Below="below"}(Ge||(Ge={}));const He=async e=>{const t=e&&await Ae(e).getBounds(),a=e?await Ue(t):(await fin.System.getMonitorInfo()).primaryMonitor;return{left:((n=a.availableRect).left+n.right)/2,top:(n.top+n.bottom)/2};var n},$e=async(e,t,a=!1)=>{let n;if(a)n=await He(t);else{const e=Ae(t),a=await e.getBounds();n=Ie(a)}const{defaultHeight:o,defaultWidth:r}=e;return xe(n,{height:o,width:r})};async function Ke(e,t,a=!1,n=!1){const o=t&&"maximized"===await Ae(t).getState(),r=a||o||!t;let i=await $e(e,t,r);if(await(async e=>{const t=await fin.System.getMonitorInfo(),a=[t.primaryMonitor,...t.nonPrimaryMonitors];for(const t of a)if(1===Le(e,t))return!1;return!0})(i)?(await Ae(t).center(),i=await $e(e,t,r)):console.warn("Response modal isn't off screen, not centering parent window"),n&&t){const e=Ae(t),a=await e.getBounds();i.left-=a.left,i.top-=a.top}return i}const ze=()=>e=>e;var qe=a(516);const Je=e=>e.replace(/[^\d,]/g,"").split(","),Ze=e=>{if(e.length<2)throw new Error("Invalid color object, cannot convert to HSL.");const t=e[0]/255,a=e[1]/255,n=e[2]/255,o=Math.min(t,a,n),r=Math.max(t,a,n),i=r-o;let s=0,c=0,l=0;return s=0===i?0:r===t?(a-n)/i%6:r===a?(n-t)/i+2:(t-a)/i+4,s=Math.round(60*s),s<0&&(s+=360),l=(r+o)/2,c=0==i?0:i/(1-Math.abs(2*l-1)),c=+(100*c).toFixed(1),l=+(100*l).toFixed(1),{hsl:`hsl(${s}, ${c}%, ${l}%)`,hsla:`hsl(${s}, ${c}%, ${l}%, 1)`,hue:s,lightness:l,saturation:c}},je=e=>{if(!e.includes("#"))throw new Error("Invalid hex value, cannot convert to RGB. Hex value begins with a hashtag.");let t=0,a=0,n=0;if(4===e.length)t=`0x${e[1]}${e[1]}`,a=`0x${e[2]}${e[2]}`,n=`0x${e[3]}${e[3]}`;else{if(7!==e.length)throw new Error("Invalid hex string length, cannot convert to RGB.");t=`0x${e[1]}${e[2]}`,a=`0x${e[3]}${e[4]}`,n=`0x${e[5]}${e[6]}`}return[+t,+a,+n]},Qe=e=>{const t=e;if(t.startsWith("#")){return{rgb:je(t).join(", "),alpha:1}}const a=t.match(/\d{1,3}(\.\d+)?/g);if(a){const[e,t,n,o]=a;return{rgb:`${e}, ${t}, ${n}`,alpha:void 0!==o?parseFloat(o):1}}return{rgb:je(e).join(", "),alpha:1}},Ye=(e,t=!1)=>{const a=(e=>{if(!e)throw new Error("Color is not defined");const t=e.toLowerCase();let a;if(t.includes("rgb")){const e=Je(t);e.length>3&&e.pop(),a=Ze(e).hue}if(t.includes("#")){const e=je(t);a=Ze(e).hue}t.includes("hsl")&&(a=Je(t)[0]);const n=a?.toString();if(!n)throw new Error(`Hue was unable to be extracted from "${t}", check color format. Accepted formats are: rgb(), rgba(), hex, hsl(), and hsla()`);return n})(e);return t?{background1:`hsla(${a}, 0%, 100%, 1)`,background2:`hsla(${a}, 67%, 99%, 1)`,background3:`hsla(${a}, 26%, 96%, 1)`,background4:`hsla(${a}, 15%, 94%, 1)`,background5:`hsla(${a}, 10%, 88%, 1)`,background6:`hsla(${a}, 80%, 80%, 1)`}:{background1:`hsla(${a}, 8%, 7%, 1)`,background2:`hsla(${a}, 8%, 13%, 1)`,background3:`hsla(${a}, 9%, 15%, 1)`,background4:`hsla(${a}, 6%, 23%, 1)`,background5:`hsla(${a}, 21%, 28%, 1)`,background6:`hsla(${a}, 5%, 51%, 1)`}},Xe=(e,t)=>{const a={};return Object.keys(e).forEach(n=>{a[n]=t[n]?t[n]:e[n]}),a};var et=a(877),tt=a.n(et),at=a(67),nt=a.n(at);const ot={light:{symbol:nt()?.src||""},dark:{symbol:tt()?.src||""}};var rt,it;!function(e){e.Fetching="fetching",e.Fetched="fetched",e.Complete="complete"}(rt||(rt={})),function(e){e[e.Initial=0]="Initial",e[e.Open=1]="Open",e[e.Close=2]="Close"}(it||(it={}));const st=ge("__of_workspace_protocol__"),ct=st;ge("__search-openfin-browser-home-topic__");var lt;!function(e){e.LaunchApp="launchApp",e.SavePage="savePage",e.GetSavedPage="getSavedPage",e.CreateSavedPage="createSavedPage",e.UpdateSavedPage="updateSavedPage",e.DeleteSavedPage="deleteSavedPage",e.GetSavedPages="getSavedPages",e.CreateSavedPageInternal="createSavedPageInternal",e.UpdateSavedPageInternal="updateSavedPageInternal",e.DeleteSavedPageInternal="deleteSavedPageInternal",e.UpdatePageForWindow="updatePageForWindow",e.AttachPagesToWindow="attachPagesToWindow",e.DetachPagesFromWindow="detachPagesFromWindow",e.ReorderPagesForWindow="reorderPagesForWindow",e.SetActivePage="setActivePage",e.AddPage="addPage",e.AddDefaultPage="addDefaultPage",e.GetAllAttachedPages="getAllAttachedPages",e.GetActivePageIdForWindow="getActivePageIdForWindow",e.GetPagesForWindow="getPagesForWindow",e.GetPageForWindow="getPageForWindow",e.GetSavedPageMetadata="getSavedPageMetadata",e.GetUniquePageTitle="getUniquePageTitle",e.GetLastFocusedBrowserWindow="getLastFocusedBrowserWindow",e.GetPageByViewIdentity="getPageByViewIdentity",e.GetThemes="getThemes",e.GetSelectedScheme="getSelectedScheme",e.SetSelectedScheme="setSelectedScheme",e.OpenGlobalContextMenuInternal="openGlobalContextMenuInternal",e.OpenViewTabContextMenuInternal="openViewTabContextMenuInternal",e.OpenPageTabContextMenuInternal="openPageTabContextMenuInternal",e.OpenSaveButtonContextMenuInternal="openSaveButtonContextMenuInternal",e.InvokeCustomActionInternal="invokeCustomActionInternal",e.RequestQuitPlatformDialogInternal="requestQuitPlatformDialogInternal",e.GetSavedWorkspace="getSavedWorkspace",e.CreateSavedWorkspace="createSavedWorkspace",e.UpdateSavedWorkspace="updateSavedWorkspace",e.DeleteSavedWorkspace="deleteSavedWorkspace",e.GetSavedWorkspaces="getSavedWorkspaces",e.GetSavedWorkspacesMetadata="getSavedWorkspacesMetadata",e.SaveWorkspace="saveWorkspace",e.GetCurrentWorkspace="getCurrentWorkspace",e.ApplyWorkspace="applyWorkspace",e.RestoreLastSavedWorkspaceInternal="restoreLastSavedWorkspaceInternal",e.SetActiveWorkspace="setActiveWorkspace",e.IsBrowserInitialized="isBrowserInitialized",e.Analytics="analyticsInternal",e.GetLanguage="getLanguage",e.GetLanguageResourcesInternal="getLanguageResourcesInternal",e.SetLanguage="setLanguage",e.GetDockProviderConfig="getDockProviderConfig",e.SaveDockProviderConfig="saveDockProviderConfig",e.HandleSaveModalOnPageClose="handleSaveModalOnPageClose",e.ShouldPageClose="shouldPageClose",e.ShouldWindowClose="shouldWindowClose",e.CopyPage="copyPage",e.HandlePageChanges="handlePageChanges",e.MarkUnsavedPagesAsSavedInternal="markUnsavedPagesAsSavedInternal",e.TrackRemovedTabInternal="trackRemovedTabInternal",e.RestoreRemovedTabInternal="restoreRemovedTabInternal",e.TrackVisitedSiteInternal="trackVisitedSiteInternal",e.GetRecentlyVisitedSitesInternal="getRecentlyVisitedSitesInternal",e.GetFrequentlyVisitedSitesInternal="getFrequentlyVisitedSitesInternal",e.SearchSitesInternal="searchSitesInternal",e.GetSearchProvidersInternal="getSearchProvidersInternal",e.GetCuratedContentInternal="getCuratedContentInternal",e.HandleRequestNavigationInternal="handleRequestNavigationInternal",e.RefreshBookmarksInternal="refreshBookmarksInternal",e.LaunchBookmarkInternal="launchBookmarkInternal",e.GetNotificationsConfig="getNotificationsConfig",e.UpdateDockFavoritesInternal="updateDockFavoritesInternal",e.UpdateContentMenuInternal="updateContentMenuInternal",e.LaunchDockEntryInternal="launchDockEntryInternal",e.SetDockFavoritesOrderInternal="setDockFavoritesOrderInternal",e.NavigateContentMenuInternal="navigateContentMenuInternal",e.SetDefaultDockButtonsOrderInternal="setDefaultDockButtonsOrderInternal",e.GetDockWorkspacesContextMenuInternal="getDockWorkspacesContextMenuInternal",e.HandleDockWorkspacesMenuResponseInternal="handleDockWorkspacesMenuResponseInternal",e.RefreshDockCollectionMenuInternal="refreshDockCollectionMenuInternal",e.LaunchCollectionInternal="launchCollectionInternal",e.RemoveDockFavoriteInternal="removeDockFavoriteInternal",e.AddDockFavoriteInternal="addDockFavoriteInternal",e.FocusAndExpandSearchInternal="focusAndExpandSearchInternal",e.SendUpdateVersionModalResponseInternal="sendUpdateVersionModalResponseInternal",e.ShowUpdateVersionModalInternal="showUpdateVersionModalInternal"}(lt||(lt={}));const dt=async e=>fin.Platform.wrapSync(e).getClient(),ut=async e=>{const t=await dt(e),a="Target is not a Workspace Platform. Target must call WorkspacePlatform.init";let n;try{n=await t.dispatch("isWorkspacePlatform")}catch(e){throw new Error(a)}if("boolean"==typeof n&&n)return console.warn("You are using an older version of the workspace platform. Please update your workspace platform."),n;if("object"==typeof n&&n.isWorkspacePlatform)return n;throw new Error(a)},pt=async e=>(await ut(e),dt(e)),wt=async e=>{const t=await ut(e);if("object"==typeof t&&!0!==t?.isBrowserInitialized)throw new Error("Target is not a Browser-enabled Workspace Platform.");return dt(e)},ht="dark",gt={[qe.Palette.brandPrimary]:"#0A76D3",[qe.Palette.brandPrimaryActive]:"#0A71C9",[qe.Palette.brandPrimaryHover]:"#0B84EB",[qe.Palette.brandPrimaryFocused]:qe.Color.white,[qe.Palette.brandPrimaryText]:qe.Color.white,[qe.Palette.statusSuccess]:qe.Color.functional1,[qe.Palette.statusWarning]:qe.Color.functional10,[qe.Palette.statusCritical]:qe.Color.functional7,[qe.Palette.statusActive]:qe.Color.functional3,[qe.Palette.contentBackground1]:"#0A76D3",[qe.Palette.contentBackground2]:"#000000",[qe.Palette.contentBackground3]:"#000000",[qe.Palette.contentBackground4]:"#000000",[qe.Palette.contentBackground5]:"#000000",[qe.Palette.borderNeutral]:qe.Color.silverGray},mt={...gt,[qe.Palette.background1]:qe.Color.white,[qe.Palette.background2]:qe.Color.lightGray1,[qe.Palette.background3]:qe.Color.lightGray2,[qe.Palette.background4]:qe.Color.lightGray3,[qe.Palette.background5]:qe.Color.lightGray4,[qe.Palette.background6]:qe.Color.lightGray5,[qe.Palette.brandSecondary]:qe.Color.lightGray4,[qe.Palette.brandSecondaryActive]:qe.Color.lightGray4Active,[qe.Palette.brandSecondaryHover]:qe.Color.lightGray4Hover,[qe.Palette.brandSecondaryFocused]:qe.Color.darkGray5,[qe.Palette.brandSecondaryText]:qe.Color.darkGray5,[qe.Palette.inputBackground]:qe.Color.lightGray3,[qe.Palette.inputColor]:qe.Color.darkGray5,[qe.Palette.inputPlaceholder]:qe.Color.darkGray2,[qe.Palette.inputDisabled]:qe.Color.neutralGray,[qe.Palette.inputFocused]:qe.Color.lightGray5,[qe.Palette.inputBorder]:qe.Color.neutralGray,[qe.Palette.textDefault]:qe.Color.darkGray5,[qe.Palette.textHelp]:qe.Color.darkGray3,[qe.Palette.textInactive]:qe.Color.neutralGray},kt={...gt,[qe.Palette.background1]:qe.Color.darkGray6,[qe.Palette.background2]:qe.Color.darkGray5,[qe.Palette.background3]:qe.Color.darkGray4,[qe.Palette.background4]:qe.Color.darkGray3,[qe.Palette.background5]:qe.Color.darkGray2,[qe.Palette.background6]:qe.Color.darkGray1,[qe.Palette.brandSecondary]:qe.Color.darkGray2,[qe.Palette.brandSecondaryActive]:qe.Color.darkGray2Active,[qe.Palette.brandSecondaryHover]:qe.Color.darkGray2Hover,[qe.Palette.brandSecondaryFocused]:qe.Color.white,[qe.Palette.brandSecondaryText]:qe.Color.white,[qe.Palette.inputBackground]:qe.Color.darkGray1,[qe.Palette.inputColor]:qe.Color.white,[qe.Palette.inputPlaceholder]:qe.Color.lightGray5,[qe.Palette.inputDisabled]:qe.Color.neutralGray,[qe.Palette.inputFocused]:qe.Color.lightGray5,[qe.Palette.inputBorder]:qe.Color.neutralGray,[qe.Palette.textDefault]:qe.Color.white,[qe.Palette.textHelp]:qe.Color.lightGray5,[qe.Palette.textInactive]:qe.Color.neutralGray},ft=[{label:"OpenFin Default Light and Dark Theme",palettes:{light:{...mt,backgroundPrimary:qe.Color.darkGray5},dark:{...kt,backgroundPrimary:qe.Color.darkGray5}}}],bt=e=>{const{background:t,foreground:a}=e;return{background:t,foreground:a??"#FFFFFF"}},yt=(e,t)=>({icons:{symbol:e.brand?.icons?.[t]?.symbol||ot[t].symbol}}),vt=e=>{const{light:t,dark:a}="palettes"in e?e.palettes:{light:e.palette,dark:e.palette},n=Xe(kt,a),o=Xe(mt,t),r=((e,t)=>{const a={...e},n={...t};let o=t.backgroundPrimary?Ye(t.backgroundPrimary,!0):{},r=e.backgroundPrimary?Ye(e.backgroundPrimary):{};return o={...o,...n},r={...r,...a},{light:{...t,...o},dark:{...e,...r}}})(a,t),i={...(0,qe.createTheme)({...n,...r?.dark}),brand:yt(e,"dark")},s={...(0,qe.createTheme)({...o,...r?.light}),brand:yt(e,"light")},{light:c,dark:l}=(e=>{const t=Object.keys(e.notificationIndicatorColors??{});if(t?.length){const a={},n={};return t.forEach(t=>{const o=e.notificationIndicatorColors[t];"background"in o?(a[t]=bt(o),n[t]=bt(o)):(a[t]=bt(o.dark??o.light),n[t]=bt(o.light??o.dark))}),{light:n,dark:a}}return{light:null,dark:null}})(e);return i.notificationIndicatorColors=l,s.notificationIndicatorColors=c,{dark:i,light:s}},St=async e=>{const{themes:t,selectedScheme:a}=await(async e=>{const t=fin?.__internal_?.initialOptions?.workspacePlatform?._themeData;if(!t||e.uuid!==We.uuid)return{themes:await In(e).Theme.getThemes(),selectedScheme:await In(e).Theme.getSelectedScheme()};return t})(e);var n,o;return(n=t?.length?t:ft,o=a,n.map(e=>{const t="palettes"in e?e.default:ht,{light:a,dark:n}=vt(e);return{label:e.label,logoUrl:e.logoUrl,theme:{dark:n,light:a},defaultScheme:o??t}}))[0]},Pt=async e=>{const t=await pt(e||fin.me.identity),a=await t.dispatch(lt.GetSelectedScheme,void 0);return a===k.System?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a},Ct=async(e,t)=>{const a=await St(fin.me.identity),n=await Pt(fin.me.identity)===k.Dark,o=a?.theme;return o?.[n?k.Dark:k.Light]?.palette?.[e]||t},Mt={enabled:!1,threshold:50,locationPreference:["top","bottom"]},It=(e,t)=>e.experimental?.snapZone??t?.experimental?.snapZone??Mt;async function xt(e,t,a,n){if(!await Ne({uuid:We.uuid,name:e})){let o;if("number"==typeof a.dockPosition?.left||"number"==typeof n?.defaultLeft)o=a.dockPosition?.left;else{o=(await He(We)).left-se/2}const r={enabled:!1,template:["snapToTop","snapToBottom"]},i=function(e){const t=function(e,t){const a={};for(const n of t)n in e&&(a[n]=e[n]);return a}(e,ze()(["defaultLeft","defaultTop","defaultCentered","saveWindowState","taskbarIconGroup","experimental"])),a={...t};if(e.experimental?.snapZone&&(a.experimental={snapZone:e.experimental.snapZone}),e.contextMenuOptions){const t=e.contextMenuOptions,n=["snapToTop","snapToBottom","inspect"];let o;t.template&&Array.isArray(t.template)&&(o=t.template.filter(e=>"string"==typeof e&&n.includes(e)),0===o.length&&(o=void 0)),a.contextMenuOptions={...void 0!==t.enabled?{enabled:t.enabled}:{},...o?{template:o}:{}}}return a}(n??{}),s={name:e,url:t+z.EnterpriseDock,autoShow:!0,frame:!1,smallWindow:!0,saveWindowState:!1,defaultHeight:ie,defaultWidth:se,includeInSnapshots:!1,defaultTop:a.dockPosition?.top??ce,defaultLeft:o,workspacePlatform:{windowType:a.windowType,...a},throttling:"disabled",resizable:!1,maximizable:!1,backgroundColor:await Ct("background1"),contextMenuOptions:a.contextMenuOptions??r,experimental:{snapZone:It(a,i)},...i};await fin.Window.create(_e(s))}}function At(){let e,t;return{promise:new Promise((a,n)=>{e=a,t=n}),resolve:e,reject:t}}const Wt=require("dexie"),Rt=e=>({setItem:(t,a)=>{localStorage.setItem(`${e}-${t}`,a)},getItem:t=>localStorage.getItem(`${e}-${t}`),removeItem:t=>localStorage.removeItem(`${e}-${t}`)}),Dt=Rt(B),Tt=Dt.setItem,Bt=Dt.getItem,Et=Dt.removeItem;var Ft;!function(e){e.CurrentWorkspaceId="currentWorkspaceId",e.LastFocusedBrowserWindow="lastFocusedBrowserWindow",e.MachineName="machineName",e.NewTabPageLayout="NewTabPageLayout",e.NewTabPageSort="NewTabPageSort",e.DockPosition="DockPosition",e.SelectedColorScheme="SelectedColorScheme",e.ThemePaletteSheet="ThemePaletteSheet",e.HasMovedStore="HasMovedStore",e.PageDragState="BrowserPageDragState",e.ThemePaletteDefaultScheme="ThemePaletteDefaultScheme"}(Ft||(Ft={}));const Nt=Ft,Vt=e=>e+"-"+fin.me.uuid,Lt=(e,t)=>{const a=D&&W&&new Wt.Dexie(e);return a&&a.version(.1).stores({[t]:""}),a},Ut=(e,t)=>{const a=Lt(Vt(e),t),n=Lt(e,t);if(!a||!n)throw new Error("Unable to migrate store - IndexDB not supported");return(async(e,t,a)=>{if(!e[a])return void console.warn(`Legacy store ${a} not found, skipping migration`);const n=Bt(Nt.HasMovedStore),o=n?JSON.parse(n):{};if(o&&o[a])return;if(o[a]=!0,Tt(Nt.HasMovedStore,JSON.stringify(o)),!e[a]||!t[a])return;const r=await e[a].toArray();await t[a].bulkPut(r)})(n,a,e),a},_t="dock3-provider-config",Ot=D&&W&&new Wt.Dexie(Vt("dock3-provider-config"));Ot&&Ot.version(.1).stores({[_t]:""});var Gt,Ht,$t,Kt,zt=function(e,t,a,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,a):o?o.value=a:t.set(e,a),a},qt=function(e,t,a,n){if("a"===a&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===a?n:"a"===a?n.call(e):n?n.value:t.get(e)};class Jt{static getOverrideConstructor(...e){return class extends Jt{constructor(){super(...e)}}}constructor(e,t){if(Gt.set(this,void 0),Ht.set(this,void 0),$t.set(this,null),Kt.set(this,At()),Jt.instance)throw new Error("Dock3Provider has already been initialized.");Jt.instance=this,zt(this,Gt,e,"f"),zt(this,Ht,t,"f"),this.registerChannelActions()}async launchEntry(e){}get ready(){return qt(this,Kt,"f").promise}async bookmarkContentMenuEntry(e){}async moreMenuCustomOptionClicked(e){}get config(){return qt(this,Gt,"f")}set config(e){zt(this,Gt,e,"f")}async updateConfig(e){zt(this,Gt,e,"f"),await this.handleConfigChange(e)}async shutdown(){await Promise.all([qt(this,Ht,"f").destroy(),this.getWindowSync().close(!0)]),Jt.instance=null}async saveConfig({config:e}){zt(this,Gt,e,"f"),await async function(e){if(!Ot)throw new Error("Unable to save Dock provider config - IndexedDb not supported");await Ot[_t].put(e,"latest")}(e)}async handleConfigChange(e){qt(this,$t,"f")&&await qt(this,Ht,"f").dispatch(qt(this,$t,"f"),"handle-dock-config-updated",e)}async loadConfig(){const e=await async function(){if(!Ot)throw new Error("Unable to get Dock provider config - IndexedDB not supported");try{return await Ot[_t].get("latest")}catch(e){return void console.warn("Failed to retrieve Dock provider config from IndexedDB",e)}}();return e&&zt(this,Gt,e,"f"),qt(this,Gt,"f")}getWindowSync(){return fin.Window.wrapSync({uuid:fin.me.identity.uuid,name:le})}registerChannelActions(){qt(this,Ht,"f").register("launch-entry",async e=>{"folder"===e.entry.type&&e.entry.id&&qt(this,$t,"f")&&await qt(this,Ht,"f").dispatch(qt(this,$t,"f"),"navigate-content-menu",{targetId:e.entry.id}),await this.launchEntry(e)}),qt(this,Ht,"f").register("save-config",this.saveConfig.bind(this)),qt(this,Ht,"f").register("bookmark-content-menu-entry",this.bookmarkContentMenuEntry.bind(this)),qt(this,Ht,"f").register("more-menu-custom-option-clicked",this.moreMenuCustomOptionClicked.bind(this)),qt(this,Ht,"f").onConnection(e=>{e.name===le&&zt(this,$t,e,"f")}),qt(this,Ht,"f").register("ready",async(e,t)=>{if(qt(this,$t,"f")?.endpointId!==t.endpointId)throw new Error(`Dock3Provider: 'ready' action received from unexpected client ${t.name} (${t.uuid})`);qt(this,Kt,"f").resolve()}),qt(this,Ht,"f").onDisconnection(e=>{qt(this,$t,"f")?.endpointId===e.endpointId&&(zt(this,$t,null,"f"),zt(this,Kt,At(),"f"))})}}async function Zt(e){const{config:t,override:a}=e;if(Jt.instance)throw new Error("Dock3Provider has already been initialized.");const n=await fin.InterApplicationBus.Channel.create(de()),o=new(a(Jt.getOverrideConstructor(t,n)));return await o.loadConfig(),await xt(le,await ae(),o.config,e.windowOptions),await o.ready,o}Gt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,Kt=new WeakMap,Jt.instance=null;const jt=async e=>{const t=e?fin.Window.wrapSync(e):fin.Window.getCurrentSync(),a=await t.getOptions();return a.workspacePlatform?.windowType&&"enterprise"===a.workspacePlatform.windowType},Qt=e=>{const t=e?.defaultWindowOptions?.workspacePlatform?.windowType;return"enterprise"===t};let Yt;const Xt=e=>{if(e)try{return new URL(e).pathname.includes(z.EnterpriseLandingPage.replace(/\/$/,""))}catch(t){console.error("error parsing url: %O",e)}return!1};var ea;!function(e){e.Browser="Browser",e.Dock="Dock",e.EnterpriseDock="EnterpriseDock",e.Home="Home",e.Notification="Notification",e.Storefront="Storefront",e.Platform="Platform",e.Theming="Theming",e.Microflow="Microflow"}(ea||(ea={}));const ta=async(e,t,a="workspace-licensing")=>{const n={apiVersion:t.apiVersion||O,componentName:e,componentVersion:t.componentVersion||O,allowed:t.allowed,rejectionCode:t.rejectionCode};fin.System.registerUsage({type:a,data:n})};let aa=!1;const na=new Map,oa=e=>{let t=na.get(e.uuid);return t||(t=In(e),t.once("closed",()=>{na.delete(e.uuid)}),na.set(e.uuid,t)),t},ra=async(e,t)=>{try{await e._raiseAnalytics([t])}catch(e){console.error("failed to raise analytics event",e)}},ia=async e=>{await ra(oa(fin.me.identity),{source:"Browser",...e})};let sa;const ca=async e=>{sa||(sa=new TextEncoder);const t=sa.encode(e),a=await window.crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(a)).map(e=>e.toString(16).padStart(2,"0")).join("")};function la(e){return e&&"object"==typeof e&&!Array.isArray(e)}function da(e,...t){if(!t.length)return e;const a=t.shift();return la(e)&&la(a)&&Object.entries(a).forEach(([t,a])=>{la(a)?(e[t]||(e[t]={}),da(e[t],a)):Array.isArray(a)&&"hotkeys"===t&&Array.isArray(e[t])?e[t]=function(e){if(!e.length||!e.every(la))return e;const t=new Map,a=[];for(const n of e){const e=n.keys||n.id||n.name||JSON.stringify(n);t.has(e)||(t.set(e,!0),a.push(n))}return a}([...e[t],...a]):e[t]=a}),da(e,...t)}const ua=require("lodash.debounce");var pa=a.n(ua);function wa(){return void 0!==typeof crypto&&"randomUUID"in crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}function ha(){return localStorage.getItem(Nt.MachineName)??"unknown"}let ga;async function ma(){return ga||(ga=await fin.System.getMachineId()),ga}const ka=e=>{if(Array.isArray(e.workspacePlatform?.pages)&&(e.layoutSnapshot||e.layout)){const t=e.workspacePlatform.pages.find(e=>e.isActive);if(t){const a=e.layoutSnapshot?e.layoutSnapshot.layouts[t.layoutContainerKey]:e.layout;if(a)if(t.isLocked){const n=Ln(a,t.layout);t.layout=n,e.layout=n}else t.layout=a,e.layout=a}}return e};async function fa(e){const t=e||await fin.Platform.getCurrentSync().getSnapshot();if(t.snapshotDetails?.machineId)return t;const a=ha();return{...t,snapshotDetails:{...t.snapshotDetails,machineId:await ma(),machineName:a}}}const ba=async e=>({...e,layoutDetails:{machineId:await ma(),machineName:ha()}}),ya=async(e,t)=>({pageId:wa(),title:e,layout:await ba(t),isReadOnly:!1}),va=async e=>{const t=await ya(e.title,En(e.layout));return e.panels&&(t.panels=e.panels.map(e=>({...e,viewOptions:Bn(e.viewOptions)}))),{...e,...t}},Sa=e=>{const t=fin.Platform.Layout.wrapSync(e);return{show:async()=>{const a=await t.getConfig(),{settings:n,dimensions:o}=a,r=await jt(e);await t.replace({...a,settings:{...n,hasHeaders:!0,reorderEnabled:!0},dimensions:{...o,headerHeight:r?28:30}})},hide:async e=>{const a=await t.getConfig(),{settings:n,dimensions:o}=await a;await t.replace({...a,settings:{...n,hasHeaders:!1,reorderEnabled:e?.settings?.reorderEnabled??!1},dimensions:{...o,headerHeight:0}})},isShowingTabs:async()=>{try{const e=await t.getConfig(),{settings:a}=await e;return a.hasHeaders}catch(e){return console.error("failed to get layout config: ",e),!0}}}},Pa="of-workspace-";const Ca=new class{mark(e){performance.mark(`${Pa}${e}`)}markStart(e){performance.mark(`${Pa}${e}-start`)}markEnd(e){performance.mark(`${Pa}${e}-end`)}markEndAndMeasure(e){performance.mark(`${Pa}${e}-end`);try{return performance.measure(`${Pa}${e}`,`${Pa}${e}-start`,`${Pa}${e}-end`)}catch(e){0}}markAndMeasure(e,t){performance.mark(`${Pa}${e}`);try{return performance.measure(`${Pa}${e}-measure`,`${Pa}${t}-start`,`${Pa}${e}`)}catch(e){0}}reportWorkspacePerformanceEntries(){return performance.getEntriesByType("measure").filter(e=>e.name.startsWith(Pa))}reportWorkspacePerformance(){return this.reportWorkspacePerformanceEntries().map(e=>({name:e.name.replace(`${Pa}`,"").replace("-measure",""),duration:e.duration}))}},Ma=()=>{const e=`browser-context-menu-startup-${wa()}`;return Ca.markStart(e),e},Ia=e=>{Ca.markAndMeasure("browser-context-menu-called",e)},xa=e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",()=>{(e=>{Ca.markAndMeasure("browser-context-menu-shown",e)})(e)})},Aa=(e,t)=>t?`${t}-${e.uuid}-${e.name}`:`__browser_window__-${e.uuid}-${e.name}`,Wa=new Map,Ra=e=>(Wa.has(e)||Wa.set(e,ge(e)),Wa.get(e)()),Da=(e,t)=>{const a=Aa(e,t);return Ra(a)};var Ta,Ba,Ea,Fa,Na,Va;!function(e){e.CloseBrowserWindow="close-browser-window",e.QuitPlatform="quit-platform",e.ClosePage="close-page",e.AddToChannel="add-to-channel",e.RemoveFromChannel="remove-from-channel",e.OpenSaveModalInternal="open-save-modal-internal",e.DuplicatePage="duplicate-page",e.SetSelectedScheme="set-selected-scheme",e.ShowBrowserIndicator="show-browser-indicator",e.SetSelectedLanguage="set-selected-language",e.RefreshBookmarksInternal="refresh-bookmarks",e.GetLayoutsWithSelectedViewsInternal="get-layouts-with-selected-views",e.FocusAndExpandSearchInternal="focus-and-expand-search"}(Ta||(Ta={})),function(e){e.GetPages="get-pages",e.GetActivePageForWindow="get-active-page-for-window",e.AttachPagesToWindow="attach-pages-to-window",e.DetachPagesFromWindow="detach-pages-from-window",e.SetActivePageForWindow="set-active-page-for-window",e.RenamePage="rename-page",e.ReorderPagesForWindow="reorder-pages-for-window",e.UpdatePageForWindow="update-page-for-window",e.UpdatePagesWindowOptions="update-pages-window-options",e.IsDetachingPages="is-detaching-pages",e.IsActivePageChanging="is-active-page-changing"}(Ba||(Ba={})),function(e){e.GetApps="get-apps",e.GetCuratedContent="get-curated-content",e.GetRecentlyVisited="get-recently-visited",e.GetSearchProviders="get-search-providers"}(Ea||(Ea={})),function(e){e.CreateBookmarkNode="create-bookmark-node",e.GetBookmarkNode="get-bookmark-node",e.SearchBookmarkNodes="search-bookmark-nodes",e.UpdateBookmarkNode="update-bookmark-node",e.DeleteBookmarkNode="delete-bookmark-node"}(Fa||(Fa={})),function(e){e.UpdateFavoriteEntries="update-favorite-entries",e.UpdateContentMenu="update-content-menu",e.NavigateContentMenu="navigate-content-menu",e.MoreMenuCustomOptionClicked="more-menu-custom-option-clicked",e.RefreshDockCollectionMenu="refresh-dock-collection-menu"}(Na||(Na={})),function(e){e.SendUpdateVersionModalResponse="send-update-version-modal-response",e.SendIntentResolverModalResponse="send-intent-resolver-modal-response"}(Va||(Va={}));const La={...Ta,...Ba,...Na},Ua=ge(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-bookmarks`),_a=e=>({identity:e,openfinWindow:fin.Window.wrapSync(e),_bookmarks:{_createBookmarkNode:async e=>(async e=>(await Ua()).dispatch(Fa.CreateBookmarkNode,e))(e),_getBookmarkNode:async e=>(async e=>(await Ua()).dispatch(Fa.GetBookmarkNode,e))(e),_searchBookmarkNodes:async e=>(async e=>(await Ua()).dispatch(Fa.SearchBookmarkNodes,e))(e),_updateBookmarkNode:async e=>(async e=>(await Ua()).dispatch(Fa.UpdateBookmarkNode,e))(e),_deleteBookmarkNode:async e=>(async e=>(await Ua()).dispatch(Fa.DeleteBookmarkNode,e))(e)},getPages:async()=>(await wt(e)).dispatch(lt.GetPagesForWindow,e),getPage:async t=>(await wt(e)).dispatch(lt.GetPageForWindow,{identity:e,pageId:t}),addPage:async t=>xn().Browser.wrapSync(e)._addPage(t),_addPage:async(t,a)=>{const n=await wt(e),o={identity:e,page:t,insertionIndex:a?.index,multiInstanceViewBehavior:a?.multiInstanceViewBehavior};return n.dispatch(lt.AddPage,o)},_addPages:async(t,a)=>{const n=await wt(e),o=t.map(({page:e,opts:t})=>({...e,multiInstanceViewBehavior:t?.multiInstanceViewBehavior||"duplicate"})),r={identity:e,pages:o,...a};return n.dispatch(lt.AttachPagesToWindow,r)},removePage:async t=>(await wt(e)).dispatch(lt.DetachPagesFromWindow,{identity:e,pageIds:[t]}),reparentPage:async t=>xn().Browser.wrapSync(e)._reparentPage(t),_reparentPage:async t=>{const{pageId:a}=t,n=await wt(e),o=(await n.dispatch(lt.GetAllAttachedPages,void 0)).find(({pageId:e})=>e===a);if(!o)throw new Error(`Reparent Page Error: Target page with pageId ${a} not found`);o.multiInstanceViewBehavior="reparent";const r={identity:e,pages:[o],insertionIndex:t.index};return n.dispatch(lt.AttachPagesToWindow,r)},setActivePage:async t=>(await wt(e)).dispatch(lt.SetActivePage,{identity:e,pageId:t}),updatePage:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.UpdatePageForWindow,t)},reorderPages:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.ReorderPagesForWindow,t)},_openGlobalContextMenu:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.OpenGlobalContextMenuInternal,t)},replaceToolbarOptions:async t=>{await wt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{toolbarOptions:t}})},replaceWindowStateButtonOptions:async t=>{await wt(e);const a=fin.Window.wrapSync(e);await a.updateOptions({workspacePlatform:{windowStateButtonOptions:t}})},updateBrowserWindowTitle:async t=>{const a=fin.Window.wrapSync(e);"string"!=typeof t?await a.updateOptions({workspacePlatform:{title:t}}):console.warn("Type string for window title is deprecated, please use WindowTitle type instead",t)},_openViewTabContextMenu:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.OpenViewTabContextMenuInternal,t)},_openPageTabContextMenu:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.OpenPageTabContextMenuInternal,t)},_openSaveModal:async t=>{await wt(e);return(await Da(e)).dispatch(La.OpenSaveModalInternal,t)},_getLayoutsWithSelectedViews:async()=>(await Da(e)).dispatch(La.GetLayoutsWithSelectedViewsInternal,e),_openSaveButtonContextMenu:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.OpenSaveButtonContextMenuInternal,t)},_addDefaultPage:async t=>{const a=await wt(e);return t.identity=e,a.dispatch(lt.AddDefaultPage,t)},_trackRemovedTab:async t=>(await wt(e)).dispatch(lt.TrackRemovedTabInternal,t),_restoreRemovedTab:async t=>(await wt(e)).dispatch(lt.RestoreRemovedTabInternal,t),_trackVisitedSite:async t=>(await wt(e)).dispatch(lt.TrackVisitedSiteInternal,t),_getRecentlyVisitedSites:async t=>(await wt(e)).dispatch(lt.GetRecentlyVisitedSitesInternal,t),_getFrequentlyVisitedSites:async t=>(await wt(e)).dispatch(lt.GetFrequentlyVisitedSitesInternal,t),_searchSites:async t=>(await wt(e)).dispatch(lt.SearchSitesInternal,{identity:e,req:t}),_getSearchProviders:async()=>(await wt(e)).dispatch(lt.GetSearchProvidersInternal,{identity:e}),_getCuratedContent:async t=>(await wt(e)).dispatch(lt.GetCuratedContentInternal,{identity:e,req:t}),_handleRequestNavigation:async t=>(await wt(e)).dispatch(lt.HandleRequestNavigationInternal,t),_sendUpdateVersionModalResponse:async t=>(await wt(e)).dispatch(lt.SendUpdateVersionModalResponseInternal,t)}),Oa=e=>{const t=fin.Platform.wrapSync(e);return{wrapSync:e=>_a(e),createWindow:async a=>{const n=(()=>{const e=`browser-window-startup-${wa()}`;return Ca.markStart(e),e})();(e=>{fin.Application.wrapSync({uuid:fin.me.identity.uuid}).once("window-shown",()=>{Ca.markAndMeasure("browser-window-shown",e)})})(n),await wt(e);const o=await t.createWindow(a);return(e=>{Ca.markAndMeasure("browser-window-started",e)})(n),_a(o.identity)},getAllAttachedPages:async()=>(await wt(e)).dispatch(lt.GetAllAttachedPages,void 0),getAllWindows:async()=>{await wt(e);return(await Ee()).map(e=>_a(e.identity))},getUniquePageTitle:async t=>(await wt(e)).dispatch(lt.GetUniquePageTitle,t),getLastFocusedWindow:async()=>(await wt(e)).dispatch(lt.GetLastFocusedBrowserWindow,void 0),getPageByViewIdentity:async t=>(await wt(e)).dispatch(lt.GetPageByViewIdentity,t)}},Ga=(e,t=0)=>{let a,n,o=!1;const r=async n=>{const i=await e(...n);if(o){await new Promise(e=>setTimeout(e,t));const e=a;return a=void 0,o=!1,r(e)}return i};return(...e)=>(n?(o=!0,a=e):n=r(e).catch(e=>{throw console.error("makeDebouncedFunc",e),e}).finally(()=>{n=void 0}),n)};var Ha;!function(e){e.Home="/home",e.Browser="/browser",e.Enterprise="/enterprise",e.Provider="/provider",e.Storefront="/storefront",e.Dock="/dock"}(Ha||(Ha={}));function $a(e,t){return async(a,...n)=>{e.has(a)&&e.get(a).forEach(e=>e(...n)),t&&await t({event:a,payload:n})}}function Ka(e,t){return t&&t(t=>{const{event:a,payload:n}=t;e.has(a)&&e.get(a).forEach(e=>e(...n))}),(t,a)=>{e.has(t)||e.set(t,new Set),e.get(t).add(a)}}function za(e){return(t,a)=>{e.has(t)||e.set(t,new Set);const n=e.get(t),o=(...e)=>{a(...e),n.delete(o)};n.add(o)}}function qa(e){return(t,a)=>{e.has(t)&&e.get(t).delete(a)}}const Ja={name:Me.BrowserMenu,alwaysOnTop:!0,autoShow:!0,frame:!1,resizable:!1,backgroundColor:"#2f3136",smallWindow:!0,showTaskbarIcon:!1,backgroundThrottling:!1,saveWindowState:!1};function Za(e){const t={...Ja,...e};return t.url=function(e,t){if(!R)throw new Error("resolveAbsolutePath can only be used in a window");const a=t??window.location;if(/^(?:[a-z]+:)?\/\//i.test(e))return e;const n=`${a.protocol}//${a.hostname}`;return new URL(e,n).href}(t.url??""),t}const ja=function(e){const t=new Map;return{emit:$a(t,t=>W&&fin.InterApplicationBus.publish(e,t)),addListener:Ka(t,t=>W&&fin.InterApplicationBus.subscribe({uuid:fin.me.uuid},e,t)),addListenerWithUUID:a=>Ka(t,t=>W&&fin.InterApplicationBus.subscribe({uuid:a},e,t)),removeListener:qa(t),once:za(t)}}("window.menu"),Qa=(e,t)=>fin.Window.wrapSync(e).updateOptions({opacity:t}),Ya=e=>ja.emit("response",e),Xa=Ga(()=>Ce().getChildWindows(),500);const en=new Map;async function tn(e,t,a){const n=Za(e),o=await St(fin.me.identity),r=await Pt(fin.me.identity)===k.Dark,i=o?.theme;if(n.backgroundColor=i?.[r?k.Dark:k.Light]?.palette?.inputBackground||n.backgroundColor,!en.has(n.name)){return new Promise(o=>{ja.once("ready",async e=>{if(e.name===n.name){const t=await en.get(n.name);n.preventBlur||t.once("blurred",async()=>{if(Qa(e,0),t.hide(),Ya({name:n.name,data:{actionName:"Cancel"}}),a=t.identity.name,[Me.BrowserSaveMenu,Me.DockSaveWorkspaceMenu,Me.DesktopSignalsModal].includes(a)){const e=await t.getOptions();"submitting"!==e.customContext&&"error"!==e.customContext&&t.close()}else t.identity.name.startsWith(Me.BrowserMenu)&&t.close();var a}),setTimeout(async()=>{await Qa(e,1);1!==(await fin.Window.wrapSync(e).getOptions()).opacity&&Qa(e,1)}),o(t)}});const r=(async()=>{const o=await fin.Platform.getCurrentSync().createWindow(_e({...n,opacity:0,url:t||n.url,defaultLeft:a?.left,defaultTop:a?.top,defaultWidth:a?.width,defaultHeight:a?.height,workspacePlatform:{preventBlur:e.preventBlur}},!0));return o.once("closed",()=>{en.delete(n.name)}),o})();en.set(n.name,r)})}return en.get(n.name)}async function an(e,t){const a=Za(e),n={top:a.top,left:a.left,width:a.defaultWidth||a.width,height:a.defaultHeight||a.height};return t.set("parentName",fin.Window.getCurrentSync().identity.name),{name:a.name,bounds:n,route:`${a.url}#${t.toString()}`}}async function nn({options:e,parameters:t}){var a;!(a={name:e.name,uuid:fin.me.identity.uuid}).name.startsWith(Me.BrowserAddressSearchPrefix)&&a.name!==Me.ZoomControlsDialog&&["menu","modal","dialog"].some(e=>a.name.includes(e))&&ja.emit("modal-opened",e.name);const n=t??new URLSearchParams,o=Za(e),{name:r,modalParentIdentity:i}=o;if(!n.has("isEnterprise")){const e=`${await(async e=>(Yt||(Yt=await jt(e)),Yt))(i)}`;n.set("isEnterprise",e)}let s=await async function(e){return(await Xa()).find(t=>t.identity.name===e)}(r);if(s)await async function(e,t){const{name:a,bounds:n,route:o}=await an(e,t),r={uuid:fin.me.identity.uuid,name:a},i=fin.Window.wrapSync(r);await Promise.all([i.hide(),Qa(r,0),i.setBounds(n)]),e.preventBlur||i.once("blurred",()=>{Qa(r,0),i.hide(),Ya({name:r.name,data:{actionName:"Cancel"}})}),ja.emit("update",a,n,o),await Ya({name:a,data:{actionName:"Cancel"}})}(o,n);else{const{route:t,bounds:a}=await an(e,n);s=await tn({...o},t,a)}return s}const on={shadow:!0},rn=async({options:e,content:t,parameters:a})=>{const n=a??new URLSearchParams;n.set("content",JSON.stringify({...t,invocationId:wa()}));const o={...on,...e,name:`${e.name}--${e.modalParentIdentity?.name??""}`},r=await nn({options:o,parameters:n});return new Promise(e=>{ja.once("response",async t=>{t.name===o.name&&(e({data:t.data}),o?.closeOnResponse&&r.close())})})};let sn;async function cn(e){return(await(sn||(sn=ge(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-modal`)()),sn)).dispatch(Va.SendUpdateVersionModalResponse,e)}const ln=async e=>{const t=Ae(e),a=await t.getBounds(),n=Ie(a),o=xe(n,{height:240,width:432});return nn({options:{smallWindow:!0,saveWindowState:!1,showTaskbarIcon:!0,includeInSnapshots:!1,workspacePlatform:{windowType:"enterprise"},resizable:!1,name:Me.DesktopSignalsModal,url:await ne()+z.DesktopSignalsModal,defaultWidth:432,defaultHeight:240,preventBlur:!1,...o},parameters:new URLSearchParams({title:"Desktop Signals Modal"})})},dn=e=>({createPage:async t=>(await wt(e)).dispatch(lt.CreateSavedPageInternal,t),deletePage:async t=>(await wt(e)).dispatch(lt.DeleteSavedPageInternal,t),updatePage:async t=>(await wt(e)).dispatch(lt.UpdateSavedPageInternal,t),getPage:async t=>(await wt(e)).dispatch(lt.GetSavedPage,t),getPages:async t=>(await wt(e)).dispatch(lt.GetSavedPages,t),savePage:async t=>(await wt(e)).dispatch(lt.SavePage,t),createWorkspace:async t=>(await pt(e)).dispatch(lt.CreateSavedWorkspace,t),deleteWorkspace:async t=>{const a=xn(),n=await a.getCurrentWorkspace();if(n.workspaceId===t)throw new Error(`Cannot delete current active workspace ${n.title}`);return(await pt(e)).dispatch(lt.DeleteSavedWorkspace,t)},updateWorkspace:async t=>(await pt(e)).dispatch(lt.UpdateSavedWorkspace,t),getWorkspace:async t=>(await pt(e)).dispatch(lt.GetSavedWorkspace,t),getWorkspaces:async t=>(await pt(e)).dispatch(lt.GetSavedWorkspaces,t),getWorkspacesMetadata:async t=>(await pt(e)).dispatch(lt.GetSavedWorkspacesMetadata,t),saveWorkspace:async t=>(await pt(e)).dispatch(lt.SaveWorkspace,t),getDockProviderConfig:async t=>(await pt(e)).dispatch(lt.GetDockProviderConfig,t),saveDockProviderConfig:async t=>(await pt(e)).dispatch(lt.SaveDockProviderConfig,t)}),un=k.Dark,pn=e=>Object.entries(e).reduce((e,[t,a])=>`${e}--workspace-palette-${t}: ${a};`,""),wn=(e,t)=>{const a=!!e.contentBackground5&&"#000000"!==e.contentBackground5,n=!!e.contentBackground4&&"#000000"!==e.contentBackground4,o=Qe(e.textDefault),r=Qe(e.textInactive),i=o.rgb,s=r.rgb,c=o.alpha?parseFloat(o.alpha.toString()):1,l=r.alpha?parseFloat(r.alpha.toString()):1;return{dockExpandedContainerBorderColor:a?e.contentBackground5:e.background4,dockExpandedContainerBorderRadius:a&&t?"0":"10px",dockExpandedContainerBackground:n?e.contentBackground4:e.background1,fillerBackgroundColor:n?e.contentBackground4:"inherit",dockCompanionContainerBackground:n?e.contentBackground4:"inherit",dockComponentContainerBackground:a?e.contentBackground5:e.background5,styledDropdownActiveBackground:`${a?e.contentBackground5:e.background4}`,contentMenuWrapperInternalDivBorderColor:a?e.contentBackground5:e.background5,contentMenuItemContainerActiveBackground:a?e.contentBackground5:e.background3,contentMenuItemContainerHoverBackground:a?e.contentBackground5:e.background2,contentMenuHeaderBorderColor:a?e.contentBackground5:e.background5,dockCompanionSeparatorBorderColor:a?e.contentBackground5:e.background3,dockComponentContainerBorderColor:a?e.contentBackground5:e.background5,companionDockButtonActiveBackground:a?e.contentBackground5:e.background4,companionDockButtonHoverBackground:a?e.contentBackground5:e.background4,"computed-scrollbar-thumb-alpha":c,"computed-scrollbar-track-alpha":l,"scrollbar-thumb-rgb":i,"scrollbar-track-rgb":s}},hn=(e,t,a)=>({selectedTab:"dark"===t?e.background3:e.background1,...wn(e,a)});const gn=new class{constructor(e){this.providerStorage=e,this.getVarsByScheme=e=>"dark"===e?this.darkPaletteVars:this.lightPaletteVars,this.setWorkspaceStorage=e=>{this.workspaceStorage=e},this.trySynchronizeWorkspaceStorage=async()=>{if(this.workspaceStorage){const e=this.getScheme();if(this.hasUserPreference()&&this.workspaceStorage.setItem(Nt.SelectedColorScheme,e),this.darkPaletteVars&&this.lightPaletteVars)if("dark"===e||"light"===e)this.workspaceStorage.setItem(Nt.ThemePaletteSheet,`:root{${this.getVarsByScheme(e)}}`);else{const e=`@media (prefers-color-scheme: dark){:root {${this.getVarsByScheme("dark")}}}`,t=`@media (prefers-color-scheme: light){:root{${this.getVarsByScheme("light")}}}`;this.workspaceStorage.setItem(Nt.ThemePaletteSheet,`${t}${e}`)}const t=function(e){const t=e===k.System?"system":e===k.Light?"light":"dark",a="dark"===t;return{inForcedColorsMode:!1,prefersReducedTransparency:!1,shouldUseDarkColors:a,shouldUseDarkColorsForSystemIntegratedUI:a,shouldUseHighContrastColors:!1,shouldUseInvertedColorScheme:!1,themeSource:t}}(e);try{await fin.System.setThemePreferences(t)}catch(e){console.error("failed to set native theme preferences: ",e)}}},this.setPalettes=async({light:e,dark:t},a)=>{this.lightPaletteVars=pn({...e,...hn(e,"light",a)}),this.darkPaletteVars=pn({...t,...hn(t,"dark",a)})}}hasUserPreference(){return null!==this.providerStorage.getItem(Nt.SelectedColorScheme)}setScheme(e){this.providerStorage.setItem(Nt.SelectedColorScheme,e)}setThemeDefaultScheme(e){const t=Object.values(k);t.includes(e)?this.providerStorage.setItem(Nt.ThemePaletteDefaultScheme,e):console.warn(`Invalid theme default scheme '${e}'. Must be one of: ${t.join(", ")}. Ignoring default.`)}getScheme(){const e=this.providerStorage.getItem(Nt.SelectedColorScheme),t=this.providerStorage.getItem(Nt.ThemePaletteDefaultScheme);return null!==e?e:t??un}}(e),mn=()=>(we("ThemeStorage: getThemeStorageController called"),gn),kn=e=>({getThemes:async()=>(await pt(e)).dispatch(lt.GetThemes,void 0),setSelectedScheme:async t=>(await pt(e)).dispatch(lt.SetSelectedScheme,t),getSelectedScheme:async()=>(await pt(e)).dispatch(lt.GetSelectedScheme,void 0)}),fn=async e=>{const t=await Da({name:"dock3",uuid:We.uuid});await t.dispatch(La.SetSelectedScheme,e)},bn=async e=>{const t=await ct();await t.dispatch("set-selected-scheme",e)},yn=async e=>{const t=await(async()=>{if(!be){const e=ge(await fe());be=e()}return be})();await t.dispatch(ke.UpdatePlatformThemeScheme,{scheme:e})},vn=async e=>{const t=await Ee();return Promise.all(t.map(async t=>{const a=await Da(t.identity);await a.dispatch(La.SetSelectedScheme,e)}))},Sn=async e=>{const t=await Fe();return Promise.all(t.map(async t=>{const a=await Da(t.identity);await a.dispatch(La.SetSelectedScheme,e)}))},Pn=async e=>{const t=(await fin.Application.getCurrentSync().getViews()).filter(e=>e.identity.name.startsWith(Me.FindInPageViewPrefix));return Promise.all(t.map(async t=>{const a=await Da(t.identity,"theme-change-listener");await a.dispatch(La.SetSelectedScheme,e)}))},Cn=async e=>{try{const t=mn();t.setScheme(e),await Promise.all([await t.trySynchronizeWorkspaceStorage(),yn(e),vn(e),Sn(e),Pn(e),bn(e),fn(e)])}catch(e){console.error("failed to set the selected scheme: ",e)}},Mn=()=>{try{return mn().getScheme()}catch(e){console.error("failed to get the selected scheme: ",e)}},In=e=>{const t=fin.Platform.wrapSync(e);let a;return Object.assign(t,{applySnapshot:async(t,a)=>{if("string"!=typeof t&&!t?.windows)throw new Error("Not a valid browser snapshot");return fin.Platform.wrapSync(e).applySnapshot(t,a)},getSnapshot:()=>fin.Platform.wrapSync(e).getSnapshot().then(e=>e),getViewSnapshot:t=>fin.Platform.wrapSync(e).getViewSnapshot(t),createView:(t,a,n)=>fin.Platform.wrapSync(e).createView(t,a,n),launchApp:async t=>{console.warn("launchApp method is deprecated. It is recommended to use createView - https://developers.openfin.co/of-docs/docs/platform-getting-started#add-a-view-to-an-existing-window or createWindow - https://developers.openfin.co/of-docs/docs/platform-getting-started#create-a-platform-window instead."),t.target||(t.target={uuid:B,name:E,entityType:F||"unknown"});return(await pt(e)).dispatch(lt.LaunchApp,t)},_invokeCustomAction:async(t,a)=>{const n=await pt(e),o={actionId:t,payload:{...a,callerType:a.callerType||M.API}};return n.dispatch(lt.InvokeCustomActionInternal,o)},_requestQuitPlatformDialog:async t=>(await pt(e)).dispatch(lt.RequestQuitPlatformDialogInternal,t),_showUpdateVersionModal:async t=>(await pt(e)).dispatch(lt.ShowUpdateVersionModalInternal,t),getCurrentWorkspace:async t=>(await pt(e)).dispatch(lt.GetCurrentWorkspace,t),applyWorkspace:async(t,a)=>(await pt(e)).dispatch(lt.ApplyWorkspace,{...t,options:a}),restoreLastSavedWorkspace:async t=>(await pt(e)).dispatch(lt.RestoreLastSavedWorkspaceInternal,t),setActiveWorkspace:async t=>(await pt(e)).dispatch(lt.SetActiveWorkspace,t),getLanguage:async()=>(await pt(e)).dispatch(lt.GetLanguage),_getLanguageResources:async()=>(await pt(e)).dispatch(lt.GetLanguageResourcesInternal),setLanguage:async t=>(await pt(e)).dispatch(lt.SetLanguage,t),_raiseAnalytics:async t=>{if(a||(a=await ut(e)),"object"==typeof a&&a?.analytics?.isSupported){return(await pt(e)).dispatch(lt.Analytics,t)}e.uuid},getNotificationsConfig:async()=>{console.warn("Notifications config is now part of the platform manifest and is automatically resolved by the notifications API. Do NOT use getNotificationsConfig method as it will not return the correct configuration.")},_refreshBookmarksInternal:async()=>(await pt(e)).dispatch(lt.RefreshBookmarksInternal),_launchBookmarkInternal:async t=>(await pt(e)).dispatch(lt.LaunchBookmarkInternal,t),_updateDockFavoritesInternal:async t=>(await pt(e)).dispatch(lt.UpdateDockFavoritesInternal,t),_updateContentMenuInternal:async t=>(await pt(e)).dispatch(lt.UpdateContentMenuInternal,t),_launchDockEntryInternal:async t=>(await pt(e)).dispatch(lt.LaunchDockEntryInternal,t),_setDockFavoritesInternal:async t=>(await pt(e)).dispatch(lt.SetDockFavoritesOrderInternal,t),_setDefaultDockButtonsOrderInternal:async t=>(await pt(e)).dispatch(lt.SetDefaultDockButtonsOrderInternal,t),_removeDockFavoriteInternal:async t=>(await pt(e)).dispatch(lt.RemoveDockFavoriteInternal,t),_addDockFavoriteInternal:async t=>(await pt(e)).dispatch(lt.AddDockFavoriteInternal,t),_navigateContentMenuInternal:async t=>(await pt(e)).dispatch(lt.NavigateContentMenuInternal,t),_openDockWorkspacesContextMenuInternal:async()=>(await pt(e)).dispatch(lt.GetDockWorkspacesContextMenuInternal),_handleDockWorkspacesMenuResponseInternal:async t=>(await pt(e)).dispatch(lt.HandleDockWorkspacesMenuResponseInternal,t),_refreshDockCollectionMenuInternal:async t=>(await pt(e)).dispatch(lt.RefreshDockCollectionMenuInternal,t),_launchCollectionInternal:async t=>(await pt(e)).dispatch(lt.LaunchCollectionInternal,t),_focusAndExpandSearchInternal:async()=>(await pt(e)).dispatch(lt.FocusAndExpandSearchInternal),_showAboutPagePopup:async e=>(async e=>{const t=new URLSearchParams({...e,title:"About"}),a=await He(fin.me.identity),n=e.copyrightMessage?320:286,o=xe(a,{height:n,width:360});return nn({options:{frame:!0,smallWindow:!0,saveWindowState:!1,showTaskbarIcon:!0,includeInSnapshots:!1,workspacePlatform:{windowType:"enterprise"},resizable:!1,name:Me.AboutPageWindow,url:await ne()+z.EnterpriseAboutPage,defaultWidth:360,defaultHeight:n,preventBlur:!0,...o},parameters:t})})(e),Theme:kn(e),Browser:Oa(e),Storage:dn(e)})},xn=()=>In(fin.me.identity),An={contextMenuOptions:{enabled:!0,template:["spellCheck","separator","print","separator","cut","copy","paste","undo","redo","selectAll","inspect","reload"]},downloadShelf:{enabled:!1},hotkeys:[{keys:"Shift+CommandOrControl+E"}]};function Wn(e,t){return da({},An,t,e)}const Rn="internal-generated-view-",Dn=(e,t)=>e.content?{...e,content:e.content.map(e=>Dn(e,t))}:{...e,componentState:t(e.componentState)},Tn=(e,t)=>{return a=Wn(e,t),{...a,name:a.name?a.name:`internal-generated-view-${wa()}`,_internalWorkspaceData:{...a._internalWorkspaceData,viewIdentifier:a._internalWorkspaceData?.viewIdentifier||wa()}};var a},Bn=e=>({...e,name:void 0}),En=e=>{const t={...e};return Dn(t,Bn)},Fn=e=>{const t={...e};return Dn(t,e=>e.name&&e.name.startsWith(Rn)?Bn(e):e)},Nn=e=>{const t=[];return(e&&Array.isArray(e)?e:[]).forEach(e=>{if("component"===e.type)return t.push(e.componentState);const a=Nn(e.content);t.push(...a)}),t},Vn=async(e,t,a=We)=>{let n;if(await Be(a)){n=(await Ae(a).getOptions()).layout||{settings:{}}}return{...n,content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{title:e,url:t}}]}]}};new Map,new Map,new Map;const Ln=(e,t)=>{const a=Nn(t.content);return{...Dn(e,e=>{const t=a.find(t=>t._internalWorkspaceData?.viewIdentifier===e._internalWorkspaceData?.viewIdentifier),n=t?t.isClosable:e.isClosable;return{...e,isClosable:n}}),settings:t.settings}},Un=e=>e?Nn(e).length:0,_n=(pa()(async e=>{try{if(!e||!e.layoutContainerKey)return;const t=await(async e=>fin.Platform.Layout.wrapSync({...fin.me.identity,layoutName:e}).getConfig())(e.layoutContainerKey),a=t.content?Nn(t.content):[],n=a.length;n>1?(async e=>{if("multiView"!==e.attachedPageType){const t=await xn().Browser.getUniquePageTitle();xn().Browser.wrapSync(We).updatePage({pageId:e.pageId,page:{title:e.title??t,singleViewName:null,attachedPageType:"multiView"}})}})(e):1===n&&(async(e,t)=>{const a=xn().Browser.wrapSync(We);if("singleView"!==e.attachedPageType){const n=await va(e);delete n.layout,delete n.pageId;const o=fin.View.wrapSync({uuid:We.uuid,name:t}),r=await o.getInfo(),i={...n,title:null,singleViewName:t,hasUnsavedChanges:!1,attachedPageType:"singleView",pageIcon:r.favicons[0]};await a.updatePage({pageId:e.pageId,page:i})}})(e,a[0].name),await(async(e,t)=>{const a=Sa({...We,layoutName:e.layoutContainerKey}),n=await a.isShowingTabs();t>1?n||await a.show():1===t&&n&&await a.hide({settings:{reorderEnabled:!0}})})(e,n)}catch(e){}},50,{leading:!1,trailing:!0}),require("react-i18next")),On=require("i18next");var Gn=a.n(On);const Hn=JSON.parse('{"contextMenu.newWindow":"新建窗口","contextMenu.newPage":"新建页面","contextMenu.restore":"还原到上次保存的更改","contextMenu.switchWorkspace":"切换工作区","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"外观","contextMenu.saveWorkspace":"保存工作区","contextMenu.saveWorkspaceAs":"将工作区另存为...","contextMenu.renameWorkspace":"重命名工作区","contextMenu.deleteWorkspace":"删除工作区","contextMenu.downloads":"下载","contextMenu.savePage":"保存页面","contextMenu.savePageAs":"将页面另存为...","contextMenu.print":"打印...","contextMenu.printScreen":"打印屏幕","contextMenu.closeWindow":"关闭窗口","contextMenu.openStorefront":"开放式店面","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新建视图","contextMenu.openView":"使用默认 Web 浏览器打开视图","contextMenu.openViews":"使用默认 Web 浏览器打开视图","contextMenu.reload":"Reload CN","contextMenu.reloadView":"重新加载视图","contextMenu.reloadViews":"重新加载视图","contextMenu.duplicate":"Duplicate CN","contextMenu.duplicateView":"复制视图","contextMenu.duplicateViews":"复制视图","contextMenu.addView":"将视图添加到频道","contextMenu.addViews":"将视图添加到频道","contextMenu.removeView":"从频道中移除视图","contextMenu.removeViews":"从频道中移除视图","contextMenu.closeView":"关闭视图","contextMenu.closeViews":"关闭视图","contextMenu.closeTab":"Close Tab CN","contextMenu.duplicatePage":"复制页面","contextMenu.submenu.print":"打印","contextMenu.submenu.printAll":"全部打印","saveMenu.saveWorkspaceAs":"将工作区另存为","saveMenu.savePageAs":"将页面另存为","saveModal.enterValue":"Please enter a value CN","saveModal.alreadyExists":"{{title}} 已存在。","saveModal.pleaseEnterValidName":"请输入有效名称","saveModal.renamePage":"重新命名页面","saveModal.closePage":"关闭页面","saveModal.discardChanges":"放弃更改","saveModal.discardAll":"全部放弃","saveModal.saveAll":"全部保存","saveModal.savePagesCount":"关闭前保存 ({{count}}) 个页面?","defaultPageTitle":"Untitled Page CN","enterpriseDefaultPageTitle":"Untitled Supertab CN","addNewPage":"添加新页面","addNewTab":"添加新选项卡","addNewView":"新建视图","restoreModal":"您确定要还原到上次保存的更改吗?","modal.discardWarning":"任何未保存的更改都将丢失","modal.discardPageWarning":"对此页的任何未保存的更改都将丢失。","modal.saveChangesPrompt":"关闭前保存更改?","modal.pageClose":"关闭页面","switchWorkspaceModal":"您确定要切换到 {{workspace}} 吗?","switchWorkspaceModal.warning":"任何未保存的更改都将丢失","deleteWorkspaceModal":"您确定要永久删除此工作区吗?","replaceWorkspaceModal.warning":"名称为 {{workspace}} 的工作区已存在。您是否要替换它?","replaceWorkspaceModal.warning.body":"已存在同名的工作区。替换它将覆盖其当前内容。","replaceWorkspaceModal.replace":"替换","closePlatform":"关闭平台","closePlatform.workspace":"关闭 {{workspace}} 平台","closePlatform.warning":"关闭平台将关闭所有工作区、应用或任何正在运行的进程。","back":"后退","forward":"前进","reload":"重新加载","green":"绿色","purple":"紫色","orange":"橙色","red":"红色","pink":"粉红色","yellow":"黄色","theme.light":"浅色","theme.dark":"深色","theme.system":"与操作系统设置同步","toolbar.hideTabs":"隐藏选项卡","toolbar.showTabs":"显示选项卡","toolbar.lock":"锁定","toolbar.unlock":"解锁","toolbar.colorLinking":"颜色链接","toolbar.changeLayout":"更改布局","toolbar.saveMenu":"保存菜单","toolbar.maximizeWindow":"最大化窗口","toolbar.restoreWindow":"还原窗口","toolbar.minimizeWindow":"最小化窗口","toolbar.downloads":"下载","changeLayout.fullWidth":"全宽","changeLayout.columns":"列数","changeLayout.Rows":"行数","changeLayout.Grid":"网格","successIndicator.workspaceSwitched":"已切换工作区","successIndicator.hidden":"选项卡已隐藏","successIndicator.shown":"选项卡已显示","successIndicator.locked":"页面已锁定","successIndicator.unlocked":"页面已解锁","successIndicator.workspaceSaved":"工作区已保存","successIndicator.workspaceSavedAs":"工作区已另存为 {{workspace}}","successIndicator.workspaceRenamed":"工作区已重命名","successIndicator.pageSaved":"页面已保存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. CN","successIndicator.pageCopySaved":"页面已另存为 {{title}}","successIndicator.pageRenamed":"页面已重命名","successIndicator.contextGroupApplied":"已应用上下文组","successIndicator.namedContextGroupApplied":"已应用 {{colorName}} 上下文组","successIndicator.viewRemoved":"从上下文组中移除视图","successIndicator.viewsRemoved":"从上下文组中移除视图","successIndicator.layoutApplied":"已应用 {{layoutName}} 布局","successIndicator.workspaceDeleted":"工作区已删除","errorIndicator.pageSaveFailed":"页面保存失败","errorIndicator.workspaceSaveFailed":"工作区保存失败","errorIndicator.failedToDuplicatePage":"复制页面失败","infoIndicator.colorLinkAttempt":"我们尝试对此选项卡进行颜色链接,但网站/内容所有者尚未启用该功能","global.cancel":"取消","global.confirm":"确认","global.save":"保存","global.delete":"Delete CN","appResults.header":"Featured Content CN","recentlyClosed.header":"Recently Closed CN","landingPage.subheader":"Apps and websites selected by an admin will show here CN","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. CN","a11y.label":"Search command line interface. Use Escape key to go back. CN","searchResults.searchingFor":"正在所有提供程序中搜索 {{query}}","searchResults.resultsAvailableLoading":"所有提供程序中有 {{count}} 个结果可用,部分提供程序仍在加载","searchResults.allResultsAvailable":"所有提供程序中有 {{count}} 个结果可用","searchResults.noResultsFoundAllProviders":"所有提供程序中找不到 {{query}} 的结果","searchResults.searchingProvider":"正在 {{providerName}} 中搜索 {{query}}","searchResults.loadingProviderResults":"正在加载 {{providerName}} 结果...","searchResults.loadingMoreProviderResults":"正在加载更多 {{providerName}} 结果...","searchResults.providerResultsAvailable":"{{providerName}} 中有 {{count}} 个结果可用","searchResults.noResultsFoundProvider":"{{providerName}} 中找不到 {{query}} 的结果","searchResults.focused":"已聚焦: {{title}}","searchResults.viewMore":"查看更多","aria.openBrowser":"打开浏览器菜单","aria.browserTabs":"浏览器选项卡","aria.viewTab":"查看 {{title}} 的选项卡","aria.viewTabWithKeyboardMac":"{{title}} 的视图选项卡。按 Enter 或空格键以进入。按 Command Shift E 以退出","aria.viewTabWithKeyboardWindows":"{{title}} 的视图选项卡。按 Enter 或空格键以进入。按 Ctrl Shift E 以退出","aria.closePage":"关闭 {{title}} 的页面选项卡按钮","aria.closeTab":"关闭选项卡 {{title}}","aria.title":"标题","aria.closeContextGroup":"使用转义关闭上下文组选择对话框","aria.colorLinking":"显示或隐藏颜色链接","aria.applyColorLinking":"请选择一个视图以应用颜色链接","aria.assignColorLinkingCurrentView":"分配给 {{name}} 上下文组的当前视图","aria.assignColorLinkingCurrentViews":"分配给 {{name}} 上下文组的当前视图","aria.setColorLinkingActiveView":"将活动视图设置为 {{name}} 上下文组","aria.setColorLinkingActiveViews":"将活动视图设置为 {{name}} 上下文组","aria.escapeLayoutDialog":"使用转义关闭更改布局对话框","global.supertab":"Supertab CN","global.tab":"Tab CN","bookmarks.editBookmark":"Edit Bookmark CN","bookmarks.bookmarkAdded":"Bookmark added CN","bookmarks.done":"Done CN","bookmarks.remove":"Remove CN","bookmarks.bookmarksPanel":"Bookmarks Panel CN","bookmarks.bookmarks":"Bookmarks CN","bookmarks.allBookmarks":"All Bookmarks CN","bookmarks.favorites":"Favorites CN","bookmarks.searchBookmarks":"Search Bookmarks CN","bookmarks.clearSearchInput":"Clear Search Input CN","bookmarks.createFolder":"Create New Folder CN","bookmarks.exitFolder":"Exit Folder CN","bookmarks.newFolder":"New Folder CN","bookmarks.namedFolder":"{{name}} Folder CN","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings CN","bookmarks.folderSettings":"{{name}} Folder Settings CN","bookmarks.noResultsFound":"No results found CN","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search CN","bookmarks.nothingToShow":"Nothing to show yet CN","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder CN","bookmarks.resultsFoundIn":"Results found in {{name}} CN","bookmarks.resultsInOtherFolders":"Results found in other folders CN","bookmarks.allResultsFoundIn":"All results found in CN","bookmarks.editName":"Edit Name CN","bookmarks.move":"Move CN","bookmarks.bookmarkAddedTitle":"Bookmark Added CN","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" CN","bookmarks.bookmarkEditedTitle":"Bookmark Edited CN","enterpriseContextMenu.saveSupertab":"Save Supertab CN","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... CN","enterpriseContextMenu.duplicate":"Duplicate CN","enterpriseContextMenu.deleteSupertab":"Delete Supertab CN","enterpriseContextMenu.newTab":"New Tab CN","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As CN","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? CN","saveSupertabCount_other":"Save {{count}} Supertabs before closing? CN"},"enterpriseSaveModal.renameSupertab":"Rename CN","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. CN","enterpriseSaveModal.closeTab":"Close Tab CN","enterpriseSaveModal.closeSupertab":"Close Supertab CN","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. CN","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? CN","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. CN","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved CN","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. CN","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted CN","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. CN","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab CN","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab CN","enterpriseCommandBar.switchToSupertab":"Switch to Supertab CN","enterpriseCommandBar.goTo":"Go to {{type}} CN","enterpriseCommandBar.viewMore":"View More CN","sidePanel.aiCenter":"AI Center CN","sidePanel.newChat":"New Chat CN","sidePanel.toggleSidePanel":"Toggle Side Panel CN","sidePanel.closeSidePanel":"Close Side Panel CN","sidePanel.openAiCenter":"Open AI Center CN","contextMenu.quitEnterpriseBrowser":"Quit CN","dock.removeFavorite":"Remove CN","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),$n=JSON.parse('{"contextMenu.newWindow":"新視窗","contextMenu.newPage":"新頁面","contextMenu.restore":"還原到上次儲存的變更","contextMenu.switchWorkspace":"切換工作空間","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"外觀","contextMenu.saveWorkspace":"儲存工作空間","contextMenu.saveWorkspaceAs":"將工作空間另存為...","contextMenu.renameWorkspace":"重新命名工作空間","contextMenu.deleteWorkspace":"刪除工作空間","contextMenu.downloads":"下載","contextMenu.savePage":"儲存頁面","contextMenu.savePageAs":"將頁面另存為...","contextMenu.print":"列印...","contextMenu.printScreen":"擷取畫面","contextMenu.closeWindow":"關閉視窗","contextMenu.openStorefront":"打開 Storefront","contextMenu.quitPlatform":"退出平台","contextMenu.newView":"新視圖","contextMenu.openView":"使用預設網頁瀏覽器打開視圖","contextMenu.openViews":"使用預設網頁瀏覽器打開視圖","contextMenu.reload":"Reload ZH","contextMenu.reloadView":"重新載入視圖","contextMenu.reloadViews":"重新載入視圖","contextMenu.duplicate":"Duplicate ZH","contextMenu.duplicateView":"複寫視圖","contextMenu.duplicateViews":"複寫視圖","contextMenu.addView":"將視圖新增至頻道","contextMenu.addViews":"將視圖新增至頻道","contextMenu.removeView":"從頻道中移除視圖","contextMenu.removeViews":"從頻道中移除視圖","contextMenu.closeView":"關閉視圖","contextMenu.closeViews":"關閉視圖","contextMenu.closeTab":"Close Tab ZH","contextMenu.duplicatePage":"複寫頁面","contextMenu.submenu.print":"列印","contextMenu.submenu.printAll":"列印全部","saveMenu.saveWorkspaceAs":"將工作空間另存為","saveMenu.savePageAs":"頁面另存為","saveModal.enterValue":"Please enter a value ZH","saveModal.alreadyExists":"{{title}} 已經存在。","saveModal.pleaseEnterValidName":"請輸入一個有效的名稱","saveModal.renamePage":"重新命名頁面","saveModal.closePage":"關閉頁面","saveModal.discardChanges":"捨棄變更","saveModal.discardAll":"全部捨棄","saveModal.saveAll":"儲存全部","saveModal.savePagesCount":"要先儲存 ({{count}}) 個頁面再關閉嗎?","defaultPageTitle":"Untitled Page ZH","enterpriseDefaultPageTitle":"Untitled Supertab ZH","addNewPage":"新增新頁面","addNewTab":"新增新索引標籤","addNewView":"新視圖","restoreModal":"您確定要還原到上次儲存的變更嗎?","modal.discardWarning":"任何未儲存的變更都將被捨棄","modal.discardPageWarning":"在此頁面任何未儲存的變更都將遺失。","modal.saveChangesPrompt":"要先儲存變更再關閉嗎?","modal.pageClose":"頁面關閉","switchWorkspaceModal":"您確定要切換到 {{workspace}}?","switchWorkspaceModal.warning":"任何未儲存的變更都將被捨棄","deleteWorkspaceModal":"您確定要永久刪除此工作空間嗎?","replaceWorkspaceModal.warning":"具有名稱 {{workspace}} 的工作空間已經存在。你要更換它嗎?","replaceWorkspaceModal.warning.body":"相同名稱的工作空間已經存在。更換它後,將會覆蓋目前內容。","replaceWorkspaceModal.replace":"更換","closePlatform":"關閉平台","closePlatform.workspace":"關閉 {{workspace}} 平台","closePlatform.warning":"關閉平台後,將關閉正在執行的任何工作空間、APP 或流程。","back":"上一頁","forward":"下一頁","reload":"重新載入","green":"綠","purple":"紫","orange":"橘","red":"紅色","pink":"粉紅","yellow":"黃","theme.light":"淺","theme.dark":"深","theme.system":"與 OS 設定同步","toolbar.hideTabs":"隱藏索引標籤","toolbar.showTabs":"顯示索引標籤","toolbar.lock":"上鎖","toolbar.unlock":"解鎖","toolbar.colorLinking":"顏色連結","toolbar.changeLayout":"變更版面","toolbar.saveMenu":"儲存選單","toolbar.maximizeWindow":"最大化視窗","toolbar.restoreWindow":"還原視窗","toolbar.minimizeWindow":"最小化視窗","toolbar.downloads":"下載","changeLayout.fullWidth":"全螢幕寬度","changeLayout.columns":"行","changeLayout.Rows":"列","changeLayout.Grid":"網格","successIndicator.workspaceSwitched":"工作空間已切換","successIndicator.hidden":"索引標籤已隱藏","successIndicator.shown":"索引標籤已顯示","successIndicator.locked":"頁面已上鎖","successIndicator.unlocked":"頁面已解鎖","successIndicator.workspaceSaved":"工作空間已儲存","successIndicator.workspaceSavedAs":"工作空間已另存為 {{workspace}}","successIndicator.workspaceRenamed":"工作空間已重新命名","successIndicator.pageSaved":"頁面已儲存","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. ZH","successIndicator.pageCopySaved":"頁面已另存為 {{title}}","successIndicator.pageRenamed":"頁面已重新命名","successIndicator.contextGroupApplied":"脈絡群組已套用","successIndicator.namedContextGroupApplied":"{{colorName}} 脈絡群組已套用","successIndicator.viewRemoved":"從脈絡群組中移除的視圖","successIndicator.viewsRemoved":"從脈絡群組中移除的視圖","successIndicator.layoutApplied":"{{layoutName}} 版面已套用","successIndicator.workspaceDeleted":"工作空間已刪除","errorIndicator.pageSaveFailed":"頁面無法儲存","errorIndicator.workspaceSaveFailed":"工作空間無法儲存","errorIndicator.failedToDuplicatePage":"無法複寫頁面","infoIndicator.colorLinkAttempt":"我們嘗試對此索引標籤進行顏色連結,但網站/內容所有者尚未啟用該功能","global.cancel":"取消","global.confirm":"確認","global.save":"儲存","global.delete":"Delete ZH","appResults.header":"Featured Content ZH","recentlyClosed.header":"Recently Closed ZH","landingPage.subheader":"Apps and websites selected by an admin will show here ZH","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. ZH","a11y.label":"Search command line interface. Use Escape key to go back. ZH","searchResults.searchingFor":"正在所有提供者中搜尋 {{query}}","searchResults.resultsAvailableLoading":"所有提供者中有 {{count}} 個結果可用,部分提供者仍在載入","searchResults.allResultsAvailable":"所有提供者中有 {{count}} 個結果可用","searchResults.noResultsFoundAllProviders":"所有提供者中找不到 {{query}} 的結果","searchResults.searchingProvider":"正在 {{providerName}} 中搜尋 {{query}}","searchResults.loadingProviderResults":"正在載入 {{providerName}} 結果...","searchResults.loadingMoreProviderResults":"正在載入更多 {{providerName}} 結果...","searchResults.providerResultsAvailable":"{{providerName}} 中有 {{count}} 個結果可用","searchResults.noResultsFoundProvider":"{{providerName}} 中找不到 {{query}} 的結果","searchResults.focused":"已聚焦: {{title}}","searchResults.viewMore":"查看更多","aria.openBrowser":"開啟瀏覽器選單","aria.browserTabs":"瀏覽器索引標籤","aria.viewTab":"{{title}} 的視圖索引標籤","aria.viewTabWithKeyboardMac":"{{title}} 的視圖索引標籤。按 Enter 或空白鍵以進入。按 Command Shift E 以退出","aria.viewTabWithKeyboardWindows":"{{title}} 的視圖索引標籤。按 Enter 或空白鍵以進入。按 Ctrl Shift E 以退出","aria.closePage":"關閉 {{title}} 的頁面索引標籤按鈕","aria.closeTab":"關閉索引標籤 {{title}}","aria.title":"標題","aria.closeContextGroup":"使用 Esc 鍵關閉脈絡群組選取對話框","aria.colorLinking":"顯示或隱藏顏色連結","aria.applyColorLinking":"請選取要套用顏色連結的視圖","aria.assignColorLinkingCurrentView":"目前視圖分配給 {{name}} 脈絡群組","aria.assignColorLinkingCurrentViews":"目前視圖分配給 {{name}} 脈絡群組","aria.setColorLinkingActiveView":"將啟用視圖設定為 {{name}} 脈絡群組","aria.setColorLinkingActiveViews":"將啟用視圖設定為 {{name}} 脈絡群組","aria.escapeLayoutDialog":"使用 Esc 鍵關閉變更版面對話框","global.supertab":"Supertab ZH","global.tab":"Tab ZH","bookmarks.editBookmark":"Edit Bookmark ZH","bookmarks.bookmarkAdded":"Bookmark added ZH","bookmarks.done":"Done ZH","bookmarks.remove":"Remove ZH","bookmarks.bookmarksPanel":"Bookmarks Panel ZH","bookmarks.bookmarks":"Bookmarks ZH","bookmarks.allBookmarks":"All Bookmarks ZH","bookmarks.favorites":"Favorites ZH","bookmarks.searchBookmarks":"Search Bookmarks ZH","bookmarks.clearSearchInput":"Clear Search Input ZH","bookmarks.createFolder":"Create New Folder ZH","bookmarks.exitFolder":"Exit Folder ZH","bookmarks.newFolder":"New Folder ZH","bookmarks.namedFolder":"{{name}} Folder ZH","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings ZH","bookmarks.folderSettings":"{{name}} Folder Settings ZH","bookmarks.noResultsFound":"No results found ZH","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search ZH","bookmarks.nothingToShow":"Nothing to show yet ZH","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder ZH","bookmarks.resultsFoundIn":"Results found in {{name}} ZH","bookmarks.resultsInOtherFolders":"Results found in other folders ZH","bookmarks.allResultsFoundIn":"All results found in ZH","bookmarks.editName":"Edit Name ZH","bookmarks.move":"Move ZH","bookmarks.bookmarkAddedTitle":"Bookmark Added ZH","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" ZH","bookmarks.bookmarkEditedTitle":"Bookmark Edited ZH","enterpriseContextMenu.saveSupertab":"Save Supertab ZH","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... ZH","enterpriseContextMenu.duplicate":"Duplicate ZH","enterpriseContextMenu.deleteSupertab":"Delete Supertab ZH","enterpriseContextMenu.newTab":"New Tab ZH","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As ZH","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? ZH","saveSupertabCount_other":"Save {{count}} Supertabs before closing? ZH"},"enterpriseSaveModal.renameSupertab":"Rename ZH","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. ZH","enterpriseSaveModal.closeTab":"Close Tab ZH","enterpriseSaveModal.closeSupertab":"Close Supertab ZH","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. ZH","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? ZH","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. ZH","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved ZH","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. ZH","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted ZH","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. ZH","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab ZH","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab ZH","enterpriseCommandBar.switchToSupertab":"Switch to Supertab ZH","enterpriseCommandBar.goTo":"Go to {{type}} ZH","enterpriseCommandBar.viewMore":"View More ZH","sidePanel.aiCenter":"AI Center ZH","sidePanel.newChat":"New Chat ZH","sidePanel.toggleSidePanel":"Toggle Side Panel ZH","sidePanel.closeSidePanel":"Close Side Panel ZH","sidePanel.openAiCenter":"Open AI Center ZH","contextMenu.quitEnterpriseBrowser":"Quit ZH","dock.removeFavorite":"Remove ZH","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),Kn=JSON.parse('{"contextMenu.newWindow":"New Window","contextMenu.newPage":"New Page","contextMenu.restore":"Restore to Last Saved Changes","contextMenu.switchWorkspace":"Switch Workspace","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"Appearance","contextMenu.saveWorkspace":"Save Workspace","contextMenu.saveWorkspaceAs":"Save Workspace As...","contextMenu.renameWorkspace":"Rename Workspace","contextMenu.deleteWorkspace":"Delete Workspace","contextMenu.downloads":"Downloads","contextMenu.savePage":"Save Page","contextMenu.savePageAs":"Save Page As...","contextMenu.print":"Print...","contextMenu.printScreen":"Print Screen","contextMenu.closeWindow":"Close Window","contextMenu.openStorefront":"Open Storefront","contextMenu.quitPlatform":"Quit {{platformLabel}}","contextMenu.newView":"New View","contextMenu.openView":"Open View with Default Web Browser","contextMenu.openViews":"Open Views with Default Web Browser","contextMenu.reload":"Reload","contextMenu.reloadView":"Reload View","contextMenu.reloadViews":"Reload Views","contextMenu.duplicate":"Duplicate","contextMenu.duplicateView":"Duplicate View","contextMenu.duplicateViews":"Duplicate Views","contextMenu.addView":"Add View to Channel","contextMenu.addViews":"Add Views to Channel","contextMenu.removeView":"Remove View from Channel","contextMenu.removeViews":"Remove Views from Channel","contextMenu.closeView":"Close View","contextMenu.closeViews":"Close Views","contextMenu.closeTab":"Close Tab","contextMenu.duplicatePage":"Duplicate Page","contextMenu.submenu.print":"Print","contextMenu.submenu.printAll":"Print All","saveMenu.saveWorkspaceAs":"Save Workspace As","saveMenu.savePageAs":"Save Page As","saveModal.enterValue":"Please enter a value","saveModal.alreadyExists":"{{title}} already exists.","saveModal.pleaseEnterValidName":"Please enter a valid name","saveModal.renamePage":"Rename Page","saveModal.closePage":"Close Page","saveModal.discardChanges":"Discard Changes","saveModal.discardAll":"Discard All","saveModal.saveAll":"Save All","saveModal.savePagesCount":"Save ({{count}}) pages before closing?","defaultPageTitle":"Untitled Page","enterpriseDefaultPageTitle":"Untitled Supertab","addNewPage":"New Page","addNewTab":"Add New Tab","addNewView":"New View","restoreModal":"Are you sure you want to restore to last saved changes?","modal.discardWarning":"Any unsaved changes will be discarded","modal.discardPageWarning":"Any unsaved changes to this page will be lost.","modal.saveChangesPrompt":"Save changes before closing?","modal.pageClose":"Page Close","switchWorkspaceModal":"Are you sure you want to switch to {{workspace}}?","switchWorkspaceModal.warning":"Any unsaved changes will be discarded","deleteWorkspaceModal":"Are you sure you want to permanently delete this workspace?","replaceWorkspaceModal.warning":"A Workspace with the name {{workspace}} already exists. Do you want to replace it?","replaceWorkspaceModal.warning.body":"A workspace with the same name already exists. Replacing it will overwrite its current contents.","replaceWorkspaceModal.replace":"Replace","closePlatform":"Close the platform","closePlatform.workspace":"Close the {{workspace}} Platform","closePlatform.warning":"Closing a platform will close any workspaces, apps or any processes that are running.","back":"Back","forward":"Forward","reload":"Reload","green":"Green","purple":"Purple","orange":"Orange","red":"Red","pink":"Pink","yellow":"Yellow","theme.light":"Light","theme.dark":"Dark","theme.system":"Sync with OS setting","toolbar.hideTabs":"Hide Tabs","toolbar.showTabs":"Show Tabs","toolbar.lock":"Lock","toolbar.unlock":"Unlock","toolbar.colorLinking":"Color Linking","toolbar.changeLayout":"Change Layout","toolbar.saveMenu":"Save Menu","toolbar.maximizeWindow":"Maximize Window","toolbar.restoreWindow":"Restore Window","toolbar.minimizeWindow":"Minimize Window","toolbar.downloads":"Downloads","toolbar.findInPage":"Find in Page","changeLayout.fullWidth":"Full Width","changeLayout.columns":"Columns","changeLayout.Rows":"Rows","changeLayout.Grid":"Grid","successIndicator.workspaceSwitched":"Workspace Switched","successIndicator.hidden":"Tabs are Hidden","successIndicator.shown":"Tabs are Shown","successIndicator.locked":"Page is Locked","successIndicator.unlocked":"Page is Unlocked","successIndicator.workspaceSaved":"Workspace saved","successIndicator.workspaceSavedAs":"Workspace saved as {{workspace}}","successIndicator.workspaceRenamed":"Workspace renamed","successIndicator.pageSaved":"Page Saved","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved.","successIndicator.pageCopySaved":"Page saved as {{title}}","successIndicator.pageRenamed":"Page renamed","successIndicator.contextGroupApplied":"Context group applied","successIndicator.namedContextGroupApplied":"{{colorName}} context group applied","successIndicator.viewRemoved":"View removed from context group","successIndicator.viewsRemoved":"Views removed from context group","successIndicator.layoutApplied":"{{layoutName}} layout applied","successIndicator.workspaceDeleted":"Workspace deleted","errorIndicator.pageSaveFailed":"Page failed to save","errorIndicator.workspaceSaveFailed":"Workspace failed to save","errorIndicator.failedToDuplicatePage":"Failed to duplicate Page","infoIndicator.colorLinkAttempt":"We attempted to color link this tab, but the site/content owner has not enabled it yet","global.cancel":"Cancel","global.confirm":"Confirm","global.save":"Save","global.delete":"Delete","appResults.header":"Featured Content","recentlyClosed.header":"Recently Closed","landingPage.subheader":"Apps and websites selected by an admin will show here","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content.","a11y.label":"Search command line interface. Use Escape key to go back.","searchResults.searchingFor":"Searching all providers for {{query}}","searchResults.resultsAvailableLoading":"{{count}} results available from all providers, some providers still loading","searchResults.allResultsAvailable":"{{count}} results available from all providers","searchResults.noResultsFoundAllProviders":"No results found from all providers for {{query}}","searchResults.searchingProvider":"Searching {{providerName}} for {{query}}","searchResults.loadingProviderResults":"Loading {{providerName}} results...","searchResults.loadingMoreProviderResults":"Loading more {{providerName}} results...","searchResults.providerResultsAvailable":"{{count}} results available from {{providerName}}","searchResults.noResultsFoundProvider":"No results found from {{providerName}} for {{query}}","searchResults.focused":"Focused: {{title}}","searchResults.viewMore":"View More","aria.openBrowser":"Open Browser Menu","aria.browserTabs":"Browser Tabs","aria.viewTab":"View Tab for {{title}}","aria.viewTabWithKeyboardMac":"View Tab for {{title}}. Press Enter or Space to enter. Press Command Shift E to exit","aria.viewTabWithKeyboardWindows":"View Tab for {{title}}. Press Enter or Space to enter. Press Ctrl Shift E to exit","aria.closePage":"Close Page Tab Button for {{title}}","aria.closeTab":"Close Tab {{title}}","aria.title":"Title","aria.closeContextGroup":"Use escape to close context group selection dialog","aria.colorLinking":"Show or hide color linking","aria.applyColorLinking":"Please select a view to apply color linking","aria.assignColorLinkingCurrentView":"Current view assigned to {{name}} context group","aria.assignColorLinkingCurrentViews":"Current views assigned to {{name}} context group","aria.setColorLinkingActiveView":"Set active view to {{name}} context group","aria.setColorLinkingActiveViews":"Set active views to {{name}} context group","aria.escapeLayoutDialog":"Use escape to close change layout dialog","global.supertab":"Supertab","global.tab":"Tab","bookmarks.editBookmark":"Edit Bookmark","bookmarks.bookmarkAdded":"Bookmark added","bookmarks.done":"Done","bookmarks.remove":"Remove","bookmarks.bookmarksPanel":"Bookmarks Panel","bookmarks.bookmarks":"Bookmarks","bookmarks.allBookmarks":"All Bookmarks","bookmarks.favorites":"Favorites","bookmarks.searchBookmarks":"Search Bookmarks","bookmarks.clearSearchInput":"Clear Search Input","bookmarks.createFolder":"Create New Folder","bookmarks.exitFolder":"Exit Folder","bookmarks.newFolder":"New Folder","bookmarks.namedFolder":"{{name}} Folder","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings","bookmarks.folderSettings":"{{name}} Folder Settings","bookmarks.noResultsFound":"No results found","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search","bookmarks.nothingToShow":"Nothing to show yet","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder","bookmarks.resultsFoundIn":"Results found in {{name}}","bookmarks.resultsInOtherFolders":"Results found in other folders","bookmarks.allResultsFoundIn":"All results found in","bookmarks.editName":"Edit Name","bookmarks.move":"Move","bookmarks.bookmarkAddedTitle":"Bookmark Added","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\"","bookmarks.bookmarkEditedTitle":"Bookmark Edited","enterpriseContextMenu.saveSupertab":"Save Supertab","enterpriseContextMenu.saveSupertabAs":"Save Supertab As...","enterpriseContextMenu.duplicate":"Duplicate","enterpriseContextMenu.deleteSupertab":"Delete Supertab","enterpriseContextMenu.newTab":"New Tab","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing?","saveSupertabCount_other":"Save {{count}} Supertabs before closing?"},"enterpriseSaveModal.renameSupertab":"Rename","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab.","enterpriseSaveModal.closeTab":"Close Tab","enterpriseSaveModal.closeSupertab":"Close Supertab","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost.","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab?","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent.","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted.","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab","enterpriseCommandBar.switchToSupertab":"Switch to Supertab","enterpriseCommandBar.goTo":"Go to {{type}}","enterpriseCommandBar.viewMore":"View More","sidePanel.aiCenter":"AI Center","sidePanel.newChat":"New Chat","sidePanel.toggleSidePanel":"Toggle Side Panel","sidePanel.closeSidePanel":"Close Side Panel","sidePanel.openAiCenter":"Open AI Center","contextMenu.quitEnterpriseBrowser":"Quit","dock.removeFavorite":"Remove","dock.workspaceManagement":{"restoreSuccess":"Last Saved Changes Restored"},"findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),zn=JSON.parse('{"contextMenu.newWindow":"Neues Fenster","contextMenu.newPage":"Neue Seite","contextMenu.restore":"Wiederherstellen der zuletzt gespeicherten Änderungen","contextMenu.switchWorkspace":"Workspace wechseln","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"Erscheinungsbild","contextMenu.saveWorkspace":"Workspace speichern","contextMenu.saveWorkspaceAs":"Workspace speichern unter...","contextMenu.renameWorkspace":"Workspace umbenennen","contextMenu.deleteWorkspace":"Workspace löschen","contextMenu.downloads":"Downloads","contextMenu.savePage":"Seite speichern","contextMenu.savePageAs":"Seite speichern unter...","contextMenu.print":"Drucken...","contextMenu.printScreen":"Bildschirmansicht drucken","contextMenu.closeWindow":"Fenster schließen","contextMenu.openStorefront":"Schaufenster öffnen","contextMenu.quitPlatform":"Plattform verlassen","contextMenu.newView":"Neue Ansicht","contextMenu.openView":"Ansicht mit Standard-Webbrowser öffnen","contextMenu.openViews":"Ansichten mit Standard-Webbrowser öffnen","contextMenu.reload":"Reload DE","contextMenu.reloadView":"Ansicht neu laden","contextMenu.reloadViews":"Ansichten neu laden","contextMenu.duplicate":"Duplicate DE","contextMenu.duplicateView":"Ansicht duplizieren","contextMenu.duplicateViews":"Ansichten duplizieren","contextMenu.addView":"Ansicht zum Channel hinzufügen","contextMenu.addViews":"Ansichten zum Channel hinzufügen","contextMenu.removeView":"Ansicht aus dem Channel entfernen","contextMenu.removeViews":"Ansichten aus dem Channel entfernen","contextMenu.closeView":"Ansicht schließen","contextMenu.closeViews":"Ansichten schließen","contextMenu.closeTab":"Close Tab DE","contextMenu.duplicatePage":"Seite duplizieren","contextMenu.submenu.print":"Drucken","contextMenu.submenu.printAll":"Alle drucken","saveMenu.saveWorkspaceAs":"Workspace speichern unter","saveMenu.savePageAs":"Seite speichern unter","saveModal.enterValue":"Please enter a value DE","saveModal.alreadyExists":"{{title}} existiert bereits.","saveModal.pleaseEnterValidName":"Bitte geben Sie einen gültigen Namen ein","saveModal.renamePage":"Seite umbenennen","saveModal.closePage":"Seite schließen","saveModal.discardChanges":"Änderungen verwerfen","saveModal.discardAll":"Alle verwerfen","saveModal.saveAll":"Alle speichern","saveModal.savePagesCount":"({{count}}) Seiten vor dem Schließen speichern?","defaultPageTitle":"Untitled Page DE","enterpriseDefaultPageTitle":"Untitled Supertab DE","addNewPage":"Neue Seite hinzufügen","addNewTab":"Neuen Tab hinzufügen","addNewView":"Neue Ansicht","restoreModal":"Sind Sie sicher, dass Sie die zuletzt gespeicherten Änderungen wiederherstellen wollen?","modal.discardWarning":"Alle nicht gespeicherten Änderungen werden verworfen","modal.discardPageWarning":"Alle nicht gespeicherten Änderungen auf dieser Seite gehen verloren.","modal.saveChangesPrompt":"Änderungen vor dem Schließen speichern?","modal.pageClose":"Seite schließen","switchWorkspaceModal":"Sind Sie sicher, dass Sie zu {{workspace}}wechseln wollen?","switchWorkspaceModal.warning":"Alle nicht gespeicherten Änderungen werden verworfen","deleteWorkspaceModal":"Sind Sie sicher, dass Sie diesen Workspace dauerhaft löschen wollen?","replaceWorkspaceModal.warning":"Ein Workspace mit dem Namen {{workspace}} existiert bereits. Möchten Sie ihn ersetzen?","replaceWorkspaceModal.warning.body":"Ein Workspace mit demselben Namen existiert bereits. Wenn Sie ihn ersetzen, wird der aktuelle Inhalt überschrieben.","replaceWorkspaceModal.replace":"Ersetzen","closePlatform":"Plattform schließen","closePlatform.workspace":"Die {{workspace}} Plattform schließen","closePlatform.warning":"Wenn Sie eine Plattform schließen, werden alle Workspaces, Apps und laufenden Prozesse beendet.","back":"Zurück","forward":"Weiter","reload":"Neu laden","green":"Grün","purple":"Lila","orange":"Orange","red":"Rot","pink":"Pink","yellow":"Gelb","theme.light":"Hell","theme.dark":"Dunkel","theme.system":"Synchronisierung mit OS-Einstellung","toolbar.hideTabs":"Tabs ausblenden","toolbar.showTabs":"Tabs anzeigen","toolbar.lock":"Sperren","toolbar.unlock":"Freischalten","toolbar.colorLinking":"Farbverknüpfung","toolbar.changeLayout":"Layout ändern","toolbar.saveMenu":"Menü speichern","toolbar.maximizeWindow":"Fenster maximieren","toolbar.restoreWindow":"Fenster wiederherstellen","toolbar.minimizeWindow":"Fenster minimieren","toolbar.downloads":"Downloads","changeLayout.fullWidth":"Volle Breite","changeLayout.columns":"Spalten","changeLayout.Rows":"Zeilen","changeLayout.Grid":"Raster","successIndicator.workspaceSwitched":"Workspace gewechselt","successIndicator.hidden":"Tabs sind ausgeblendet","successIndicator.shown":"Tabs werden angezeigt","successIndicator.locked":"Seite ist gesperrt","successIndicator.unlocked":"Seite ist freigeschaltet","successIndicator.workspaceSaved":"Workspace gespeichert","successIndicator.workspaceSavedAs":"Workspace gespeichert als {{workspace}}","successIndicator.workspaceRenamed":"Workspace umbenannt","successIndicator.pageSaved":"Seite gespeichert","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. DE","successIndicator.pageCopySaved":"Seite gespeichert als {{title}}","successIndicator.pageRenamed":"Seite umbenannt","successIndicator.contextGroupApplied":"Angewandte Kontextgruppe","successIndicator.namedContextGroupApplied":"{{colorName}} angewandte Kontextgruppe","successIndicator.viewRemoved":"Ansicht aus der Kontextgruppe entfernt","successIndicator.viewsRemoved":"Ansichten aus der Kontextgruppe entfernt","successIndicator.layoutApplied":"{{layoutName}} angewandtes Layout","successIndicator.workspaceDeleted":"Workspace gelöscht","errorIndicator.pageSaveFailed":"Seite konnte nicht gespeichert werden","errorIndicator.workspaceSaveFailed":"Workspace konnte nicht gespeichert werden","errorIndicator.failedToDuplicatePage":"Seite kann nicht dupliziert werden","infoIndicator.colorLinkAttempt":"Wir haben versucht, diesem Tab eine Farbe zuordnen, aber der Eigentümer der Website/des Inhalts hat sie noch nicht aktiviert","global.cancel":"Abbrechen","global.confirm":"Bestätigen","global.save":"Speichern","global.delete":"Delete DE","appResults.header":"Featured Content DC","recentlyClosed.header":"Recently Closed DC","landingPage.subheader":"Apps and websites selected by an admin will show here DE","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. DE","a11y.label":"Search command line interface. Use Escape key to go back. DE","searchResults.searchingFor":"Suche in allen Anbietern nach {{query}}","searchResults.resultsAvailableLoading":"{{count}} Ergebnisse von allen Anbietern verfügbar, einige Anbieter werden noch geladen","searchResults.allResultsAvailable":"{{count}} Ergebnisse von allen Anbietern verfügbar","searchResults.noResultsFoundAllProviders":"Keine Ergebnisse von allen Anbietern für {{query}} gefunden","searchResults.searchingProvider":"Suche in {{providerName}} nach {{query}}","searchResults.loadingProviderResults":"{{providerName}} Ergebnisse werden geladen...","searchResults.loadingMoreProviderResults":"Weitere {{providerName}} Ergebnisse werden geladen...","searchResults.providerResultsAvailable":"{{count}} Ergebnisse von {{providerName}} verfügbar","searchResults.noResultsFoundProvider":"Keine Ergebnisse von {{providerName}} für {{query}} gefunden","searchResults.focused":"Fokussiert: {{title}}","searchResults.viewMore":"Mehr anzeigen","aria.openBrowser":"Browser-Menü öffnen","aria.browserTabs":"Browser-Tab","aria.viewTab":"Tab „Ansicht“ für {{title}}","aria.viewTabWithKeyboardMac":"Tab „Ansicht“ für {{title}}. Drücken Sie Enter oder Leertaste, um einzutreten. Drücken Sie Command Shift E, um zu beenden","aria.viewTabWithKeyboardWindows":"Tab „Ansicht“ für {{title}}. Drücken Sie Enter oder Leertaste, um einzutreten. Drücken Sie Strg Shift E, um zu beenden","aria.closePage":"Button „Seite schließen“ für {{title}}","aria.closeTab":"Tab schließen {{title}}","aria.title":"Bezeichnung","aria.closeContextGroup":"Verwenden Sie die Escape-Taste, um den Dialog zur Auswahl von Kontextgruppen zu schließen","aria.colorLinking":"Farbverknüpfung ein- oder ausblenden","aria.applyColorLinking":"Bitte wählen Sie eine Ansicht, um die Farbverknüpfung anzuwenden","aria.assignColorLinkingCurrentView":"Aktuelle Ansicht, die der Kontextgruppe {{name}} zugeordnet ist","aria.assignColorLinkingCurrentViews":"Aktuelle Ansichten, die der Kontextgruppe {{name}} zugeordnet sind","aria.setColorLinkingActiveView":"Aktive Ansicht auf die Kontextgruppe {{name}} setzen","aria.setColorLinkingActiveViews":"Aktive Ansichten auf die Kontextgruppe {{name}} setzen","aria.escapeLayoutDialog":"Verwenden Sie die Escape-Taste, um den Dialog zur Layoutänderung zu schließen","global.supertab":"Supertab DE","global.tab":"Tab DE","bookmarks.editBookmark":"Edit Bookmark DE","bookmarks.bookmarkAdded":"Bookmark added DE","bookmarks.done":"Done DE","bookmarks.remove":"Remove DE","bookmarks.bookmarksPanel":"Bookmarks Panel DE","bookmarks.bookmarks":"Bookmarks DE","bookmarks.allBookmarks":"All Bookmarks DE","bookmarks.favorites":"Favorites DE","bookmarks.searchBookmarks":"Search Bookmarks DE","bookmarks.clearSearchInput":"Clear Search Input DE","bookmarks.createFolder":"Create New Folder DE","bookmarks.exitFolder":"Exit Folder DE","bookmarks.newFolder":"New Folder DE","bookmarks.namedFolder":"{{name}} Folder DE","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings DE","bookmarks.folderSettings":"{{name}} Folder Settings DE","bookmarks.noResultsFound":"No results found DE","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search DE","bookmarks.nothingToShow":"Nothing to show yet DE","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder DE","bookmarks.resultsFoundIn":"Results found in {{name}} DE","bookmarks.resultsInOtherFolders":"Results found in other folders DE","bookmarks.allResultsFoundIn":"All results found in DE","bookmarks.editName":"Edit Name DE","bookmarks.move":"Move DE","bookmarks.bookmarkAddedTitle":"Bookmark Added DE","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" DE","bookmarks.bookmarkEditedTitle":"Bookmark Edited DE","enterpriseContextMenu.saveSupertab":"Save Supertab DE","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... DE","enterpriseContextMenu.duplicate":"Duplicate DE","enterpriseContextMenu.deleteSupertab":"Delete Supertab DE","enterpriseContextMenu.newTab":"New Tab DE","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As DE","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? DE","saveSupertabCount_other":"Save {{count}} Supertabs before closing? DE"},"enterpriseSaveModal.renameSupertab":"Rename DE","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. DE","enterpriseSaveModal.closeTab":"Close Tab DE","enterpriseSaveModal.closeSupertab":"Close Supertab DE","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. DE","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? DE","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. DE","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved DE","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. DE","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted DE","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. DE","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab DE","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab DE","enterpriseCommandBar.switchToSupertab":"Switch to Supertab DE","enterpriseCommandBar.goTo":"Go to {{type}} DE","enterpriseCommandBar.viewMore":"View More DE","sidePanel.aiCenter":"AI Center DE","sidePanel.newChat":"New Chat DE","sidePanel.toggleSidePanel":"Toggle Side Panel DE","sidePanel.closeSidePanel":"Close Side Panel DE","sidePanel.openAiCenter":"Open AI Center DE","contextMenu.quitEnterpriseBrowser":"Quit DE","dock.removeFavorite":"Remove DE","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),qn=JSON.parse('{"contextMenu.newWindow":"新しいウィンドウ","contextMenu.newPage":"新しいページ","contextMenu.restore":"最後に保存された変更に戻す","contextMenu.switchWorkspace":"ワークスペースに切り替える","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"外観","contextMenu.saveWorkspace":"ワークスペースを保存","contextMenu.saveWorkspaceAs":"ワークスペースを別名で保存...","contextMenu.renameWorkspace":"ワークスペース名を変更","contextMenu.deleteWorkspace":"ワークスペースを削除","contextMenu.downloads":"ダウンロード","contextMenu.savePage":"ページを保存","contextMenu.savePageAs":"ページを別名で保存...","contextMenu.print":"印刷...","contextMenu.printScreen":"プリントスクリーン","contextMenu.closeWindow":"ウィンドウを閉じる","contextMenu.openStorefront":"ストアフロントを開く","contextMenu.quitPlatform":"プラットフォームを終了する","contextMenu.newView":"新しいビュー","contextMenu.openView":"デフォルトのウェブブラウザーでビューを開く","contextMenu.openViews":"デフォルトのウェブブラウザーでビューを開く","contextMenu.reload":"Reload JP","contextMenu.reloadView":"ビューをリロード","contextMenu.reloadViews":"ビューをリロード","contextMenu.duplicate":"Duplicate JP","contextMenu.duplicateView":"ビューを複製","contextMenu.duplicateViews":"ビューを複製","contextMenu.addView":"ビューをチャネルに追加","contextMenu.addViews":"ビューをチャネルに追加","contextMenu.removeView":"チャネルからビューを削除","contextMenu.removeViews":"チャネルからビューを削除","contextMenu.closeView":"ビューを閉じる","contextMenu.closeViews":"ビューを閉じる","contextMenu.closeTab":"Close Tab JP","contextMenu.duplicatePage":"ページを複製","contextMenu.submenu.print":"印刷","contextMenu.submenu.printAll":"すべてを印刷","saveMenu.saveWorkspaceAs":"ワークスペースを別名で保存","saveMenu.savePageAs":"ページを別名で保存","saveModal.enterValue":"Please enter a value JP","saveModal.alreadyExists":"{{title}}はすでに存在しています。","saveModal.pleaseEnterValidName":"有効な名前を入力してください","saveModal.renamePage":"ページ名を変更","saveModal.closePage":"ページを閉じる","saveModal.discardChanges":"変更を破棄","saveModal.discardAll":"すべて破棄","saveModal.saveAll":"すべて保存","saveModal.savePagesCount":"閉じる前に({{count}})つのページを保存しますか?","defaultPageTitle":"Untitled Page JP","enterpriseDefaultPageTitle":"Untitled Supertab JP","addNewPage":"新しいページを追加","addNewTab":"新しいタブを追加","addNewView":"新しいビュー","restoreModal":"本当に最後に保存された変更に戻しますか?","modal.discardWarning":"保存されていない変更は破棄されます","modal.discardPageWarning":"保存されていないこのページへの変更は失われます。","modal.saveChangesPrompt":"閉じる前に変更を保存しますか?","modal.pageClose":"ページを閉じる","switchWorkspaceModal":"本当に{{workspace}}に切り替えますか?","switchWorkspaceModal.warning":"保存されていない変更は破棄されます","deleteWorkspaceModal":"このワークスペースを永久に削除してもよろしいですか?","replaceWorkspaceModal.warning":"{{workspace}}という名前のワークスペースがすでに存在します。置き換えますか?","replaceWorkspaceModal.warning.body":"同じ名前のワークスペースがすでに存在します。置き換えると、現在の内容は上書きされます。","replaceWorkspaceModal.replace":"置き換える","closePlatform":"プラットフォームを閉じる","closePlatform.workspace":"{{workspace}}プラットフォームを閉じる","closePlatform.warning":"プラットフォームを閉じると、実行中のワークスペース、アプリ、プロセスがすべて閉じます。","back":"戻る","forward":"進む","reload":"リロード","green":"グリーン","purple":"パープル","orange":"オレンジ","red":"レッド","pink":"ピンク","yellow":"イエロー","theme.light":"ライト","theme.dark":"ダーク","theme.system":"OSの設定と同期","toolbar.hideTabs":"タブを非表示","toolbar.showTabs":"タブを表示","toolbar.lock":"ロック","toolbar.unlock":"ロック解除","toolbar.colorLinking":"カラーリンク","toolbar.changeLayout":"レイアウトを変更","toolbar.saveMenu":"メニューを保存","toolbar.maximizeWindow":"ウィンドウを最大化する","toolbar.restoreWindow":"ウィンドウを復元","toolbar.minimizeWindow":"ウィンドウを最小化する","toolbar.downloads":"ダウンロード","changeLayout.fullWidth":"全幅","changeLayout.columns":"列","changeLayout.Rows":"行","changeLayout.Grid":"グリッド","successIndicator.workspaceSwitched":"ワークスペースが切り替わりました","successIndicator.hidden":"タブが非表示になっています","successIndicator.shown":"タブが表示されています","successIndicator.locked":"ページがロックされています","successIndicator.unlocked":"ページのロックが解除されています","successIndicator.workspaceSaved":"ワークスペースが保存されました","successIndicator.workspaceSavedAs":"ワークスペースが{{workspace}}として保存されました","successIndicator.workspaceRenamed":"ワークスペース名が変更されました","successIndicator.pageSaved":"ページが保存されました","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. JP","successIndicator.pageCopySaved":"ページが{{title}}として保存されました","successIndicator.pageRenamed":"ページ名が変更されました","successIndicator.contextGroupApplied":"コンテキストグループが適用されました","successIndicator.namedContextGroupApplied":"{{colorName}}コンテキストグループが適用されました","successIndicator.viewRemoved":"コンテキストグループからビューが削除されました","successIndicator.viewsRemoved":"コンテキストグループからビューが削除されました","successIndicator.layoutApplied":"{{layoutName}}レイアウトが適用されました","successIndicator.workspaceDeleted":"ワークスペースが削除されました","errorIndicator.pageSaveFailed":"ページを保存できませんでした","errorIndicator.workspaceSaveFailed":"ワークスペースを保存できませんでした","errorIndicator.failedToDuplicatePage":"ページを複製できませんでした","infoIndicator.colorLinkAttempt":"このタブをカラーリンクしようとしましたが、サイト/コンテンツのオーナーがまだこれを有効にしていません","global.cancel":"キャンセル","global.confirm":"確認","global.save":"保存","global.delete":"Delete JP","appResults.header":"Featured content JP","recentlyClosed.header":"Recently Closed JP","landingPage.subheader":"Apps and websites selected by an admin will show here JP","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. JP","a11y.label":"Search command line interface. Use Escape key to go back. JP","searchResults.searchingFor":"すべてのプロバイダーで{{query}}を検索中","searchResults.resultsAvailableLoading":"すべてのプロバイダーから{{count}}件の結果が利用可能、一部のプロバイダーはまだ読み込み中","searchResults.allResultsAvailable":"すべてのプロバイダーから{{count}}件の結果が利用可能","searchResults.noResultsFoundAllProviders":"すべてのプロバイダーで{{query}}の結果が見つかりませんでした","searchResults.searchingProvider":"{{providerName}}で{{query}}を検索中","searchResults.loadingProviderResults":"{{providerName}}の結果を読み込み中...","searchResults.loadingMoreProviderResults":"{{providerName}}の追加結果を読み込み中...","searchResults.providerResultsAvailable":"{{providerName}}から{{count}}件の結果が利用可能","searchResults.noResultsFoundProvider":"{{providerName}}で{{query}}の結果が見つかりませんでした","searchResults.focused":"フォーカス: {{title}}","searchResults.viewMore":"さらに表示","aria.openBrowser":"ブラウザーメニューを開く","aria.browserTabs":"ブラウザータブ","aria.viewTab":"{{title}}のタブを表示","aria.viewTabWithKeyboardMac":"{{title}}のビュータブ。Enterキーまたはスペースキーを押して入力。Command Shift Eを押して終了","aria.viewTabWithKeyboardWindows":"{{title}}のビュータブ。Enterキーまたはスペースキーを押して入力。Ctrl Shift Eを押して終了","aria.closePage":"{{title}}のページタブボタンを閉じる","aria.closeTab":"{{title}}タブを閉じる","aria.title":"タイトル","aria.closeContextGroup":"エスケープを使用して、コンテキストグループ選択ダイアログを閉じる","aria.colorLinking":"カラーリンクの表示/非表示","aria.applyColorLinking":"カラーリンクを適用するビューを選択してください","aria.assignColorLinkingCurrentView":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.assignColorLinkingCurrentViews":"現在のビューは{{name}}コンテキストグループに割り当てられています","aria.setColorLinkingActiveView":"アクティブビューを{{name}}コンテキストグループに設定","aria.setColorLinkingActiveViews":"アクティブビューを{{name}}コンテキストグループに設定","aria.escapeLayoutDialog":"エスケープを使用して、レイアウト変更選択ダイアログを閉じる","global.supertab":"Supertab JP","global.tab":"Tab JP","bookmarks.editBookmark":"Edit Bookmark JP","bookmarks.bookmarkAdded":"Bookmark added JP","bookmarks.done":"Done JP","bookmarks.remove":"Remove JP","bookmarks.bookmarksPanel":"Bookmarks Panel JP","bookmarks.bookmarks":"Bookmarks JP","bookmarks.allBookmarks":"All Bookmarks JP","bookmarks.favorites":"Favorites JP","bookmarks.searchBookmarks":"Search Bookmarks JP","bookmarks.clearSearchInput":"Clear Search Input JP","bookmarks.createFolder":"Create New Folder JP","bookmarks.exitFolder":"Exit Folder JP","bookmarks.newFolder":"New Folder JP","bookmarks.namedFolder":"{{name}} Folder JP","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings JP","bookmarks.folderSettings":"{{name}} Folder Settings JP","bookmarks.noResultsFound":"No results found JP","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search JP","bookmarks.nothingToShow":"Nothing to show yet JP","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder JP","bookmarks.resultsFoundIn":"Results found in {{name}} JP","bookmarks.resultsInOtherFolders":"Results found in other folders JP","bookmarks.allResultsFoundIn":"All results found in JP","bookmarks.editName":"Edit Name JP","bookmarks.move":"Move JP","bookmarks.bookmarkAddedTitle":"Bookmark Added JP","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" JP","bookmarks.bookmarkEditedTitle":"Bookmark Edited JP","enterpriseContextMenu.saveSupertab":"Save Supertab JP","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... JP","enterpriseContextMenu.duplicate":"Duplicate JP","enterpriseContextMenu.deleteSupertab":"Delete Supertab JP","enterpriseContextMenu.newTab":"New Tab JP","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As JP","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? JP","saveSupertabCount_other":"Save {{count}} Supertabs before closing? JP"},"enterpriseSaveModal.renameSupertab":"Rename JP","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. JP","enterpriseSaveModal.closeTab":"Close Tab JP","enterpriseSaveModal.closeSupertab":"Close Supertab JP","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. JP","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? JP","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. JP","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved JP","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. JP","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted JP","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. JP","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab JP","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab JP","enterpriseCommandBar.switchToSupertab":"Switch to Supertab JP","enterpriseCommandBar.goTo":"Go to {{type}} JP","enterpriseCommandBar.viewMore":"View More JP","sidePanel.aiCenter":"AI Center JP","sidePanel.newChat":"New Chat JP","sidePanel.toggleSidePanel":"Toggle Side Panel JP","sidePanel.closeSidePanel":"Close Side Panel JP","sidePanel.openAiCenter":"Open AI Center JP","contextMenu.quitEnterpriseBrowser":"Quit JP","dock.removeFavorite":"Remove JP","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),Jn=JSON.parse('{"contextMenu.newWindow":"새 창","contextMenu.newPage":"새 페이지","contextMenu.restore":"마지막으로 저장한 변경 사항으로 복원","contextMenu.switchWorkspace":"작업 공간 전환","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"모양","contextMenu.saveWorkspace":"작업 공간 저장","contextMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장...","contextMenu.renameWorkspace":"작업 공간 이름 바꾸기","contextMenu.deleteWorkspace":"작업 공간 삭제","contextMenu.downloads":"다운로드","contextMenu.savePage":"페이지 저장","contextMenu.savePageAs":"다른 이름으로 페이지 저장...","contextMenu.print":"인쇄...","contextMenu.printScreen":"화면 인쇄","contextMenu.closeWindow":"창 닫기","contextMenu.openStorefront":"매장 열기","contextMenu.quitPlatform":"플랫폼 종료","contextMenu.newView":"새 뷰","contextMenu.openView":"기본 웹 브라우저로 뷰 열기","contextMenu.openViews":"기본 웹 브라우저로 뷰 열기","contextMenu.reload":"Reload KR","contextMenu.reloadView":"뷰 다시 로드","contextMenu.reloadViews":"뷰 다시 로드","contextMenu.duplicate":"Duplicate KR","contextMenu.duplicateView":"뷰 복제","contextMenu.duplicateViews":"뷰 복제","contextMenu.addView":"채널에 뷰 추가","contextMenu.addViews":"채널에 뷰 추가","contextMenu.removeView":"채널에서 뷰 제거","contextMenu.removeViews":"채널에서 뷰 제거","contextMenu.closeView":"뷰 닫기","contextMenu.closeViews":"뷰 닫기","contextMenu.closeTab":"Close Tab KR","contextMenu.duplicatePage":"페이지 복제","contextMenu.submenu.print":"인쇄","contextMenu.submenu.printAll":"모두 인쇄","saveMenu.saveWorkspaceAs":"다른 이름으로 작업 공간 저장","saveMenu.savePageAs":"다른 이름으로 페이지 저장","saveModal.enterValue":"Please enter a value KR","saveModal.alreadyExists":"{{title}}이(가) 이미 존재합니다.","saveModal.pleaseEnterValidName":"유효한 이름을 입력하십시오.","saveModal.renamePage":"페이지 이름 바꾸기","saveModal.closePage":"페이지 닫기","saveModal.discardChanges":"변경 사항 폐기","saveModal.discardAll":"모두 폐기","saveModal.saveAll":"모두 저장","saveModal.savePagesCount":"닫기 전에 페이지({{count}}개)를 저장하시겠습니까?","defaultPageTitle":"Untitled Page KR","enterpriseDefaultPageTitle":"Untitled Supertab KR","addNewPage":"새 페이지 추가","addNewTab":"새 탭 추가","addNewView":"새 뷰","restoreModal":"마지막으로 저장한 변경 사항으로 복원하시겠습니까?","modal.discardWarning":"저장하지 않은 변경 사항은 모두 폐기됩니다","modal.discardPageWarning":"이 페이지의 저장하지 않은 변경 사항은 모두 손실됩니다.","modal.saveChangesPrompt":"닫기 전에 변경 사항을 저장하시겠습니까?","modal.pageClose":"페이지 닫기","switchWorkspaceModal":"{{workspace}}(으)로 전환하시겠습니까?","switchWorkspaceModal.warning":"저장하지 않은 변경 사항은 모두 폐기됩니다","deleteWorkspaceModal":"이 작업 공간을 영구적으로 삭제하시겠습니까?","replaceWorkspaceModal.warning":"{{workspace}}(이)라는 이름의 작업 공간이 이미 존재합니다. 교체하시겠습니까?","replaceWorkspaceModal.warning.body":"같은 이름의 작업 공간이 이미 존재합니다. 교체하면 현재 내용을 덮어쓰게 됩니다.","replaceWorkspaceModal.replace":"교체","closePlatform":"플랫폼 닫기","closePlatform.workspace":"{{workspace}} 플랫폼 닫기","closePlatform.warning":"플랫폼을 닫으면 실행 중인 모든 작업 공간, 앱 또는 프로세스가 닫힙니다.","back":"뒤로 가기","forward":"앞으로 가기","reload":"새로고침","green":"녹색","purple":"보라색","orange":"오렌지색","red":"빨간색","pink":"핑크색","yellow":"노란색","theme.light":"밝은","theme.dark":"어두운","theme.system":"OS 설정과 동기화","toolbar.hideTabs":"탭 숨기기","toolbar.showTabs":"탭 표시","toolbar.lock":"잠금","toolbar.unlock":"잠금 해제","toolbar.colorLinking":"색상 연결","toolbar.changeLayout":"레이아웃 변경","toolbar.saveMenu":"저장 메뉴","toolbar.maximizeWindow":"창 최대화","toolbar.restoreWindow":"창 복원","toolbar.minimizeWindow":"창 최소화","toolbar.downloads":"다운로드","changeLayout.fullWidth":"전체 너비","changeLayout.columns":"열","changeLayout.Rows":"행","changeLayout.Grid":"그리드","successIndicator.workspaceSwitched":"작업 공간 전환","successIndicator.hidden":"탭 숨김","successIndicator.shown":"탭 표시","successIndicator.locked":"페이지 잠금","successIndicator.unlocked":"페이지 잠금 해제됨","successIndicator.workspaceSaved":"작업 공간 저장됨","successIndicator.workspaceSavedAs":"작업 공간이 {{workspace}}(으)로 저장됨","successIndicator.workspaceRenamed":"작업 공간 이름 변경됨","successIndicator.pageSaved":"페이지 저장됨","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. KR","successIndicator.pageCopySaved":"페이지가 {{title}}(으)로 저장됨","successIndicator.pageRenamed":"페이지 이름 변경됨","successIndicator.contextGroupApplied":"컨텍스트 그룹 적용됨","successIndicator.namedContextGroupApplied":"{{colorName}} 컨텍스트 그룹 적용됨","successIndicator.viewRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.viewsRemoved":"컨텍스트 그룹에서 뷰 제거됨","successIndicator.layoutApplied":"{{layoutName}} 레이아웃 적용됨","successIndicator.workspaceDeleted":"작업 공간 삭제됨","errorIndicator.pageSaveFailed":"페이지 저장 실패","errorIndicator.workspaceSaveFailed":"작업 공간 저장 실패","errorIndicator.failedToDuplicatePage":"페이지 복제 실패","infoIndicator.colorLinkAttempt":"이 탭의 색상 링크를 시도했지만 사이트/콘텐츠 소유자가 아직 활성화하지 않았습니다.","global.cancel":"취소","global.confirm":"확인","global.save":"저장","global.delete":"Delete KR","appResults.header":"Featured Content KR","recentlyClosed.header":"Recently Closed KR","landingPage.subheader":"Apps and websites selected by an admin will show here KR","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. KR","a11y.label":"Search command line interface. Use Escape key to go back. KR","searchResults.searchingFor":"모든 공급자에서 {{query}} 검색 중","searchResults.resultsAvailableLoading":"모든 공급자에서 {{count}}개 결과 사용 가능, 일부 공급자가 아직 로드 중","searchResults.allResultsAvailable":"모든 공급자에서 {{count}}개 결과 사용 가능","searchResults.noResultsFoundAllProviders":"모든 공급자에서 {{query}}에 대한 결과를 찾을 수 없음","searchResults.searchingProvider":"{{providerName}}에서 {{query}} 검색 중","searchResults.loadingProviderResults":"{{providerName}} 결과 로드 중...","searchResults.loadingMoreProviderResults":"{{providerName}} 추가 결과 로드 중...","searchResults.providerResultsAvailable":"{{providerName}}에서 {{count}}개 결과 사용 가능","searchResults.noResultsFoundProvider":"{{providerName}}에서 {{query}}에 대한 결과를 찾을 수 없음","searchResults.focused":"포커스: {{title}}","searchResults.viewMore":"더 보기","aria.openBrowser":"브라우저 메뉴 열기","aria.browserTabs":"브라우저 탭","aria.viewTab":"{{title}}의 뷰 탭","aria.viewTabWithKeyboardMac":"{{title}}의 뷰 탭. Enter 또는 스페이스바를 눌러 입력. Command Shift E를 눌러 종료","aria.viewTabWithKeyboardWindows":"{{title}}의 뷰 탭. Enter 또는 스페이스바를 눌러 입력. Ctrl Shift E를 눌러 종료","aria.closePage":"{{title}}의 페이지 닫기 탭","aria.closeTab":"탭 {{title}} 닫기","aria.title":"제목","aria.closeContextGroup":"이스케이프를 사용하여 컨텍스트 그룹 선택 대화상자 닫기","aria.colorLinking":"색상 연결 표시 또는 숨기기","aria.applyColorLinking":"색상 연결을 적용하려면 뷰를 선택하십시오.","aria.assignColorLinkingCurrentView":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.assignColorLinkingCurrentViews":"{{name}} 컨텍스트 그룹에 할당된 현재 뷰","aria.setColorLinkingActiveView":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.setColorLinkingActiveViews":"활성 뷰를 {{name}} 컨텍스트 그룹으로 설정","aria.escapeLayoutDialog":"이스케이프를 사용하여 레이아웃 변경 대화상자 닫기","global.supertab":"Supertab KR","global.tab":"Tab KR","bookmarks.editBookmark":"Edit Bookmark KR","bookmarks.bookmarkAdded":"Bookmark added KR","bookmarks.done":"Done KR","bookmarks.remove":"Remove KR","bookmarks.bookmarksPanel":"Bookmarks Panel KR","bookmarks.bookmarks":"Bookmarks KR","bookmarks.allBookmarks":"All Bookmarks KR","bookmarks.favorites":"Favorites KR","bookmarks.searchBookmarks":"Search Bookmarks KR","bookmarks.clearSearchInput":"Clear Search Input KR","bookmarks.createFolder":"Create New Folder KR","bookmarks.exitFolder":"Exit Folder KR","bookmarks.newFolder":"New Folder KR","bookmarks.namedFolder":"{{name}} Folder KR","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings KR","bookmarks.folderSettings":"{{name}} Folder Settings KR","bookmarks.noResultsFound":"No results found KR","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search KR","bookmarks.nothingToShow":"Nothing to show yet KR","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder KR","bookmarks.resultsFoundIn":"Results found in {{name}} KR","bookmarks.resultsInOtherFolders":"Results found in other folders KR","bookmarks.allResultsFoundIn":"All results found in KR","bookmarks.editName":"Edit Name KR","bookmarks.move":"Move KR","bookmarks.bookmarkAddedTitle":"Bookmark Added KR","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" KR","bookmarks.bookmarkEditedTitle":"Bookmark Edited KR","enterpriseContextMenu.saveSupertab":"Save Supertab KR","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... KR","enterpriseContextMenu.duplicate":"Duplicate KR","enterpriseContextMenu.deleteSupertab":"Delete Supertab KR","enterpriseContextMenu.newTab":"New Tab KR","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As KR","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? KR","saveSupertabCount_other":"Save {{count}} Supertabs before closing? KR"},"enterpriseSaveModal.renameSupertab":"Rename KR","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. KR","enterpriseSaveModal.closeTab":"Close Tab KR","enterpriseSaveModal.closeSupertab":"Close Supertab KR","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. KR","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? KR","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. KR","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved KR","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved. KR","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted KR","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. KR","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab KR","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab KR","enterpriseCommandBar.switchToSupertab":"Switch to Supertab KR","enterpriseCommandBar.goTo":"Go to {{type}} KR","enterpriseCommandBar.viewMore":"View More KR","sidePanel.aiCenter":"AI Center KR","sidePanel.newChat":"New Chat KR","sidePanel.toggleSidePanel":"Toggle Side Panel KR","sidePanel.closeSidePanel":"Close Side Panel KR","sidePanel.openAiCenter":"Open AI Center KR","contextMenu.quitEnterpriseBrowser":"Quit KR","dock.removeFavorite":"Remove KR","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}'),Zn=JSON.parse('{"contextMenu.newWindow":"Новое окно","contextMenu.newPage":"Новая страница","contextMenu.restore":"Восстановить последние сохраненные изменения","contextMenu.switchWorkspace":"Переключить рабочую область","contextMenu.manageDesktopSignals":"Manage Desktop Signals","contextMenu.findInPage":"Find in Page...","contextMenu.appearance":"Внешний вид","contextMenu.saveWorkspace":"Сохранить рабочую область","contextMenu.saveWorkspaceAs":"Сохранить рабочую область как...","contextMenu.renameWorkspace":"Переименовать рабочую область","contextMenu.deleteWorkspace":"Удалить рабочую область","contextMenu.downloads":"Загрузки","contextMenu.savePage":"Сохранить страницу","contextMenu.savePageAs":"Сохранить страницу как...","contextMenu.print":"Печать...","contextMenu.printScreen":"Распечатать экран","contextMenu.closeWindow":"Закрыть окно","contextMenu.openStorefront":"Открыть Storefront","contextMenu.quitPlatform":"Выйти из платформы","contextMenu.newView":"Новое представление","contextMenu.openView":"Открыть представление с помощью веб-браузера по умолчанию","contextMenu.openViews":"Открыть представления с помощью веб-браузера по умолчанию","contextMenu.reload":"Reload RU","contextMenu.reloadView":"Перезагрузить представление","contextMenu.reloadViews":"Перезагрузить представления","contextMenu.duplicate":"Duplicate RU","contextMenu.duplicateView":"Дублировать представление","contextMenu.duplicateViews":"Дублировать представления","contextMenu.addView":"Добавить представление на канал","contextMenu.addViews":"Добавить представления на канал","contextMenu.removeView":"Удалить представление из канала","contextMenu.removeViews":"Удалить представления из канала","contextMenu.closeView":"Закрыть представление","contextMenu.closeViews":"Закрыть представления","contextMenu.closeTab":"Close Tab RU","contextMenu.duplicatePage":"Дублировать страницу","contextMenu.submenu.print":"Печатать","contextMenu.submenu.printAll":"Печатать все","saveMenu.saveWorkspaceAs":"Сохранить рабочую область как","saveMenu.savePageAs":"Сохранить страницу как","saveModal.enterValue":"Please enter a value RU","saveModal.alreadyExists":"{{title}} уже существует.","saveModal.pleaseEnterValidName":"Введите подходящее имя","saveModal.renamePage":"Переименовать страницу","saveModal.closePage":"Закрыть страницу","saveModal.discardChanges":"Отменить изменения","saveModal.discardAll":"Отменить все","saveModal.saveAll":"Сохранить все","saveModal.savePagesCount":"Сохранить ({{count}}) страниц перед закрытием?","defaultPageTitle":"Untitled Page RU","enterpriseDefaultPageTitle":"Untitled Supertab RU","addNewPage":"Добавить новую страницу","addNewTab":"Добавить новую вкладку","addNewView":"Новое представление","restoreModal":"Вы уверены, что хотите восстановить последние сохраненные изменения?","modal.discardWarning":"Все несохраненные изменения будут отменены","modal.discardPageWarning":"Все несохраненные изменения на этой странице будут потеряны.","modal.saveChangesPrompt":"Сохранить изменения перед закрытием?","modal.pageClose":"Закрыть страницу","switchWorkspaceModal":"Вы уверены, что хотите перейти в {{workspace}}?","switchWorkspaceModal.warning":"Все несохраненные изменения будут отменены","deleteWorkspaceModal":"Вы уверены, что хотите навсегда удалить эту рабочую область?","replaceWorkspaceModal.warning":"Рабочая область с именем {{workspace}} уже существует. Вы хотите заменить ее?","replaceWorkspaceModal.warning.body":"Рабочая область с таким же именем уже существует. При ее замене текущее содержимое будет перезаписано.","replaceWorkspaceModal.replace":"Заменить","closePlatform":"Закрыть платформу","closePlatform.workspace":"Закрыть платформу {{workspace}}","closePlatform.warning":"Закрытие платформы приведет к закрытию всех рабочих областей, приложений и запущенных процессов.","back":"Назад","forward":"Вперед","reload":"Перезагрузить ","green":"Зеленый","purple":"Фиолетовый","orange":"Оранжевый","red":"Красный","pink":"Розовый","yellow":"Желтый","theme.light":"Светлый","theme.dark":"Темный","theme.system":"Синхронизировать с настройками ОС","toolbar.hideTabs":"Скрыть вкладки","toolbar.showTabs":"Показать вкладки","toolbar.lock":"Заблокировать","toolbar.unlock":"Разблокировать","toolbar.colorLinking":"Привязка к цвету","toolbar.changeLayout":"Изменить макет","toolbar.saveMenu":"Меню сохранения","toolbar.maximizeWindow":"Увеличить окно","toolbar.restoreWindow":"Восстановить окно","toolbar.minimizeWindow":"Свернуть окно","toolbar.downloads":"Загрузки","changeLayout.fullWidth":"Полная ширина","changeLayout.columns":"Столбцы","changeLayout.Rows":"Строки","changeLayout.Grid":"Сетка","successIndicator.workspaceSwitched":"Рабочая область переключена","successIndicator.hidden":"Вкладки скрыты","successIndicator.shown":"Вкладки показаны","successIndicator.locked":"Страница заблокирована","successIndicator.unlocked":"Страница разблокирована","successIndicator.workspaceSaved":"Рабочая область сохранена","successIndicator.workspaceSavedAs":"Рабочая область сохранена как {{workspace}}","successIndicator.workspaceRenamed":"Рабочая область переименована","successIndicator.pageSaved":"Страница сохранена","successIndicator.pageHasBeenSaved":"\\"{{title}}\\" has been saved. RU","successIndicator.pageCopySaved":"Страница сохранена как {{title}}","successIndicator.pageRenamed":"Страница переименована","successIndicator.contextGroupApplied":"Контекстная группа применена","successIndicator.namedContextGroupApplied":"Контекстная группа {{colorName}} применена","successIndicator.viewRemoved":"Представление удалено из контекстной группы","successIndicator.viewsRemoved":"Представления удалены из контекстной группы","successIndicator.layoutApplied":"Макет {{layoutName}} применен","successIndicator.workspaceDeleted":"Рабочая область удалена","errorIndicator.pageSaveFailed":"Не удалось сохранить страницу","errorIndicator.workspaceSaveFailed":"Не удалось сохранить рабочую область","errorIndicator.failedToDuplicatePage":"Не удалось продублировать страницу","infoIndicator.colorLinkAttempt":"Мы попытались привязать цвет к этой вкладке, но владелец сайта/контента еще не включил эту возможность","global.cancel":"Отменить","global.confirm":"Подтвердить","global.save":"Сохранить","global.delete":"Delete RU","appResults.header":"Featured Content RU","recentlyClosed.header":"Recently Closed RU","landingPage.subheader":"Apps and websites selected by an admin will show here RU","a11y.landingLabel":"Search interface. Focus, textbox — \'search all content\'. Use Escape to close the modal. Press Enter to load all content. RU","a11y.label":"Search command line interface. Use Escape key to go back. RU","searchResults.searchingFor":"Поиск по всем источникам: {{query}}","searchResults.resultsAvailableLoading":"Доступно результатов от всех источников: {{count}}, некоторые источники все еще загружаются","searchResults.allResultsAvailable":"Доступно результатов от всех источников: {{count}}","searchResults.noResultsFoundAllProviders":"Результаты не найдены во всех источниках для {{query}}","searchResults.searchingProvider":"Поиск в {{providerName}}: {{query}}","searchResults.loadingProviderResults":"Загрузка результатов {{providerName}}...","searchResults.loadingMoreProviderResults":"Загрузка дополнительных результатов {{providerName}}...","searchResults.providerResultsAvailable":"Доступно результатов от {{providerName}}: {{count}}","searchResults.noResultsFoundProvider":"Результаты не найдены в {{providerName}} для {{query}}","searchResults.focused":"В фокусе: {{title}}","searchResults.viewMore":"Показать еще","aria.openBrowser":"Открыть меню браузера","aria.browserTabs":"Вкладки браузера","aria.viewTab":"Вкладка представления {{title}}","aria.viewTabWithKeyboardMac":"Вкладка представления {{title}}. Нажмите Enter или Пробел, чтобы войти. Нажмите Command Shift E, чтобы выйти","aria.viewTabWithKeyboardWindows":"Вкладка представления {{title}}. Нажмите Enter или Пробел, чтобы войти. Нажмите Ctrl Shift E, чтобы выйти","aria.closePage":"Кнопка «Закрыть» на вкладке для страницы {{title}}","aria.closeTab":"Закрыть вкладку {{title}}","aria.title":"Название","aria.closeContextGroup":"Чтобы закрыть диалог выбора контекстной группы, используйте escape","aria.colorLinking":"Показать или скрыть привязку к цвету","aria.applyColorLinking":"Выберите представление, чтобы применить привязку к цвету","aria.assignColorLinkingCurrentView":"Текущее представление, назначенное контекстной группе {{name}}","aria.assignColorLinkingCurrentViews":"Текущие представления, назначенные контекстной группе {{name}}","aria.setColorLinkingActiveView":"Установить активное представление в контекстную группу {{name}}","aria.setColorLinkingActiveViews":"Установить активные представления в контекстную группу {{name}}","aria.escapeLayoutDialog":"Чтобы закрыть диалог изменения макета, используйте escape","global.supertab":"Supertab RU","global.tab":"Tab RU","bookmarks.editBookmark":"Edit Bookmark RU","bookmarks.bookmarkAdded":"Bookmark added RU","bookmarks.done":"Done RU","bookmarks.remove":"Remove RU","bookmarks.bookmarksPanel":"Bookmarks Panel RU","bookmarks.bookmarks":"Bookmarks RU","bookmarks.allBookmarks":"All Bookmarks RU","bookmarks.favorites":"Favorites RU","bookmarks.searchBookmarks":"Search Bookmarks RU","bookmarks.clearSearchInput":"Clear Search Input RU","bookmarks.createFolder":"Create New Folder RU","bookmarks.exitFolder":"Exit Folder RU","bookmarks.newFolder":"New Folder RU","bookmarks.namedFolder":"{{name}} Folder RU","bookmarks.bookmarkSettings":"{{name}} Bookmark Settings RU","bookmarks.folderSettings":"{{name}} Folder Settings RU","bookmarks.noResultsFound":"No results found RU","bookmarks.noResultsFoundSubtext":"There are no bookmarks that match your search RU","bookmarks.nothingToShow":"Nothing to show yet RU","bookmarks.nothingToShowSubtext":"Add a bookmark to this folder RU","bookmarks.resultsFoundIn":"Results found in {{name}} RU","bookmarks.resultsInOtherFolders":"Results found in other folders RU","bookmarks.allResultsFoundIn":"All results found in RU","bookmarks.editName":"Edit Name RU","bookmarks.move":"Move RU","bookmarks.bookmarkAddedTitle":"Bookmark Added RU","bookmarks.bookmarkAddedToFolder":"Your bookmark was added to \\"{{folderName}}\\" RU","bookmarks.bookmarkEditedTitle":"Bookmark Edited RU","enterpriseContextMenu.saveSupertab":"Save Supertab RU","enterpriseContextMenu.saveSupertabAs":"Save Supertab As... RU","enterpriseContextMenu.duplicate":"Duplicate RU","enterpriseContextMenu.deleteSupertab":"Delete Supertab RU","enterpriseContextMenu.newTab":"New Tab RU","enterpriseSaveMenu.saveSupertabAs":"Save Supertab As RU","enterpriseSaveModal":{"saveSupertabCount_one":"Save {{count}} Supertab before closing? RU","saveSupertabCount_other":"Save {{count}} Supertabs before closing? RU"},"enterpriseSaveModal.renameSupertab":"Rename RU","enterpriseSaveModal.unsavedChanges":"You have unsaved changes in this Tab. RU","enterpriseSaveModal.closeTab":"Close Tab RU","enterpriseSaveModal.closeSupertab":"Close Supertab RU","enterpriseModal.discardSupertabWarning":"Any unsaved changes will be lost. RU","enterpriseDeleteModal.deleteSupertab":"Delete the \\"{{title}}\\" Supertab? RU","enterpriseDeleteModal.deleteSupertabWarning":"Are you sure you want to delete this Supertab? This action cannot be undone and is permanent. RU","enterpriseSuccessIndicator.supertabSaved":"Supertab Saved RU","enterpriseSuccessIndicator.supertabHasBeenSaved":"\\"{{title}}\\" Supertab has been saved.RU","enterpriseSuccessIndicator.supertabDeleted":"Supertab Deleted RU","enterpriseSuccessIndicator.supertabHasBeenDeleted":"\\"{{title}}\\" Supertab has been deleted. RU","enterpriseErrorIndicator.failedToDuplicateTab":"Failed to duplicate Tab RU","enterpriseErrorIndicator.failedToDuplicateSupertab":"Failed to duplicate Supertab RU","enterpriseCommandBar.switchToSupertab":"Switch to Supertab RU","enterpriseCommandBar.goTo":"Go to {{type}} RU","enterpriseCommandBar.viewMore":"View More RU","sidePanel.aiCenter":"AI Center RU","sidePanel.newChat":"New Chat RU","sidePanel.toggleSidePanel":"Toggle Side Panel RU","sidePanel.closeSidePanel":"Close Side Panel RU","sidePanel.openAiCenter":"Open AI Center RU","contextMenu.quitEnterpriseBrowser":"Quit RU","dock.removeFavorite":"Remove RU","findInPage.placeholder":"Find in page...","findInPage.ariaLabelSearchField":"Search field","findInPage.titlePreviousResult":"Previous result","findInPage.titleNextResult":"Next result","findInPage.titleClose":"Close"}');const jn=Gn().t,Qn=async e=>{const t=await Da(e);return await t.dispatch(La.GetPages)},Yn=async e=>(await Da(e.identity)).dispatch(La.UpdatePageForWindow,e);let Xn,eo=!1;const to=()=>eo,ao=()=>Xn||{enabled:!1};async function no(e,t){const a=!!t;let n=new Set;if(a){const{identity:e,pageId:a}=t,o=xn().Browser.wrapSync(e),r=await o.getPage(a);r?.panels&&(n=new Set(r.panels.map(({viewOptions:e})=>e.name)))}return e.map(e=>{const t=e.viewOptions.name,o=t?.startsWith(Rn);o&&(!a||a&&!n.has(t))&&delete e.viewOptions.name;const r=(i=e.viewOptions,i.name||=`${Rn}${wa()}`,i);var i;return{...e,viewOptions:{...r,uuid:We.uuid}}})}async function oo(e){for(const t of e)t.panels&&await io(t.panels)}const ro=e=>null!==e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&/ERR_([A-Z]+_*)+/.test(e.message);async function io(e){const t=e.map(e=>fin.Platform.getCurrentSync().createView(e.viewOptions,fin.me.identity).catch(e=>{if(!ro(e))throw e;console.error(e)}));return await Promise.all(t)}const so=(e,t)=>!t.find(t=>t===e),co=(e,t)=>`${e} (${t})`,lo=(e,t)=>{if(so(e,t))return e;let a=1;const n=e.replace(/ *\(\d+\)$/,"");for(;!so(co(n,a),t);)a+=1;return co(n,a)},uo=async()=>{const e=await Ee();return(await Promise.all(e.map(async e=>{try{return Qn(e.identity)}catch(t){JSON.stringify(e.identity);const a=await e.getOptions();return a.workspacePlatform?.pages||[]}}))).reduce((e,t)=>e.concat(t),[])},po=async()=>(await pt(We)).dispatch(lt.GetSavedPages,void 0),wo=async e=>(await pt(We)).dispatch(lt.GetSavedPage,e),ho=async(e,t)=>{const a=await(async e=>(await uo()).find(t=>t.pageId===e))(e);return!a||a.title===t.title&&e===t.pageId||await Yn({identity:a.parentIdentity,pageId:e,page:{pageId:t.pageId,title:t.title}}),a},go=async({page:e})=>{await ho(e.pageId,e),await(async e=>(await pt(We)).dispatch(lt.CreateSavedPage,e))({page:e})},mo=async e=>{await wo(e)&&await(async e=>(await pt(We)).dispatch(lt.DeleteSavedPage,e))(e)},ko=async({pageId:e,page:t})=>{await ho(e,t);return await(async e=>(await pt(We)).dispatch(lt.UpdateSavedPage,e))({pageId:e,page:t})},fo=async e=>await wo(e.pageId)?ko({pageId:e.pageId,page:e}):go({page:e}),bo=async e=>{await(async e=>(await Da(e.identity)).dispatch(La.AttachPagesToWindow,e))(e)},yo=async e=>{const t={...e.page,panels:e.page.panels&&await no(e.page.panels,e)};t.panels&&await io(t.panels),await Yn({...e,page:t})},vo=async e=>{await(async e=>(await Da(e.identity)).dispatch(La.DetachPagesFromWindow,e))(e)},So=async e=>{await(async e=>(await Da(e.identity)).dispatch(La.SetActivePageForWindow,e))(e)},Po=e=>Qn(e),Co=async({identity:e,pageId:t})=>(await Po(e)).find(e=>e.pageId===t),Mo=async e=>{await(async e=>(await Da(e.identity)).dispatch(La.ReorderPagesForWindow,e))(e)},Io=new class{constructor(){this.queue=[],this.locked=!1}lock(){return new Promise(e=>{this.locked?this.queue.push(e):(this.locked=!0,e())})}unlock(){if(this.queue.length>0){const e=this.queue.shift();e&&e()}else this.locked=!1}};async function xo(e){await Io.lock();try{const t=to()?jn("enterpriseDefaultPageTitle"):jn("defaultPageTitle"),a=e??t,[n,o]=await Promise.all([po(),uo()]),r=[...n,...o].map(({title:e})=>e);return lo(a,r)}finally{Io.unlock()}}async function Ao({page:e}){return{shouldShowModal:!(!e||!e.hasUnsavedChanges)}}async function Wo({page:e,identity:t}){const a=fin.Application.getCurrentSync();if((await a.getInfo()).initialOptions.enableBeforeUnload){const a=await fin.Application.getCurrentSync().getViews(),n=Nn(e.layout.content).filter(e=>e.name&&a.some(t=>t.identity.name===e.name)).map(e=>fin.View.wrapSync({name:e.name,uuid:t.uuid})),o=await this.checkViewsForPreventUnload(n);if(o.viewsPreventingUnload.length>0){if((await this.getUserDecisionForBeforeUnload({...o,windowId:t,windowShouldClose:!1,closeType:"page"})).viewsToClose.length!==n.length)return e.pageId,{shouldPageClose:!1}}}return{shouldPageClose:!0}}async function Ro({pages:e,identity:t}){const a=await Promise.all(e.map(e=>this.shouldPageClose({page:e,closeType:"window",identity:t}))),{pagesPreventingClose:n,pagesNotPreventingClose:o}=e.reduce((e,t,n)=>!a[n].shouldPageClose?{pagesNotPreventingClose:e.pagesNotPreventingClose,pagesPreventingClose:[...e.pagesPreventingClose,t]}:{pagesPreventingClose:e.pagesPreventingClose,pagesNotPreventingClose:[...e.pagesNotPreventingClose,t]},{pagesPreventingClose:[],pagesNotPreventingClose:[]});return this.handlePagesAndWindowClose({pagesNotPreventingClose:o,pagesPreventingClose:n,identity:t})}async function Do({pagesPreventingClose:e,pagesNotPreventingClose:t,identity:a}){return{shouldWindowClose:0===e.length}}async function To({page:e}){return va(e)}async function Bo(e){return{hasUnsavedChanges:!0}}const Eo=async()=>{const e=xn(),t=(await Ee()).map(t=>e.Browser.wrapSync(t.identity));await Promise.all(t.map(async e=>{const t=await e.getPages();await Promise.all(t.map(async t=>{t.title,await e.updatePage({pageId:t.pageId,page:{hasUnsavedChanges:!1}}),t.pageId,t.title,await fo({...t,hasUnsavedChanges:!1})}))}))},Fo=new Map,No=()=>Fo,Vo=e=>Fo.delete(e);let Lo=!1;const Uo=()=>{Lo||(Lo=!0,fin.Window.wrapSync(De).once("closed",()=>{Lo=!1,(async(e,t)=>{await ra(oa(e),{source:"Store",...t})})(fin.me.identity,{type:"Navigation",action:"Close Store",skipValueHashing:!0})}))};let _o,Oo,Go;const Ho=async()=>(void 0===Go&&(Go=!!(await Y()).disableOpenFinAnalytics),Go);async function $o(e){e.forEach(e=>{var t,a;"Page"===e.type?"Open Page"===e.action?(t=e.data.uuid,a=e,Fo.set(t,a)):"Close Page"===e.action&&Vo(e.data.uuid):"Store"===e.source&&"Close"!==e.action&&Uo()}),await(async e=>{_o?.sendToOpenFin&&(await Ho()||e.forEach(async e=>{const t=da({},e);t.entityId&&(t.entityId.uuid=await ca(t.entityId.uuid),t.entityId.name=await ca(t.entityId.name)),!e.skipValueHashing&&"value"in t&&(t.value=await ca(t.value)),Oo(t)}))})(e);const t=e.map(({skipValueHashing:e,...t})=>t);this.handleAnalytics(t)}const Ko=async e=>{_o=e;_o?.sendToOpenFin&&!await Ho()&&(()=>{const e=L,t=e+z.Analytics,a=document.createElement("IFRAME");a.setAttribute("src",t),a.setAttribute("style","width: 0px !important"),a.setAttribute("style","height: 0px !important"),a.setAttribute("style","display: none !important"),document.body.appendChild(a),Oo=async t=>{a.contentWindow.postMessage(t,e)}})();const t=fin.Application.getCurrentSync();t.addListener("view-created",async e=>{var t;ia({type:"View",action:"Open View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid,url:await(t=e.viewIdentity,fin.View.wrapSync(t).getInfo().then(e=>e.url))}})}),t.addListener("view-destroyed",async e=>{ia({type:"View",action:"Close View",value:e.viewIdentity.name,data:{uuid:e.viewIdentity.uuid}})}),t.addListener("window-closed",e=>{e.name.startsWith(Me.BrowserMenu)||(ia({type:"Window",action:"Close Window",value:e.name,data:{uuid:e.uuid}}),(async()=>{const e=No(),t=await uo();if(t.length===e.size)return;const a=t.reduce((e,t)=>e.set(t.pageId,1),new Map);for(const[t,n]of e)a.has(t)||(n.action="Close Page",ia(n),Vo(t))})())})},zo=_e({alwaysOnTop:!0,autoShow:!1,frame:!1,resizable:!1,showTaskbarIcon:!1});const qo=function(e=zo){const t=new Map;return async(a,n,o,r,i)=>{if(t.has(a)){const{currentUrl:e,currentName:o}=t.get(a);if(e===n)return;const r=fin.Window.wrapSync({uuid:fin.me.uuid,name:o});await r.close()}const s=`${Me.BrowserIndicator}-${Date.now()}${Math.random()}`;t.set(a,{currentUrl:n,currentName:s});const c=`New ${r} indicator: ${o} ${i}`,l=await fin.Platform.getCurrentSync().createWindow({...e,name:s,url:n});((e,t)=>{const a=document.createElement("div");a.setAttribute("role","alert"),a.setAttribute("aria-live",t||"polite"),(e=>{e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.padding="0",e.style.margin="-1px",e.style.overflow="hidden",e.style.whiteSpace="nowrap",e.style.border="0"})(a),document.body.appendChild(a),setTimeout(()=>{a.innerHTML=e},300),setTimeout(()=>{document.body.removeChild(a)},1e3)})(c),l.once("closed",()=>{t.delete(a)})}}();async function Jo(e){const{parentBrowserName:t}=e;if(t&&t.includes(Me.BrowserWindow)&&fin.me.name!==t){return(await Da({uuid:fin.me.uuid,name:t})).dispatch(La.ShowBrowserIndicator,e)}return async function(e){const{type:t,message:a,parentBrowserName:n,secondaryMessage:o,icon:r,isEnterprise:i,positioning:s}=e,c=new URLSearchParams;if(c.append("type",t),c.append("message",a),c.append("parentName",n||""),c.append("secondaryMessage",o||""),c.append("icon",r||""),c.append("isEnterprise",`${i}`||""),s===Oe.RelativeToMonitor&&c.append("positioning",Oe.RelativeToMonitor),n){const e=Ae(n?{uuid:B,name:n}:void 0),t=`${(l=await e.getBounds()).top},${l.left},${l.height},${l.width},${l.bottom},${l.right},${l.content.top},${l.content.left},${l.content.height},${l.content.width}`;c.append("parentBounds",t)}var l;const d=`${(i?await ne():await ae())+z.BrowserIndicator}#${c.toString()}`;return qo("browser"+n,d,a,t,o)}(e)}async function Zo(e){const t=e.isEnterprise??await jt(e.parentBrowserName?{uuid:B,name:e.parentBrowserName}:void 0);return Jo({type:"success",message:e.message,parentBrowserName:e.parentBrowserName,secondaryMessage:e.secondaryMessage,icon:e.icon,isEnterprise:t,positioning:e.positioning})}const jo=async(e=We)=>{const{workspacePlatform:t}=await Ae(e).getOptions(),a=t?.newPageUrl,n=t?.newTabUrl;return{newPageUrl:a,newTabUrl:n}},Qo=async(e=We)=>{const t=await jt(e)||to(),a=t?null:await xn().Browser.getUniquePageTitle();let n;if(e&&await Be(e))n=await(async(e,t=We)=>{const{newPageUrl:a}=await jo(t);if(!a)throw new Error("Trying to create a new page without a newPageUrl set");return Vn(e,a,t)})(a,e);else if(t){const e=await oe();n=await Vn(a,e)}t&&(n.settings=n.settings??{},n.dimensions=n.dimensions??{},n.settings.hasHeaders=!1,n.settings.reorderEnabled=!0,n.dimensions.headerHeight=0);const o=await ya(a,n);return t&&(o.hasUnsavedChanges=!1),o},Yo=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t)=>{const a=await jt(t);return{title:"Switch Workspace",windowOptions:{url:await re(a,!1)+z.ResponseModal,name:Me.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:t},content:{title:jn("switchWorkspaceModal",{workspace:e}),body:jn("switchWorkspaceModal.warning"),buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel"},{label:jn("global.confirm"),type:"primary",id:"Confirm"}]}}}})(t,a?void 0:e),r=await Ke(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await rn({options:i,content:o})).data.actionName},Xo=async({workspaceTitle:e,windowIdentity:t})=>{const{windowOptions:a,content:n}=await(async({workspaceTitle:e,windowIdentity:t})=>{const a=await jt(t);return{title:"Delete Workspace",windowOptions:{url:await re(a,!1)+z.ResponseModal,name:Me.BrowserMenu,defaultHeight:144,defaultWidth:410,modalParentIdentity:t},content:{title:jn("deleteWorkspaceModal"),body:`${e}`,buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel"},{label:jn("global.confirm"),type:"primary",id:"Confirm"}]}}}})({workspaceTitle:e,windowIdentity:t}),o=await Ke(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Confirm"===(await rn({options:r,content:n})).data.actionName},er=async(e,t,a)=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>{const n=await jt(e);return{title:"Platform Quit",windowOptions:{url:await re(n,!1)+z.ResponseModal,name:Me.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:a?void 0:e},content:{title:jn("Platform"===t?"closePlatform":"closePlatform.workspace",{workspace:t}),body:jn("closePlatform.warning"),buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel"},{label:jn("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e,t,a),r=await Ke(n,e,a),i={...n,top:r.top,left:r.left};return"Confirm"===(await rn({options:i,content:o})).data.actionName},tr=async e=>{const{windowOptions:t,content:a}=await(async e=>{const t=await jt(e);return{title:"Restore Changes",windowOptions:{url:await re(t,!1)+z.ResponseModal,name:Me.BrowserMenu,defaultHeight:134,defaultWidth:410,modalParentIdentity:e},content:{title:jn("restoreModal"),body:jn("modal.discardWarning"),buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel"},{label:jn("global.confirm"),type:"primary",id:"Confirm"}]}}}})(e),n=await Ke(t,t.modalParentIdentity),o={...t,top:n.top,left:n.left};return"Confirm"===(await rn({options:o,content:a})).data.actionName},ar=async(e,t)=>{const{windowOptions:a,content:n}=await(async(e,t)=>{const a=await jt(e);return{title:"Delete Page",windowOptions:{url:new URL(await re(a,!1)+z.ResponseModal).toString(),name:Me.BrowserMenu,defaultHeight:172,defaultWidth:464,modalParentIdentity:e},content:{title:jn("enterpriseDeleteModal.deleteSupertab",{title:t}),body:jn("enterpriseDeleteModal.deleteSupertabWarning"),buttons:{right:[{label:jn("global.cancel"),type:"secondary",id:"Cancel",variant:a?"outline":void 0},{label:jn("global.delete"),type:"primary",id:"Delete",variant:a?"submit":void 0}]}}}})(e,t),o=await Ke(a,a.modalParentIdentity),r={...a,top:o.top,left:o.left};return"Delete"===(await rn({options:r,content:n})).data.actionName},nr=async({identity:e,title:t,description:a})=>{const{windowOptions:n,content:o}=await(async(e,t,a)=>({title:"Update Version",windowOptions:{url:await ne()+z.ResponseModal,name:Me.UpdateVersionModal,defaultHeight:172,defaultWidth:464,modalParentIdentity:e,preventBlur:!0,closeOnResponse:!0,includeInSnapshots:!1},content:{title:t,body:a,buttons:{right:[{label:"Snooze",type:"secondary",id:"snooze"},{label:"Restart",type:"primary",id:"restart"}]}}}))(e,t,a),r=fin.Window.wrapSync({uuid:e.uuid,name:`${n.name}--${n.modalParentIdentity?.name}`});try{if(await(r?.isShowing()))return}catch(e){}const i=await Ke(n,n.modalParentIdentity),s={...n,top:i.top,left:i.left};return(await rn({options:s,content:o})).data};async function or({options:e,...t}){if(!(!!e?.skipPrompt||await Yo(e?.promptContainerWindowIdentity,t.title,e?.shouldCenterModalOnMonitor)))return!1;const a=!!(await fin.Application.getCurrentSync().getChildWindows()).find(({identity:e})=>e.name===Me.DockCompanion||e.name===le)||to()?{closeExistingWindows:!1,closeSnapshotWindows:!0}:{closeExistingWindows:e?.applySnapshotOptions?.closeExistingWindows??!0},n=xn();return await n.applySnapshot(t.snapshot,{...e?.applySnapshotOptions??{},...a}),sr(t),Jo({type:"success",message:jn("successIndicator.workspaceSwitched"),positioning:Oe.RelativeToMonitor}).catch(console.warn),!0}async function rr(e){try{return await or(e)}catch(e){return console.error("failed to apply the current workspace: ",e),!1}}async function ir(e){try{const t=await async function(){const e=xn(),t=await e.getCurrentWorkspace({skipSnapshotUpdate:!0});return(await e.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId)}();if(!t)return"not-saved-workspace";return!!e?.skipPrompt||await tr(e?.promptContainerWindowIdentity)?(await or({options:{skipPrompt:!0,applySnapshotOptions:e?.applySnapshotOptions},...t}),"success"):"user-declined"}catch(e){throw console.error("failed to restore last saved workspace: ",e),e}}function sr(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);Tt(Nt.CurrentWorkspaceId,t)}catch(e){console.error("failed to set the active workspace: ",e)}}async function cr(){const e=xn(),t=await e.getSnapshot();return{workspaceId:wa(),title:await pr(),metadata:{APIVersion:O},snapshot:t}}async function lr(e){if("undefined"==typeof localStorage)return cr();const t=Bt(Nt.CurrentWorkspaceId);if(!t)return cr();const a=JSON.parse(t);if(e?.skipSnapshotUpdate)return a;const n=xn(),o=await n.getSnapshot();return{...a,metadata:{APIVersion:O},snapshot:o}}const dr=async()=>(await pt(We)).dispatch(lt.GetSavedWorkspaces,void 0),ur=async e=>await(async e=>(await pt(We)).dispatch(lt.GetSavedWorkspace,e))(e.workspaceId)?(async e=>(await pt(We)).dispatch(lt.UpdateSavedWorkspace,e))({workspaceId:e.workspaceId,workspace:e}):(async e=>(await pt(We)).dispatch(lt.CreateSavedWorkspace,e))({workspace:e});async function pr(e="Untitled Workspace"){const t=(await dr()).map(({title:e})=>e);return lo(e,t)}const wr=e=>({...e,snapshot:{...e.snapshot,windows:e.snapshot.windows.map(e=>({...e,workspacePlatform:{...e.workspacePlatform,pages:e.workspacePlatform?.pages?.map(e=>({...e,hasUnsavedChanges:!1}))}}))}}),hr=async(e,t)=>{const a=t??xn();await a.Storage.saveWorkspace(wr(e)),await(async()=>(await pt(We)).dispatch(lt.MarkUnsavedPagesAsSavedInternal,void 0))()},gr=async e=>{const t=xn();await(async({showModal:e,afterSuccessSave:t})=>{const a=xn(),n=await a.getCurrentWorkspace(),o=await a.Storage.getWorkspacesMetadata(),r=n.workspaceId;o.some(e=>e.workspaceId===r)?(await hr(n,a),await a.setActiveWorkspace(n),await t()):await e()})({showModal:async()=>{const a=t.Browser.wrapSync(e);await a._openSaveModal({menuType:x.SAVE_WORKSPACE_AS})},afterSuccessSave:async()=>{await Zo({message:jn("successIndicator.workspaceSaved"),parentBrowserName:e.name})}})},mr=e=>{xn().Browser.wrapSync(e)._openSaveModal({menuType:x.SAVE_WORKSPACE_AS})},kr=async e=>{const t=xn().Browser.wrapSync(e),{newPageUrl:a}=await jo(),n=await Qo(e),o=a||void 0;await t._addDefaultPage({identity:e,page:n,newPageUrl:o})},fr=async(e,t)=>{const a=xn().Browser.wrapSync(e),n=await xn().Storage.getPages(),o=(await a.getPages()).find(e=>t?e.pageId===t:e.isActive),r=n.some(e=>o.pageId===e.pageId),i=await jt(e);if(r)try{await xn().Storage.savePage((s=o,{...s,hasUnsavedChanges:void 0,parentIdentity:void 0,isActive:void 0,layout:Fn(s.layout)})),await a.updatePage({pageId:o.pageId,page:{hasUnsavedChanges:!1}}),Zo({message:jn(i?"enterpriseSuccessIndicator.supertabSaved":"successIndicator.pageSaved"),parentBrowserName:e.name,secondaryMessage:jn(i?"enterpriseSuccessIndicator.supertabHasBeenSaved":"successIndicator.pageHasBeenSaved",{title:o.title}),isEnterprise:i})}catch{!async function(e){const t=e.isEnterprise??await jt(e.parentBrowserName?{uuid:B,name:e.parentBrowserName}:void 0);Jo({type:"error",message:e.message,parentBrowserName:e.parentBrowserName,icon:e.icon,isEnterprise:t,positioning:e.positioning})}({message:jn("errorIndicator.pageSaveFailed"),parentBrowserName:o.parentIdentity.name})}else a._openSaveModal({id:o.pageId,menuType:x.SAVE_PAGE});var s},br=async(e,t)=>{const a=xn().Browser.wrapSync(e),n=(await a.getPages()).find(e=>t?e.pageId===t:e.isActive);a._openSaveModal({id:n.pageId,menuType:x.SAVE_PAGE_AS}),ia({type:"Page Modal",action:"Select Save As",value:n.title,skipValueHashing:!0})},yr=async(e,t)=>{await(async({workspaceItemData:e,winIdentity:t,positioning:a})=>{const n=xn(),o=(await n.Storage.getWorkspacesMetadata()).find(t=>t.workspaceId===e.workspaceId);o&&await Xo({workspaceTitle:o.title,windowIdentity:t})&&(await n.Storage.deleteWorkspace(e.workspaceId),await Zo({message:jn("successIndicator.workspaceDeleted"),parentBrowserName:t?.name,positioning:a}))})({workspaceItemData:t,winIdentity:e})},vr={title:"Downloads",pageId:"downloads-page-id",layout:{content:[{type:"stack",content:[{type:"component",componentName:"view",componentState:{name:"show-download-view",url:"chrome://downloads/"}}]}]}},Sr=async e=>{const t=Ae(e),a=await t.getCurrentViews(),n=(await xn().Browser.wrapSync(t.identity).getPages()).find(e=>e.isActive);try{const t=(await Promise.all(a.map(async e=>({identity:e.identity,info:await fin.View.wrapSync(e.identity).getInfo()})))).find(e=>"chrome://downloads/"===e.info.url);if(t)await fin.View.wrapSync(t.identity).focus();else{const t=xn();if(n?.isLocked){const e=(await fin.Application.getCurrentSync().getChildWindows()).find(e=>"show-download-window"===e.identity.name);return void(e?await e.focus():t.Browser.createWindow({name:"show-download-window",workspacePlatform:{pages:[vr]}}))}(await xn().createView({name:"show-download-view",url:"chrome://downloads/",target:e},e)).focus()}}catch(e){console.error("Couldn't open downloads view",e)}},Pr=async e=>{const t=e.map(e=>fin.View.wrapSync(e).print());await Promise.all(t)},Cr=e=>{const[t,a,n]=e.split(".").map(e=>"x"===e?0:1);return 100*t+10*a+1*n};class Mr extends Error{}const Ir=async e=>{try{const a=await async function(){const e=await Y(),t=e?.translationOverridesUrl??"https://workspace.openfin.co/workspace/assets/translation-override.json";if(""===t)throw new Mr("Empty string provided as url to translationOverridesUrl, overrides will not be fetched.");return await fetch(t).then(e=>e.json())}();(t=(e=>{const t=O.split(".");return Object.keys(e).filter(e=>{const a=e.split(".");if(3!==a.length)return console.warn(`Encountered a translation override version string in an unsupported format: ${e}. Versions must be in A.B.C format where A, B, C are either integers or the wildcard symbol 'x'.`),!1;const[n,o,r]=a;return!(n!==t[0]&&"x"!==n||o!==t[1]&&"x"!==o||r!==t[2]&&"x"!==r)})})(a),[...t].sort((e,t)=>Cr(e)-Cr(t))).forEach(t=>{const n=a[t];Object.keys(n).forEach(t=>{e.addResourceBundle(t,"translation",n[t],!0,!0)})})}catch(e){e instanceof Mr?console.warn(e.message):console.error("Error applying a translation override: ",e)}var t};function xr(){return Gn().language}const Ar=async e=>{Dr(e),(e=>{Gn().changeLanguage(e)})(e),await(async e=>{const t=await Ee();return Promise.all(t.map(async t=>{const a=await Da(t.identity);await a.dispatch(La.SetSelectedLanguage,e)}))})(e)};function Wr(){if(!Gn().options.resources)throw new Error("No language resources found");return{currentLanguage:xr(),resources:Gn().options.resources}}async function Rr(e="en-US"){Dr(e),function(e="en-US"){Gn().use(_n.initReactI18next).init({lng:e,fallbackLng:"en-US",resources:{"en-US":{translation:Kn},"ja-JP":{translation:qn},"zh-CN":{translation:Hn},"ko-KR":{translation:Jn},"ru-RU":{translation:Zn},"de-DE":{translation:zn},"zh-Hant":{translation:$n}},interpolation:{escapeValue:!1}})}(e),await Ir(Gn())}function Dr(e){if(!I.includes(e))throw new Error(`The ISO language provided ${e} is not supported`)}const Tr=new Map;let Br=Date.now();function Er(){const e=Date.now();return Br=Math.max(e,Br+1),Br}async function Fr(){const e=Array.from(Tr.values()).sort((e,t)=>t.lastFocusedTime-e.lastFocusedTime);if(e.length>0)return e[0].identity;try{const e=Bt(Nt.LastFocusedBrowserWindow);if(!e)return;const t=JSON.parse(e);if(await Ne(t))return await Lr(t),t}catch(e){console.error("failed to get last focused browser window from localStorage:",e)}}async function Nr(){const e=fin.Application.getCurrentSync();return(await e.getChildWindows()).filter(e=>e.identity.name.startsWith(Me.BrowserWindow))}async function Vr(){const e=xn(),t=fin.Window.wrapSync({uuid:fin.me.uuid,name:Me.DockCompanion}),a=await Ue(await t.getBounds()),n=await async function(e,t,a){const n=await fin.System.getMonitorInfo(),o=a?.availableRect??n.primaryMonitor.availableRect,r={width:o.right-o.left,height:o.bottom-o.top},i=Math.min(e,r.height),s=Math.min(t,r.width),c=o.top+Math.floor((r.height-i)/2);return{height:i,width:s,left:o.left+Math.floor((r.width-s)/2),top:c}}(600,900,a),o=await Qo();return(await e.Browser.createWindow({defaultHeight:600,defaultWidth:900,defaultLeft:n.left,defaultTop:n.top,workspacePlatform:{pages:[o]}})).identity}async function Lr(e,t,a=!1){if(!await Be(e))return;const n=fin.Window.wrapSync(e),o=t??await n.isShowing(),r=Tr.get(e.name),i={identity:e,lastFocusedTime:a?Er():r?.lastFocusedTime??Er(),isVisible:o};Tr.set(e.name,i),a&&function(e){if("undefined"!=typeof localStorage)try{const t=JSON.stringify(e);Tt(Nt.LastFocusedBrowserWindow,t)}catch(e){console.error("failed to save last focused browser window: ",e)}}(e)}async function Ur(e=fin.me.identity){Tr.delete(e.name)}const _r=pa()(async()=>{const e=await fin.Platform.getCurrentSync().Application.getChildWindows();let t,a=!1;for(const n of e)if(n.identity.name===Me.BrowserMenu||n.identity.name===Me.BrowserSaveMenu?t=n:await Be(n.identity)&&(a=!0),a)break;!a&&t&&t.close()},100,{leading:!1,trailing:!0});let Or={};const Gr=async({actionId:e,payload:t})=>{if("function"!=typeof Or[e])throw new Error(`Cannot find a configured function for the action '${e}'`);return Or[e](t)};let Hr;const $r=()=>`custom-context-menu-${xn().identity.uuid}-${O}`,Kr=()=>`custom-bookmark-context-menu-${xn().identity.uuid}-${O}`,zr=async()=>(Hr||(Hr=await fin.InterApplicationBus.Channel.connect($r())),Hr);var qr,Jr;!function(e){e.Save="Save",e.SaveAs="SaveAs"}(qr||(qr={})),function(e){e.GlobalMenu="global-menu",e.ContextMenu="context-menu",e.RenameSupertab="rename-supertab",e.AddEditBookmark="add-edit-bookmark",e.DropdownMenu="dropdown-menu",e.ZoomControls="zoom-controls"}(Jr||(Jr={}));const Zr=(e,t="")=>e.toLowerCase().includes(t.toLowerCase()),jr="visited-sites",Qr="removed-tab-stack",Yr=D&&W&&Ut("openfin-home-pages","pages"),Xr=D&&W&&new Wt.Dexie(Vt("openfin-enterprise-site-history"));Xr&&Xr.version(.1).stores({[jr]:"id, url"});const ei=D&&W&&new Wt.Dexie(Vt("openfin-enterprise-tab-history"));async function ti(e){if(!Yr)throw new Error("Unable to get page - IndexDB not supported");const t=await Yr.pages.get(e);if(t)return t.pageId=e.toString(),t.title=t.title||t.pageId,t}async function ai(e){if(!Yr)throw new Error("Unable to get page list - IndexDB not supported");const t=await Yr.pages.toCollection().keys(),a=(await Promise.all(t.map(e=>ti(e.toString())))).filter(e=>!!e);return e?a.filter(t=>Zr(t.title,e)):a}async function ni({page:e}){if(!Yr)throw new Error("Unable to create page - IndexDB not supported");await Yr.pages.put(e,e.pageId)}async function oi(e){if(!Yr)throw new Error("Unable to delete page - IndexDB not supported");await Yr.pages.delete(e)}async function ri({pageId:e,page:t}){if(!Yr)throw new Error("Unable to update page - IndexDB not supported");if(void 0===await ti(e))throw new Error("page not found");await ni({page:t}),e!==t.pageId&&await oi(e)}ei&&ei.version(.1).stores({[Qr]:""});const ii=async e=>{if(!ei)throw new Error("Unable to add removed tab - IndexDB not supported");const t=Date.now().toString(),a={...e,id:t};await ei[Qr].put(a,t)};function si(e){return"app"===e.type||"website"===e.type}const ci=async e=>{if("website"===e.type){const t=e,a=t.url||"";let n=await Xr[jr].get(a);n&&si(n)?(n.icon=t.icon,n.title=t.title,n.type=t.type,n.visitCount=(n.visitCount||0)+1,n.url=t.url):n={...t,id:a,visitCount:1,accessTime:void 0},n.accessTime=Date.now(),await Xr[jr].put(n,a)}},li=async()=>{if(!Xr)throw new Error("Unable to get frequently visited sites - IndexDB not supported");const e=Xr[jr],t=await e.toCollection().toArray();t.sort((e,t)=>(t.visitCount||0)-(e.visitCount||0));return(t.length>5?t.slice(0,5):t).map(({id:e,...t})=>t)};const di=async()=>(await fin.System.getHostSpecs()).name.toLowerCase().includes("windows"),ui=async({browserIdentity:e,url:t,shiftKey:a,activePage:n,pages:o})=>{const r=xn().Browser.wrapSync(e),i=await Vn(t,t,e),s={...await ya(t,i),attachedPageType:"singleView",singleViewName:t},c=o.findIndex(e=>e.pageId===n.pageId);await r._addPage(s,{index:c+1}),a&&await r.setActivePage(s.pageId)},pi=async e=>{const{url:t}=e.bookmark,{sourceIdentity:a,sourceEvent:n}=e,o=await di(),r=xn();let i=!1,s=a;if(!await Be(a)){const t=await async function(){const e=Array.from(Tr.values());for(let t=e.length-1;t>=0;t--)if(e[t].isVisible)return e[t].identity}();if(!t)return await(async e=>{const t=xn(),a=await Vn(e.url,e.url),n=await ya(e.url,a);Te((await t.Browser.createWindow({workspacePlatform:{pages:[n]}})).identity)})(e.bookmark);i=!0,s=t}const c=r.Browser.wrapSync(s),l=await c.getPages(),d=(await c._getLayoutsWithSelectedViews()).find(e=>e.isActive);if(!d)throw Error(`Browser ${s} does not have any active layouts`);const u=l.find(e=>e.isActive),p=1===Un(u.layout.content),w=d.selectedViews[0];i?await ui({browserIdentity:s,url:t,shiftKey:!0,activePage:u,pages:l}):p?await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activePage:o,pages:r,sourceEvent:i})=>{const{ctrlKey:s,metaKey:c,shiftKey:l}=i;(e?s:c)?await ui({browserIdentity:a,url:n,shiftKey:l,activePage:o,pages:r}):await fin.View.wrapSync(t).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activePage:u,pages:l,sourceEvent:n}):await(async({isWindows:e,currentViewId:t,browserIdentity:a,url:n,activeLayout:o,sourceEvent:r})=>{const{ctrlKey:i,metaKey:s,shiftKey:c}=r;if(e?i:s){const e=fin.View.wrapSync(t),o=await e.getCurrentStack(),r=(await o.getViews()).findIndex(e=>e.name===t.name),i={url:n,browserIdentity:a,title:n};await o.addView(i,{index:r+1})}else await fin.View.wrapSync(o.selectedViews[0]).navigate(n)})({isWindows:o,currentViewId:w,browserIdentity:s,url:t,activeLayout:d,sourceEvent:n})};var wi;!function(e){e.Label="normal",e.Separator="separator",e.Submenu="submenu",e.Checkbox="checkbox"}(wi||(wi={}));let hi={locked:!1,x:-1,y:-1};const gi=async(e,t,a,n)=>{if(!W)throw new Error("showEnterpriseContextMenu can only be used in a HERE env. Avoid calling this method during pre-rendering.");if(!n&&!fin.me.isWindow)throw new Error("showEnterpriseContextMenu can only be used in a HERE window.");const{x:o,y:r,template:i}=e;if(((e,t)=>{const{x:a,y:n,locked:o}=hi;return o&&e===a&&t===n})(o,r))return new Promise((e,t)=>e({data:void 0}));hi={locked:!0,x:o,y:r};const s=await zr(),c=wa(),l=new Promise((e,t)=>{s.register(`response-${c}`,t=>{hi.locked=!1,s.remove(`response-${c}`),e(t)})});return await s.dispatch("open",{parentIdentity:n.identity,responseIdentity:We,requestId:c,type:t,anchorBehavior:a,x:o,y:r,payload:{template:i}}),l},mi={type:wi.Separator,data:void 0},ki=async()=>({type:wi.Submenu,label:jn("contextMenu.print"),submenu:[{type:wi.Label,label:jn("contextMenu.submenu.print"),data:{type:v.Print}},{type:wi.Label,label:jn("contextMenu.submenu.printAll"),data:{type:v.PrintAll}},mi,{type:wi.Label,label:jn("contextMenu.printScreen"),data:{type:v.PrintScreen}}]}),fi=()=>({type:wi.Label,label:jn("contextMenu.closeWindow"),data:{type:m.CloseWindow}}),bi=e=>({type:wi.Label,label:jn(e?"contextMenu.quitEnterpriseBrowser":"contextMenu.quitPlatform"),data:{type:m.Quit}}),yi=()=>({type:wi.Label,label:jn("contextMenu.newWindow"),data:{type:m.NewWindow}}),vi=e=>({type:wi.Label,label:jn(e?"enterpriseContextMenu.saveSupertab":"contextMenu.savePage"),data:{type:m.SavePage}}),Si=e=>({type:wi.Label,label:jn(e?"enterpriseContextMenu.saveSupertabAs":"contextMenu.savePageAs"),data:{type:m.SavePageAs}}),Pi=(e,t)=>({type:wi.Label,label:jn(t?"enterpriseContextMenu.newTab":"contextMenu.newPage"),data:{type:m.NewPage},enabled:e}),Ci=()=>({label:jn("contextMenu.switchWorkspace")}),Mi=()=>({label:jn("contextMenu.deleteWorkspace")}),Ii=()=>({label:jn("contextMenu.appearance")}),xi=(e,t,a)=>t.map(t=>{const n=t.workspaceId===e.workspaceId;return{label:t.title,type:wi.Checkbox,enabled:!n,checked:n,data:{type:a,workspaceId:t.workspaceId}}}),Ai=async()=>{const e=await xn().Theme.getSelectedScheme();return[{label:jn("theme.light"),type:wi.Checkbox,checked:e===k.Light,data:{type:m.Appearance,scheme:k.Light}},{label:jn("theme.dark"),type:wi.Checkbox,checked:e===k.Dark,data:{type:m.Appearance,scheme:k.Dark}},{label:jn("theme.system"),type:wi.Checkbox,checked:e===k.System,data:{type:m.Appearance,scheme:k.System}}]},Wi=async(e,t=[])=>{const a=await Ve(),{newPageUrl:n}=await jo(e),o=await(async e=>{const t=Ae(e),{workspacePlatform:a}=await t.getOptions();return a?.disableMultiplePages})(e),r=await(async e=>{const t=Ae(e),{workspacePlatform:a}=await t.getOptions();return a?.isLocked})(e),i=await jt(e),s=[],c=t.length>0;n&&(s.push(yi()),o||s.push(Pi(!r,i))),s.push(mi);const l=xn(),d=await l.getCurrentWorkspace({skipSnapshotUpdate:!0}),u=await l.Storage.getWorkspacesMetadata(),p=u.find(e=>e.workspaceId===d.workspaceId),w=l.Browser.wrapSync(e),h=(await w.getPages()).find(e=>e.isActive),g=!!h&&await l.Storage.getPage(h.pageId);s.push({type:wi.Label,label:jn("contextMenu.restore"),data:{type:m.RestoreChanges},enabled:!!p}),s.push({type:wi.Label,label:jn("contextMenu.saveWorkspace"),data:{type:m.SaveWorkspace},enabled:!!p}),s.push({type:wi.Label,label:jn("contextMenu.saveWorkspaceAs"),data:{type:m.SaveWorkspaceAs}}),s.push({type:wi.Label,label:jn("contextMenu.renameWorkspace"),data:{type:m.RenameWorkspace},enabled:!!p}),u.some(e=>e.workspaceId!==d.workspaceId)?s.push({label:Ci().label,submenu:xi(d,u,m.SwitchWorkspace),data:void 0},{label:Mi().label,submenu:xi(d,u,m.DeleteWorkspace),data:void 0}):s.push({label:Ci().label,enabled:!1,data:void 0},{label:Mi().label,enabled:!1,data:void 0}),s.push({label:jn("contextMenu.downloads"),data:{type:m.Downloads}}),s.push({label:Ii().label,submenu:await Ai(),data:void 0});const k={...vi(i),enabled:!!g};return s.push(mi,k,Si(i),await(async e=>{const t=await di();return{label:jn("contextMenu.print"),submenu:[{type:wi.Label,label:jn("contextMenu.submenu.print"),data:{type:m.Print},enabled:e},{type:wi.Label,label:jn("contextMenu.submenu.printAll"),data:{type:m.PrintAll}},...t?[mi,{type:wi.Label,label:jn("contextMenu.printScreen"),data:{type:m.PrintScreen}}]:[]],data:void 0}})(c)),a?[...s,fi(),mi,{type:wi.Label,label:jn("contextMenu.openStorefront"),data:{type:m.OpenStorefront}},mi,bi()]:[...s,mi,fi(),mi,bi()]},Ri=async(e,t)=>{const a=t.selectedViews[0],n=fin.View.wrapSync(a),o=await(async e=>{const{newTabUrl:t}=await jo(e);if(!t)throw new Error("Trying to create a new page without a newTabUrl set");return{url:t,target:e,title:"New Tab"}})(e);await xn().createView(o,e,n.identity)},Di=async(e,t)=>{const a=xn().Browser.wrapSync(e),n=(await a.getPages()).find(e=>e.isActive),o=await fin.Window.wrapSync(e).getCurrentViews();if(t.length===o.length-(n.panels??[]).length){return void(await Da(e)).dispatch(La.ClosePage,{pageId:n?.pageId})}const r=fin.Platform.getCurrentSync();t.forEach(async t=>{const o=await fin.View.wrapSync(t).getParentLayout();await r.closeView(t);const{hasUnsavedChanges:i}=await(async e=>(await wt(We)).dispatch(lt.HandlePageChanges,e))({page:{...n,layout:await o.getConfig()},identity:e,eventDetails:{type:g.ViewRemoved,viewIdentity:t}});i&&await a.updatePage({pageId:n.pageId,page:{hasUnsavedChanges:!0}})})},Ti=async(e,t)=>{const a=await(e=>Promise.all(e.map(async e=>fin.View.wrapSync(e).getInfo())))(t),{newPageUrl:n,newTabUrl:o}=await jo(e);a.forEach(async e=>{e.url!==n&&e.url!==o&&await fin.System.openUrlWithBrowser(e.url)})},Bi=(e,t)=>{t.forEach(async t=>{const a=fin.View.wrapSync(t);await(async(e,t)=>{const{url:a}=await t.getInfo(),n={...await t.getOptions(),url:a,target:e,name:void 0};await xn().createView(n,e,t.identity)})(e,a)})},Ei=async(e,t,a)=>{const n={newChannelId:t,selectedViews:a};(await Da(e)).dispatch(La.AddToChannel,n)},Fi=async(e,t)=>{(await Da(e)).dispatch(La.RemoveFromChannel,t)},Ni=async(e,t)=>{if(!e)return;const a=t.identity,n=fin.Window.wrapSync(a);switch(ia({type:"View Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e.type){case v.Back:await(async e=>{const t=e.map(e=>fin.View.wrapSync(e).navigateBack());await Promise.all(t)})(t.selectedViews);break;case v.Forward:await(async e=>{const t=e.map(e=>fin.View.wrapSync(e).navigateForward());await Promise.all(t)})(t.selectedViews);break;case v.Print:await Pr(t.selectedViews);break;case v.PrintAll:await n.print({content:"views",includeSelf:!1});break;case v.PrintScreen:await n.print({content:"screenshot"});break;case v.CloseViews:await Di(a,t.selectedViews);break;case v.OpenWithDefaultBrowser:await Ti(a,t.selectedViews);break;case v.ReloadViews:t.selectedViews.forEach(async e=>{const t=fin.View.wrapSync(e);await t.reload()});break;case v.NewView:await Ri(a,t);break;case v.DuplicateViews:Bi(a,t.selectedViews);break;case v.AddToChannel:Ei(a,e.option,t.selectedViews);break;case v.RemoveFromChannel:Fi(a,t.selectedViews);break;case v.Custom:if(e.action){const n={callerType:M.ViewTabContextMenu,windowIdentity:a,selectedViews:t.selectedViews,customData:e.action.customData};xn()._invokeCustomAction(e.action.id,n)}}},Vi=async e=>{const t=await(async e=>{const t="find-in-page";let a;a=e?`${t}-${e}`:`${t}-${(await(fin.me.isWindow?fin.me:fin.me.getCurrentWindow())).identity.name}`;return a})(e);return new BroadcastChannel(t)},Li=async(e,t)=>{const a=t.identity,n=xn().Browser.wrapSync(a),o=(await n.getPages()).find(e=>e.isActive),r=Sa({...a,layoutName:o.layoutContainerKey}),i=t.selectedViews;switch(e?.type){case b.Lock:await n.updatePage({pageId:o.pageId,page:{isLocked:!o.isLocked}});break;case b.AddToChanel:e.option?await Ei(a,e.option,i):null===e.option&&await Fi(a,i);break;case b.ManageDesktopSignals:await ln(a);break;case b.FindInPage:await(async e=>{const t=await Vi(e.name);((e,t)=>{e.postMessage(t)})(t,{type:"show"}),(e=>{e.close()})(t)})(a);break;case m.NewWindow:{const e=await Qo(a);await xn().Browser.createWindow({workspacePlatform:{pages:[e],windowType:"enterprise"}});break}case b.Pin:{const{alwaysOnTop:e}=await n.openfinWindow.getOptions();await n.openfinWindow.updateOptions({alwaysOnTop:!e});break}case b.ShowHideTabs:await r.isShowingTabs()?await r.hide():await r.show();break;default:return!1}return!0},Ui=(require("title-case"),new Map([["blue",{name:"Blue",color:"#0091EB"}],["indigo",{name:"Indigo",color:"#6450FF"}],["pink",{name:"Pink",color:"#E878CF"}],["teal",{name:"Teal",color:"#24D1D1"}],["green",{name:"Green",color:"#00AF78"}],["orange",{name:"Orange",color:"#FF7D37"}],["red",{name:"Red",color:"#F94144"}],["yellow",{name:"Yellow",color:"#F9C74F"}],["gray",{name:"Gray",color:"#828788"}]]));function _i(){return{type:wi.Label,label:jn("contextMenu.manageDesktopSignals"),data:{type:f.ManageDesktopSignals}}}function Oi(e){const t=Array.from(Ui.entries()),a=e.contextGroup;return{type:"widget",config:{type:"add-to-channel",channels:[...t.map(([e,t])=>({label:t.name,data:{type:f.AddToChannel,option:e},color:t.color,checked:a===e})),{label:"unlink",data:{type:f.AddToChannel,option:"unlink"},isNone:!0}]},label:"Link to Channel"}}let Gi="Platform";const Hi=async()=>Gi;const $i=async(e,t)=>{if(!e)return;const a=t.identity,n=await Da(a),o=xn().Browser.wrapSync(a),r=fin.Window.wrapSync(a);if(ia({type:"Global Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0,data:{action:e.action?.id}}),await jt(a)){if(await Li(e,t))return}switch(e.type){case m.NewWindow:{const{newPageUrl:e}=await jo(a);if(!e)throw new Error("Trying to create a new empty window without a newPageUrl set");xn().createView({target:void 0,url:e});break}case m.NewPage:await kr(a);break;case m.CloseWindow:n.dispatch(La.CloseBrowserWindow);break;case m.SaveWorkspace:await gr(a);break;case m.SavePage:await fr(a);break;case m.SavePageAs:await br(a);break;case m.SaveWorkspaceAs:await mr(a);break;case m.RenameWorkspace:o._openSaveModal({menuType:x.RENAME_WORKSPACE});break;case m.SwitchWorkspace:await(async(e,t)=>{const a=xn(),n=(await a.Storage.getWorkspaces()).find(e=>e.workspaceId===t.workspaceId);a.applyWorkspace(n,{skipPrompt:!1,promptContainerWindowIdentity:e})})(a,e);break;case m.DeleteWorkspace:await yr(a,e);break;case m.Downloads:await Sr(a);break;case m.Appearance:await xn().Theme.setSelectedScheme(e.scheme);break;case m.Quit:{const e=Hi();await er(a,await e)&&fin.Platform.getCurrentSync().quit()}break;case m.OpenStorefront:(async()=>{await Ve()&&Te(De)})();break;case m.RestoreChanges:await ir();break;case m.Print:await Pr(t.selectedViews);break;case m.PrintAll:await r.print({content:"views",includeSelf:!1});break;case m.PrintScreen:await r.print({content:"screenshot"});break;case m.Custom:if(e.action){const t={callerType:M.GlobalContextMenu,windowIdentity:a,customData:e.action.customData};xn()._invokeCustomAction(e.action.id,t)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}},Ki=async(e,t,a)=>{const n=xn().Browser.wrapSync(t.identity),o=fin.Window.wrapSync(t.identity),r=await Da(t.identity),i=await jt();switch(e&&ia({type:"Page Tab Menu",action:"Select Menu Item",value:e.type,skipValueHashing:!0}),e?.type){case f.Save:await fr(t.identity,t.pageId);break;case f.SaveAs:await br(t.identity,t.pageId);break;case f.NewPage:await kr(t.identity);break;case f.DeletePage:await(async(e,t)=>{const a=xn(),n=a.Browser.wrapSync(e),o=(await a.Storage.getPages()).find(e=>e.pageId===t);o&&await ar(e,o.title)&&(await a.Storage.deletePage(o.pageId),await n.removePage(t),Zo({message:jn("enterpriseSuccessIndicator.supertabDeleted"),parentBrowserName:e.name,secondaryMessage:jn("enterpriseSuccessIndicator.supertabHasBeenDeleted",{title:o.title})}))})(t.identity,t.pageId);break;case f.Rename:if(await jt(t.identity)){await n.setActivePage(t.pageId);const e=await zr();await e.dispatch("open",{parentIdentity:t.identity,responseIdentity:We,type:Jr.RenameSupertab,anchorBehavior:qi.Center,x:a.left+a.width/2-164,y:a.bottom-8,payload:{pageId:t.pageId}})}else await n._openSaveModal({menuType:x.RENAME_PAGE,id:t.pageId});break;case f.Duplicate:r.dispatch(La.DuplicatePage,t.pageId);break;case f.Close:i?await(async(e,t)=>{const a=xn().Browser.wrapSync(e),n=await a.getPages();for(const o of n)if(o.pageId===t){await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o});break}})(t.identity,t.pageId):r.dispatch(La.ClosePage,{pageId:t.pageId});break;case f.Custom:if(e.action){const a={callerType:M.PageTabContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};xn()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`);break;case f.Refresh:await(async(e,t)=>{const a=xn(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find(e=>t?e.pageId===t:e.isActive);o?.layout?.content&&Nn(o.layout.content).forEach(async e=>{(await fin.View.wrap({uuid:a.identity.uuid,name:e.name})).reload()})})(t.identity,t.pageId);break;case f.CloseOthers:await(async(e,t)=>{const a=xn().Browser.wrapSync(e),n=await a.getPages();for(const o of n)o.pageId!==t&&(await a.removePage(o.pageId),await a._trackRemovedTab({identity:e,page:o}))})(t.identity,t.pageId);break;case f.SaveWorkspaceAs:await mr(t.identity);break;case f.Print:{const e=await n._getLayoutsWithSelectedViews(),{selectedViews:a}=e.find(e=>e.pageId===t.pageId);await Pr(a);break}case f.PrintAll:await n.setActivePage(t.pageId),await o.print({content:"views",includeSelf:!1});break;case f.PrintScreen:await n.setActivePage(t.pageId),await o.print({content:"screenshot"});break;case f.AddToChannel:await n.updatePage({pageId:t.pageId,page:{contextGroup:"unlink"===e.option?null:e.option}});break;case f.ManageDesktopSignals:await ln(t.identity)}},zi=async(e,t)=>{if(e?.type){const a=t.identity;switch(e.type){case P.SavePage:await fr(a);break;case P.SaveWorkspace:await gr(a);break;case P.SavePageAs:await br(a);break;case P.SaveWorkspaceAs:await mr(a);break;case P.Custom:if(e.action){const a={callerType:M.SaveButtonContextMenu,windowIdentity:t.identity,pageId:t.pageId,customData:e.action.customData};xn()._invokeCustomAction(e.action.id,a)}else console.warn(`Encountered a Custom context menu option with an "action" property with value "${e.action}"`)}}};var qi;!function(e){e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e[e.Center=4]="Center"}(qi||(qi={}));const Ji=async(e,t,a,n)=>{const{x:o,y:r,identity:i,template:s,callback:c}=e,l=await jt(i),{data:d}=l?await gi({x:o,y:r,template:s},a,n,fin.Window.wrapSync(i)):await function(e,t){if(!W)throw new Error("showContextMenu can only be used in an OpenFin env. Avoid calling this method during pre-rendering.");if(!t&&!fin.me.isWindow)throw new Error("showContextMenu can only be used in an OpenFin window.");return(t||fin.Window.getCurrentSync()).showPopupMenu(e)}({x:o,y:r,template:s},fin.Window.wrapSync(i));c(d,e)};async function Zi(e,t){const a=Ma(),n=await jt(e.identity);n&&xa(a);const o=n?await(async({identity:e,selectedViews:t})=>{const a=xn(),n=a.Browser.wrapSync(e),o=(await n.getPages()).find(e=>e.isActive),r=await a.Storage.getPage(o.pageId),i=Un(o.layout.content)>1,s=await jt(e),c=await a.Theme.getThemes(),l=c[0]&&"palettes"in c[0]||!c[0]||0===c.length,d={...vi(s),enabled:!!r},u={...Si(s),enabled:i};return[yi(),Pi(!0,s),{type:wi.Separator},d,u,{type:wi.Separator},{type:wi.Label,label:jn("contextMenu.manageDesktopSignals"),data:{type:m.ManageDesktopSignals}},{type:wi.Label,label:jn("contextMenu.findInPage"),data:{type:m.FindInPage}},{type:wi.Separator},...l?[{type:wi.Submenu,label:Ii().label,submenu:await Ai()}]:[],{type:wi.Separator},fi(),{type:wi.Separator},bi(!0)]})({identity:e.identity,selectedViews:e.selectedViews}):await Wi(e.identity,e.selectedViews),r=await Hi();n||(o.find(e=>e.data?.type===m.Quit).label=`Quit ${r}`);const{rect:i,...s}=e,{x:c,y:l}=n?{x:i.left+i.width,y:i.bottom}:e,d={...s,x:c,y:l,template:o,callback:$i};Ia(a),await this.openGlobalContextMenu(d,t)}async function ji(e,t){const a={...e,callback:Ni};await this.openViewTabContextMenu(a,t)}async function Qi(e,t){const a=Ma(),n=await jt(e.identity);n&&xa(a);const o=await(async(e,t,a)=>{const n=await xn().Storage.getPage(e),o=(await uo()).find(t=>t.pageId===e),r=Un(o.layout.content)>1,{workspacePlatform:i}=await Ae(t).getOptions(),s=!(i.isLocked||i.preventPageClose||o.closeButton?.disabled||o.closeButton?.hidden),c=[{type:wi.Label,label:jn("enterpriseContextMenu.newTab"),data:{type:f.NewPage}},mi,Oi(o),_i(),mi,{type:wi.Label,label:jn("reload"),data:{type:f.Refresh}},{type:wi.Label,label:jn("enterpriseContextMenu.duplicate"),data:{type:f.Duplicate},enabled:!i.isLocked},await ki(),mi,{type:wi.Label,label:jn(r?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:f.Close},enabled:s}],l=[{type:wi.Label,label:jn("enterpriseContextMenu.newTab"),data:{type:f.NewPage}},mi,Oi(o),_i(),mi,{type:wi.Label,label:jn("enterpriseSaveModal.renameSupertab"),data:{type:f.Rename},enabled:!i.isLocked&&!!n&&r},{type:wi.Label,label:jn("enterpriseContextMenu.duplicate"),data:{type:f.Duplicate},enabled:!i.isLocked},mi,{type:wi.Label,label:jn("enterpriseContextMenu.saveSupertab"),data:{type:f.Save},enabled:r&&!!n},{type:wi.Label,label:jn("enterpriseContextMenu.saveSupertabAs"),data:{type:f.SaveAs},enabled:r},mi,{type:wi.Label,label:jn("enterpriseContextMenu.deleteSupertab"),data:{type:f.DeletePage},enabled:!!n},mi,{type:wi.Label,label:jn(r?"enterpriseSaveModal.closeSupertab":"enterpriseSaveModal.closeTab"),data:{type:f.Close},enabled:s}],d=[{type:wi.Label,label:jn("contextMenu.savePage"),data:{type:f.Save},enabled:!!n},{type:wi.Label,label:jn("saveMenu.savePageAs"),data:{type:f.SaveAs},enabled:!0},{type:wi.Label,label:"Save Workspace As",data:{type:f.SaveWorkspaceAs}},{type:wi.Label,label:"Refresh",data:{type:f.Refresh}},mi,{type:wi.Label,label:jn("saveModal.renamePage"),data:{type:f.Rename},enabled:!!n},{type:wi.Label,label:jn("contextMenu.duplicatePage"),data:{type:f.Duplicate},enabled:!i.isLocked},mi,{type:wi.Label,label:jn("saveModal.closePage"),data:{type:f.Close},enabled:s}];return a?r?l:c:d})(e.pageId,e.identity,n),r={...e,template:o,callback:(t,a)=>{Ki(t,a,e.rect)}};Ia(a),await this.openPageTabContextMenu(r,t)}async function Yi(e,t){const a=await(async e=>{const t=xn(),a=await t.getCurrentWorkspace({skipSnapshotUpdate:!0}),n=(await t.Storage.getWorkspacesMetadata()).find(e=>e.workspaceId===a.workspaceId),o=await t.Storage.getPage(e);return[{type:wi.Label,label:jn("contextMenu.saveWorkspace"),enabled:!!n,data:{type:P.SaveWorkspace}},{type:wi.Label,label:jn("saveMenu.saveWorkspaceAs"),data:{type:P.SaveWorkspaceAs}},{type:wi.Separator,data:void 0},{type:wi.Label,enabled:!!o,label:jn("contextMenu.savePage"),data:{type:P.SavePage}},{type:wi.Label,label:jn("saveMenu.savePageAs"),data:{type:P.SavePageAs}}]})(e.pageId),n={...e,template:a,callback:zi};await this.openSaveButtonContextMenu(n,t)}const Xi="dock-companion-updates",es=async()=>(await fin.Application.getCurrentSync().getChildWindows()).find(e=>e.identity.name===Me.DockCompanion),ts=async()=>{const e=await es();if(e){const t=await Da(e.identity,Xi);await t.dispatch(La.RefreshBookmarksInternal)}},as=ge(`${"undefined"!=typeof fin&&fin?.me.identity.uuid}-enterprise-dock`),ns=async()=>{const e=xn(),t=await async function(){const e=await Nr();await Promise.all(e.map(async e=>{await Lr(e.identity)}));const t=Array.from(Tr.values()).sort((e,t)=>t.lastFocusedTime-e.lastFocusedTime),a=t.find(e=>e.isVisible);if(a){const e=fin.Window.wrapSync(a.identity);return await e.focus(),a.identity}const n=t[0];if(n){const e=fin.Window.wrapSync(n.identity);return await e.restore(),await e.focus(),n.identity}return Vr()}(),a=e.Browser.wrapSync(t),n=(await a.getPages()).at(-1),o=Nn(n.layout.content),r=1===o.length&&Xt(o[0].url);if(ja.emit("search-menu-opening",a.identity.name),r)await a.setActivePage(n.pageId);else{const e=await Qo(t),{newPageUrl:n}=await jo();await a._addDefaultPage({identity:a.identity,page:e,newPageUrl:n||void 0})}(await Da(t)).dispatch(La.FocusAndExpandSearchInternal)},os="dock-provider-configs",rs=D&&W&&new Wt.Dexie(Vt("dock-provider-configs"));async function is(e){if(!rs)throw new Error("Unable to get Dock provider config - IndexedDB not supported");try{return await rs[os].get(e)}catch(e){return void console.warn("Failed to retrieve Dock provider config from IndexedDb",e)}}async function ss(e){if(!rs)throw new Error("Unable to save Dock provider config - IndexedDb not supported");await rs[os].put(e,e.id)}rs&&rs.version(.1).stores({[os]:""});const cs="workspaces",ls=D&&W&&Ut("openfin-workspace-platform-workspaces",cs);async function ds(e){if(!ls)throw new Error("Unable to get workspace - IndexDB not supported");const t=await ls[cs].get(e);return t&&(t.workspaceId=e.toString(),t.title=t.title||t.workspaceId),t}async function us(e){if(!ls)throw new Error("Unable to get workspaces - IndexDB not supported");const t=await ls[cs].toCollection().keys(),a=(await Promise.all(t.map(e=>ds(e.toString())))).filter(e=>!!e);return e?a.filter(t=>Zr(t.title,e)):a}async function ps({workspace:e}){if(!ls)throw new Error("Unable to create workspace - IndexDB not supported");const t=(await us()).find(t=>t.title===e.title);if(t&&t.workspaceId!==e.workspaceId)throw new Error(`Workspace with title '${e.title}' already exists.`);await ls[cs].put(e,e.workspaceId)}async function ws(e){if(!ls)throw new Error("Unable to delete workspace - IndexDB not supported");await ls[cs].delete(e)}async function hs({workspaceId:e,workspace:t}){if(!ls)throw new Error("Unable to update workspace - IndexDB not supported");if(!await ds(e))throw new Error("workspace not found");await ps({workspace:t}),e!==t.workspaceId&&await ws(e)}const gs=e=>{const t=e.layout,a=t.content?Nn(t.content):[],n=a.length;return n>1?{...e,singleViewName:null}:1===n?{...e,singleViewName:a[0].name}:void 0},ms=async(e,t,a)=>{const n=await xn().Browser.getAllAttachedPages(),o=new Set(n.map(e=>e.title).filter(e=>!!e)),r=new Set(n.map(e=>e.pageId).filter(e=>!!e)),i=t?.defaultPageOptions,s="enterprise"===a?.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType,c=await(async(e,t,a)=>{if(a)return oe();const n=t?.workspacePlatform?.newTabUrl;if(n)return n;const o=e?.defaultWindowOptions?.workspacePlatform?.newTabUrl;return o||void 0})(t,a,s);return Promise.all(e.map(async e=>{if("reparent"===e.multiInstanceViewBehavior)return{...e,layoutContainerKey:wa()};((e,t)=>{e.pageId||=wa(),t.has(e.pageId)&&(console.warn("PageID collision detected. All Page IDs should be unique. A random new pageId will be generated"),e.pageId=wa()),t.add(e.pageId)})(e,r),s||(e.title=lo(e.title,Array.from(o.keys()))),o.add(e.title),e.panels?.reduce((e,t)=>{const a=Object.values(h);if(!a.includes(t.position))throw new Error(`Encountered a panel with unsupported position "${t.position}". Supported positions are: ${a.toString()}`);if(1==e[t.position])throw new Error(`Found more than 1 panel at position: ${t.position}. Only 1 panel at a given position is currently supported.`);return{...e,[t.position]:e[t.position]+1}},{[h.Left]:0,[h.Right]:0,[h.Top]:0,[h.Bottom]:0});const a="panels"in e?e.panels:i?.panels;let n=(l=e.layout,d=t?.defaultViewOptions,Dn({...l},e=>Tn(e,d)));var l,d;c&&(n={...n,settings:{...n?.settings,newTabButton:{url:c}}});return{...i,...e,panels:a&&await no(a),layoutContainerKey:wa(),layout:n,isLayoutCreated:!1}}))},ks=async(e,t)=>{try{await fin.Platform.getCurrentSync().createView({name:e,url:t,target:fin.me.identity,bounds:{top:0,left:0,width:0,height:0}},fin.me.identity)}catch(e){}},fs=e=>{const t=e.name===Me.Home,a=e.name?.startsWith(Me.HomeInternal),n=e.name?.startsWith(Me.BrowserMenu)||e.name?.startsWith(Me.BrowserSaveMenu)||e.name?.startsWith(Me.DockSaveWorkspaceMenu);return!t&&!a&&!n};const bs=e=>JSON.parse(JSON.stringify(e));async function ys(e){return e?"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==":(await Y()).displayViewTabDefaultIcon?"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==":"data:image/svg+xml,%3Csvg%20style%3D%22background-color%3A%237D808A%22%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.64648%200.874962C4.84174%200.6797%205.15833%200.6797%205.35359%200.874962L9.12482%204.6462C9.32009%204.84146%209.32009%205.15804%209.12482%205.3533L5.35359%209.12454C5.15833%209.3198%204.84174%209.3198%204.64648%209.12454L0.875245%205.3533C0.679982%205.15804%200.679982%204.84146%200.875245%204.6462L4.64648%200.874962ZM5.00003%201.93562L1.9359%204.99975L5.00003%208.06388L8.06416%204.99975L5.00003%201.93562Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"}const vs={dimensions:{borderWidth:3,headerHeight:30}};async function Ss(e,t,a){let n=e;const o="enterprise"===n.workspacePlatform?.windowType||"enterprise"===t?.defaultWindowOptions?.workspacePlatform?.windowType;if(n.layout&&!n.workspacePlatform?.pages?.length){const e=await xo(),a={...await ya(e,n.layout),isActive:!0};n.workspacePlatform||={},n.workspacePlatform.pages=await ms([a],t,n)}t?.browserIconSize&&(n.workspacePlatform||={},n.workspacePlatform.browserIconSize=t.browserIconSize);const r=a?.themes?.[0];if(n.workspacePlatform?.pages?.length){const e=await ms(n.workspacePlatform.pages,t,n),i=e,s=(e=>{if(!e)return;let t=e.find(e=>e.isActive);return!t&&e.length>0&&(e[0].isActive=!0,t=e[0]),t})(i);if(i.forEach(e=>{e.pageId!==s?.pageId&&(e.isActive=!1)}),await oo(i),n.workspacePlatform.pages=e,n=da({},await(async e=>({downloadBubble:{enabled:!e},contextMenuOptions:{enabled:!1},experimental:{showFavicons:!0,defaultFaviconUrl:await ys(e)},viewVisibility:{showViewsOnSplitterDrag:{enabled:!0},showViewsOnWindowResize:{enabled:!0}}}))(o),t?.defaultWindowOptions,n,await(async e=>({backgroundThrottling:!0,url:await re(e,!0),contextMenu:!0,closeOnLastViewRemoved:!1,permissions:{System:{openUrlWithBrowser:{enabled:!0,protocols:["mailto"]}}}}))(o)),s.layout=da(s.layout,vs),async function(e){if(e.icon||e.taskbarIcon){const t=fin.Application.getCurrentSync(),a=await(await t.getWindow()).getOptions();e.taskbarIconGroup||=a.taskbarIconGroup||fin.me.identity.uuid}if(e.workspacePlatform.icon)if("object"==typeof e.workspacePlatform.icon){const t=window.matchMedia("(prefers-color-scheme: dark)");e.icon=t.matches?e.workspacePlatform.icon.dark:e.workspacePlatform.icon.light}else e.icon=e.workspacePlatform.icon}(n),!n.backgroundColor&&r)if("palette"in r)n.backgroundColor=r?.palette?.background2||r?.palette?.backgroundPrimary;else{const e=a.selectedScheme===k.Dark||a.selectedScheme===k.System&&window.matchMedia("(prefers-color-scheme: dark)")?r?.palettes.dark:r?.palettes.light;n.backgroundColor=e?.background2||e?.backgroundPrimary}n=_e(n,!0);const c=await re(o,!0);if(c&&(n.url=c),n.layout=s.layout,n.layoutSnapshot=((e,t)=>({layouts:e.reduce((e,a)=>{if(!a.isActive){if(!t)return e;if(!gs(a).singleViewName)return e}return e[a.layoutContainerKey]=a.layout,e},{}),pages:e}))(n.workspacePlatform.pages,o),n.workspacePlatform.windowType=n.workspacePlatform.windowType??C.Browser,o){const e=await oe();n.workspacePlatform.newPageUrl=e,n.workspacePlatform.newTabUrl=e,n.layout&&(n.layout.dimensions.borderWidth=4,n.layout.dimensions.headerHeight=28);const{enabled:t}=ao();n.workspacePlatform.isAiEnabled=t,n.minWidth=Math.max(654,n.minWidth??0),n.minHeight=Math.max(488,n.minHeight??0)}else n.minWidth=Math.max(232,n.minWidth??0),function(e){const t=e.workspacePlatform?.viewTabDimensions,a=e.workspacePlatform?.pageTabDimensions,n=/^[0-9]+(px|%)$/;if(t){if(t.minWidth&&!n.test(t.minWidth))throw new Error(`Provided viewTabDimensions.min value "${t.minWidth}" is not in a supported format.`);if(t.maxWidth&&!n.test(t.maxWidth))throw new Error(`Provided viewTabDimensions.max value "${t.maxWidth}" is not in a supported format.`)}if(a){if(a.minWidth&&!n.test(a.minWidth))throw new Error(`Provided pageTabDimensions.min value "${a.minWidth}" is not in a supported format.`);if(a.maxWidth&&!n.test(a.maxWidth))throw new Error(`Provided pageTabDimensions.max value "${a.maxWidth}" is not in a supported format.`)}}(n);n.name=n.name||`${Me.BrowserWindow}-${wa()}`,(async(e,t)=>{const a=await re(e),n=[],o=Me.FindInPageViewPrefix+t.name,r=a+z.FindInPageModal,i=ks(o,r);if(n.push(i),e){const e=Me.BrowserAddressSearchPrefix+t.name,o=a+z.BrowserPopupMenuAddressSearchResultsView,r=ks(e,o);n.push(r);const i=Me.AICompanionPrefix+t.name,{url:s,enabled:c}=ao();if(c){const e=ks(i,s);n.push(e)}}Promise.all(n)})(o,n)}return n.cornerRounding&&delete n.cornerRounding,n.name||n.layoutSnapshot?n.contextMenuOptions?.template?.length>0?n.contextMenuOptions.template=n.contextMenuOptions.template.filter(e=>"print"!==e):n.contextMenuOptions={template:[],enabled:!1}:n.name=`${Me.ClassicWindow}-${wa()}`,n.workspacePlatform&&a&&(n.workspacePlatform._themeData=a),n}const Ps=async(e,t)=>{const a={uuid:t.uuid,name:t.name};await er(a,e.title??await Hi(),e.shouldCenterOnMonitor)&&fin.Platform.getCurrentSync().quit()},Cs=async(e,t)=>{const a=xn(),n=await a.Browser.getLastFocusedWindow();if(!n)return;const o=a.Browser.wrapSync(n),{title:r,description:i}=e,s=await nr({title:r,description:i,identity:o.identity});s&&o._sendUpdateVersionModalResponse({identity:t,response:s})};async function Ms(e,t,a){const n=e.manifestUrl?await t({manifestUrl:e.manifestUrl},a):void 0;if(n?.interop&&e.interop){const t={...e,...n,interop:e.interop};return delete t.manifestUrl,t}return e}const Is=e=>{const t=bs(e);return t._internalWorkspaceData?.browserNavigationButtons&&(t.workspacePlatform={...t.workspacePlatform,browserNavigationButtons:t._internalWorkspaceData.browserNavigationButtons},delete t._internalWorkspaceData.browserNavigationButtons),t},xs=e=>{const t=bs(e);return t.workspacePlatform&&(t._internalWorkspaceData={...t._internalWorkspaceData,...t.workspacePlatform},delete t.workspacePlatform),t},As={reload:[{keys:"Ctrl+R",preventDefault:!0}],back:[{keys:"Alt+Left",preventDefault:!0}],forward:[{keys:"Alt+Right",preventDefault:!0}]},Ws={reload:[{keys:"Cmd+R",preventDefault:!0}],back:[{keys:"Cmd+[",preventDefault:!0},{keys:"Cmd+Left",preventDefault:!0}],forward:[{keys:"Cmd+]",preventDefault:!0},{keys:"Cmd+Right",preventDefault:!0}]},Rs=async()=>await di()?As:Ws,Ds=(e,t)=>{const a=fin.View.wrapSync(e);if(!t)return;const n=e=>{(async(e,t,a)=>{if("keyDown"!==a.inputType)return;const n=await(async e=>{const t=await e.getCurrentWindow(),a=await t.getOptions(),n=a.workspacePlatform?.navigationButtons;return n.enabled&&!n.hotkeysDisabled})(e),o=await di();if(n){if(t.reload){const n=a.ctrlKey&&!a.altKey&&!a.metaKey&&!a.shiftKey&&"r"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"r"===a.key;(o?n:r)&&t?.reload&&(e.reload(),ia({type:"View",action:"Reload",value:e.identity.name}))}if(t.back){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowLeft"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"["===a.key;(o?n:r||i)&&t?.back&&(e.navigateBack(),ia({type:"View",action:"Back",value:e.identity.name}))}if(t.forward){const n=!a.ctrlKey&&a.altKey&&!a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,r=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"ArrowRight"===a.key,i=!a.ctrlKey&&!a.altKey&&a.metaKey&&!a.shiftKey&&"]"===a.key;(o?n:r||i)&&t?.forward&&(e.navigateForward(),ia({type:"View",action:"Forward",value:e.identity.name}))}}})(a,t,e)};a.addListener("hotkey",n),a.once("destroyed",()=>{a.removeListener("hotkey",n)})},Ts=(e,t)=>bs(e).map(e=>("componentState"in e?e.componentState=t(e.componentState):"content"in e&&(e.content=Ts(e.content,t)),e)),Bs=e=>{if(e){const t=bs(e);return t.content&&(t.content=Ts(t.content,Is)),t}return e},Es=e=>{if(e){const t=bs(e);return t.content&&(t.content=Ts(t.content,xs)),t}return e};async function Fs({app:e,target:t}){const a=fin.Platform.getCurrentSync();switch(e.manifestType){case l.Snapshot:return a.applySnapshot(e.manifest);case l.View:return async function(e,t){const a=fin.Platform.getCurrentSync();if("view"===t.entityType){const a=fin.View.wrapSync(t),n=await a.getParentLayout();return await n.replaceView(t,{manifestUrl:e.manifest,url:void 0,target:void 0}),a.destroy()}return a.createView({name:void 0,url:void 0,manifestUrl:e.manifest,target:void 0})}(e,t);case l.External:return fin.System.launchExternalProcess({path:e.manifest,uuid:e.appId});default:return fin.Application.startFromManifest(e.manifest)}}let Ns;const Vs=()=>{if(!Ns){const e=ge(`${"undefined"!=typeof fin&&fin.me.identity.uuid}-enterprise-app-directory`);Ns=e()}return Ns};async function Ls(e){if(!await jt(e.identity))return[];return(await Vs()).dispatch(Ea.GetApps,e.req)}async function Us(e){if(!await jt(e.identity))return[];return(await Vs()).dispatch(Ea.GetSearchProviders,e)}async function _s(e){return(await Vs()).dispatch(Ea.GetCuratedContent,e)}async function Os(e){return(await Vs()).dispatch(Ea.GetRecentlyVisited,e)}async function Gs(e){const t=(await Ee()).map(async e=>{const t=await e.getOptions();t.workspacePlatform?.pages&&t.layout&&await(async e=>(await Da(e)).dispatch(La.UpdatePagesWindowOptions))(e.identity)});return await Promise.all(t),e?e():fa()}let Hs=[];const $s=()=>Hs;async function Ks(e){const t=e=>{if(!e.includes("#")&&!e.includes("rgb")&&!e.includes("hsl"))throw new Error("Background primary color is not the right format.")};e?.forEach(e=>{"palette"in e&&t(e.palette.backgroundPrimary),"palettes"in e&&(t(e.palettes.dark.backgroundPrimary),t(e.palettes.light.backgroundPrimary))});const a=((e,t)=>{if(we("ThemeStorage: initialiseStoragePalettes called",{customThemes:e,isWindows:t}),!e||!e[0]){we("ThemeStorage: Using default OpenFin theme");const{dark:e,light:a}=ft[0].palettes;return gn.setPalettes({dark:e,light:a},t),we("ThemeStorage: Default theme set successfully"),ft}{const a=e[0];if(we("ThemeStorage: Using custom theme",a),"default"in a&&a.default&&(a.default,gn.setThemeDefaultScheme(a.default)),"palette"in a){we("ThemeStorage: Processing single palette theme");const{palette:n}=a,o={...kt,...n};return gn.setPalettes({dark:o,light:o},t),a.palette=o,we("ThemeStorage: Single palette theme set successfully"),e}if("palettes"in a){we("ThemeStorage: Processing dual palettes theme");const{dark:n,light:o}=a.palettes,r={...kt,...n},i={...mt,...o};return gn.setPalettes({dark:r,light:i},t),a.palettes={dark:r,light:i},we("ThemeStorage: Dual palettes theme set successfully"),e}}})(e,await di());Hs=a}const zs=(e,t)=>a=>{const n=null!==e;return class extends a{constructor(){super(),this.isWorkspacePlatform=()=>({isWorkspacePlatform:!0,isBrowserInitialized:!!e,analytics:{isSupported:!0}}),this.detachPagesFromWindow=vo,this.getAllAttachedPages=uo,this.getPagesForWindow=Po,this.getPageForWindow=Co,this.markUnsavedPagesAsSavedInternal=Eo,this.launchApp=Fs,this.savePage=fo,this.saveWorkspace=ur,this.createSavedPageInternal=go,this.updateSavedPageInternal=ko,this.deleteSavedPageInternal=mo,this.reorderPagesForWindow=Mo,this.getUniquePageTitle=xo,this.updatePageForWindow=yo,this.getLastFocusedBrowserWindow=Fr,this.getThemes=$s,this.invokeCustomActionInternal=Gr,this.requestQuitPlatformDialogInternal=Ps,this.getCurrentWorkspace=lr,this.setActiveWorkspace=sr,this.getLanguageResourcesInternal=Wr,this.getPageByViewIdentity=async e=>{const t=await fin.Platform.Layout.getLayoutByViewIdentity(e),a=t.identity;if(!("layoutName"in a))throw new Error("Failed to get layout's identity");const n=await xn().Browser.wrapSync(t.identity).getPages(),o=n.findIndex(e=>e.layoutName===a.layoutName);if(-1===o)throw new Error("Failed to get page's index");return{windowIdentity:{name:t.identity.name,uuid:t.identity.uuid},page:n[o],pageIndex:o}},this.openGlobalContextMenuInternal=this.openGlobalContextMenuInternal.bind(this),this.openGlobalContextMenu=this.openGlobalContextMenu.bind(this),this.getSavedPages=this.getSavedPages.bind(this),this.getSavedPage=this.getSavedPage.bind(this),this.createSavedPage=this.createSavedPage.bind(this),this.updateSavedPage=this.updateSavedPage.bind(this),this.deleteSavedPage=this.deleteSavedPage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.attachPagesToWindow=this.attachPagesToWindow.bind(this),this.openViewTabContextMenuInternal=this.openViewTabContextMenuInternal.bind(this),this.openViewTabContextMenu=this.openViewTabContextMenu.bind(this),this.openPageTabContextMenuInternal=this.openPageTabContextMenuInternal.bind(this),this.openPageTabContextMenu=this.openPageTabContextMenu.bind(this),this.getSavedWorkspaces=this.getSavedWorkspaces.bind(this),this.getSavedWorkspacesMetadata=this.getSavedWorkspacesMetadata.bind(this),this.getSavedWorkspace=this.getSavedWorkspace.bind(this),this.createSavedWorkspace=this.createSavedWorkspace.bind(this),this.updateSavedWorkspace=this.updateSavedWorkspace.bind(this),this.deleteSavedWorkspace=this.deleteSavedWorkspace.bind(this),this.getCurrentWorkspace=this.getCurrentWorkspace.bind(this),this.getDockProviderConfig=this.getDockProviderConfig.bind(this),this.saveDockProviderConfig=this.saveDockProviderConfig.bind(this),this.applyWorkspace=this.applyWorkspace.bind(this),this.restoreLastSavedWorkspaceInternal=this.restoreLastSavedWorkspaceInternal.bind(this),this.setActiveWorkspace=this.setActiveWorkspace.bind(this),this.openSaveButtonContextMenu=this.openSaveButtonContextMenu.bind(this),this.openSaveButtonContextMenuInternal=this.openSaveButtonContextMenuInternal.bind(this),this.getSelectedScheme=this.getSelectedScheme.bind(this),this.setSelectedScheme=this.setSelectedScheme.bind(this),this.analyticsInternal=this.analyticsInternal.bind(this),this.handleAnalytics=this.handleAnalytics.bind(this),this.getLanguage=this.getLanguage.bind(this),this.setLanguage=this.setLanguage.bind(this),this.handleSaveModalOnPageClose=this.handleSaveModalOnPageClose.bind(this),this.shouldPageClose=this.shouldPageClose.bind(this),this.shouldWindowClose=this.shouldWindowClose.bind(this),this.handlePagesAndWindowClose=this.handlePagesAndWindowClose.bind(this),this.setActivePage=this.setActivePage.bind(this),this.handlePageChanges=this.handlePageChanges.bind(this),this.copyPage=this.copyPage.bind(this),this.addPage=this.addPage.bind(this),this.addDefaultPage=this.addDefaultPage.bind(this),this.markUnsavedPagesAsSavedInternal=this.markUnsavedPagesAsSavedInternal.bind(this),this.trackRemovedTabInternal=this.trackRemovedTabInternal.bind(this),this.restoreRemovedTabInternal=this.restoreRemovedTabInternal.bind(this),this.trackVisitedSiteInternal=this.trackVisitedSiteInternal.bind(this),this.getRecentlyVisitedSitesInternal=this.getRecentlyVisitedSitesInternal.bind(this),this.getFrequentlyVisitedSitesInternal=this.getFrequentlyVisitedSitesInternal.bind(this),this.searchSitesInternal=this.searchSitesInternal.bind(this),this.getSearchProvidersInternal=this.getSearchProvidersInternal.bind(this),this.getCuratedContentInternal=this.getCuratedContentInternal.bind(this),this.handleRequestNavigationInternal=this.handleRequestNavigationInternal.bind(this),this.refreshBookmarksInternal=this.refreshBookmarksInternal.bind(this),this.launchBookmarkInternal=this.launchBookmarkInternal.bind(this),this.getNotificationsConfig=this.getNotificationsConfig.bind(this),this.updateDockFavoritesInternal=this.updateDockFavoritesInternal.bind(this),this.updateContentMenuInternal=this.updateContentMenuInternal.bind(this),this.launchDockEntryInternal=this.launchDockEntryInternal.bind(this),this.setDockFavoritesOrderInternal=this.setDockFavoritesOrderInternal.bind(this),this.navigateContentMenuInternal=this.navigateContentMenuInternal.bind(this),this.setDefaultDockButtonsOrderInternal=this.setDefaultDockButtonsOrderInternal.bind(this),this.getDockWorkspacesContextMenuInternal=this.getDockWorkspacesContextMenuInternal.bind(this),this.handleDockWorkspacesMenuResponseInternal=this.handleDockWorkspacesMenuResponseInternal.bind(this),this.refreshDockCollectionMenuInternal=this.refreshDockCollectionMenuInternal.bind(this),this.launchCollectionInternal=this.launchCollectionInternal.bind(this),this.removeDockFavoriteInternal=this.removeDockFavoriteInternal.bind(this),this.addDockFavoriteInternal=this.addDockFavoriteInternal.bind(this),this.focusAndExpandSearchInternal=this.focusAndExpandSearchInternal.bind(this),this.sendUpdateVersionModalResponseInternal=this.sendUpdateVersionModalResponseInternal.bind(this),this.requestQuitPlatformDialogInternal=Ps.bind(this),this.showUpdateVersionModalInternal=Cs.bind(this)}async applyWorkspace(...e){return rr.apply(this,e)}async restoreLastSavedWorkspaceInternal(...e){return ir.apply(this,e)}async getSnapshot(){const e=n?await Gs(async()=>fa(await super.getSnapshot(void 0,fin.me.identity))):await fa(await super.getSnapshot(void 0,fin.me.identity));let t={...e,windows:e.windows.filter(fs).map(ka)};return t=(e=>{const t=bs(e);return t.windows.forEach(e=>{e.layout&&(e.layout=Bs(e.layout)),e.workspacePlatform?.pages?.forEach(e=>{e?.layout&&(e.layout=Bs(e.layout))})}),t})(t),t}async getViewSnapshot(e){let t=await super.getViewSnapshot(e);return t=Is(t),t}async applySnapshot({snapshot:e,options:t}){let a=e;"string"==typeof a&&(a=await super.fetchManifest({manifestUrl:a},fin.me.identity));const o=function(e){for(const t of e.windows)if(t.workspacePlatform?.pages?.length)return!0;return!1}(a);if(!n&&o)throw new Error("This snapshot cannot be applied as the platform has been initialized without the browser.");return a=(e=>{const t=bs(e);return t.windows.forEach(e=>{e.layout=Es(e.layout),e.workspacePlatform?.pages?.forEach(e=>{e.layout=Es(e.layout)})}),t})(a),super.applySnapshot({snapshot:a,options:t})}async createWindow(t,a){if(n&&"tearout"===t.reason){const e=await fin.Window.wrapSync(a).getOptions(),n=e.workspacePlatform?.windowType;t.taskbarIconGroup=e.taskbarIconGroup,n&&(t.workspacePlatform||={},t.workspacePlatform.windowType=e.workspacePlatform.windowType,n===C.Platform&&(t.url=e.url))}if(!n||t.workspacePlatform?.windowType===C.Platform){const e=await super.createWindow(t,a);return ia({type:"Window",action:"Open Window",value:e.identity.name,data:{uuid:e.identity.uuid}}),e}var o;o={allowed:!0},aa||(aa=!0,ta(ea.Browser,o)),((e=[])=>{const t=e.filter(e=>e.type!==S.Custom),a=new Set,n=[];for(const e of t)a.has(e.type)&&n.push(e.type),a.add(e.type);if(n.length>0){const e=n.join(", ");throw new Error(`Encountered a duplicate "${e}" toolbar button. No more than one instance of a button type may be provided.`)}})(t.workspacePlatform?.toolbarOptions?.buttons);let r=(e=>"workspacePlatform"in e?e:(({workstacks:e,pages:t,...a})=>({...a,workspacePlatform:{pages:t||e||null}}))(e))(t);r=await Ss(r,e,{themes:$s(),selectedScheme:this.getSelectedScheme()}),r=await(async e=>{const t=await fin.System.getMonitorInfo();let a=t.primaryMonitor;const n=e.defaultLeft,o=e.defaultTop;t.nonPrimaryMonitors.forEach(e=>{const{top:t,bottom:r,left:i,right:s}=e.availableRect;n>=i&&n<=s&&o>=t&&o<=r&&(a=e)});const r=a.availableRect.bottom-a.availableRect.top,i=a.availableRect.right-a.availableRect.left;return e.defaultHeight=Math.min(e.defaultHeight||800,r),e.defaultWidth=Math.min(e.defaultWidth||800,i),e})(r);const i=await(e=>async(t,a)=>{let n=!1;const o=await e(t,a);return t?.workspacePlatform?._internalDeferShowOptions?.deferShowEnabled?(await o.addListener("show-requested",async()=>{if(n)return;const e=await o.getOptions();await o.updateOptions({workspacePlatform:{...e.workspacePlatform,_internalDeferShowOptions:{...e.workspacePlatform._internalDeferShowOptions,autoShow:!0}}}),n=!0}),o):o})((e,t)=>super.createWindow(e,t))(r,a);return ia({type:"Window",action:"Open Window",value:i.identity.name,data:{uuid:i.identity.uuid}}),i}async createView(t,a){t.opts=Wn(t.opts,e?.defaultViewOptions),t.opts=await Ms(t.opts,this.fetchManifest,a),t.opts=await(async e=>{const t=bs(e),a=t.workspacePlatform?.browserNavigationButtons;if(a){const e=Object.keys(a);for(const n of e)if(a[n]){const e=(await Rs())[n];t.hotkeys?t.hotkeys.push(...e):t.hotkeys=[...e]}}return t})(t.opts),t.opts=xs(t.opts);const n=await super.createView(t,a);return Ds(n.identity,t.opts._internalWorkspaceData?.browserNavigationButtons),n}async replaceView(t,a){return t.opts.newView=await Wn(t.opts.newView,e?.defaultViewOptions),t.opts.newView=await Ms(t.opts.newView,this.fetchManifest,a),super.replaceView(t,a)}async replaceLayout(e,t){return await jt(t)||delete e.opts.layout?.dimensions,super.replaceLayout(e,t)}async getSavedPage(...e){return ti.apply(this,e)}async getSavedPages(...e){return ai.apply(this,e)}async createSavedPage(...e){return ni.apply(this,e)}async deleteSavedPage(...e){return oi.apply(this,e)}async updateSavedPage(...e){return ri.apply(this,e)}async getSavedWorkspace(...e){return ds.apply(this,e)}async getSavedWorkspaces(...e){return us.apply(this,e)}async getSavedWorkspacesMetadata(...e){return(await this.getSavedWorkspaces(...e)).map(e=>({workspaceId:e.workspaceId,title:e.title}))}async createSavedWorkspace(...e){return ps.apply(this,e)}async deleteSavedWorkspace(...e){return ws.apply(this,e)}async updateSavedWorkspace(...e){return hs.apply(this,e)}async getDockProviderConfig(...e){return is.apply(this,e)}async saveDockProviderConfig(...e){return ss.apply(this,e)}async attachPagesToWindow(t){const a=await ms(t.pages,e);await oo(a),await bo({...t,pages:a})}async addPage(e){const t=await jt(e.identity),a=await wt(e.identity),{page:n,insertionIndex:o}=e;n?.title||t||(n.title=await a.dispatch(lt.GetUniquePageTitle,void 0));const r=(await this.getAllAttachedPages()).find(e=>e.pageId===n.pageId||e.title===n.title);if(r){if(r.pageId===n.pageId)throw new Error(`page with id ${n.pageId} is already attached to a browser window ${r.parentIdentity.name}`);if(!t)throw new Error(`addPage title collision, page with title ${n.title} already exists, conflicting page id: ${r.pageId} with title ${r.title}`)}const i={identity:e.identity,pages:[{...n,multiInstanceViewBehavior:e.multiInstanceViewBehavior||"duplicate"}],insertionIndex:o};await this.attachPagesToWindow(i)}async addDefaultPage(e){await this.addPage(e),await this.setActivePage({identity:e.identity,pageId:e.page.pageId})}async setActivePage(...e){return So.apply(this,e)}async openGlobalContextMenuInternal(...e){return Zi.apply(this,e)}async openGlobalContextMenu(...e){return Ji.apply(this,[...e,Jr.GlobalMenu,qi.BottomRight])}async openViewTabContextMenuInternal(...e){return ji.apply(this,e)}async openViewTabContextMenu(...e){return Ji.apply(this,[...e,Jr.ContextMenu])}async openPageTabContextMenuInternal(...e){return Qi.apply(this,e)}async openPageTabContextMenu(...e){return Ji.apply(this,[...e,Jr.ContextMenu])}async openSaveButtonContextMenu(...e){return Ji.apply(this,e)}async openSaveButtonContextMenuInternal(...e){return Yi.apply(this,e)}getSelectedScheme(...e){return Mn.apply(this,e)}async setSelectedScheme(...e){return Cn.apply(this,e)}async handlePageChanges(...e){return Bo.apply(this,e)}async analyticsInternal(...e){return $o.apply(this,e)}async handleAnalytics(...e){}async handleSaveModalOnPageClose(...e){return Ao.apply(this,e)}async shouldPageClose(...e){return Wo.apply(this,e)}async shouldWindowClose(...e){return Ro.apply(this,e)}handlePagesAndWindowClose(...e){return Do.apply(this,e)}async copyPage(...e){return To.apply(this,e)}async getNotificationsConfig(){return t}async setLanguage(...e){return Ar.apply(this,e)}async getLanguage(){return xr.apply(this)}async trackRemovedTabInternal(...e){return ii.apply(this,e)}async restoreRemovedTabInternal(){const e=await(async()=>{if(!ei)throw new Error("Unable to pop last removed tab - IndexDB not supported");const e=ei[Qr],t=await e.toCollection().keys();if(t.length>0){const a=Math.max(...t.map(e=>Number(e))).toString(),n=await e.get(a);if(n){await e.delete(a);const{id:t,...o}=n;return o}}})();if("page"in e)if(await Ne(e.identity)){const t=xn().Browser.wrapSync(e.identity);await t.addPage(e.page),await t.setActivePage(e.page.pageId)}else xn().createWindow({name:e.identity.name,workspacePlatform:{pages:[e.page],windowType:C.Browser}});else(function(e){return"window"in e})(e)&&xn().createWindow({workspacePlatform:{pages:e.window.pages,windowType:C.Browser}})}async trackVisitedSiteInternal(...e){return ci.apply(this,e)}async getRecentlyVisitedSitesInternal(...e){return await Os.apply(this,e)}async getFrequentlyVisitedSitesInternal(...e){return li.apply(this,e)}async searchSitesInternal(...e){return await Ls.apply(this,e)}async getSearchProvidersInternal(...e){return await Us.apply(this,e)}async getCuratedContentInternal(...e){return await _s.apply(this,e)}async handleRequestNavigationInternal(...e){}async launchBookmarkInternal(e){return pi(e)}async refreshBookmarksInternal(){const e=await xn().Browser.getAllWindows();Promise.all([Promise.all(e.map(async({identity:e})=>{(await Da(e)).dispatch(La.RefreshBookmarksInternal)})).catch(e=>{}),(async()=>{(await Ra(Kr())).dispatch(La.RefreshBookmarksInternal)})().catch(e=>{}),ts().catch(e=>{})]).catch(()=>{})}async updateDockFavoritesInternal(e){return(async e=>{const t=await es();if(!t)throw new Error("Companion Dock window not found");{const a=await Da(t.identity,Xi);await a.dispatch(Na.UpdateFavoriteEntries,e)}})(e)}async updateContentMenuInternal(e){return(async e=>{const t=await es();if(!t)throw new Error("Companion Dock window not found");{const a=await Da(t.identity,Xi);await a.dispatch(Na.UpdateContentMenu,e)}})(e)}async launchDockEntryInternal(e){return(async e=>(await as()).dispatch("launch-entry",e))(e)}async setDefaultDockButtonsOrderInternal(e){return(async e=>(await as()).dispatch("set-default-dock-buttons-order",e))(e)}async setDockFavoritesOrderInternal(e){return(async e=>(await as()).dispatch("set-dock-favorites-order",e))(e)}async addDockFavoriteInternal(e){return(async e=>(await as()).dispatch("add-favorite-entry",e))(e)}async removeDockFavoriteInternal(e){return(async e=>(await as()).dispatch("remove-favorite-entry",e))(e)}async navigateContentMenuInternal(e){return(async e=>{const t=await es();if(!t)throw new Error("Companion Dock window not found");{const a=await Da(t.identity,Xi);await a.dispatch(Na.NavigateContentMenu,e)}})(e)}async getDockWorkspacesContextMenuInternal(){return(async()=>(await as()).dispatch("get-dock-workspaces-context-menu",void 0))()}async handleDockWorkspacesMenuResponseInternal(e){return(async e=>(await as()).dispatch("handle-dock-workspaces-menu-response",e))(e)}async refreshDockCollectionMenuInternal(e){return(async e=>{const t=await es();if(t){const a=await Da(t.identity,Xi);await a.dispatch(Na.RefreshDockCollectionMenu,e)}return(await as()).dispatch("refresh-dock-collection-menu",e)})(e)}async launchCollectionInternal(e){return(async e=>(await as()).dispatch("launch-collection",e))(e)}async focusAndExpandSearchInternal(){return ns()}async sendUpdateVersionModalResponseInternal(e){return cn(e)}async showUpdateVersionModalInternal(e,t){return Cs(e,t)}}};function qs(e,t,a){const n=zs(e,a);try{return"function"==typeof t?e=>t(n(e)):Array.isArray(t)?[...t,n]:e=>new(n(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}}const Js=["green","purple","orange","red","pink","yellow"],Zs="CONTEXT_GROUP_PAGE",js=()=>e=>class extends e{getContextGroups(){return super.getContextGroups().map(e=>Js.includes(e.displayMetadata?.name)?{...e,displayMetadata:{...e.displayMetadata,name:jn(e.displayMetadata?.name)}}:e)}},Qs=()=>{const e=new Set(Ui.keys());return t=>class extends t{constructor(){super(),this.onClientConnected=async e=>{if(e.name.startsWith("internal-generated-view")){const{page:t}=await xn().Browser.getPageByViewIdentity(e),a=t.contextGroup;this.joinContextGroup({contextGroupId:a??Zs,target:e},{uuid:this.fin.me.uuid,name:this.fin.me.name})}},this.selfAssignedClientMap=new Set;const e=this.interopClients.set;this.interopClients.set=(t,a)=>{e.call(this.interopClients,t,a),this.onClientConnected(a.clientIdentity)}}async joinContextGroup({contextGroupId:t,target:a},n){const{name:o,uuid:r}=n,i=`${r}-${o}`,{name:s,uuid:c}=a||{},l=a?`${c}-${s}`:"";if(!a)return this.selfAssignedClientMap.add(i),super.joinContextGroup({contextGroupId:t,target:a},n);if(!this.selfAssignedClientMap.has(l)){if(t!==Zs)return super.joinContextGroup({contextGroupId:t,target:a},n);try{const t=await xn().Browser.getPageByViewIdentity(a);if(this.selfAssignedClientMap.has(l))return;const o=t.page.layoutName;if(!o)throw new Error("View does not belong to a page");if(!e.has(o)&&(e.add(o),!this.contextGroupsById.has(o))){const e=new Map;this.contextGroupsById.set(o,e)}await super.joinContextGroup({contextGroupId:o,target:a},n),a.name}catch(e){JSON.stringify(a),e.stack}}}getContextGroups(){return Array.from(e).map(e=>({id:e,displayMetadata:Ui.get(e)??{}}))}setContextForGroup(e,t){if(!this.contextGroupsById.has(t)){const e=new Map;this.contextGroupsById.set(t,e)}return super.setContextForGroup(e,t)}}},Ys=(e,t)=>{const a=(e=>Qt(e)?Qs():js())(t);try{return"function"==typeof e?t=>e(a(t)):Array.isArray(e)?[...e,a]:e=>new(a(e))}catch(e){throw new Error("WorkspacePlatform.init Error:",e)}};async function Xs(){(async()=>{Ce().on("window-closed",_r)})(),async function(){const e=fin.Application.getCurrentSync(),t=await Nr();await Promise.all(t.map(async e=>{await Lr(e.identity,void 0,!0)}));const a=await fin.System.getFocusedWindow();a&&a.name.startsWith(Me.BrowserWindow)&&await Lr(a,void 0,!0),await e.addListener("window-focused",async e=>{await Lr(e,void 0,!0)}),await e.addListener("window-minimized",async e=>{await Lr(e,!1)}),await e.addListener("window-restored",async e=>{await Lr(e,!0)}),await e.addListener("window-closed",Ur)}();sr(await cr())}let ec;function tc({overrideCallback:e,interopOverride:t,browser:a,notifications:n,analytics:o,integrations:r=[],workspaceAsar:i}){if(!W)throw new Error("Cannot be used outside an OpenFin env.");return ec||(ec=(async()=>{const s=fin.Platform.getCurrentSync();var c,l;if(s.once("platform-api-ready",()=>Xs()),s.on("window-show-all-downloads",({name:e,uuid:t})=>{Sr({name:e,uuid:t})}),a?.title&&(c=a.title,Gi=c),Ko(o),i){const e=`workspace-${encodeURIComponent(fin.me.uuid)}`,{baseUrl:t}=await fin.System.serveAsset({...i,hostName:e});X(t)}a?.browserBaseUrl&&X(a.browserBaseUrl),Qt(a)&&(eo=!0,l=a,Xn=l?.aiPanelOptions,ao());const d=mn();var u;return d.setWorkspaceStorage(Rt(`${B}-workspace`)),d.trySynchronizeWorkspaceStorage(),await fin.Platform.init({overrideCallback:qs(a,e||a?.overrideCallback,n),interopOverride:Ys(t||a?.interopOverride,a)}),u={allowed:!0},ta(ea.Platform,u),await Promise.all(r.map(async e=>{((e,t)=>{ta(`${ea.Microflow}:${e}`,t,"integration-feature")})(e.workflowIntegrationName,{allowed:!0,apiVersion:_}),await e._initializeWorkflows()})),s})()),ec}const ac=async({theme:e,customActions:t,language:a,...n})=>{const o=_.split(".").map(e=>parseInt(e)),r=await(async e=>{if((await Y()).disableRuntimeValidation)return!0;if(await jt())return!0;const t=(await fin.System.getVersion()).split(".").map(e=>parseInt(e));return e.every((a,n)=>!(n<3)||t[n]===e[n])})(o);if(!r)throw new Error(`Runtime version is not supported. ${o[0]}.${o[1]}.${o[2]}.* is required`);var i;Ks(e),e&&(i={allowed:!0},ta(ea.Theming,i)),t&&(Or=t),await Rr(a?.initialLanguage);return await tc(n)}})(),module.exports=n})();
|
|
2
2
|
//# sourceMappingURL=index.js.map
|