@adriansteffan/reactive 0.0.40 → 0.0.41

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.
@@ -103,6 +103,6 @@ Click the button below to add a new entry.`,noEntriesReadonlyText:"No entries",t
103
103
  */(function(h,d){(function(p,g){h.exports=g()})(Xl,function(){return function(c){var p={};function g(C){if(p[C])return p[C].exports;var x=p[C]={i:C,l:!1,exports:{}};return c[C].call(x.exports,x,x.exports,g),x.l=!0,x.exports}return g.m=c,g.c=p,g.d=function(C,x,w){g.o(C,x)||Object.defineProperty(C,x,{enumerable:!0,get:w})},g.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},g.t=function(C,x){if(x&1&&(C=g(C)),x&8||x&4&&typeof C=="object"&&C&&C.__esModule)return C;var w=Object.create(null);if(g.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:C}),x&2&&typeof C!="string")for(var V in C)g.d(w,V,(function(v){return C[v]}).bind(null,V));return w},g.n=function(C){var x=C&&C.__esModule?function(){return C.default}:function(){return C};return g.d(x,"a",x),x},g.o=function(C,x){return Object.prototype.hasOwnProperty.call(C,x)},g.p="",g(g.s="./packages/survey-core/src/themes/index.ts")}({"./packages/survey-core/src/themes/borderless-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"BorderlessDarkPanelless",function(){return x});var C={themeName:"borderless",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(43, 48, 63, 1)","--sjs-general-backcolor-dark":"rgba(50, 55, 72, 1)","--sjs-general-backcolor-dim":"rgba(43, 48, 63, 1)","--sjs-general-backcolor-dim-light":"rgba(36, 41, 55, 1)","--sjs-general-backcolor-dim-dark":"rgba(40, 46, 61, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(114, 120, 137, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(114, 120, 137, 1)","--sjs-primary-backcolor":"rgba(114, 187, 255, 1)","--sjs-primary-backcolor-light":"rgba(114, 187, 255, 0.1)","--sjs-primary-backcolor-dark":"rgba(151, 205, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(55, 62, 79, 1)","--sjs-border-default":"rgba(65, 72, 90, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/borderless-dark.ts":function(c,p,g){g.r(p),g.d(p,"BorderlessDark",function(){return x});var C={themeName:"borderless",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(43, 48, 63, 1)","--sjs-general-backcolor-dark":"rgba(50, 55, 72, 1)","--sjs-general-backcolor-dim":"rgba(33, 37, 51, 1)","--sjs-general-backcolor-dim-light":"rgba(36, 41, 55, 1)","--sjs-general-backcolor-dim-dark":"rgba(40, 46, 61, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(114, 120, 137, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(114, 120, 137, 1)","--sjs-primary-backcolor":"rgba(114, 187, 255, 1)","--sjs-primary-backcolor-light":"rgba(114, 187, 255, 0.1)","--sjs-primary-backcolor-dark":"rgba(151, 205, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(55, 62, 79, 1)","--sjs-border-default":"rgba(65, 72, 90, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/borderless-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"BorderlessLightPanelless",function(){return x});var C={themeName:"borderless",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(231, 240, 255, 1)","--sjs-general-backcolor-dark":"rgba(220, 232, 252, 1)","--sjs-general-backcolor-dim":"rgba(231, 240, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(220, 232, 252, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(133, 154, 186, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(133, 154, 186, 1)","--sjs-primary-backcolor":"rgba(35, 101, 200, 1)","--sjs-primary-backcolor-light":"rgba(35, 101, 200, 0.1)","--sjs-primary-backcolor-dark":"rgba(26, 86, 175, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(220, 229, 241, 1)","--sjs-border-default":"rgba(179, 200, 229, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/borderless-light.ts":function(c,p,g){g.r(p),g.d(p,"BorderlessLight",function(){return x});var C={themeName:"borderless",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(241, 246, 255, 1)","--sjs-general-backcolor-dim":"rgba(231, 240, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(238, 245, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(223, 233, 250, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(133, 154, 186, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(133, 154, 186, 1)","--sjs-primary-backcolor":"rgba(35, 101, 200, 1)","--sjs-primary-backcolor-light":"rgba(35, 101, 200, 0.1)","--sjs-primary-backcolor-dark":"rgba(26, 86, 175, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(220, 229, 241, 1)","--sjs-border-default":"rgba(179, 200, 229, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/contrast-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"ContrastDarkPanelless",function(){return x});var C={themeName:"contrast",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dark":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 255, 255, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 1)","--sjs-primary-backcolor-dark":"rgba(53, 53, 53, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(232, 192, 51, 1)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/contrast-dark.ts":function(c,p,g){g.r(p),g.d(p,"ContrastDark",function(){return x});var C={themeName:"contrast",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dark":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim":"rgba(0, 0, 0, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 255, 255, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 1)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 1)","--sjs-primary-backcolor-dark":"rgba(53, 53, 53, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(232, 192, 51, 1)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/contrast-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"ContrastLightPanelless",function(){return x});var C={themeName:"contrast",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 216, 77, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 216, 77, 1)","--sjs-primary-backcolor-dark":"rgba(83, 83, 83, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.2)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/contrast-light.ts":function(c,p,g){g.r(p),g.d(p,"ContrastLight",function(){return x});var C={themeName:"contrast",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 216, 77, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 216, 77, 1)","--sjs-primary-backcolor-dark":"rgba(83, 83, 83, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.2)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/default-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"DefaultDarkPanelless",function(){return x});var C={themeName:"default",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dim":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-light":"rgba(43, 43, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(46, 46, 46, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(255, 152, 20, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.07)","--sjs-primary-backcolor-dark":"rgba(255, 170, 24, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 1px 2px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(255, 255, 255, 0.08)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/default-dark.ts":function(c,p,g){g.r(p),g.d(p,"DefaultDark",function(){return x});var C={themeName:"default",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dim":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-light":"rgba(43, 43, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(46, 46, 46, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(255, 152, 20, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.07)","--sjs-primary-backcolor-dark":"rgba(255, 170, 24, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 1px 2px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(255, 255, 255, 0.08)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/default-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"DefaultLightPanelless",function(){return x});var C={themeName:"default",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(249, 249, 249, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(25, 179, 148, 1)","--sjs-primary-backcolor-light":"rgba(25, 179, 148, 0.1)","--sjs-primary-backcolor-dark":"rgba(20, 164, 139, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 1px 2px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/default-light.ts":function(c,p,g){g.r(p),g.d(p,"DefaultLight",function(){return x});var C={themeName:"default",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim":"rgba(243, 243, 243, 1)","--sjs-general-backcolor-dim-light":"rgba(249, 249, 249, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(25, 179, 148, 1)","--sjs-primary-backcolor-light":"rgba(25, 179, 148, 0.1)","--sjs-primary-backcolor-dark":"rgba(20, 164, 139, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 1px 2px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/doubleborder-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"DoubleBorderDarkPanelless",function(){return x});var C={themeName:"doubleborder",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dark":"rgba(58, 58, 58, 1)","--sjs-general-backcolor-dim":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dim-light":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim-dark":"rgba(53, 53, 53, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(120, 156, 210, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.1)","--sjs-primary-backcolor-dark":"rgba(146, 181, 235, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(255, 255, 255, 0.12)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(255, 255, 255, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(255, 255, 255, 0.1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.1)","--sjs-border-light":"rgba(255, 255, 255, 0.1)","--sjs-border-default":"rgba(255, 255, 255, 0.1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/doubleborder-dark.ts":function(c,p,g){g.r(p),g.d(p,"DoubleBorderDark",function(){return x});var C={themeName:"doubleborder",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dark":"rgba(58, 58, 58, 1)","--sjs-general-backcolor-dim":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim-light":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim-dark":"rgba(53, 53, 53, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(120, 156, 210, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.1)","--sjs-primary-backcolor-dark":"rgba(146, 181, 235, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(255, 255, 255, 0.12)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(255, 255, 255, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(255, 255, 255, 0.1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.1)","--sjs-border-light":"rgba(255, 255, 255, 0.1)","--sjs-border-default":"rgba(255, 255, 255, 0.1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/doubleborder-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"DoubleBorderLightPanelless",function(){return x});var C={themeName:"doubleborder",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(239, 239, 239, 1)","--sjs-general-backcolor-dim":"rgba(245, 245, 245, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(237, 237, 237, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(76, 100, 137, 1)","--sjs-primary-backcolor-light":"rgba(76, 100, 137, 0.1)","--sjs-primary-backcolor-dark":"rgba(62, 83, 115, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 0.07)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.07)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 0.08),0px 2px 6px 0px rgba(0, 0, 0, 0.04)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.08)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.1)","--sjs-border-default":"rgba(0, 0, 0, 0.1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/doubleborder-light.ts":function(c,p,g){g.r(p),g.d(p,"DoubleBorderLight",function(){return x});var C={themeName:"doubleborder",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(239, 239, 239, 1)","--sjs-general-backcolor-dim":"rgba(245, 245, 245, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(237, 237, 237, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(76, 100, 137, 1)","--sjs-primary-backcolor-light":"rgba(76, 100, 137, 0.1)","--sjs-primary-backcolor-dark":"rgba(62, 83, 115, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 0.07)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.07)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 0.08),0px 2px 6px 0px rgba(0, 0, 0, 0.04)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.08)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.1)","--sjs-border-default":"rgba(0, 0, 0, 0.1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/flat-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"FlatDarkPanelless",function(){return x});var C={themeName:"flat",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(56, 56, 56, 1)","--sjs-general-backcolor-dim":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-light":"rgba(43, 43, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(52, 52, 52, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(92, 214, 49, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.07)","--sjs-primary-backcolor-dark":"rgba(130, 237, 92, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.09)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.09)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.12),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.07)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.07)","--sjs-border-light":"rgba(255, 255, 255, 0.07)","--sjs-border-default":"rgba(255, 255, 255, 0.07)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/flat-dark.ts":function(c,p,g){g.r(p),g.d(p,"FlatDark",function(){return x});var C={themeName:"flat",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(56, 56, 56, 1)","--sjs-general-backcolor-dim":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-light":"rgba(43, 43, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(52, 52, 52, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(92, 214, 49, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.07)","--sjs-primary-backcolor-dark":"rgba(130, 237, 92, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.09)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.09)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.12),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.07)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.07)","--sjs-border-light":"rgba(255, 255, 255, 0.07)","--sjs-border-default":"rgba(255, 255, 255, 0.07)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/flat-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"FlatLightPanelless",function(){return x});var C={themeName:"flat",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(246, 246, 246, 1)","--sjs-general-backcolor-dark":"rgba(235, 235, 235, 1)","--sjs-general-backcolor-dim":"rgba(246, 246, 246, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(235, 235, 235, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(85, 181, 52, 1)","--sjs-primary-backcolor-light":"rgba(85, 181, 52, 0.1)","--sjs-primary-backcolor-dark":"rgba(64, 159, 31, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1),0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.12)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.12)","--sjs-border-light":"rgba(0, 0, 0, 0.12)","--sjs-border-default":"rgba(0, 0, 0, 0.12)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/flat-light.ts":function(c,p,g){g.r(p),g.d(p,"FlatLight",function(){return x});var C={themeName:"flat",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(246, 246, 246, 1)","--sjs-general-backcolor-dark":"rgba(235, 235, 235, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(235, 235, 235, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(85, 181, 52, 1)","--sjs-primary-backcolor-light":"rgba(85, 181, 52, 0.1)","--sjs-primary-backcolor-dark":"rgba(64, 159, 31, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1),0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.12)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.12)","--sjs-border-light":"rgba(0, 0, 0, 0.12)","--sjs-border-default":"rgba(0, 0, 0, 0.12)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/index.ts":function(c,p,g){g.r(p),g.d(p,"DefaultLight",function(){return Ke}),g.d(p,"DefaultDark",function(){return Qt}),g.d(p,"DefaultLightPanelless",function(){return Xt}),g.d(p,"DefaultDarkPanelless",function(){return kt}),g.d(p,"SharpLight",function(){return Ut}),g.d(p,"SharpDark",function(){return dr}),g.d(p,"SharpLightPanelless",function(){return at}),g.d(p,"SharpDarkPanelless",function(){return mt}),g.d(p,"BorderlessLight",function(){return zt}),g.d(p,"BorderlessDark",function(){return Wt}),g.d(p,"BorderlessLightPanelless",function(){return Rt}),g.d(p,"BorderlessDarkPanelless",function(){return er}),g.d(p,"FlatLight",function(){return tr}),g.d(p,"FlatDark",function(){return Dt}),g.d(p,"FlatLightPanelless",function(){return rr}),g.d(p,"FlatDarkPanelless",function(){return xr}),g.d(p,"PlainLight",function(){return hr}),g.d(p,"PlainDark",function(){return an}),g.d(p,"PlainLightPanelless",function(){return qt}),g.d(p,"PlainDarkPanelless",function(){return ln}),g.d(p,"DoubleBorderLight",function(){return un}),g.d(p,"DoubleBorderDark",function(){return Kr}),g.d(p,"DoubleBorderLightPanelless",function(){return gr}),g.d(p,"DoubleBorderDarkPanelless",function(){return Ln}),g.d(p,"LayeredLight",function(){return kn}),g.d(p,"LayeredDark",function(){return de}),g.d(p,"LayeredLightPanelless",function(){return ve}),g.d(p,"LayeredDarkPanelless",function(){return me}),g.d(p,"SolidLight",function(){return ye}),g.d(p,"SolidDark",function(){return Ie}),g.d(p,"SolidLightPanelless",function(){return Qe}),g.d(p,"SolidDarkPanelless",function(){return et}),g.d(p,"ThreeDimensionalLight",function(){return yt}),g.d(p,"ThreeDimensionalDark",function(){return St}),g.d(p,"ThreeDimensionalLightPanelless",function(){return kr}),g.d(p,"ThreeDimensionalDarkPanelless",function(){return wr}),g.d(p,"ContrastLight",function(){return Pr}),g.d(p,"ContrastDark",function(){return Ur}),g.d(p,"ContrastLightPanelless",function(){return ni}),g.d(p,"ContrastDarkPanelless",function(){return Jr});var C=g("./packages/survey-core/src/themes/default-light.ts"),x=g("./packages/survey-core/src/themes/default-dark.ts"),w=g("./packages/survey-core/src/themes/default-light-panelless.ts"),V=g("./packages/survey-core/src/themes/default-dark-panelless.ts"),v=g("./packages/survey-core/src/themes/sharp-light.ts"),P=g("./packages/survey-core/src/themes/sharp-dark.ts"),I=g("./packages/survey-core/src/themes/sharp-light-panelless.ts"),L=g("./packages/survey-core/src/themes/sharp-dark-panelless.ts"),H=g("./packages/survey-core/src/themes/borderless-light.ts"),q=g("./packages/survey-core/src/themes/borderless-dark.ts"),A=g("./packages/survey-core/src/themes/borderless-light-panelless.ts"),S=g("./packages/survey-core/src/themes/borderless-dark-panelless.ts"),R=g("./packages/survey-core/src/themes/flat-light.ts"),k=g("./packages/survey-core/src/themes/flat-dark.ts"),M=g("./packages/survey-core/src/themes/flat-light-panelless.ts"),J=g("./packages/survey-core/src/themes/flat-dark-panelless.ts"),K=g("./packages/survey-core/src/themes/plain-light.ts"),U=g("./packages/survey-core/src/themes/plain-dark.ts"),$=g("./packages/survey-core/src/themes/plain-light-panelless.ts"),Q=g("./packages/survey-core/src/themes/plain-dark-panelless.ts"),B=g("./packages/survey-core/src/themes/doubleborder-light.ts"),ee=g("./packages/survey-core/src/themes/doubleborder-dark.ts"),oe=g("./packages/survey-core/src/themes/doubleborder-light-panelless.ts"),le=g("./packages/survey-core/src/themes/doubleborder-dark-panelless.ts"),G=g("./packages/survey-core/src/themes/layered-light.ts"),te=g("./packages/survey-core/src/themes/layered-dark.ts"),X=g("./packages/survey-core/src/themes/layered-light-panelless.ts"),N=g("./packages/survey-core/src/themes/layered-dark-panelless.ts"),ce=g("./packages/survey-core/src/themes/solid-light.ts"),ge=g("./packages/survey-core/src/themes/solid-dark.ts"),Ae=g("./packages/survey-core/src/themes/solid-light-panelless.ts"),fe=g("./packages/survey-core/src/themes/solid-dark-panelless.ts"),ke=g("./packages/survey-core/src/themes/threedimensional-light.ts"),we=g("./packages/survey-core/src/themes/threedimensional-dark.ts"),De=g("./packages/survey-core/src/themes/threedimensional-light-panelless.ts"),Ge=g("./packages/survey-core/src/themes/threedimensional-dark-panelless.ts"),Be=g("./packages/survey-core/src/themes/contrast-light.ts"),Ce=g("./packages/survey-core/src/themes/contrast-dark.ts"),He=g("./packages/survey-core/src/themes/contrast-light-panelless.ts"),st=g("./packages/survey-core/src/themes/contrast-dark-panelless.ts"),Ke=C.default,Qt=x.default,Xt=w.default,kt=V.default,Ut=v.default,dr=P.default,at=I.default,mt=L.default,zt=H.default,Wt=q.default,Rt=A.default,er=S.default,tr=R.default,Dt=k.default,rr=M.default,xr=J.default,hr=K.default,an=U.default,qt=$.default,ln=Q.default,un=B.default,Kr=ee.default,gr=oe.default,Ln=le.default,kn=G.default,de=te.default,ve=X.default,me=N.default,ye=ce.default,Ie=ge.default,Qe=Ae.default,et=fe.default,yt=ke.default,St=we.default,kr=De.default,wr=Ge.default,Pr=Be.default,Ur=Ce.default,ni=He.default,Jr=st.default},"./packages/survey-core/src/themes/layered-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"LayeredDarkPanelless",function(){return x});var C={themeName:"layered",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(39, 40, 50, 1)","--sjs-general-backcolor-dark":"rgba(46, 47, 58, 1)","--sjs-general-backcolor-dim":"rgba(39, 40, 50, 1)","--sjs-general-backcolor-dim-light":"rgba(32, 33, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(37, 38, 48, 1)","--sjs-general-forecolor":"rgba(213, 215, 238, 1)","--sjs-general-forecolor-light":"rgba(117, 120, 140, 1)","--sjs-general-dim-forecolor":"rgba(213, 215, 238, 1)","--sjs-general-dim-forecolor-light":"rgba(117, 119, 141, 1)","--sjs-primary-backcolor":"rgba(164, 127, 243, 1)","--sjs-primary-backcolor-light":"rgba(164, 127, 243, 0.1)","--sjs-primary-backcolor-dark":"rgba(192, 165, 251, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.1),0px 8px 16px 0px rgba(0, 0, 0, 0.15),0px 2px 4px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.1),0px 0px 0px 0px rgba(0, 0, 0, 0.15),0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"inset 0px 0px 0px 1px rgba(255, 255, 255, 0.05),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.03),inset 0px 1px 4px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.03),inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(54, 56, 69, 1)","--sjs-border-default":"rgba(67, 69, 85, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/layered-dark.ts":function(c,p,g){g.r(p),g.d(p,"LayeredDark",function(){return x});var C={themeName:"layered",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(39, 40, 50, 1)","--sjs-general-backcolor-dark":"rgba(46, 47, 58, 1)","--sjs-general-backcolor-dim":"rgba(30, 31, 40, 1)","--sjs-general-backcolor-dim-light":"rgba(32, 33, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(37, 38, 48, 1)","--sjs-general-forecolor":"rgba(213, 215, 238, 1)","--sjs-general-forecolor-light":"rgba(117, 120, 140, 1)","--sjs-general-dim-forecolor":"rgba(213, 215, 238, 1)","--sjs-general-dim-forecolor-light":"rgba(117, 119, 141, 1)","--sjs-primary-backcolor":"rgba(164, 127, 243, 1)","--sjs-primary-backcolor-light":"rgba(164, 127, 243, 0.1)","--sjs-primary-backcolor-dark":"rgba(192, 165, 251, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.1),0px 8px 16px 0px rgba(0, 0, 0, 0.15),0px 2px 4px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.1),0px 0px 0px 0px rgba(0, 0, 0, 0.15),0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"inset 0px 0px 0px 1px rgba(255, 255, 255, 0.05),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.03),inset 0px 1px 4px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.03),inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(54, 56, 69, 1)","--sjs-border-default":"rgba(67, 69, 85, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/layered-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"LayeredLightPanelless",function(){return x});var C={themeName:"layered",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(244, 244, 244, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(241, 237, 248, 1)","--sjs-general-backcolor-dim-dark":"rgba(225, 220, 233, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.5)","--sjs-primary-backcolor":"rgba(122, 100, 168, 1)","--sjs-primary-backcolor-light":"rgba(122, 100, 168, 0.1)","--sjs-primary-backcolor-dark":"rgba(105, 84, 152, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.05),0px 8px 16px 0px rgba(0, 0, 0, 0.1),0px 2px 4px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.05),0px 0px 0px 0px rgba(0, 0, 0, 0.1),0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05),inset 0px 1px 4px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.05),inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/layered-light.ts":function(c,p,g){g.r(p),g.d(p,"LayeredLight",function(){return x});var C={themeName:"layered",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(244, 244, 244, 1)","--sjs-general-backcolor-dim":"rgba(216, 207, 236, 1)","--sjs-general-backcolor-dim-light":"rgba(241, 237, 248, 1)","--sjs-general-backcolor-dim-dark":"rgba(225, 220, 233, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.5)","--sjs-primary-backcolor":"rgba(122, 100, 168, 1)","--sjs-primary-backcolor-light":"rgba(122, 100, 168, 0.1)","--sjs-primary-backcolor-dark":"rgba(105, 84, 152, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.05),0px 8px 16px 0px rgba(0, 0, 0, 0.1),0px 2px 4px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.05),0px 0px 0px 0px rgba(0, 0, 0, 0.1),0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05),inset 0px 1px 4px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.05),inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/plain-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"PlainDarkPanelless",function(){return x});var C={themeName:"plain",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dark":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-light":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-dark":"rgba(47, 47, 47, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(85, 171, 250, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.12)","--sjs-primary-backcolor-dark":"rgba(126, 193, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.12)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.12),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.12)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-border-light":"rgba(255, 255, 255, 0.12)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/plain-dark.ts":function(c,p,g){g.r(p),g.d(p,"PlainDark",function(){return x});var C={themeName:"plain",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dark":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-light":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-dark":"rgba(47, 47, 47, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(85, 171, 250, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.12)","--sjs-primary-backcolor-dark":"rgba(126, 193, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.12)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.12),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.12)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-border-light":"rgba(255, 255, 255, 0.12)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/plain-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"PlainLightPanelless",function(){return x});var C={themeName:"plain",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(37, 137, 229, 1)","--sjs-primary-backcolor-light":"rgba(37, 137, 229, 0.1)","--sjs-primary-backcolor-dark":"rgba(21, 119, 209, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.05)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.15)","--sjs-border-default":"rgba(0, 0, 0, 0.15)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/plain-light.ts":function(c,p,g){g.r(p),g.d(p,"PlainLight",function(){return x});var C={themeName:"plain",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(37, 137, 229, 1)","--sjs-primary-backcolor-light":"rgba(37, 137, 229, 0.1)","--sjs-primary-backcolor-dark":"rgba(21, 119, 209, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.05)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.15)","--sjs-border-default":"rgba(0, 0, 0, 0.15)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/sharp-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"SharpDarkPanelless",function(){return x});var C={themeName:"sharp",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(58, 58, 58, 1)","--sjs-general-backcolor-dim":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-light":"rgba(33, 33, 33, 1)","--sjs-general-backcolor-dim-dark":"rgba(47, 47, 47, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.5)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.8)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.55)","--sjs-primary-backcolor":"rgba(16, 226, 255, 1)","--sjs-primary-backcolor-light":"rgba(0, 0, 0, 0.35)","--sjs-primary-backcolor-dark":"rgba(129, 240, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.28)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.28)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.25),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.22)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.22)","--sjs-border-light":"rgba(255, 255, 255, 0.22)","--sjs-border-default":"rgba(255, 255, 255, 0.22)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/sharp-dark.ts":function(c,p,g){g.r(p),g.d(p,"SharpDark",function(){return x});var C={themeName:"sharp",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(58, 58, 58, 1)","--sjs-general-backcolor-dim":"rgba(27, 27, 27, 1)","--sjs-general-backcolor-dim-light":"rgba(33, 33, 33, 1)","--sjs-general-backcolor-dim-dark":"rgba(47, 47, 47, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.5)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.8)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.55)","--sjs-primary-backcolor":"rgba(16, 226, 255, 1)","--sjs-primary-backcolor-light":"rgba(0, 0, 0, 0.35)","--sjs-primary-backcolor-dark":"rgba(129, 240, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.28)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.28)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.25),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.22)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.22)","--sjs-border-light":"rgba(255, 255, 255, 0.22)","--sjs-border-default":"rgba(255, 255, 255, 0.22)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/sharp-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"SharpLightPanelless",function(){return x});var C={themeName:"sharp",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(228, 228, 228, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(238, 238, 238, 1)","--sjs-general-backcolor-dim-dark":"rgba(220, 220, 220, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.6)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.6)","--sjs-primary-backcolor":"rgba(103, 58, 176, 1)","--sjs-primary-backcolor-light":"rgba(103, 58, 176, 0.1)","--sjs-primary-backcolor-dark":"rgba(69, 24, 142, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.25)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.25)","--sjs-border-light":"rgba(0, 0, 0, 0.25)","--sjs-border-default":"rgba(0, 0, 0, 0.25)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/sharp-light.ts":function(c,p,g){g.r(p),g.d(p,"SharpLight",function(){return x});var C={themeName:"sharp",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(228, 228, 228, 1)","--sjs-general-backcolor-dim":"rgba(224, 224, 224, 1)","--sjs-general-backcolor-dim-light":"rgba(238, 238, 238, 1)","--sjs-general-backcolor-dim-dark":"rgba(220, 220, 220, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.6)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.6)","--sjs-primary-backcolor":"rgba(103, 58, 176, 1)","--sjs-primary-backcolor-light":"rgba(103, 58, 176, 0.1)","--sjs-primary-backcolor-dark":"rgba(69, 24, 142, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.25)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.25)","--sjs-border-light":"rgba(0, 0, 0, 0.25)","--sjs-border-default":"rgba(0, 0, 0, 0.25)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/solid-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"SolidDarkPanelless",function(){return x});var C={themeName:"solid",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(53, 55, 63, 1)","--sjs-general-backcolor-dark":"rgba(60, 63, 74, 1)","--sjs-general-backcolor-dim":"rgba(53, 55, 63, 1)","--sjs-general-backcolor-dim-light":"rgba(46, 48, 55, 1)","--sjs-general-backcolor-dim-dark":"rgba(51, 53, 61, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(125, 129, 143, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(125, 130, 148, 1)","--sjs-primary-backcolor":"rgba(58, 202, 211, 1)","--sjs-primary-backcolor-light":"rgba(67, 70, 80, 1)","--sjs-primary-backcolor-dark":"rgba(92, 224, 233, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 2px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px -2px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(33, 35, 43, 1)","--sjs-border-light":"rgba(65, 69, 83, 1)","--sjs-border-default":"rgba(97, 101, 118, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/solid-dark.ts":function(c,p,g){g.r(p),g.d(p,"SolidDark",function(){return x});var C={themeName:"solid",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(53, 55, 63, 1)","--sjs-general-backcolor-dark":"rgba(60, 63, 74, 1)","--sjs-general-backcolor-dim":"rgba(38, 40, 47, 1)","--sjs-general-backcolor-dim-light":"rgba(46, 48, 55, 1)","--sjs-general-backcolor-dim-dark":"rgba(51, 53, 61, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(125, 129, 143, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(125, 130, 148, 1)","--sjs-primary-backcolor":"rgba(58, 202, 211, 1)","--sjs-primary-backcolor-light":"rgba(67, 70, 80, 1)","--sjs-primary-backcolor-dark":"rgba(92, 224, 233, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 2px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px -2px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(33, 35, 43, 1)","--sjs-border-light":"rgba(65, 69, 83, 1)","--sjs-border-default":"rgba(97, 101, 118, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/solid-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"SolidLightPanelless",function(){return x});var C={themeName:"solid",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(243, 243, 243, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(245, 245, 245, 1)","--sjs-general-backcolor-dim-dark":"rgba(234, 234, 234, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.43)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(46, 172, 180, 1)","--sjs-primary-backcolor-light":"rgba(46, 172, 180, 0.1)","--sjs-primary-backcolor-dark":"rgba(23, 156, 165, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 2px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 2px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/solid-light.ts":function(c,p,g){g.r(p),g.d(p,"SolidLight",function(){return x});var C={themeName:"solid",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(243, 243, 243, 1)","--sjs-general-backcolor-dim":"rgba(46, 172, 180, 1)","--sjs-general-backcolor-dim-light":"rgba(245, 245, 245, 1)","--sjs-general-backcolor-dim-dark":"rgba(234, 234, 234, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.43)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 1)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.8)","--sjs-primary-backcolor":"rgba(46, 172, 180, 1)","--sjs-primary-backcolor-light":"rgba(46, 172, 180, 0.1)","--sjs-primary-backcolor-dark":"rgba(23, 156, 165, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 2px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 2px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/threedimensional-dark-panelless.ts":function(c,p,g){g.r(p),g.d(p,"ThreeDimensionalDarkPanelless",function(){return x});var C={themeName:"threedimensional",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(38, 38, 38, 1)","--sjs-general-backcolor-dark":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim":"rgba(28, 28, 28, 1)","--sjs-general-backcolor-dim-light":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-dark":"rgba(58, 58, 58, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(243, 87, 134, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.05)","--sjs-primary-backcolor-dark":"rgba(250, 118, 157, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 2px 0px 2px rgba(64, 64, 64, 1),0px 0px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(64, 64, 64, 1),0px 0px 0px 0px rgba(64, 64, 64, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 8px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-large":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 2px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(64, 64, 64, 1),0px 0px 0px 0px rgba(64, 64, 64, 1)","--sjs-border-light":"rgba(255, 255, 255, 0.12)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/threedimensional-dark.ts":function(c,p,g){g.r(p),g.d(p,"ThreeDimensionalDark",function(){return x});var C={themeName:"threedimensional",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(38, 38, 38, 1)","--sjs-general-backcolor-dark":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim":"rgba(28, 28, 28, 1)","--sjs-general-backcolor-dim-light":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-dark":"rgba(58, 58, 58, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(243, 87, 134, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.05)","--sjs-primary-backcolor-dark":"rgba(250, 118, 157, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 2px 0px 2px rgba(64, 64, 64, 1),0px 0px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(64, 64, 64, 1),0px 0px 0px 0px rgba(64, 64, 64, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 8px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-large":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 2px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(64, 64, 64, 1),0px 0px 0px 0px rgba(64, 64, 64, 1)","--sjs-border-light":"rgba(255, 255, 255, 0.12)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/threedimensional-light-panelless.ts":function(c,p,g){g.r(p),g.d(p,"ThreeDimensionalLightPanelless",function(){return x});var C={themeName:"threedimensional",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dark":"rgba(242, 242, 242, 1)","--sjs-general-backcolor-dim":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(242, 242, 242, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(217, 74, 100, 1)","--sjs-primary-backcolor-light":"rgba(217, 74, 100, 0.1)","--sjs-primary-backcolor-dark":"rgba(189, 61, 84, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 2px 0px 2px rgba(228, 228, 228, 1),0px 0px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(228, 228, 228, 1),0px 0px 0px 0px rgba(228, 228, 228, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(228, 228, 228, 1),0px 8px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-large":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(228, 228, 228, 1),0px -2px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(228, 228, 228, 1),0px 0px 0px 0px rgba(228, 228, 228, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.08)","--sjs-border-default":"rgba(0, 0, 0, 0.08)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C},"./packages/survey-core/src/themes/threedimensional-light.ts":function(c,p,g){g.r(p),g.d(p,"ThreeDimensionalLight",function(){return x});var C={themeName:"threedimensional",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dark":"rgba(242, 242, 242, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(242, 242, 242, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(217, 74, 100, 1)","--sjs-primary-backcolor-light":"rgba(217, 74, 100, 0.1)","--sjs-primary-backcolor-dark":"rgba(189, 61, 84, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 2px 0px 2px rgba(228, 228, 228, 1),0px 0px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(228, 228, 228, 1),0px 0px 0px 0px rgba(228, 228, 228, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(228, 228, 228, 1),0px 8px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-large":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(228, 228, 228, 1),0px -2px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(228, 228, 228, 1),0px 0px 0px 0px rgba(228, 228, 228, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.08)","--sjs-border-default":"rgba(0, 0, 0, 0.08)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};p.default=C;var x=C}})})})(Mf);var yy=Mf.exports;const vy=(h,d)=>{class c extends da.Question{getType(){return h}}da.Serializer.addClass(h,[],function(){return new c("")},"question");class p extends nu.SurveyQuestionElementBase{constructor(C){super(C),this.state={value:this.questionBase.value}}get question(){return this.questionBase}renderElement(){const C=d;return W.jsx(C,{setValue:x=>{this.question.value=x}})}}nu.ReactQuestionFactory.Instance.registerQuestion(h,g=>ne.createElement(p,g))};function Nf({next:h,surveyJson:d,customQuestions:c={}}){Object.keys(c).forEach(C=>{vy(C,c[C])});const p=new da.Model({...d,css:{...da.defaultV2Css,root:"sd-root-modern custom-root"}});p.applyTheme(yy.ContrastLight);const g=ne.useCallback(C=>{const x={};for(const w in C.data){const V=C.getQuestionByName(w);V&&(x[w]=V.value)}h(x)},[h]);return p.onComplete.add(g),W.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[W.jsx("div",{className:"absolute inset-0 -z-10 h-full w-full bg-white bg-[radial-gradient(#e5e7eb_1px,transparent_1px)] [background-size:16px_16px]"}),W.jsx(nu.Survey,{model:p})]})}var es=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(h){return this.listeners.add(h),this.onSubscribe(),()=>{this.listeners.delete(h),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ha=typeof window>"u"||"Deno"in globalThis;function tn(){}function by(h,d){return typeof h=="function"?h(d):h}function Cy(h){return typeof h=="number"&&h>=0&&h!==1/0}function xy(h,d){return Math.max(h+(d||0)-Date.now(),0)}function _f(h,d){return typeof h=="function"?h(d):h}function wy(h,d){return typeof h=="function"?h(d):h}function Ff(h,d){const{type:c="all",exact:p,fetchStatus:g,predicate:C,queryKey:x,stale:w}=h;if(x){if(p){if(d.queryHash!==iu(x,d.options))return!1}else if(!ts(d.queryKey,x))return!1}if(c!=="all"){const V=d.isActive();if(c==="active"&&!V||c==="inactive"&&V)return!1}return!(typeof w=="boolean"&&d.isStale()!==w||g&&g!==d.state.fetchStatus||C&&!C(d))}function qf(h,d){const{exact:c,status:p,predicate:g,mutationKey:C}=h;if(C){if(!d.options.mutationKey)return!1;if(c){if(xi(d.options.mutationKey)!==xi(C))return!1}else if(!ts(d.options.mutationKey,C))return!1}return!(p&&d.state.status!==p||g&&!g(d))}function iu(h,d){return((d==null?void 0:d.queryKeyHashFn)||xi)(h)}function xi(h){return JSON.stringify(h,(d,c)=>su(c)?Object.keys(c).sort().reduce((p,g)=>(p[g]=c[g],p),{}):c)}function ts(h,d){return h===d?!0:typeof h!=typeof d?!1:h&&d&&typeof h=="object"&&typeof d=="object"?!Object.keys(d).some(c=>!ts(h[c],d[c])):!1}function ou(h,d){if(h===d)return h;const c=Bf(h)&&Bf(d);if(c||su(h)&&su(d)){const p=c?h:Object.keys(h),g=p.length,C=c?d:Object.keys(d),x=C.length,w=c?[]:{};let V=0;for(let v=0;v<x;v++){const P=c?v:C[v];(!c&&p.includes(P)||c)&&h[P]===void 0&&d[P]===void 0?(w[P]=void 0,V++):(w[P]=ou(h[P],d[P]),w[P]===h[P]&&h[P]!==void 0&&V++)}return g===x&&V===g?h:w}return d}function Py(h,d){if(!d||Object.keys(h).length!==Object.keys(d).length)return!1;for(const c in h)if(h[c]!==d[c])return!1;return!0}function Bf(h){return Array.isArray(h)&&h.length===Object.keys(h).length}function su(h){if(!Hf(h))return!1;const d=h.constructor;if(d===void 0)return!0;const c=d.prototype;return!(!Hf(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(h)!==Object.prototype)}function Hf(h){return Object.prototype.toString.call(h)==="[object Object]"}function Sy(h){return new Promise(d=>{setTimeout(d,h)})}function jy(h,d,c){if(typeof c.structuralSharing=="function")return c.structuralSharing(h,d);if(c.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return ou(h,d)}catch(p){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${c.queryHash}]: ${p}`)}return ou(h,d)}return d}function Ey(h,d,c=0){const p=[...h,d];return c&&p.length>c?p.slice(1):p}function Vy(h,d,c=0){const p=[d,...h];return c&&p.length>c?p.slice(0,-1):p}var ga=Symbol();function Qf(h,d){return process.env.NODE_ENV!=="production"&&h.queryFn===ga&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${h.queryHash}'`),!h.queryFn&&(d!=null&&d.initialPromise)?()=>d.initialPromise:!h.queryFn||h.queryFn===ga?()=>Promise.reject(new Error(`Missing queryFn: '${h.queryHash}'`)):h.queryFn}var Oy=(vh=class extends es{constructor(){super();dt(this,Oi);dt(this,Kn);dt(this,go);Xe(this,go,d=>{if(!ha&&window.addEventListener){const c=()=>d();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){pe(this,Kn)||this.setEventListener(pe(this,go))}onUnsubscribe(){var d;this.hasListeners()||((d=pe(this,Kn))==null||d.call(this),Xe(this,Kn,void 0))}setEventListener(d){var c;Xe(this,go,d),(c=pe(this,Kn))==null||c.call(this),Xe(this,Kn,d(p=>{typeof p=="boolean"?this.setFocused(p):this.onFocus()}))}setFocused(d){pe(this,Oi)!==d&&(Xe(this,Oi,d),this.onFocus())}onFocus(){const d=this.isFocused();this.listeners.forEach(c=>{c(d)})}isFocused(){var d;return typeof pe(this,Oi)=="boolean"?pe(this,Oi):((d=globalThis.document)==null?void 0:d.visibilityState)!=="hidden"}},Oi=new WeakMap,Kn=new WeakMap,go=new WeakMap,vh),Uf=new Oy,Ty=(bh=class extends es{constructor(){super();dt(this,mo,!0);dt(this,Jn);dt(this,yo);Xe(this,yo,d=>{if(!ha&&window.addEventListener){const c=()=>d(!0),p=()=>d(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",p,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",p)}}})}onSubscribe(){pe(this,Jn)||this.setEventListener(pe(this,yo))}onUnsubscribe(){var d;this.hasListeners()||((d=pe(this,Jn))==null||d.call(this),Xe(this,Jn,void 0))}setEventListener(d){var c;Xe(this,yo,d),(c=pe(this,Jn))==null||c.call(this),Xe(this,Jn,d(this.setOnline.bind(this)))}setOnline(d){pe(this,mo)!==d&&(Xe(this,mo,d),this.listeners.forEach(p=>{p(d)}))}isOnline(){return pe(this,mo)}},mo=new WeakMap,Jn=new WeakMap,yo=new WeakMap,bh),ma=new Ty;function Iy(){let h,d;const c=new Promise((g,C)=>{h=g,d=C});c.status="pending",c.catch(()=>{});function p(g){Object.assign(c,g),delete c.resolve,delete c.reject}return c.resolve=g=>{p({status:"fulfilled",value:g}),h(g)},c.reject=g=>{p({status:"rejected",reason:g}),d(g)},c}function Ry(h){return Math.min(1e3*2**h,3e4)}function zf(h){return(h??"online")==="online"?ma.isOnline():!0}var Wf=class extends Error{constructor(h){super("CancelledError"),this.revert=h==null?void 0:h.revert,this.silent=h==null?void 0:h.silent}};function au(h){return h instanceof Wf}function $f(h){let d=!1,c=0,p=!1,g;const C=Iy(),x=A=>{var S;p||(L(new Wf(A)),(S=h.abort)==null||S.call(h))},w=()=>{d=!0},V=()=>{d=!1},v=()=>Uf.isFocused()&&(h.networkMode==="always"||ma.isOnline())&&h.canRun(),P=()=>zf(h.networkMode)&&h.canRun(),I=A=>{var S;p||(p=!0,(S=h.onSuccess)==null||S.call(h,A),g==null||g(),C.resolve(A))},L=A=>{var S;p||(p=!0,(S=h.onError)==null||S.call(h,A),g==null||g(),C.reject(A))},H=()=>new Promise(A=>{var S;g=R=>{(p||v())&&A(R)},(S=h.onPause)==null||S.call(h)}).then(()=>{var A;g=void 0,p||(A=h.onContinue)==null||A.call(h)}),q=()=>{if(p)return;let A;const S=c===0?h.initialPromise:void 0;try{A=S??h.fn()}catch(R){A=Promise.reject(R)}Promise.resolve(A).then(I).catch(R=>{var U;if(p)return;const k=h.retry??(ha?0:3),M=h.retryDelay??Ry,J=typeof M=="function"?M(c,R):M,K=k===!0||typeof k=="number"&&c<k||typeof k=="function"&&k(c,R);if(d||!K){L(R);return}c++,(U=h.onFail)==null||U.call(h,c,R),Sy(J).then(()=>v()?void 0:H()).then(()=>{d?L(R):q()})})};return{promise:C,cancel:x,continue:()=>(g==null||g(),C),cancelRetry:w,continueRetry:V,canStart:P,start:()=>(P()?q():H().then(q),C)}}function Dy(){let h=[],d=0,c=w=>{w()},p=w=>{w()},g=w=>setTimeout(w,0);const C=w=>{d?h.push(w):g(()=>{c(w)})},x=()=>{const w=h;h=[],w.length&&g(()=>{p(()=>{w.forEach(V=>{c(V)})})})};return{batch:w=>{let V;d++;try{V=w()}finally{d--,d||x()}return V},batchCalls:w=>(...V)=>{C(()=>{w(...V)})},schedule:C,setNotifyFunction:w=>{c=w},setBatchNotifyFunction:w=>{p=w},setScheduler:w=>{g=w}}}var sr=Dy(),Gf=(Ch=class{constructor(){dt(this,Ti)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cy(this.gcTime)&&Xe(this,Ti,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(h){this.gcTime=Math.max(this.gcTime||0,h??(ha?1/0:5*60*1e3))}clearGcTimeout(){pe(this,Ti)&&(clearTimeout(pe(this,Ti)),Xe(this,Ti,void 0))}},Ti=new WeakMap,Ch),Ay=(xh=class extends Gf{constructor(d){super();dt(this,sn);dt(this,vo);dt(this,bo);dt(this,Zr);dt(this,pr);dt(this,vs);dt(this,Ii);Xe(this,Ii,!1),Xe(this,vs,d.defaultOptions),this.setOptions(d.options),this.observers=[],Xe(this,Zr,d.cache),this.queryKey=d.queryKey,this.queryHash=d.queryHash,Xe(this,vo,ky(this.options)),this.state=d.state??pe(this,vo),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var d;return(d=pe(this,pr))==null?void 0:d.promise}setOptions(d){this.options={...pe(this,vs),...d},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&pe(this,Zr).remove(this)}setData(d,c){const p=jy(this.state.data,d,this.options);return Zt(this,sn,qn).call(this,{data:p,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),p}setState(d,c){Zt(this,sn,qn).call(this,{type:"setState",state:d,setStateOptions:c})}cancel(d){var p,g;const c=(p=pe(this,pr))==null?void 0:p.promise;return(g=pe(this,pr))==null||g.cancel(d),c?c.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(pe(this,vo))}isActive(){return this.observers.some(d=>wy(d.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ga||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(d=>d.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(d=0){return this.state.isInvalidated||this.state.data===void 0||!xy(this.state.dataUpdatedAt,d)}onFocus(){var c;const d=this.observers.find(p=>p.shouldFetchOnWindowFocus());d==null||d.refetch({cancelRefetch:!1}),(c=pe(this,pr))==null||c.continue()}onOnline(){var c;const d=this.observers.find(p=>p.shouldFetchOnReconnect());d==null||d.refetch({cancelRefetch:!1}),(c=pe(this,pr))==null||c.continue()}addObserver(d){this.observers.includes(d)||(this.observers.push(d),this.clearGcTimeout(),pe(this,Zr).notify({type:"observerAdded",query:this,observer:d}))}removeObserver(d){this.observers.includes(d)&&(this.observers=this.observers.filter(c=>c!==d),this.observers.length||(pe(this,pr)&&(pe(this,Ii)?pe(this,pr).cancel({revert:!0}):pe(this,pr).cancelRetry()),this.scheduleGc()),pe(this,Zr).notify({type:"observerRemoved",query:this,observer:d}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Zt(this,sn,qn).call(this,{type:"invalidate"})}fetch(d,c){var V,v,P;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(pe(this,pr))return pe(this,pr).continueRetry(),pe(this,pr).promise}if(d&&this.setOptions(d),!this.options.queryFn){const I=this.observers.find(L=>L.options.queryFn);I&&this.setOptions(I.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const p=new AbortController,g=I=>{Object.defineProperty(I,"signal",{enumerable:!0,get:()=>(Xe(this,Ii,!0),p.signal)})},C=()=>{const I=Qf(this.options,c),L={queryKey:this.queryKey,meta:this.meta};return g(L),Xe(this,Ii,!1),this.options.persister?this.options.persister(I,L,this):I(L)},x={fetchOptions:c,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:C};g(x),(V=this.options.behavior)==null||V.onFetch(x,this),Xe(this,bo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=x.fetchOptions)==null?void 0:v.meta))&&Zt(this,sn,qn).call(this,{type:"fetch",meta:(P=x.fetchOptions)==null?void 0:P.meta});const w=I=>{var L,H,q,A;au(I)&&I.silent||Zt(this,sn,qn).call(this,{type:"error",error:I}),au(I)||((H=(L=pe(this,Zr).config).onError)==null||H.call(L,I,this),(A=(q=pe(this,Zr).config).onSettled)==null||A.call(q,this.state.data,I,this)),this.scheduleGc()};return Xe(this,pr,$f({initialPromise:c==null?void 0:c.initialPromise,fn:x.fetchFn,abort:p.abort.bind(p),onSuccess:I=>{var L,H,q,A;if(I===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),w(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(I)}catch(S){w(S);return}(H=(L=pe(this,Zr).config).onSuccess)==null||H.call(L,I,this),(A=(q=pe(this,Zr).config).onSettled)==null||A.call(q,I,this.state.error,this),this.scheduleGc()},onError:w,onFail:(I,L)=>{Zt(this,sn,qn).call(this,{type:"failed",failureCount:I,error:L})},onPause:()=>{Zt(this,sn,qn).call(this,{type:"pause"})},onContinue:()=>{Zt(this,sn,qn).call(this,{type:"continue"})},retry:x.options.retry,retryDelay:x.options.retryDelay,networkMode:x.options.networkMode,canRun:()=>!0})),pe(this,pr).start()}},vo=new WeakMap,bo=new WeakMap,Zr=new WeakMap,pr=new WeakMap,vs=new WeakMap,Ii=new WeakMap,sn=new WeakSet,qn=function(d){const c=p=>{switch(d.type){case"failed":return{...p,fetchFailureCount:d.failureCount,fetchFailureReason:d.error};case"pause":return{...p,fetchStatus:"paused"};case"continue":return{...p,fetchStatus:"fetching"};case"fetch":return{...p,...Ly(p.data,this.options),fetchMeta:d.meta??null};case"success":return{...p,data:d.data,dataUpdateCount:p.dataUpdateCount+1,dataUpdatedAt:d.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!d.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const g=d.error;return au(g)&&g.revert&&pe(this,bo)?{...pe(this,bo),fetchStatus:"idle"}:{...p,error:g,errorUpdateCount:p.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:p.fetchFailureCount+1,fetchFailureReason:g,fetchStatus:"idle",status:"error"};case"invalidate":return{...p,isInvalidated:!0};case"setState":return{...p,...d.state}}};this.state=c(this.state),sr.batch(()=>{this.observers.forEach(p=>{p.onQueryUpdate()}),pe(this,Zr).notify({query:this,type:"updated",action:d})})},xh);function Ly(h,d){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zf(d.networkMode)?"fetching":"paused",...h===void 0&&{error:null,status:"pending"}}}function ky(h){const d=typeof h.initialData=="function"?h.initialData():h.initialData,c=d!==void 0,p=c?typeof h.initialDataUpdatedAt=="function"?h.initialDataUpdatedAt():h.initialDataUpdatedAt:0;return{data:d,dataUpdateCount:0,dataUpdatedAt:c?p??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var My=(wh=class extends es{constructor(d={}){super();dt(this,Cn);this.config=d,Xe(this,Cn,new Map)}build(d,c,p){const g=c.queryKey,C=c.queryHash??iu(g,c);let x=this.get(C);return x||(x=new Ay({cache:this,queryKey:g,queryHash:C,options:d.defaultQueryOptions(c),state:p,defaultOptions:d.getQueryDefaults(g)}),this.add(x)),x}add(d){pe(this,Cn).has(d.queryHash)||(pe(this,Cn).set(d.queryHash,d),this.notify({type:"added",query:d}))}remove(d){const c=pe(this,Cn).get(d.queryHash);c&&(d.destroy(),c===d&&pe(this,Cn).delete(d.queryHash),this.notify({type:"removed",query:d}))}clear(){sr.batch(()=>{this.getAll().forEach(d=>{this.remove(d)})})}get(d){return pe(this,Cn).get(d)}getAll(){return[...pe(this,Cn).values()]}find(d){const c={exact:!0,...d};return this.getAll().find(p=>Ff(c,p))}findAll(d={}){const c=this.getAll();return Object.keys(d).length>0?c.filter(p=>Ff(d,p)):c}notify(d){sr.batch(()=>{this.listeners.forEach(c=>{c(d)})})}onFocus(){sr.batch(()=>{this.getAll().forEach(d=>{d.onFocus()})})}onOnline(){sr.batch(()=>{this.getAll().forEach(d=>{d.onOnline()})})}},Cn=new WeakMap,wh),Ny=(Ph=class extends Gf{constructor(d){super();dt(this,wn);dt(this,xn);dt(this,Cr);dt(this,Ri);this.mutationId=d.mutationId,Xe(this,Cr,d.mutationCache),Xe(this,xn,[]),this.state=d.state||Zf(),this.setOptions(d.options),this.scheduleGc()}setOptions(d){this.options=d,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(d){pe(this,xn).includes(d)||(pe(this,xn).push(d),this.clearGcTimeout(),pe(this,Cr).notify({type:"observerAdded",mutation:this,observer:d}))}removeObserver(d){Xe(this,xn,pe(this,xn).filter(c=>c!==d)),this.scheduleGc(),pe(this,Cr).notify({type:"observerRemoved",mutation:this,observer:d})}optionalRemove(){pe(this,xn).length||(this.state.status==="pending"?this.scheduleGc():pe(this,Cr).remove(this))}continue(){var d;return((d=pe(this,Ri))==null?void 0:d.continue())??this.execute(this.state.variables)}async execute(d){var g,C,x,w,V,v,P,I,L,H,q,A,S,R,k,M,J,K,U,$;Xe(this,Ri,$f({fn:()=>this.options.mutationFn?this.options.mutationFn(d):Promise.reject(new Error("No mutationFn found")),onFail:(Q,B)=>{Zt(this,wn,bi).call(this,{type:"failed",failureCount:Q,error:B})},onPause:()=>{Zt(this,wn,bi).call(this,{type:"pause"})},onContinue:()=>{Zt(this,wn,bi).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>pe(this,Cr).canRun(this)}));const c=this.state.status==="pending",p=!pe(this,Ri).canStart();try{if(!c){Zt(this,wn,bi).call(this,{type:"pending",variables:d,isPaused:p}),await((C=(g=pe(this,Cr).config).onMutate)==null?void 0:C.call(g,d,this));const B=await((w=(x=this.options).onMutate)==null?void 0:w.call(x,d));B!==this.state.context&&Zt(this,wn,bi).call(this,{type:"pending",context:B,variables:d,isPaused:p})}const Q=await pe(this,Ri).start();return await((v=(V=pe(this,Cr).config).onSuccess)==null?void 0:v.call(V,Q,d,this.state.context,this)),await((I=(P=this.options).onSuccess)==null?void 0:I.call(P,Q,d,this.state.context)),await((H=(L=pe(this,Cr).config).onSettled)==null?void 0:H.call(L,Q,null,this.state.variables,this.state.context,this)),await((A=(q=this.options).onSettled)==null?void 0:A.call(q,Q,null,d,this.state.context)),Zt(this,wn,bi).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((R=(S=pe(this,Cr).config).onError)==null?void 0:R.call(S,Q,d,this.state.context,this)),await((M=(k=this.options).onError)==null?void 0:M.call(k,Q,d,this.state.context)),await((K=(J=pe(this,Cr).config).onSettled)==null?void 0:K.call(J,void 0,Q,this.state.variables,this.state.context,this)),await(($=(U=this.options).onSettled)==null?void 0:$.call(U,void 0,Q,d,this.state.context)),Q}finally{Zt(this,wn,bi).call(this,{type:"error",error:Q})}}finally{pe(this,Cr).runNext(this)}}},xn=new WeakMap,Cr=new WeakMap,Ri=new WeakMap,wn=new WeakSet,bi=function(d){const c=p=>{switch(d.type){case"failed":return{...p,failureCount:d.failureCount,failureReason:d.error};case"pause":return{...p,isPaused:!0};case"continue":return{...p,isPaused:!1};case"pending":return{...p,context:d.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:d.isPaused,status:"pending",variables:d.variables,submittedAt:Date.now()};case"success":return{...p,data:d.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...p,data:void 0,error:d.error,failureCount:p.failureCount+1,failureReason:d.error,isPaused:!1,status:"error"}}};this.state=c(this.state),sr.batch(()=>{pe(this,xn).forEach(p=>{p.onMutationUpdate(d)}),pe(this,Cr).notify({mutation:this,type:"updated",action:d})})},Ph);function Zf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _y=(Sh=class extends es{constructor(d={}){super();dt(this,Qr);dt(this,bs);this.config=d,Xe(this,Qr,new Map),Xe(this,bs,Date.now())}build(d,c,p){const g=new Ny({mutationCache:this,mutationId:++$l(this,bs)._,options:d.defaultMutationOptions(c),state:p});return this.add(g),g}add(d){const c=ya(d),p=pe(this,Qr).get(c)??[];p.push(d),pe(this,Qr).set(c,p),this.notify({type:"added",mutation:d})}remove(d){var p;const c=ya(d);if(pe(this,Qr).has(c)){const g=(p=pe(this,Qr).get(c))==null?void 0:p.filter(C=>C!==d);g&&(g.length===0?pe(this,Qr).delete(c):pe(this,Qr).set(c,g))}this.notify({type:"removed",mutation:d})}canRun(d){var p;const c=(p=pe(this,Qr).get(ya(d)))==null?void 0:p.find(g=>g.state.status==="pending");return!c||c===d}runNext(d){var p;const c=(p=pe(this,Qr).get(ya(d)))==null?void 0:p.find(g=>g!==d&&g.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}clear(){sr.batch(()=>{this.getAll().forEach(d=>{this.remove(d)})})}getAll(){return[...pe(this,Qr).values()].flat()}find(d){const c={exact:!0,...d};return this.getAll().find(p=>qf(c,p))}findAll(d={}){return this.getAll().filter(c=>qf(d,c))}notify(d){sr.batch(()=>{this.listeners.forEach(c=>{c(d)})})}resumePausedMutations(){const d=this.getAll().filter(c=>c.state.isPaused);return sr.batch(()=>Promise.all(d.map(c=>c.continue().catch(tn))))}},Qr=new WeakMap,bs=new WeakMap,Sh);function ya(h){var d;return((d=h.options.scope)==null?void 0:d.id)??String(h.mutationId)}function Kf(h){return{onFetch:(d,c)=>{var P,I,L,H,q;const p=d.options,g=(L=(I=(P=d.fetchOptions)==null?void 0:P.meta)==null?void 0:I.fetchMore)==null?void 0:L.direction,C=((H=d.state.data)==null?void 0:H.pages)||[],x=((q=d.state.data)==null?void 0:q.pageParams)||[];let w={pages:[],pageParams:[]},V=0;const v=async()=>{let A=!1;const S=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>(d.signal.aborted?A=!0:d.signal.addEventListener("abort",()=>{A=!0}),d.signal)})},R=Qf(d.options,d.fetchOptions),k=async(M,J,K)=>{if(A)return Promise.reject();if(J==null&&M.pages.length)return Promise.resolve(M);const U={queryKey:d.queryKey,pageParam:J,direction:K?"backward":"forward",meta:d.options.meta};S(U);const $=await R(U),{maxPages:Q}=d.options,B=K?Vy:Ey;return{pages:B(M.pages,$,Q),pageParams:B(M.pageParams,J,Q)}};if(g&&C.length){const M=g==="backward",J=M?Fy:Jf,K={pages:C,pageParams:x},U=J(p,K);w=await k(K,U,M)}else{const M=h??C.length;do{const J=V===0?x[0]??p.initialPageParam:Jf(p,w);if(V>0&&J==null)break;w=await k(w,J),V++}while(V<M)}return w};d.options.persister?d.fetchFn=()=>{var A,S;return(S=(A=d.options).persister)==null?void 0:S.call(A,v,{queryKey:d.queryKey,meta:d.options.meta,signal:d.signal},c)}:d.fetchFn=v}}}function Jf(h,{pages:d,pageParams:c}){const p=d.length-1;return d.length>0?h.getNextPageParam(d[p],d,c[p],c):void 0}function Fy(h,{pages:d,pageParams:c}){var p;return d.length>0?(p=h.getPreviousPageParam)==null?void 0:p.call(h,d[0],d,c[0],c):void 0}var qy=(jh=class{constructor(h={}){dt(this,Ft);dt(this,Yn);dt(this,Xn);dt(this,Co);dt(this,xo);dt(this,ei);dt(this,wo);dt(this,Po);Xe(this,Ft,h.queryCache||new My),Xe(this,Yn,h.mutationCache||new _y),Xe(this,Xn,h.defaultOptions||{}),Xe(this,Co,new Map),Xe(this,xo,new Map),Xe(this,ei,0)}mount(){$l(this,ei)._++,pe(this,ei)===1&&(Xe(this,wo,Uf.subscribe(async h=>{h&&(await this.resumePausedMutations(),pe(this,Ft).onFocus())})),Xe(this,Po,ma.subscribe(async h=>{h&&(await this.resumePausedMutations(),pe(this,Ft).onOnline())})))}unmount(){var h,d;$l(this,ei)._--,pe(this,ei)===0&&((h=pe(this,wo))==null||h.call(this),Xe(this,wo,void 0),(d=pe(this,Po))==null||d.call(this),Xe(this,Po,void 0))}isFetching(h){return pe(this,Ft).findAll({...h,fetchStatus:"fetching"}).length}isMutating(h){return pe(this,Yn).findAll({...h,status:"pending"}).length}getQueryData(h){var c;const d=this.defaultQueryOptions({queryKey:h});return(c=pe(this,Ft).get(d.queryHash))==null?void 0:c.state.data}ensureQueryData(h){const d=this.getQueryData(h.queryKey);if(d===void 0)return this.fetchQuery(h);{const c=this.defaultQueryOptions(h),p=pe(this,Ft).build(this,c);return h.revalidateIfStale&&p.isStaleByTime(_f(c.staleTime,p))&&this.prefetchQuery(c),Promise.resolve(d)}}getQueriesData(h){return pe(this,Ft).findAll(h).map(({queryKey:d,state:c})=>{const p=c.data;return[d,p]})}setQueryData(h,d,c){const p=this.defaultQueryOptions({queryKey:h}),g=pe(this,Ft).get(p.queryHash),C=g==null?void 0:g.state.data,x=by(d,C);if(x!==void 0)return pe(this,Ft).build(this,p).setData(x,{...c,manual:!0})}setQueriesData(h,d,c){return sr.batch(()=>pe(this,Ft).findAll(h).map(({queryKey:p})=>[p,this.setQueryData(p,d,c)]))}getQueryState(h){var c;const d=this.defaultQueryOptions({queryKey:h});return(c=pe(this,Ft).get(d.queryHash))==null?void 0:c.state}removeQueries(h){const d=pe(this,Ft);sr.batch(()=>{d.findAll(h).forEach(c=>{d.remove(c)})})}resetQueries(h,d){const c=pe(this,Ft),p={type:"active",...h};return sr.batch(()=>(c.findAll(h).forEach(g=>{g.reset()}),this.refetchQueries(p,d)))}cancelQueries(h={},d={}){const c={revert:!0,...d},p=sr.batch(()=>pe(this,Ft).findAll(h).map(g=>g.cancel(c)));return Promise.all(p).then(tn).catch(tn)}invalidateQueries(h={},d={}){return sr.batch(()=>{if(pe(this,Ft).findAll(h).forEach(p=>{p.invalidate()}),h.refetchType==="none")return Promise.resolve();const c={...h,type:h.refetchType??h.type??"active"};return this.refetchQueries(c,d)})}refetchQueries(h={},d){const c={...d,cancelRefetch:(d==null?void 0:d.cancelRefetch)??!0},p=sr.batch(()=>pe(this,Ft).findAll(h).filter(g=>!g.isDisabled()).map(g=>{let C=g.fetch(void 0,c);return c.throwOnError||(C=C.catch(tn)),g.state.fetchStatus==="paused"?Promise.resolve():C}));return Promise.all(p).then(tn)}fetchQuery(h){const d=this.defaultQueryOptions(h);d.retry===void 0&&(d.retry=!1);const c=pe(this,Ft).build(this,d);return c.isStaleByTime(_f(d.staleTime,c))?c.fetch(d):Promise.resolve(c.state.data)}prefetchQuery(h){return this.fetchQuery(h).then(tn).catch(tn)}fetchInfiniteQuery(h){return h.behavior=Kf(h.pages),this.fetchQuery(h)}prefetchInfiniteQuery(h){return this.fetchInfiniteQuery(h).then(tn).catch(tn)}ensureInfiniteQueryData(h){return h.behavior=Kf(h.pages),this.ensureQueryData(h)}resumePausedMutations(){return ma.isOnline()?pe(this,Yn).resumePausedMutations():Promise.resolve()}getQueryCache(){return pe(this,Ft)}getMutationCache(){return pe(this,Yn)}getDefaultOptions(){return pe(this,Xn)}setDefaultOptions(h){Xe(this,Xn,h)}setQueryDefaults(h,d){pe(this,Co).set(xi(h),{queryKey:h,defaultOptions:d})}getQueryDefaults(h){const d=[...pe(this,Co).values()];let c={};return d.forEach(p=>{ts(h,p.queryKey)&&(c={...c,...p.defaultOptions})}),c}setMutationDefaults(h,d){pe(this,xo).set(xi(h),{mutationKey:h,defaultOptions:d})}getMutationDefaults(h){const d=[...pe(this,xo).values()];let c={};return d.forEach(p=>{ts(h,p.mutationKey)&&(c={...c,...p.defaultOptions})}),c}defaultQueryOptions(h){if(h._defaulted)return h;const d={...pe(this,Xn).queries,...this.getQueryDefaults(h.queryKey),...h,_defaulted:!0};return d.queryHash||(d.queryHash=iu(d.queryKey,d)),d.refetchOnReconnect===void 0&&(d.refetchOnReconnect=d.networkMode!=="always"),d.throwOnError===void 0&&(d.throwOnError=!!d.suspense),!d.networkMode&&d.persister&&(d.networkMode="offlineFirst"),d.enabled!==!0&&d.queryFn===ga&&(d.enabled=!1),d}defaultMutationOptions(h){return h!=null&&h._defaulted?h:{...pe(this,Xn).mutations,...(h==null?void 0:h.mutationKey)&&this.getMutationDefaults(h.mutationKey),...h,_defaulted:!0}}clear(){pe(this,Ft).clear(),pe(this,Yn).clear()}},Ft=new WeakMap,Yn=new WeakMap,Xn=new WeakMap,Co=new WeakMap,xo=new WeakMap,ei=new WeakMap,wo=new WeakMap,Po=new WeakMap,jh),By=(Eh=class extends es{constructor(d,c){super();dt(this,An);dt(this,ti);dt(this,ri);dt(this,Lr);dt(this,Dn);Xe(this,ti,d),this.setOptions(c),this.bindMethods(),Zt(this,An,Gl).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(d){var p;const c=this.options;this.options=pe(this,ti).defaultMutationOptions(d),Py(this.options,c)||pe(this,ti).getMutationCache().notify({type:"observerOptionsUpdated",mutation:pe(this,Lr),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&xi(c.mutationKey)!==xi(this.options.mutationKey)?this.reset():((p=pe(this,Lr))==null?void 0:p.state.status)==="pending"&&pe(this,Lr).setOptions(this.options)}onUnsubscribe(){var d;this.hasListeners()||(d=pe(this,Lr))==null||d.removeObserver(this)}onMutationUpdate(d){Zt(this,An,Gl).call(this),Zt(this,An,df).call(this,d)}getCurrentResult(){return pe(this,ri)}reset(){var d;(d=pe(this,Lr))==null||d.removeObserver(this),Xe(this,Lr,void 0),Zt(this,An,Gl).call(this),Zt(this,An,df).call(this)}mutate(d,c){var p;return Xe(this,Dn,c),(p=pe(this,Lr))==null||p.removeObserver(this),Xe(this,Lr,pe(this,ti).getMutationCache().build(pe(this,ti),this.options)),pe(this,Lr).addObserver(this),pe(this,Lr).execute(d)}},ti=new WeakMap,ri=new WeakMap,Lr=new WeakMap,Dn=new WeakMap,An=new WeakSet,Gl=function(){var c;const d=((c=pe(this,Lr))==null?void 0:c.state)??Zf();Xe(this,ri,{...d,isPending:d.status==="pending",isSuccess:d.status==="success",isError:d.status==="error",isIdle:d.status==="idle",mutate:this.mutate,reset:this.reset})},df=function(d){sr.batch(()=>{var c,p,g,C,x,w,V,v;if(pe(this,Dn)&&this.hasListeners()){const P=pe(this,ri).variables,I=pe(this,ri).context;(d==null?void 0:d.type)==="success"?((p=(c=pe(this,Dn)).onSuccess)==null||p.call(c,d.data,P,I),(C=(g=pe(this,Dn)).onSettled)==null||C.call(g,d.data,null,P,I)):(d==null?void 0:d.type)==="error"&&((w=(x=pe(this,Dn)).onError)==null||w.call(x,d.error,P,I),(v=(V=pe(this,Dn)).onSettled)==null||v.call(V,void 0,d.error,P,I))}this.listeners.forEach(P=>{P(pe(this,ri))})})},Eh),Yf=Hn.createContext(void 0),Hy=h=>{const d=Hn.useContext(Yf);if(!d)throw new Error("No QueryClient set, use QueryClientProvider to set one");return d},Qy=({client:h,children:d})=>(Hn.useEffect(()=>(h.mount(),()=>{h.unmount()}),[h]),W.jsx(Yf.Provider,{value:h,children:d}));function Uy(h,d){return typeof h=="function"?h(...d):!!h}function zy(){}function Wy(h,d){const c=Hy(),[p]=Hn.useState(()=>new By(c,h));Hn.useEffect(()=>{p.setOptions(h)},[p,h]);const g=Hn.useSyncExternalStore(Hn.useCallback(x=>p.subscribe(sr.batchCalls(x)),[p]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),C=Hn.useCallback((x,w)=>{p.mutate(x,w).catch(zy)},[p]);if(g.error&&Uy(p.options.throwOnError,[g.error]))throw g.error;return{...g,mutate:C,mutateAsync:g.mutate}}const ar=[];for(let h=0;h<256;++h)ar.push((h+256).toString(16).slice(1));function $y(h,d=0){return(ar[h[d+0]]+ar[h[d+1]]+ar[h[d+2]]+ar[h[d+3]]+"-"+ar[h[d+4]]+ar[h[d+5]]+"-"+ar[h[d+6]]+ar[h[d+7]]+"-"+ar[h[d+8]]+ar[h[d+9]]+"-"+ar[h[d+10]]+ar[h[d+11]]+ar[h[d+12]]+ar[h[d+13]]+ar[h[d+14]]+ar[h[d+15]]).toLowerCase()}let lu;const Gy=new Uint8Array(16);function Zy(){if(!lu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");lu=crypto.getRandomValues.bind(crypto)}return lu(Gy)}const Xf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ky(h,d,c){if(Xf.randomUUID&&!d&&!h)return Xf.randomUUID();h=h||{};const p=h.random||(h.rng||Zy)();return p[6]=p[6]&15|64,p[8]=p[8]&63|128,$y(p)}const ep="/backend";async function Jy(h,d){return d instanceof FormData?await fetch(`${ep}${h}`,{method:"POST",body:d}):fetch(`${ep}${h}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)})}const rs=15,uu=30,cu=19,Yy=29,va=256,fu=va+1+Yy,tp=2*fu+1,ns=256,Xy=7,rp=16,np=17,ip=18,pu=8*2,ba=-1,ev=1,Ca=2,tv=0,uo=0,op=1,rv=3,Tr=4,rn=0,sp=1,xa=2,nn=-2,nv=-3,co=-5;function wa(h){return Pa(h.map(([d,c])=>new Array(d).fill(c,0,d)))}function Pa(h){return h.reduce((d,c)=>d.concat(Array.isArray(c)?Pa(c):c),[])}const ap=[0,1,2,3].concat(...wa([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Ot(){const h=this;function d(g){const C=h.dyn_tree,x=h.stat_desc.static_tree,w=h.stat_desc.extra_bits,V=h.stat_desc.extra_base,v=h.stat_desc.max_length;let P,I,L,H,q,A,S=0;for(H=0;H<=rs;H++)g.bl_count[H]=0;for(C[g.heap[g.heap_max]*2+1]=0,P=g.heap_max+1;P<tp;P++)I=g.heap[P],H=C[C[I*2+1]*2+1]+1,H>v&&(H=v,S++),C[I*2+1]=H,!(I>h.max_code)&&(g.bl_count[H]++,q=0,I>=V&&(q=w[I-V]),A=C[I*2],g.opt_len+=A*(H+q),x&&(g.static_len+=A*(x[I*2+1]+q)));if(S!==0){do{for(H=v-1;g.bl_count[H]===0;)H--;g.bl_count[H]--,g.bl_count[H+1]+=2,g.bl_count[v]--,S-=2}while(S>0);for(H=v;H!==0;H--)for(I=g.bl_count[H];I!==0;)L=g.heap[--P],!(L>h.max_code)&&(C[L*2+1]!=H&&(g.opt_len+=(H-C[L*2+1])*C[L*2],C[L*2+1]=H),I--)}}function c(g,C){let x=0;do x|=g&1,g>>>=1,x<<=1;while(--C>0);return x>>>1}function p(g,C,x){const w=[];let V=0,v,P,I;for(v=1;v<=rs;v++)w[v]=V=V+x[v-1]<<1;for(P=0;P<=C;P++)I=g[P*2+1],I!==0&&(g[P*2]=c(w[I]++,I))}h.build_tree=function(g){const C=h.dyn_tree,x=h.stat_desc.static_tree,w=h.stat_desc.elems;let V,v,P=-1,I;for(g.heap_len=0,g.heap_max=tp,V=0;V<w;V++)C[V*2]!==0?(g.heap[++g.heap_len]=P=V,g.depth[V]=0):C[V*2+1]=0;for(;g.heap_len<2;)I=g.heap[++g.heap_len]=P<2?++P:0,C[I*2]=1,g.depth[I]=0,g.opt_len--,x&&(g.static_len-=x[I*2+1]);for(h.max_code=P,V=Math.floor(g.heap_len/2);V>=1;V--)g.pqdownheap(C,V);I=w;do V=g.heap[1],g.heap[1]=g.heap[g.heap_len--],g.pqdownheap(C,1),v=g.heap[1],g.heap[--g.heap_max]=V,g.heap[--g.heap_max]=v,C[I*2]=C[V*2]+C[v*2],g.depth[I]=Math.max(g.depth[V],g.depth[v])+1,C[V*2+1]=C[v*2+1]=I,g.heap[1]=I++,g.pqdownheap(C,1);while(g.heap_len>=2);g.heap[--g.heap_max]=g.heap[1],d(g),p(C,h.max_code,g.bl_count)}}Ot._length_code=[0,1,2,3,4,5,6,7].concat(...wa([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),Ot.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Ot.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Ot.d_code=function(h){return h<256?ap[h]:ap[256+(h>>>7)]},Ot.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Ot.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ot.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ot.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function lr(h,d,c,p,g){const C=this;C.static_tree=h,C.extra_bits=d,C.extra_base=c,C.elems=p,C.max_length=g}const iv=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],ov=wa([[144,8],[112,9],[24,7],[8,8]]);lr.static_ltree=Pa(iv.map((h,d)=>[h,ov[d]]));const sv=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],av=wa([[30,5]]);lr.static_dtree=Pa(sv.map((h,d)=>[h,av[d]])),lr.static_l_desc=new lr(lr.static_ltree,Ot.extra_lbits,va+1,fu,rs),lr.static_d_desc=new lr(lr.static_dtree,Ot.extra_dbits,0,uu,rs),lr.static_bl_desc=new lr(null,Ot.extra_blbits,0,cu,Xy);const lv=9,uv=8;function mn(h,d,c,p,g){const C=this;C.good_length=h,C.max_lazy=d,C.nice_length=c,C.max_chain=p,C.func=g}const lp=0,Sa=1,wi=2,on=[new mn(0,0,0,0,lp),new mn(4,4,8,4,Sa),new mn(4,5,16,8,Sa),new mn(4,6,32,32,Sa),new mn(4,4,16,16,wi),new mn(8,16,32,32,wi),new mn(8,16,128,128,wi),new mn(8,32,128,256,wi),new mn(32,128,258,1024,wi),new mn(32,258,258,4096,wi)],ja=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],$r=0,Ea=1,is=2,Va=3,cv=32,du=42,Oa=113,os=666,hu=8,fv=0,gu=1,pv=2,Lt=3,Ta=258,qr=Ta+Lt+1;function up(h,d,c,p){const g=h[d*2],C=h[c*2];return g<C||g==C&&p[d]<=p[c]}function dv(){const h=this;let d,c,p,g,C,x,w,V,v,P,I,L,H,q,A,S,R,k,M,J,K,U,$,Q,B,ee,oe,le,G,te,X,N,ce;const ge=new Ot,Ae=new Ot,fe=new Ot;h.depth=[];let ke,we,De,Ge,Be,Ce;h.bl_count=[],h.heap=[],X=[],N=[],ce=[];function He(){v=2*C,I[H-1]=0;for(let de=0;de<H-1;de++)I[de]=0;ee=on[oe].max_lazy,G=on[oe].good_length,te=on[oe].nice_length,B=on[oe].max_chain,K=0,R=0,$=0,k=Q=Lt-1,J=0,L=0}function st(){let de;for(de=0;de<fu;de++)X[de*2]=0;for(de=0;de<uu;de++)N[de*2]=0;for(de=0;de<cu;de++)ce[de*2]=0;X[ns*2]=1,h.opt_len=h.static_len=0,we=De=0}function Ke(){ge.dyn_tree=X,ge.stat_desc=lr.static_l_desc,Ae.dyn_tree=N,Ae.stat_desc=lr.static_d_desc,fe.dyn_tree=ce,fe.stat_desc=lr.static_bl_desc,Be=0,Ce=0,Ge=8,st()}h.pqdownheap=function(de,ve){const me=h.heap,ye=me[ve];let Ie=ve<<1;for(;Ie<=h.heap_len&&(Ie<h.heap_len&&up(de,me[Ie+1],me[Ie],h.depth)&&Ie++,!up(de,ye,me[Ie],h.depth));)me[ve]=me[Ie],ve=Ie,Ie<<=1;me[ve]=ye};function Qt(de,ve){let me=-1,ye,Ie=de[0*2+1],Qe=0,et=7,yt=4;Ie===0&&(et=138,yt=3),de[(ve+1)*2+1]=65535;for(let St=0;St<=ve;St++)ye=Ie,Ie=de[(St+1)*2+1],!(++Qe<et&&ye==Ie)&&(Qe<yt?ce[ye*2]+=Qe:ye!==0?(ye!=me&&ce[ye*2]++,ce[rp*2]++):Qe<=10?ce[np*2]++:ce[ip*2]++,Qe=0,me=ye,Ie===0?(et=138,yt=3):ye==Ie?(et=6,yt=3):(et=7,yt=4))}function Xt(){let de;for(Qt(X,ge.max_code),Qt(N,Ae.max_code),fe.build_tree(h),de=cu-1;de>=3&&ce[Ot.bl_order[de]*2+1]===0;de--);return h.opt_len+=3*(de+1)+5+5+4,de}function kt(de){h.pending_buf[h.pending++]=de}function Ut(de){kt(de&255),kt(de>>>8&255)}function dr(de){kt(de>>8&255),kt(de&255&255)}function at(de,ve){let me;const ye=ve;Ce>pu-ye?(me=de,Be|=me<<Ce&65535,Ut(Be),Be=me>>>pu-Ce,Ce+=ye-pu):(Be|=de<<Ce&65535,Ce+=ye)}function mt(de,ve){const me=de*2;at(ve[me]&65535,ve[me+1]&65535)}function zt(de,ve){let me,ye=-1,Ie,Qe=de[0*2+1],et=0,yt=7,St=4;for(Qe===0&&(yt=138,St=3),me=0;me<=ve;me++)if(Ie=Qe,Qe=de[(me+1)*2+1],!(++et<yt&&Ie==Qe)){if(et<St)do mt(Ie,ce);while(--et!==0);else Ie!==0?(Ie!=ye&&(mt(Ie,ce),et--),mt(rp,ce),at(et-3,2)):et<=10?(mt(np,ce),at(et-3,3)):(mt(ip,ce),at(et-11,7));et=0,ye=Ie,Qe===0?(yt=138,St=3):Ie==Qe?(yt=6,St=3):(yt=7,St=4)}}function Wt(de,ve,me){let ye;for(at(de-257,5),at(ve-1,5),at(me-4,4),ye=0;ye<me;ye++)at(ce[Ot.bl_order[ye]*2+1],3);zt(X,de-1),zt(N,ve-1)}function Rt(){Ce==16?(Ut(Be),Be=0,Ce=0):Ce>=8&&(kt(Be&255),Be>>>=8,Ce-=8)}function er(){at(gu<<1,3),mt(ns,lr.static_ltree),Rt(),1+Ge+10-Ce<9&&(at(gu<<1,3),mt(ns,lr.static_ltree),Rt()),Ge=7}function tr(de,ve){let me,ye,Ie;if(h.dist_buf[we]=de,h.lc_buf[we]=ve&255,we++,de===0?X[ve*2]++:(De++,de--,X[(Ot._length_code[ve]+va+1)*2]++,N[Ot.d_code(de)*2]++),!(we&8191)&&oe>2){for(me=we*8,ye=K-R,Ie=0;Ie<uu;Ie++)me+=N[Ie*2]*(5+Ot.extra_dbits[Ie]);if(me>>>=3,De<Math.floor(we/2)&&me<Math.floor(ye/2))return!0}return we==ke-1}function Dt(de,ve){let me,ye,Ie=0,Qe,et;if(we!==0)do me=h.dist_buf[Ie],ye=h.lc_buf[Ie],Ie++,me===0?mt(ye,de):(Qe=Ot._length_code[ye],mt(Qe+va+1,de),et=Ot.extra_lbits[Qe],et!==0&&(ye-=Ot.base_length[Qe],at(ye,et)),me--,Qe=Ot.d_code(me),mt(Qe,ve),et=Ot.extra_dbits[Qe],et!==0&&(me-=Ot.base_dist[Qe],at(me,et)));while(Ie<we);mt(ns,de),Ge=de[ns*2+1]}function rr(){Ce>8?Ut(Be):Ce>0&&kt(Be&255),Be=0,Ce=0}function xr(de,ve,me){rr(),Ge=8,Ut(ve),Ut(~ve),h.pending_buf.set(V.subarray(de,de+ve),h.pending),h.pending+=ve}function hr(de,ve,me){at((fv<<1)+(me?1:0),3),xr(de,ve)}function an(de,ve,me){let ye,Ie,Qe=0;oe>0?(ge.build_tree(h),Ae.build_tree(h),Qe=Xt(),ye=h.opt_len+3+7>>>3,Ie=h.static_len+3+7>>>3,Ie<=ye&&(ye=Ie)):ye=Ie=ve+5,ve+4<=ye&&de!=-1?hr(de,ve,me):Ie==ye?(at((gu<<1)+(me?1:0),3),Dt(lr.static_ltree,lr.static_dtree)):(at((pv<<1)+(me?1:0),3),Wt(ge.max_code+1,Ae.max_code+1,Qe+1),Dt(X,N)),st(),me&&rr()}function qt(de){an(R>=0?R:-1,K-R,de),R=K,d.flush_pending()}function ln(){let de,ve,me,ye;do{if(ye=v-$-K,ye===0&&K===0&&$===0)ye=C;else if(ye==-1)ye--;else if(K>=C+C-qr){V.set(V.subarray(C,C+C),0),U-=C,K-=C,R-=C,de=H,me=de;do ve=I[--me]&65535,I[me]=ve>=C?ve-C:0;while(--de!==0);de=C,me=de;do ve=P[--me]&65535,P[me]=ve>=C?ve-C:0;while(--de!==0);ye+=C}if(d.avail_in===0)return;de=d.read_buf(V,K+$,ye),$+=de,$>=Lt&&(L=V[K]&255,L=(L<<S^V[K+1]&255)&A)}while($<qr&&d.avail_in!==0)}function un(de){let ve=65535,me;for(ve>p-5&&(ve=p-5);;){if($<=1){if(ln(),$===0&&de==uo)return $r;if($===0)break}if(K+=$,$=0,me=R+ve,(K===0||K>=me)&&($=K-me,K=me,qt(!1),d.avail_out===0)||K-R>=C-qr&&(qt(!1),d.avail_out===0))return $r}return qt(de==Tr),d.avail_out===0?de==Tr?is:$r:de==Tr?Va:Ea}function Kr(de){let ve=B,me=K,ye,Ie,Qe=Q;const et=K>C-qr?K-(C-qr):0;let yt=te;const St=w,kr=K+Ta;let wr=V[me+Qe-1],Pr=V[me+Qe];Q>=G&&(ve>>=2),yt>$&&(yt=$);do if(ye=de,!(V[ye+Qe]!=Pr||V[ye+Qe-1]!=wr||V[ye]!=V[me]||V[++ye]!=V[me+1])){me+=2,ye++;do;while(V[++me]==V[++ye]&&V[++me]==V[++ye]&&V[++me]==V[++ye]&&V[++me]==V[++ye]&&V[++me]==V[++ye]&&V[++me]==V[++ye]&&V[++me]==V[++ye]&&V[++me]==V[++ye]&&me<kr);if(Ie=Ta-(kr-me),me=kr-Ta,Ie>Qe){if(U=de,Qe=Ie,Ie>=yt)break;wr=V[me+Qe-1],Pr=V[me+Qe]}}while((de=P[de&St]&65535)>et&&--ve!==0);return Qe<=$?Qe:$}function gr(de){let ve=0,me;for(;;){if($<qr){if(ln(),$<qr&&de==uo)return $r;if($===0)break}if($>=Lt&&(L=(L<<S^V[K+(Lt-1)]&255)&A,ve=I[L]&65535,P[K&w]=I[L],I[L]=K),ve!==0&&(K-ve&65535)<=C-qr&&le!=Ca&&(k=Kr(ve)),k>=Lt)if(me=tr(K-U,k-Lt),$-=k,k<=ee&&$>=Lt){k--;do K++,L=(L<<S^V[K+(Lt-1)]&255)&A,ve=I[L]&65535,P[K&w]=I[L],I[L]=K;while(--k!==0);K++}else K+=k,k=0,L=V[K]&255,L=(L<<S^V[K+1]&255)&A;else me=tr(0,V[K]&255),$--,K++;if(me&&(qt(!1),d.avail_out===0))return $r}return qt(de==Tr),d.avail_out===0?de==Tr?is:$r:de==Tr?Va:Ea}function Ln(de){let ve=0,me,ye;for(;;){if($<qr){if(ln(),$<qr&&de==uo)return $r;if($===0)break}if($>=Lt&&(L=(L<<S^V[K+(Lt-1)]&255)&A,ve=I[L]&65535,P[K&w]=I[L],I[L]=K),Q=k,M=U,k=Lt-1,ve!==0&&Q<ee&&(K-ve&65535)<=C-qr&&(le!=Ca&&(k=Kr(ve)),k<=5&&(le==ev||k==Lt&&K-U>4096)&&(k=Lt-1)),Q>=Lt&&k<=Q){ye=K+$-Lt,me=tr(K-1-M,Q-Lt),$-=Q-1,Q-=2;do++K<=ye&&(L=(L<<S^V[K+(Lt-1)]&255)&A,ve=I[L]&65535,P[K&w]=I[L],I[L]=K);while(--Q!==0);if(J=0,k=Lt-1,K++,me&&(qt(!1),d.avail_out===0))return $r}else if(J!==0){if(me=tr(0,V[K-1]&255),me&&qt(!1),K++,$--,d.avail_out===0)return $r}else J=1,K++,$--}return J!==0&&(me=tr(0,V[K-1]&255),J=0),qt(de==Tr),d.avail_out===0?de==Tr?is:$r:de==Tr?Va:Ea}function kn(de){return de.total_in=de.total_out=0,de.msg=null,h.pending=0,h.pending_out=0,c=Oa,g=uo,Ke(),He(),rn}h.deflateInit=function(de,ve,me,ye,Ie,Qe){return ye||(ye=hu),Ie||(Ie=uv),Qe||(Qe=tv),de.msg=null,ve==ba&&(ve=6),Ie<1||Ie>lv||ye!=hu||me<9||me>15||ve<0||ve>9||Qe<0||Qe>Ca?nn:(de.dstate=h,x=me,C=1<<x,w=C-1,q=Ie+7,H=1<<q,A=H-1,S=Math.floor((q+Lt-1)/Lt),V=new Uint8Array(C*2),P=[],I=[],ke=1<<Ie+6,h.pending_buf=new Uint8Array(ke*4),p=ke*4,h.dist_buf=new Uint16Array(ke),h.lc_buf=new Uint8Array(ke),oe=ve,le=Qe,kn(de))},h.deflateEnd=function(){return c!=du&&c!=Oa&&c!=os?nn:(h.lc_buf=null,h.dist_buf=null,h.pending_buf=null,I=null,P=null,V=null,h.dstate=null,c==Oa?nv:rn)},h.deflateParams=function(de,ve,me){let ye=rn;return ve==ba&&(ve=6),ve<0||ve>9||me<0||me>Ca?nn:(on[oe].func!=on[ve].func&&de.total_in!==0&&(ye=de.deflate(op)),oe!=ve&&(oe=ve,ee=on[oe].max_lazy,G=on[oe].good_length,te=on[oe].nice_length,B=on[oe].max_chain),le=me,ye)},h.deflateSetDictionary=function(de,ve,me){let ye=me,Ie,Qe=0;if(!ve||c!=du)return nn;if(ye<Lt)return rn;for(ye>C-qr&&(ye=C-qr,Qe=me-ye),V.set(ve.subarray(Qe,Qe+ye),0),K=ye,R=ye,L=V[0]&255,L=(L<<S^V[1]&255)&A,Ie=0;Ie<=ye-Lt;Ie++)L=(L<<S^V[Ie+(Lt-1)]&255)&A,P[Ie&w]=I[L],I[L]=Ie;return rn},h.deflate=function(de,ve){let me,ye,Ie,Qe,et;if(ve>Tr||ve<0)return nn;if(!de.next_out||!de.next_in&&de.avail_in!==0||c==os&&ve!=Tr)return de.msg=ja[xa-nn],nn;if(de.avail_out===0)return de.msg=ja[xa-co],co;if(d=de,Qe=g,g=ve,c==du&&(ye=hu+(x-8<<4)<<8,Ie=(oe-1&255)>>1,Ie>3&&(Ie=3),ye|=Ie<<6,K!==0&&(ye|=cv),ye+=31-ye%31,c=Oa,dr(ye)),h.pending!==0){if(d.flush_pending(),d.avail_out===0)return g=-1,rn}else if(d.avail_in===0&&ve<=Qe&&ve!=Tr)return d.msg=ja[xa-co],co;if(c==os&&d.avail_in!==0)return de.msg=ja[xa-co],co;if(d.avail_in!==0||$!==0||ve!=uo&&c!=os){switch(et=-1,on[oe].func){case lp:et=un(ve);break;case Sa:et=gr(ve);break;case wi:et=Ln(ve);break}if((et==is||et==Va)&&(c=os),et==$r||et==is)return d.avail_out===0&&(g=-1),rn;if(et==Ea){if(ve==op)er();else if(hr(0,0,!1),ve==rv)for(me=0;me<H;me++)I[me]=0;if(d.flush_pending(),d.avail_out===0)return g=-1,rn}}return ve!=Tr?rn:sp}}function cp(){const h=this;h.next_in_index=0,h.next_out_index=0,h.avail_in=0,h.total_in=0,h.avail_out=0,h.total_out=0}cp.prototype={deflateInit(h,d){const c=this;return c.dstate=new dv,d||(d=rs),c.dstate.deflateInit(c,h,d)},deflate(h){const d=this;return d.dstate?d.dstate.deflate(d,h):nn},deflateEnd(){const h=this;if(!h.dstate)return nn;const d=h.dstate.deflateEnd();return h.dstate=null,d},deflateParams(h,d){const c=this;return c.dstate?c.dstate.deflateParams(c,h,d):nn},deflateSetDictionary(h,d){const c=this;return c.dstate?c.dstate.deflateSetDictionary(c,h,d):nn},read_buf(h,d,c){const p=this;let g=p.avail_in;return g>c&&(g=c),g===0?0:(p.avail_in-=g,h.set(p.next_in.subarray(p.next_in_index,p.next_in_index+g),d),p.next_in_index+=g,p.total_in+=g,g)},flush_pending(){const h=this;let d=h.dstate.pending;d>h.avail_out&&(d=h.avail_out),d!==0&&(h.next_out.set(h.dstate.pending_buf.subarray(h.dstate.pending_out,h.dstate.pending_out+d),h.next_out_index),h.next_out_index+=d,h.dstate.pending_out+=d,h.total_out+=d,h.avail_out-=d,h.dstate.pending-=d,h.dstate.pending===0&&(h.dstate.pending_out=0))}};function hv(h){const d=this,c=new cp,p=gv(h&&h.chunkSize?h.chunkSize:64*1024),g=uo,C=new Uint8Array(p);let x=h?h.level:ba;typeof x>"u"&&(x=ba),c.deflateInit(x),c.next_out=C,d.append=function(w,V){let v,P,I=0,L=0,H=0;const q=[];if(w.length){c.next_in_index=0,c.next_in=w,c.avail_in=w.length;do{if(c.next_out_index=0,c.avail_out=p,v=c.deflate(g),v!=rn)throw new Error("deflating: "+c.msg);c.next_out_index&&(c.next_out_index==p?q.push(new Uint8Array(C)):q.push(C.subarray(0,c.next_out_index))),H+=c.next_out_index,V&&c.next_in_index>0&&c.next_in_index!=I&&(V(c.next_in_index),I=c.next_in_index)}while(c.avail_in>0||c.avail_out===0);return q.length>1?(P=new Uint8Array(H),q.forEach(function(A){P.set(A,L),L+=A.length})):P=q[0]?new Uint8Array(q[0]):new Uint8Array,P}},d.flush=function(){let w,V,v=0,P=0;const I=[];do{if(c.next_out_index=0,c.avail_out=p,w=c.deflate(Tr),w!=sp&&w!=rn)throw new Error("deflating: "+c.msg);p-c.avail_out>0&&I.push(C.slice(0,c.next_out_index)),P+=c.next_out_index}while(c.avail_in>0||c.avail_out===0);return c.deflateEnd(),V=new Uint8Array(P),I.forEach(function(L){V.set(L,v),v+=L.length}),V}}function gv(h){return h+5*(Math.floor(h/16383)+1)}const mv=15,ht=0,Tn=1,yv=2,Ir=-2,Tt=-3,fp=-4,In=-5,Br=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],pp=1440,vv=0,bv=4,Cv=9,xv=5,wv=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],Pv=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],Sv=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],jv=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],Ev=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],Vv=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Qn=15;function mu(){const h=this;let d,c,p,g,C,x;function w(v,P,I,L,H,q,A,S,R,k,M){let J,K,U,$,Q,B,ee,oe,le,G,te,X,N,ce,ge;G=0,Q=I;do p[v[P+G]]++,G++,Q--;while(Q!==0);if(p[0]==I)return A[0]=-1,S[0]=0,ht;for(oe=S[0],B=1;B<=Qn&&p[B]===0;B++);for(ee=B,oe<B&&(oe=B),Q=Qn;Q!==0&&p[Q]===0;Q--);for(U=Q,oe>Q&&(oe=Q),S[0]=oe,ce=1<<B;B<Q;B++,ce<<=1)if((ce-=p[B])<0)return Tt;if((ce-=p[Q])<0)return Tt;for(p[Q]+=ce,x[1]=B=0,G=1,N=2;--Q!==0;)x[N]=B+=p[G],N++,G++;Q=0,G=0;do(B=v[P+G])!==0&&(M[x[B]++]=Q),G++;while(++Q<I);for(I=x[U],x[0]=Q=0,G=0,$=-1,X=-oe,C[0]=0,te=0,ge=0;ee<=U;ee++)for(J=p[ee];J--!==0;){for(;ee>X+oe;){if($++,X+=oe,ge=U-X,ge=ge>oe?oe:ge,(K=1<<(B=ee-X))>J+1&&(K-=J+1,N=ee,B<ge))for(;++B<ge&&!((K<<=1)<=p[++N]);)K-=p[N];if(ge=1<<B,k[0]+ge>pp)return Tt;C[$]=te=k[0],k[0]+=ge,$!==0?(x[$]=Q,g[0]=B,g[1]=oe,B=Q>>>X-oe,g[2]=te-C[$-1]-B,R.set(g,(C[$-1]+B)*3)):A[0]=te}for(g[1]=ee-X,G>=I?g[0]=192:M[G]<L?(g[0]=M[G]<256?0:96,g[2]=M[G++]):(g[0]=q[M[G]-L]+16+64,g[2]=H[M[G++]-L]),K=1<<ee-X,B=Q>>>X;B<ge;B+=K)R.set(g,(te+B)*3);for(B=1<<ee-1;Q&B;B>>>=1)Q^=B;for(Q^=B,le=(1<<X)-1;(Q&le)!=x[$];)$--,X-=oe,le=(1<<X)-1}return ce!==0&&U!=1?In:ht}function V(v){let P;for(d||(d=[],c=[],p=new Int32Array(Qn+1),g=[],C=new Int32Array(Qn),x=new Int32Array(Qn+1)),c.length<v&&(c=[]),P=0;P<v;P++)c[P]=0;for(P=0;P<Qn+1;P++)p[P]=0;for(P=0;P<3;P++)g[P]=0;C.set(p.subarray(0,Qn),0),x.set(p.subarray(0,Qn+1),0)}h.inflate_trees_bits=function(v,P,I,L,H){let q;return V(19),d[0]=0,q=w(v,0,19,19,null,null,I,P,L,d,c),q==Tt?H.msg="oversubscribed dynamic bit lengths tree":(q==In||P[0]===0)&&(H.msg="incomplete dynamic bit lengths tree",q=Tt),q},h.inflate_trees_dynamic=function(v,P,I,L,H,q,A,S,R){let k;return V(288),d[0]=0,k=w(I,0,v,257,Sv,jv,q,L,S,d,c),k!=ht||L[0]===0?(k==Tt?R.msg="oversubscribed literal/length tree":k!=fp&&(R.msg="incomplete literal/length tree",k=Tt),k):(V(288),k=w(I,v,P,0,Ev,Vv,A,H,S,d,c),k!=ht||H[0]===0&&v>257?(k==Tt?R.msg="oversubscribed distance tree":k==In?(R.msg="incomplete distance tree",k=Tt):k!=fp&&(R.msg="empty distance tree with lengths",k=Tt),k):ht)}}mu.inflate_trees_fixed=function(h,d,c,p){return h[0]=Cv,d[0]=xv,c[0]=wv,p[0]=Pv,ht};const Ia=0,dp=1,hp=2,gp=3,mp=4,yp=5,vp=6,yu=7,bp=8,Ra=9;function Ov(){const h=this;let d,c=0,p,g=0,C=0,x=0,w=0,V=0,v=0,P=0,I,L=0,H,q=0;function A(S,R,k,M,J,K,U,$){let Q,B,ee,oe,le,G,te,X,N,ce,ge,Ae,fe,ke,we,De;te=$.next_in_index,X=$.avail_in,le=U.bitb,G=U.bitk,N=U.write,ce=N<U.read?U.read-N-1:U.end-N,ge=Br[S],Ae=Br[R];do{for(;G<20;)X--,le|=($.read_byte(te++)&255)<<G,G+=8;if(Q=le&ge,B=k,ee=M,De=(ee+Q)*3,(oe=B[De])===0){le>>=B[De+1],G-=B[De+1],U.win[N++]=B[De+2],ce--;continue}do{if(le>>=B[De+1],G-=B[De+1],oe&16){for(oe&=15,fe=B[De+2]+(le&Br[oe]),le>>=oe,G-=oe;G<15;)X--,le|=($.read_byte(te++)&255)<<G,G+=8;Q=le&Ae,B=J,ee=K,De=(ee+Q)*3,oe=B[De];do if(le>>=B[De+1],G-=B[De+1],oe&16){for(oe&=15;G<oe;)X--,le|=($.read_byte(te++)&255)<<G,G+=8;if(ke=B[De+2]+(le&Br[oe]),le>>=oe,G-=oe,ce-=fe,N>=ke)we=N-ke,N-we>0&&2>N-we?(U.win[N++]=U.win[we++],U.win[N++]=U.win[we++],fe-=2):(U.win.set(U.win.subarray(we,we+2),N),N+=2,we+=2,fe-=2);else{we=N-ke;do we+=U.end;while(we<0);if(oe=U.end-we,fe>oe){if(fe-=oe,N-we>0&&oe>N-we)do U.win[N++]=U.win[we++];while(--oe!==0);else U.win.set(U.win.subarray(we,we+oe),N),N+=oe,we+=oe,oe=0;we=0}}if(N-we>0&&fe>N-we)do U.win[N++]=U.win[we++];while(--fe!==0);else U.win.set(U.win.subarray(we,we+fe),N),N+=fe,we+=fe,fe=0;break}else if(!(oe&64))Q+=B[De+2],Q+=le&Br[oe],De=(ee+Q)*3,oe=B[De];else return $.msg="invalid distance code",fe=$.avail_in-X,fe=G>>3<fe?G>>3:fe,X+=fe,te-=fe,G-=fe<<3,U.bitb=le,U.bitk=G,$.avail_in=X,$.total_in+=te-$.next_in_index,$.next_in_index=te,U.write=N,Tt;while(!0);break}if(oe&64)return oe&32?(fe=$.avail_in-X,fe=G>>3<fe?G>>3:fe,X+=fe,te-=fe,G-=fe<<3,U.bitb=le,U.bitk=G,$.avail_in=X,$.total_in+=te-$.next_in_index,$.next_in_index=te,U.write=N,Tn):($.msg="invalid literal/length code",fe=$.avail_in-X,fe=G>>3<fe?G>>3:fe,X+=fe,te-=fe,G-=fe<<3,U.bitb=le,U.bitk=G,$.avail_in=X,$.total_in+=te-$.next_in_index,$.next_in_index=te,U.write=N,Tt);if(Q+=B[De+2],Q+=le&Br[oe],De=(ee+Q)*3,(oe=B[De])===0){le>>=B[De+1],G-=B[De+1],U.win[N++]=B[De+2],ce--;break}}while(!0)}while(ce>=258&&X>=10);return fe=$.avail_in-X,fe=G>>3<fe?G>>3:fe,X+=fe,te-=fe,G-=fe<<3,U.bitb=le,U.bitk=G,$.avail_in=X,$.total_in+=te-$.next_in_index,$.next_in_index=te,U.write=N,ht}h.init=function(S,R,k,M,J,K){d=Ia,v=S,P=R,I=k,L=M,H=J,q=K,p=null},h.proc=function(S,R,k){let M,J,K,U=0,$=0,Q=0,B,ee,oe,le;for(Q=R.next_in_index,B=R.avail_in,U=S.bitb,$=S.bitk,ee=S.write,oe=ee<S.read?S.read-ee-1:S.end-ee;;)switch(d){case Ia:if(oe>=258&&B>=10&&(S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,k=A(v,P,I,L,H,q,S,R),Q=R.next_in_index,B=R.avail_in,U=S.bitb,$=S.bitk,ee=S.write,oe=ee<S.read?S.read-ee-1:S.end-ee,k!=ht)){d=k==Tn?yu:Ra;break}C=v,p=I,g=L,d=dp;case dp:for(M=C;$<M;){if(B!==0)k=ht;else return S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);B--,U|=(R.read_byte(Q++)&255)<<$,$+=8}if(J=(g+(U&Br[M]))*3,U>>>=p[J+1],$-=p[J+1],K=p[J],K===0){x=p[J+2],d=vp;break}if(K&16){w=K&15,c=p[J+2],d=hp;break}if(!(K&64)){C=K,g=J/3+p[J+2];break}if(K&32){d=yu;break}return d=Ra,R.msg="invalid literal/length code",k=Tt,S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);case hp:for(M=w;$<M;){if(B!==0)k=ht;else return S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);B--,U|=(R.read_byte(Q++)&255)<<$,$+=8}c+=U&Br[M],U>>=M,$-=M,C=P,p=H,g=q,d=gp;case gp:for(M=C;$<M;){if(B!==0)k=ht;else return S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);B--,U|=(R.read_byte(Q++)&255)<<$,$+=8}if(J=(g+(U&Br[M]))*3,U>>=p[J+1],$-=p[J+1],K=p[J],K&16){w=K&15,V=p[J+2],d=mp;break}if(!(K&64)){C=K,g=J/3+p[J+2];break}return d=Ra,R.msg="invalid distance code",k=Tt,S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);case mp:for(M=w;$<M;){if(B!==0)k=ht;else return S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);B--,U|=(R.read_byte(Q++)&255)<<$,$+=8}V+=U&Br[M],U>>=M,$-=M,d=yp;case yp:for(le=ee-V;le<0;)le+=S.end;for(;c!==0;){if(oe===0&&(ee==S.end&&S.read!==0&&(ee=0,oe=ee<S.read?S.read-ee-1:S.end-ee),oe===0&&(S.write=ee,k=S.inflate_flush(R,k),ee=S.write,oe=ee<S.read?S.read-ee-1:S.end-ee,ee==S.end&&S.read!==0&&(ee=0,oe=ee<S.read?S.read-ee-1:S.end-ee),oe===0)))return S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);S.win[ee++]=S.win[le++],oe--,le==S.end&&(le=0),c--}d=Ia;break;case vp:if(oe===0&&(ee==S.end&&S.read!==0&&(ee=0,oe=ee<S.read?S.read-ee-1:S.end-ee),oe===0&&(S.write=ee,k=S.inflate_flush(R,k),ee=S.write,oe=ee<S.read?S.read-ee-1:S.end-ee,ee==S.end&&S.read!==0&&(ee=0,oe=ee<S.read?S.read-ee-1:S.end-ee),oe===0)))return S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);k=ht,S.win[ee++]=x,oe--,d=Ia;break;case yu:if($>7&&($-=8,B++,Q--),S.write=ee,k=S.inflate_flush(R,k),ee=S.write,oe=ee<S.read?S.read-ee-1:S.end-ee,S.read!=S.write)return S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);d=bp;case bp:return k=Tn,S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);case Ra:return k=Tt,S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k);default:return k=Ir,S.bitb=U,S.bitk=$,R.avail_in=B,R.total_in+=Q-R.next_in_index,R.next_in_index=Q,S.write=ee,S.inflate_flush(R,k)}},h.free=function(){}}const Cp=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fo=0,vu=1,xp=2,wp=3,Pp=4,Sp=5,Da=6,Aa=7,jp=8,Pi=9;function Tv(h,d){const c=this;let p=fo,g=0,C=0,x=0,w;const V=[0],v=[0],P=new Ov;let I=0,L=new Int32Array(pp*3);const H=0,q=new mu;c.bitk=0,c.bitb=0,c.win=new Uint8Array(d),c.end=d,c.read=0,c.write=0,c.reset=function(A,S){S&&(S[0]=H),p==Da&&P.free(A),p=fo,c.bitk=0,c.bitb=0,c.read=c.write=0},c.reset(h,null),c.inflate_flush=function(A,S){let R,k,M;return k=A.next_out_index,M=c.read,R=(M<=c.write?c.write:c.end)-M,R>A.avail_out&&(R=A.avail_out),R!==0&&S==In&&(S=ht),A.avail_out-=R,A.total_out+=R,A.next_out.set(c.win.subarray(M,M+R),k),k+=R,M+=R,M==c.end&&(M=0,c.write==c.end&&(c.write=0),R=c.write-M,R>A.avail_out&&(R=A.avail_out),R!==0&&S==In&&(S=ht),A.avail_out-=R,A.total_out+=R,A.next_out.set(c.win.subarray(M,M+R),k),k+=R,M+=R),A.next_out_index=k,c.read=M,S},c.proc=function(A,S){let R,k,M,J,K,U,$,Q;for(J=A.next_in_index,K=A.avail_in,k=c.bitb,M=c.bitk,U=c.write,$=U<c.read?c.read-U-1:c.end-U;;){let B,ee,oe,le,G,te,X,N;switch(p){case fo:for(;M<3;){if(K!==0)S=ht;else return c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);K--,k|=(A.read_byte(J++)&255)<<M,M+=8}switch(R=k&7,I=R&1,R>>>1){case 0:k>>>=3,M-=3,R=M&7,k>>>=R,M-=R,p=vu;break;case 1:B=[],ee=[],oe=[[]],le=[[]],mu.inflate_trees_fixed(B,ee,oe,le),P.init(B[0],ee[0],oe[0],0,le[0],0),k>>>=3,M-=3,p=Da;break;case 2:k>>>=3,M-=3,p=wp;break;case 3:return k>>>=3,M-=3,p=Pi,A.msg="invalid block type",S=Tt,c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S)}break;case vu:for(;M<32;){if(K!==0)S=ht;else return c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);K--,k|=(A.read_byte(J++)&255)<<M,M+=8}if((~k>>>16&65535)!=(k&65535))return p=Pi,A.msg="invalid stored block lengths",S=Tt,c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);g=k&65535,k=M=0,p=g!==0?xp:I!==0?Aa:fo;break;case xp:if(K===0||$===0&&(U==c.end&&c.read!==0&&(U=0,$=U<c.read?c.read-U-1:c.end-U),$===0&&(c.write=U,S=c.inflate_flush(A,S),U=c.write,$=U<c.read?c.read-U-1:c.end-U,U==c.end&&c.read!==0&&(U=0,$=U<c.read?c.read-U-1:c.end-U),$===0)))return c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);if(S=ht,R=g,R>K&&(R=K),R>$&&(R=$),c.win.set(A.read_buf(J,R),U),J+=R,K-=R,U+=R,$-=R,(g-=R)!==0)break;p=I!==0?Aa:fo;break;case wp:for(;M<14;){if(K!==0)S=ht;else return c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);K--,k|=(A.read_byte(J++)&255)<<M,M+=8}if(C=R=k&16383,(R&31)>29||(R>>5&31)>29)return p=Pi,A.msg="too many length or distance symbols",S=Tt,c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);if(R=258+(R&31)+(R>>5&31),!w||w.length<R)w=[];else for(Q=0;Q<R;Q++)w[Q]=0;k>>>=14,M-=14,x=0,p=Pp;case Pp:for(;x<4+(C>>>10);){for(;M<3;){if(K!==0)S=ht;else return c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);K--,k|=(A.read_byte(J++)&255)<<M,M+=8}w[Cp[x++]]=k&7,k>>>=3,M-=3}for(;x<19;)w[Cp[x++]]=0;if(V[0]=7,R=q.inflate_trees_bits(w,V,v,L,A),R!=ht)return S=R,S==Tt&&(w=null,p=Pi),c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);x=0,p=Sp;case Sp:for(;R=C,!(x>=258+(R&31)+(R>>5&31));){let ce,ge;for(R=V[0];M<R;){if(K!==0)S=ht;else return c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);K--,k|=(A.read_byte(J++)&255)<<M,M+=8}if(R=L[(v[0]+(k&Br[R]))*3+1],ge=L[(v[0]+(k&Br[R]))*3+2],ge<16)k>>>=R,M-=R,w[x++]=ge;else{for(Q=ge==18?7:ge-14,ce=ge==18?11:3;M<R+Q;){if(K!==0)S=ht;else return c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);K--,k|=(A.read_byte(J++)&255)<<M,M+=8}if(k>>>=R,M-=R,ce+=k&Br[Q],k>>>=Q,M-=Q,Q=x,R=C,Q+ce>258+(R&31)+(R>>5&31)||ge==16&&Q<1)return w=null,p=Pi,A.msg="invalid bit length repeat",S=Tt,c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);ge=ge==16?w[Q-1]:0;do w[Q++]=ge;while(--ce!==0);x=Q}}if(v[0]=-1,G=[],te=[],X=[],N=[],G[0]=9,te[0]=6,R=C,R=q.inflate_trees_dynamic(257+(R&31),1+(R>>5&31),w,G,te,X,N,L,A),R!=ht)return R==Tt&&(w=null,p=Pi),S=R,c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);P.init(G[0],te[0],L,X[0],L,N[0]),p=Da;case Da:if(c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,(S=P.proc(c,A,S))!=Tn)return c.inflate_flush(A,S);if(S=ht,P.free(A),J=A.next_in_index,K=A.avail_in,k=c.bitb,M=c.bitk,U=c.write,$=U<c.read?c.read-U-1:c.end-U,I===0){p=fo;break}p=Aa;case Aa:if(c.write=U,S=c.inflate_flush(A,S),U=c.write,$=U<c.read?c.read-U-1:c.end-U,c.read!=c.write)return c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);p=jp;case jp:return S=Tn,c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);case Pi:return S=Tt,c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S);default:return S=Ir,c.bitb=k,c.bitk=M,A.avail_in=K,A.total_in+=J-A.next_in_index,A.next_in_index=J,c.write=U,c.inflate_flush(A,S)}}},c.free=function(A){c.reset(A,null),c.win=null,L=null},c.set_dictionary=function(A,S,R){c.win.set(A.subarray(S,S+R),0),c.read=c.write=R},c.sync_point=function(){return p==vu?1:0}}const Iv=32,Rv=8,Dv=0,Ep=1,Vp=2,Op=3,Tp=4,Ip=5,bu=6,ss=7,Rp=12,Un=13,Av=[0,0,255,255];function Lv(){const h=this;h.mode=0,h.method=0,h.was=[0],h.need=0,h.marker=0,h.wbits=0;function d(c){return!c||!c.istate?Ir:(c.total_in=c.total_out=0,c.msg=null,c.istate.mode=ss,c.istate.blocks.reset(c,null),ht)}h.inflateEnd=function(c){return h.blocks&&h.blocks.free(c),h.blocks=null,ht},h.inflateInit=function(c,p){return c.msg=null,h.blocks=null,p<8||p>15?(h.inflateEnd(c),Ir):(h.wbits=p,c.istate.blocks=new Tv(c,1<<p),d(c),ht)},h.inflate=function(c,p){let g,C;if(!c||!c.istate||!c.next_in)return Ir;const x=c.istate;for(p=p==bv?In:ht,g=In;;)switch(x.mode){case Dv:if(c.avail_in===0)return g;if(g=p,c.avail_in--,c.total_in++,((x.method=c.read_byte(c.next_in_index++))&15)!=Rv){x.mode=Un,c.msg="unknown compression method",x.marker=5;break}if((x.method>>4)+8>x.wbits){x.mode=Un,c.msg="invalid win size",x.marker=5;break}x.mode=Ep;case Ep:if(c.avail_in===0)return g;if(g=p,c.avail_in--,c.total_in++,C=c.read_byte(c.next_in_index++)&255,((x.method<<8)+C)%31!==0){x.mode=Un,c.msg="incorrect header check",x.marker=5;break}if(!(C&Iv)){x.mode=ss;break}x.mode=Vp;case Vp:if(c.avail_in===0)return g;g=p,c.avail_in--,c.total_in++,x.need=(c.read_byte(c.next_in_index++)&255)<<24&4278190080,x.mode=Op;case Op:if(c.avail_in===0)return g;g=p,c.avail_in--,c.total_in++,x.need+=(c.read_byte(c.next_in_index++)&255)<<16&16711680,x.mode=Tp;case Tp:if(c.avail_in===0)return g;g=p,c.avail_in--,c.total_in++,x.need+=(c.read_byte(c.next_in_index++)&255)<<8&65280,x.mode=Ip;case Ip:return c.avail_in===0?g:(g=p,c.avail_in--,c.total_in++,x.need+=c.read_byte(c.next_in_index++)&255,x.mode=bu,yv);case bu:return x.mode=Un,c.msg="need dictionary",x.marker=0,Ir;case ss:if(g=x.blocks.proc(c,g),g==Tt){x.mode=Un,x.marker=0;break}if(g==ht&&(g=p),g!=Tn)return g;g=p,x.blocks.reset(c,x.was),x.mode=Rp;case Rp:return c.avail_in=0,Tn;case Un:return Tt;default:return Ir}},h.inflateSetDictionary=function(c,p,g){let C=0,x=g;if(!c||!c.istate||c.istate.mode!=bu)return Ir;const w=c.istate;return x>=1<<w.wbits&&(x=(1<<w.wbits)-1,C=g-x),w.blocks.set_dictionary(p,C,x),w.mode=ss,ht},h.inflateSync=function(c){let p,g,C,x,w;if(!c||!c.istate)return Ir;const V=c.istate;if(V.mode!=Un&&(V.mode=Un,V.marker=0),(p=c.avail_in)===0)return In;for(g=c.next_in_index,C=V.marker;p!==0&&C<4;)c.read_byte(g)==Av[C]?C++:c.read_byte(g)!==0?C=0:C=4-C,g++,p--;return c.total_in+=g-c.next_in_index,c.next_in_index=g,c.avail_in=p,V.marker=C,C!=4?Tt:(x=c.total_in,w=c.total_out,d(c),c.total_in=x,c.total_out=w,V.mode=ss,ht)},h.inflateSyncPoint=function(c){return!c||!c.istate||!c.istate.blocks?Ir:c.istate.blocks.sync_point()}}function Dp(){}Dp.prototype={inflateInit(h){const d=this;return d.istate=new Lv,h||(h=mv),d.istate.inflateInit(d,h)},inflate(h){const d=this;return d.istate?d.istate.inflate(d,h):Ir},inflateEnd(){const h=this;if(!h.istate)return Ir;const d=h.istate.inflateEnd(h);return h.istate=null,d},inflateSync(){const h=this;return h.istate?h.istate.inflateSync(h):Ir},inflateSetDictionary(h,d){const c=this;return c.istate?c.istate.inflateSetDictionary(c,h,d):Ir},read_byte(h){return this.next_in[h]},read_buf(h,d){return this.next_in.subarray(h,h+d)}};function kv(h){const d=this,c=new Dp,p=h&&h.chunkSize?Math.floor(h.chunkSize*2):128*1024,g=vv,C=new Uint8Array(p);let x=!1;c.inflateInit(),c.next_out=C,d.append=function(w,V){const v=[];let P,I,L=0,H=0,q=0;if(w.length!==0){c.next_in_index=0,c.next_in=w,c.avail_in=w.length;do{if(c.next_out_index=0,c.avail_out=p,c.avail_in===0&&!x&&(c.next_in_index=0,x=!0),P=c.inflate(g),x&&P===In){if(c.avail_in!==0)throw new Error("inflating: bad input")}else if(P!==ht&&P!==Tn)throw new Error("inflating: "+c.msg);if((x||P===Tn)&&c.avail_in===w.length)throw new Error("inflating: bad input");c.next_out_index&&(c.next_out_index===p?v.push(new Uint8Array(C)):v.push(C.subarray(0,c.next_out_index))),q+=c.next_out_index,V&&c.next_in_index>0&&c.next_in_index!=L&&(V(c.next_in_index),L=c.next_in_index)}while(c.avail_in>0||c.avail_out===0);return v.length>1?(I=new Uint8Array(q),v.forEach(function(A){I.set(A,H),H+=A.length})):I=v[0]?new Uint8Array(v[0]):new Uint8Array,I}},d.flush=function(){c.inflateEnd()}}const Rr=4294967295,Dr=65535,Ap=8,Mv=0,Nv=99,_v=67324752,Lp=134695760,Fv=Lp,qv=33639248,Bv=101010256,Hv=101075792,Qv=117853008,Cu=22,kp=20,Mp=56,Uv=Cu+kp+Mp,zv=1,Wv=39169,$v=10,Gv=1,Np=21589,Zv=6534,Kv=1,Jv=8,Yv=2048,Xv=16,eb=20,_p=45,Fp=51,xu="/",qp=new Date(2107,11,31),Bp=new Date(1980,0,1),It=void 0,zn="undefined",as="function";class Hp{constructor(d){return class extends TransformStream{constructor(c,p){const g=new d(p);super({transform(C,x){x.enqueue(g.append(C))},flush(C){const x=g.flush();x&&C.enqueue(x)}})}}}}const tb=64;let Qp=2;try{typeof navigator!=zn&&navigator.hardwareConcurrency&&(Qp=navigator.hardwareConcurrency)}catch{}const rb={chunkSize:512*1024,maxWorkers:Qp,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:It,CompressionStreamNative:typeof CompressionStream!=zn&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=zn&&DecompressionStream},Wn=Object.assign({},rb);function nb(){return Wn}function ib(h){return Math.max(h.chunkSize,tb)}function wu(h){const{baseURL:d,chunkSize:c,maxWorkers:p,terminateWorkerTimeout:g,useCompressionStream:C,useWebWorkers:x,Deflate:w,Inflate:V,CompressionStream:v,DecompressionStream:P,workerScripts:I}=h;if($n("baseURL",d),$n("chunkSize",c),$n("maxWorkers",p),$n("terminateWorkerTimeout",g),$n("useCompressionStream",C),$n("useWebWorkers",x),w&&(Wn.CompressionStream=new Hp(w)),V&&(Wn.DecompressionStream=new Hp(V)),$n("CompressionStream",v),$n("DecompressionStream",P),I!==It){const{deflate:L,inflate:H}=I;if((L||H)&&(Wn.workerScripts||(Wn.workerScripts={})),L){if(!Array.isArray(L))throw new Error("workerScripts.deflate must be an array");Wn.workerScripts.deflate=L}if(H){if(!Array.isArray(H))throw new Error("workerScripts.inflate must be an array");Wn.workerScripts.inflate=H}}}function $n(h,d){d!==It&&(Wn[h]=d)}const Pu={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const h={};for(const d of Object.keys(Pu))for(const c of Object.keys(Pu[d])){const p=Pu[d][c];if(typeof p=="string")h[p]=d+"/"+c;else for(let g=0;g<p.length;g++)h[p[g]]=d+"/"+c}return h})();const Up=[];for(let h=0;h<256;h++){let d=h;for(let c=0;c<8;c++)d&1?d=d>>>1^3988292384:d=d>>>1;Up[h]=d}class Su{constructor(d){this.crc=d||-1}append(d){let c=this.crc|0;for(let p=0,g=d.length|0;p<g;p++)c=c>>>8^Up[(c^d[p])&255];this.crc=c}get(){return~this.crc}}class zp extends TransformStream{constructor(){let d;const c=new Su;super({transform(p,g){c.append(p),g.enqueue(p)},flush(){const p=new Uint8Array(4);new DataView(p.buffer).setUint32(0,c.get()),d.value=p}}),d=this}}function La(h){if(typeof TextEncoder==zn){h=unescape(encodeURIComponent(h));const d=new Uint8Array(h.length);for(let c=0;c<d.length;c++)d[c]=h.charCodeAt(c);return d}else return new TextEncoder().encode(h)}const vr={concat(h,d){if(h.length===0||d.length===0)return h.concat(d);const c=h[h.length-1],p=vr.getPartial(c);return p===32?h.concat(d):vr._shiftRight(d,p,c|0,h.slice(0,h.length-1))},bitLength(h){const d=h.length;if(d===0)return 0;const c=h[d-1];return(d-1)*32+vr.getPartial(c)},clamp(h,d){if(h.length*32<d)return h;h=h.slice(0,Math.ceil(d/32));const c=h.length;return d=d&31,c>0&&d&&(h[c-1]=vr.partial(d,h[c-1]&2147483648>>d-1,1)),h},partial(h,d,c){return h===32?d:(c?d|0:d<<32-h)+h*1099511627776},getPartial(h){return Math.round(h/1099511627776)||32},_shiftRight(h,d,c,p){for(p===void 0&&(p=[]);d>=32;d-=32)p.push(c),c=0;if(d===0)return p.concat(h);for(let x=0;x<h.length;x++)p.push(c|h[x]>>>d),c=h[x]<<32-d;const g=h.length?h[h.length-1]:0,C=vr.getPartial(g);return p.push(vr.partial(d+C&31,d+C>32?c:p.pop(),1)),p}},ka={bytes:{fromBits(h){const c=vr.bitLength(h)/8,p=new Uint8Array(c);let g;for(let C=0;C<c;C++)C&3||(g=h[C/4]),p[C]=g>>>24,g<<=8;return p},toBits(h){const d=[];let c,p=0;for(c=0;c<h.length;c++)p=p<<8|h[c],(c&3)===3&&(d.push(p),p=0);return c&3&&d.push(vr.partial(8*(c&3),p)),d}}},Wp={};Wp.sha1=class{constructor(h){const d=this;d.blockSize=512,d._init=[1732584193,4023233417,2562383102,271733878,3285377520],d._key=[1518500249,1859775393,2400959708,3395469782],h?(d._h=h._h.slice(0),d._buffer=h._buffer.slice(0),d._length=h._length):d.reset()}reset(){const h=this;return h._h=h._init.slice(0),h._buffer=[],h._length=0,h}update(h){const d=this;typeof h=="string"&&(h=ka.utf8String.toBits(h));const c=d._buffer=vr.concat(d._buffer,h),p=d._length,g=d._length=p+vr.bitLength(h);if(g>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const C=new Uint32Array(c);let x=0;for(let w=d.blockSize+p-(d.blockSize+p&d.blockSize-1);w<=g;w+=d.blockSize)d._block(C.subarray(16*x,16*(x+1))),x+=1;return c.splice(0,16*x),d}finalize(){const h=this;let d=h._buffer;const c=h._h;d=vr.concat(d,[vr.partial(1,1)]);for(let p=d.length+2;p&15;p++)d.push(0);for(d.push(Math.floor(h._length/4294967296)),d.push(h._length|0);d.length;)h._block(d.splice(0,16));return h.reset(),c}_f(h,d,c,p){if(h<=19)return d&c|~d&p;if(h<=39)return d^c^p;if(h<=59)return d&c|d&p|c&p;if(h<=79)return d^c^p}_S(h,d){return d<<h|d>>>32-h}_block(h){const d=this,c=d._h,p=Array(80);for(let v=0;v<16;v++)p[v]=h[v];let g=c[0],C=c[1],x=c[2],w=c[3],V=c[4];for(let v=0;v<=79;v++){v>=16&&(p[v]=d._S(1,p[v-3]^p[v-8]^p[v-14]^p[v-16]));const P=d._S(5,g)+d._f(v,C,x,w)+V+p[v]+d._key[Math.floor(v/20)]|0;V=w,w=x,x=d._S(30,C),C=g,g=P}c[0]=c[0]+g|0,c[1]=c[1]+C|0,c[2]=c[2]+x|0,c[3]=c[3]+w|0,c[4]=c[4]+V|0}};const $p={};$p.aes=class{constructor(h){const d=this;d._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],d._tables[0][0][0]||d._precompute();const c=d._tables[0][4],p=d._tables[1],g=h.length;let C,x,w,V=1;if(g!==4&&g!==6&&g!==8)throw new Error("invalid aes key size");for(d._key=[x=h.slice(0),w=[]],C=g;C<4*g+28;C++){let v=x[C-1];(C%g===0||g===8&&C%g===4)&&(v=c[v>>>24]<<24^c[v>>16&255]<<16^c[v>>8&255]<<8^c[v&255],C%g===0&&(v=v<<8^v>>>24^V<<24,V=V<<1^(V>>7)*283)),x[C]=x[C-g]^v}for(let v=0;C;v++,C--){const P=x[v&3?C:C-4];C<=4||v<4?w[v]=P:w[v]=p[0][c[P>>>24]]^p[1][c[P>>16&255]]^p[2][c[P>>8&255]]^p[3][c[P&255]]}}encrypt(h){return this._crypt(h,0)}decrypt(h){return this._crypt(h,1)}_precompute(){const h=this._tables[0],d=this._tables[1],c=h[4],p=d[4],g=[],C=[];let x,w,V,v;for(let P=0;P<256;P++)C[(g[P]=P<<1^(P>>7)*283)^P]=P;for(let P=x=0;!c[P];P^=w||1,x=C[x]||1){let I=x^x<<1^x<<2^x<<3^x<<4;I=I>>8^I&255^99,c[P]=I,p[I]=P,v=g[V=g[w=g[P]]];let L=v*16843009^V*65537^w*257^P*16843008,H=g[I]*257^I*16843008;for(let q=0;q<4;q++)h[q][P]=H=H<<24^H>>>8,d[q][I]=L=L<<24^L>>>8}for(let P=0;P<5;P++)h[P]=h[P].slice(0),d[P]=d[P].slice(0)}_crypt(h,d){if(h.length!==4)throw new Error("invalid aes block size");const c=this._key[d],p=c.length/4-2,g=[0,0,0,0],C=this._tables[d],x=C[0],w=C[1],V=C[2],v=C[3],P=C[4];let I=h[0]^c[0],L=h[d?3:1]^c[1],H=h[2]^c[2],q=h[d?1:3]^c[3],A=4,S,R,k;for(let M=0;M<p;M++)S=x[I>>>24]^w[L>>16&255]^V[H>>8&255]^v[q&255]^c[A],R=x[L>>>24]^w[H>>16&255]^V[q>>8&255]^v[I&255]^c[A+1],k=x[H>>>24]^w[q>>16&255]^V[I>>8&255]^v[L&255]^c[A+2],q=x[q>>>24]^w[I>>16&255]^V[L>>8&255]^v[H&255]^c[A+3],A+=4,I=S,L=R,H=k;for(let M=0;M<4;M++)g[d?3&-M:M]=P[I>>>24]<<24^P[L>>16&255]<<16^P[H>>8&255]<<8^P[q&255]^c[A++],S=I,I=L,L=H,H=q,q=S;return g}};const ob={getRandomValues(h){const d=new Uint32Array(h.buffer),c=p=>{let g=987654321;const C=4294967295;return function(){return g=36969*(g&65535)+(g>>16)&C,p=18e3*(p&65535)+(p>>16)&C,(((g<<16)+p&C)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let p=0,g;p<h.length;p+=4){const C=c((g||Math.random())*4294967296);g=C()*987654071,d[p/4]=C()*4294967296|0}return h}},Gp={};Gp.ctrGladman=class{constructor(h,d){this._prf=h,this._initIv=d,this._iv=d}reset(){this._iv=this._initIv}update(h){return this.calculate(this._prf,h,this._iv)}incWord(h){if((h>>24&255)===255){let d=h>>16&255,c=h>>8&255,p=h&255;d===255?(d=0,c===255?(c=0,p===255?p=0:++p):++c):++d,h=0,h+=d<<16,h+=c<<8,h+=p}else h+=1<<24;return h}incCounter(h){(h[0]=this.incWord(h[0]))===0&&(h[1]=this.incWord(h[1]))}calculate(h,d,c){let p;if(!(p=d.length))return[];const g=vr.bitLength(d);for(let C=0;C<p;C+=4){this.incCounter(c);const x=h.encrypt(c);d[C]^=x[0],d[C+1]^=x[1],d[C+2]^=x[2],d[C+3]^=x[3]}return vr.clamp(d,g)}};const Si={importKey(h){return new Si.hmacSha1(ka.bytes.toBits(h))},pbkdf2(h,d,c,p){if(c=c||1e4,p<0||c<0)throw new Error("invalid params to pbkdf2");const g=(p>>5)+1<<2;let C,x,w,V,v;const P=new ArrayBuffer(g),I=new DataView(P);let L=0;const H=vr;for(d=ka.bytes.toBits(d),v=1;L<(g||1);v++){for(C=x=h.encrypt(H.concat(d,[v])),w=1;w<c;w++)for(x=h.encrypt(x),V=0;V<x.length;V++)C[V]^=x[V];for(w=0;L<(g||1)&&w<C.length;w++)I.setInt32(L,C[w]),L+=4}return P.slice(0,p/8)}};Si.hmacSha1=class{constructor(h){const d=this,c=d._hash=Wp.sha1,p=[[],[]];d._baseHash=[new c,new c];const g=d._baseHash[0].blockSize/32;h.length>g&&(h=new c().update(h).finalize());for(let C=0;C<g;C++)p[0][C]=h[C]^909522486,p[1][C]=h[C]^1549556828;d._baseHash[0].update(p[0]),d._baseHash[1].update(p[1]),d._resultHash=new c(d._baseHash[0])}reset(){const h=this;h._resultHash=new h._hash(h._baseHash[0]),h._updated=!1}update(h){const d=this;d._updated=!0,d._resultHash.update(h)}digest(){const h=this,d=h._resultHash.finalize(),c=new h._hash(h._baseHash[1]).update(d).finalize();return h.reset(),c}encrypt(h){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(h),this.digest(h)}};const sb=typeof crypto!=zn&&typeof crypto.getRandomValues==as,Zp="Invalid password",Kp="Invalid signature",Jp="zipjs-abort-check-password";function Yp(h){return sb?crypto.getRandomValues(h):ob.getRandomValues(h)}const po=16,ab="raw",Xp={name:"PBKDF2"},lb={name:"HMAC"},ub="SHA-1",cb=Object.assign({hash:lb},Xp),ju=Object.assign({iterations:1e3,hash:{name:ub}},Xp),fb=["deriveBits"],ls=[8,12,16],us=[16,24,32],Gn=10,pb=[0,0,0,0],Ma=typeof crypto!=zn,cs=Ma&&crypto.subtle,ed=Ma&&typeof cs!=zn,yn=ka.bytes,db=$p.aes,hb=Gp.ctrGladman,gb=Si.hmacSha1;let td=Ma&&ed&&typeof cs.importKey==as,rd=Ma&&ed&&typeof cs.deriveBits==as;class mb extends TransformStream{constructor({password:d,rawPassword:c,signed:p,encryptionStrength:g,checkPasswordOnly:C}){super({start(){Object.assign(this,{ready:new Promise(x=>this.resolveReady=x),password:od(d,c),signed:p,strength:g-1,pending:new Uint8Array})},async transform(x,w){const V=this,{password:v,strength:P,resolveReady:I,ready:L}=V;v?(await vb(V,P,v,Gr(x,0,ls[P]+2)),x=Gr(x,ls[P]+2),C?w.error(new Error(Jp)):I()):await L;const H=new Uint8Array(x.length-Gn-(x.length-Gn)%po);w.enqueue(nd(V,x,H,0,Gn,!0))},async flush(x){const{signed:w,ctr:V,hmac:v,pending:P,ready:I}=this;if(v&&V){await I;const L=Gr(P,0,P.length-Gn),H=Gr(P,P.length-Gn);let q=new Uint8Array;if(L.length){const A=ps(yn,L);v.update(A);const S=V.update(A);q=fs(yn,S)}if(w){const A=Gr(fs(yn,v.digest()),0,Gn);for(let S=0;S<Gn;S++)if(A[S]!=H[S])throw new Error(Kp)}x.enqueue(q)}}})}}class yb extends TransformStream{constructor({password:d,rawPassword:c,encryptionStrength:p}){let g;super({start(){Object.assign(this,{ready:new Promise(C=>this.resolveReady=C),password:od(d,c),strength:p-1,pending:new Uint8Array})},async transform(C,x){const w=this,{password:V,strength:v,resolveReady:P,ready:I}=w;let L=new Uint8Array;V?(L=await bb(w,v,V),P()):await I;const H=new Uint8Array(L.length+C.length-C.length%po);H.set(L,0),x.enqueue(nd(w,C,H,L.length,0))},async flush(C){const{ctr:x,hmac:w,pending:V,ready:v}=this;if(w&&x){await v;let P=new Uint8Array;if(V.length){const I=x.update(ps(yn,V));w.update(I),P=fs(yn,I)}g.signature=fs(yn,w.digest()).slice(0,Gn),C.enqueue(Eu(P,g.signature))}}}),g=this}}function nd(h,d,c,p,g,C){const{ctr:x,hmac:w,pending:V}=h,v=d.length-g;V.length&&(d=Eu(V,d),c=wb(c,v-v%po));let P;for(P=0;P<=v-po;P+=po){const I=ps(yn,Gr(d,P,P+po));C&&w.update(I);const L=x.update(I);C||w.update(L),c.set(fs(yn,L),P+p)}return h.pending=Gr(d,P),c}async function vb(h,d,c,p){const g=await id(h,d,c,Gr(p,0,ls[d])),C=Gr(p,ls[d]);if(g[0]!=C[0]||g[1]!=C[1])throw new Error(Zp)}async function bb(h,d,c){const p=Yp(new Uint8Array(ls[d])),g=await id(h,d,c,p);return Eu(p,g)}async function id(h,d,c,p){h.password=null;const g=await Cb(ab,c,cb,!1,fb),C=await xb(Object.assign({salt:p},ju),g,8*(us[d]*2+2)),x=new Uint8Array(C),w=ps(yn,Gr(x,0,us[d])),V=ps(yn,Gr(x,us[d],us[d]*2)),v=Gr(x,us[d]*2);return Object.assign(h,{keys:{key:w,authentication:V,passwordVerification:v},ctr:new hb(new db(w),Array.from(pb)),hmac:new gb(V)}),v}async function Cb(h,d,c,p,g){if(td)try{return await cs.importKey(h,d,c,p,g)}catch{return td=!1,Si.importKey(d)}else return Si.importKey(d)}async function xb(h,d,c){if(rd)try{return await cs.deriveBits(h,d,c)}catch{return rd=!1,Si.pbkdf2(d,h.salt,ju.iterations,c)}else return Si.pbkdf2(d,h.salt,ju.iterations,c)}function od(h,d){return d===It?La(h):d}function Eu(h,d){let c=h;return h.length+d.length&&(c=new Uint8Array(h.length+d.length),c.set(h,0),c.set(d,h.length)),c}function wb(h,d){if(d&&d>h.length){const c=h;h=new Uint8Array(d),h.set(c,0)}return h}function Gr(h,d,c){return h.subarray(d,c)}function fs(h,d){return h.fromBits(d)}function ps(h,d){return h.toBits(d)}const ho=12;class Pb extends TransformStream{constructor({password:d,passwordVerification:c,checkPasswordOnly:p}){super({start(){Object.assign(this,{password:d,passwordVerification:c}),ld(this,d)},transform(g,C){const x=this;if(x.password){const w=sd(x,g.subarray(0,ho));if(x.password=null,w[ho-1]!=x.passwordVerification)throw new Error(Zp);g=g.subarray(ho)}p?C.error(new Error(Jp)):C.enqueue(sd(x,g))}})}}class Sb extends TransformStream{constructor({password:d,passwordVerification:c}){super({start(){Object.assign(this,{password:d,passwordVerification:c}),ld(this,d)},transform(p,g){const C=this;let x,w;if(C.password){C.password=null;const V=Yp(new Uint8Array(ho));V[ho-1]=C.passwordVerification,x=new Uint8Array(p.length+V.length),x.set(ad(C,V),0),w=ho}else x=new Uint8Array(p.length),w=0;x.set(ad(C,p),w),g.enqueue(x)}})}}function sd(h,d){const c=new Uint8Array(d.length);for(let p=0;p<d.length;p++)c[p]=ud(h)^d[p],Vu(h,c[p]);return c}function ad(h,d){const c=new Uint8Array(d.length);for(let p=0;p<d.length;p++)c[p]=ud(h)^d[p],Vu(h,d[p]);return c}function ld(h,d){const c=[305419896,591751049,878082192];Object.assign(h,{keys:c,crcKey0:new Su(c[0]),crcKey2:new Su(c[2])});for(let p=0;p<d.length;p++)Vu(h,d.charCodeAt(p))}function Vu(h,d){let[c,p,g]=h.keys;h.crcKey0.append([d]),c=~h.crcKey0.get(),p=fd(Math.imul(fd(p+cd(c)),134775813)+1),h.crcKey2.append([p>>>24]),g=~h.crcKey2.get(),h.keys=[c,p,g]}function ud(h){const d=h.keys[2]|2;return cd(Math.imul(d,d^1)>>>8)}function cd(h){return h&255}function fd(h){return h&4294967295}const pd="deflate-raw";class jb extends TransformStream{constructor(d,{chunkSize:c,CompressionStream:p,CompressionStreamNative:g}){super({});const{compressed:C,encrypted:x,useCompressionStream:w,zipCrypto:V,signed:v,level:P}=d,I=this;let L,H,q=dd(super.readable);(!x||V)&&v&&(L=new zp,q=vn(q,L)),C&&(q=gd(q,w,{level:P,chunkSize:c},g,p)),x&&(V?q=vn(q,new Sb(d)):(H=new yb(d),q=vn(q,H))),hd(I,q,()=>{let A;x&&!V&&(A=H.signature),(!x||V)&&v&&(A=new DataView(L.value.buffer).getUint32(0)),I.signature=A})}}class Eb extends TransformStream{constructor(d,{chunkSize:c,DecompressionStream:p,DecompressionStreamNative:g}){super({});const{zipCrypto:C,encrypted:x,signed:w,signature:V,compressed:v,useCompressionStream:P}=d;let I,L,H=dd(super.readable);x&&(C?H=vn(H,new Pb(d)):(L=new mb(d),H=vn(H,L))),v&&(H=gd(H,P,{chunkSize:c},g,p)),(!x||C)&&w&&(I=new zp,H=vn(H,I)),hd(this,H,()=>{if((!x||C)&&w){const q=new DataView(I.value.buffer);if(V!=q.getUint32(0,!1))throw new Error(Kp)}})}}function dd(h){return vn(h,new TransformStream({transform(d,c){d&&d.length&&c.enqueue(d)}}))}function hd(h,d,c){d=vn(d,new TransformStream({flush:c})),Object.defineProperty(h,"readable",{get(){return d}})}function gd(h,d,c,p,g){try{const C=d&&p?p:g;h=vn(h,new C(pd,c))}catch{if(d)try{h=vn(h,new g(pd,c))}catch{return h}else return h}return h}function vn(h,d){return h.pipeThrough(d)}const Vb="message",Ob="start",Tb="pull",md="data",Ib="ack",yd="close",vd="deflate",Rb="inflate";class Db extends TransformStream{constructor(d,c){super({});const p=this,{codecType:g}=d;let C;g.startsWith(vd)?C=jb:g.startsWith(Rb)&&(C=Eb);let x=0,w=0;const V=new C(d,c),v=super.readable,P=new TransformStream({transform(L,H){L&&L.length&&(w+=L.length,H.enqueue(L))},flush(){Object.assign(p,{inputSize:w})}}),I=new TransformStream({transform(L,H){L&&L.length&&(x+=L.length,H.enqueue(L))},flush(){const{signature:L}=V;Object.assign(p,{signature:L,outputSize:x,inputSize:w})}});Object.defineProperty(p,"readable",{get(){return v.pipeThrough(P).pipeThrough(V).pipeThrough(I)}})}}class Ab extends TransformStream{constructor(d){let c;super({transform:p,flush(g){c&&c.length&&g.enqueue(c)}});function p(g,C){if(c){const x=new Uint8Array(c.length+g.length);x.set(c),x.set(g,c.length),g=x,c=null}g.length>d?(C.enqueue(g.slice(0,d)),p(g.slice(d),C)):c=g}}}let bd=typeof Worker!=zn;class Ou{constructor(d,{readable:c,writable:p},{options:g,config:C,streamOptions:x,useWebWorkers:w,transferStreams:V,scripts:v},P){const{signal:I}=x;return Object.assign(d,{busy:!0,readable:c.pipeThrough(new Ab(C.chunkSize)).pipeThrough(new Lb(c,x),{signal:I}),writable:p,options:Object.assign({},g),scripts:v,transferStreams:V,terminate(){return new Promise(L=>{const{worker:H,busy:q}=d;H?(q?d.resolveTerminated=L:(H.terminate(),L()),d.interface=null):L()})},onTaskFinished(){const{resolveTerminated:L}=d;L&&(d.resolveTerminated=null,d.terminated=!0,d.worker.terminate(),L()),d.busy=!1,P(d)}}),(w&&bd?kb:Cd)(d,C)}}class Lb extends TransformStream{constructor(d,{onstart:c,onprogress:p,size:g,onend:C}){let x=0;super({async start(){c&&await Tu(c,g)},async transform(w,V){x+=w.length,p&&await Tu(p,x,g),V.enqueue(w)},async flush(){d.size=x,C&&await Tu(C,x)}})}}async function Tu(h,...d){try{await h(...d)}catch{}}function Cd(h,d){return{run:()=>Mb(h,d)}}function kb(h,d){const{baseURL:c,chunkSize:p}=d;if(!h.interface){let g;try{g=Fb(h.scripts[0],c,h)}catch{return bd=!1,Cd(h,d)}Object.assign(h,{worker:g,interface:{run:()=>Nb(h,{chunkSize:p})}})}return h.interface}async function Mb({options:h,readable:d,writable:c,onTaskFinished:p},g){try{const C=new Db(h,g);await d.pipeThrough(C).pipeTo(c,{preventClose:!0,preventAbort:!0});const{signature:x,inputSize:w,outputSize:V}=C;return{signature:x,inputSize:w,outputSize:V}}finally{p()}}async function Nb(h,d){let c,p;const g=new Promise((L,H)=>{c=L,p=H});Object.assign(h,{reader:null,writer:null,resolveResult:c,rejectResult:p,result:g});const{readable:C,options:x,scripts:w}=h,{writable:V,closed:v}=_b(h.writable),P=Na({type:Ob,scripts:w.slice(1),options:x,config:d,readable:C,writable:V},h);P||Object.assign(h,{reader:C.getReader(),writer:V.getWriter()});const I=await g;return P||await V.getWriter().close(),await v,I}function _b(h){let d;const c=new Promise(g=>d=g);return{writable:new WritableStream({async write(g){const C=h.getWriter();await C.ready,await C.write(g),C.releaseLock()},close(){d()},abort(g){return h.getWriter().abort(g)}}),closed:c}}let xd=!0,wd=!0;function Fb(h,d,c){const p={type:"module"};let g,C;typeof h==as&&(h=h());try{g=new URL(h,d)}catch{g=h}if(xd)try{C=new Worker(g)}catch{xd=!1,C=new Worker(g,p)}else C=new Worker(g,p);return C.addEventListener(Vb,x=>qb(x,c)),C}function Na(h,{worker:d,writer:c,onTaskFinished:p,transferStreams:g}){try{let{value:C,readable:x,writable:w}=h;const V=[];if(C&&(C.byteLength<C.buffer.byteLength?h.value=C.buffer.slice(0,C.byteLength):h.value=C.buffer,V.push(h.value)),g&&wd?(x&&V.push(x),w&&V.push(w)):h.readable=h.writable=null,V.length)try{return d.postMessage(h,V),!0}catch{wd=!1,h.readable=h.writable=null,d.postMessage(h)}else d.postMessage(h)}catch(C){throw c&&c.releaseLock(),p(),C}}async function qb({data:h},d){const{type:c,value:p,messageId:g,result:C,error:x}=h,{reader:w,writer:V,resolveResult:v,rejectResult:P,onTaskFinished:I}=d;try{if(x){const{message:H,stack:q,code:A,name:S}=x,R=new Error(H);Object.assign(R,{stack:q,code:A,name:S}),L(R)}else{if(c==Tb){const{value:H,done:q}=await w.read();Na({type:md,value:H,done:q,messageId:g},d)}c==md&&(await V.ready,await V.write(new Uint8Array(p)),Na({type:Ib,messageId:g},d)),c==yd&&L(null,C)}}catch(H){Na({type:yd,messageId:g},d),L(H)}function L(H,q){H?P(H):v(q),V&&V.releaseLock(),I()}}let ji=[];const Iu=[];let Pd=0;async function Bb(h,d){const{options:c,config:p}=d,{transferStreams:g,useWebWorkers:C,useCompressionStream:x,codecType:w,compressed:V,signed:v,encrypted:P}=c,{workerScripts:I,maxWorkers:L}=p;d.transferStreams=g||g===It;const H=!V&&!v&&!P&&!d.transferStreams;return d.useWebWorkers=!H&&(C||C===It&&p.useWebWorkers),d.scripts=d.useWebWorkers&&I?I[w]:[],c.useCompressionStream=x||x===It&&p.useCompressionStream,(await q()).run();async function q(){const S=ji.find(R=>!R.busy);if(S)return Sd(S),new Ou(S,h,d,A);if(ji.length<L){const R={indexWorker:Pd};return Pd++,ji.push(R),new Ou(R,h,d,A)}else return new Promise(R=>Iu.push({resolve:R,stream:h,workerOptions:d}))}function A(S){if(Iu.length){const[{resolve:R,stream:k,workerOptions:M}]=Iu.splice(0,1);R(new Ou(S,k,M,A))}else S.worker?(Sd(S),Hb(S,d)):ji=ji.filter(R=>R!=S)}}function Hb(h,d){const{config:c}=d,{terminateWorkerTimeout:p}=c;Number.isFinite(p)&&p>=0&&(h.terminated?h.terminated=!1:h.terminateTimeout=setTimeout(async()=>{ji=ji.filter(g=>g!=h);try{await h.terminate()}catch{}},p))}function Sd(h){const{terminateTimeout:d}=h;d&&(clearTimeout(d),h.terminateTimeout=null)}function Qb(h,d={}){const c=`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.v=[1732584193,4023233417,2562383102,271733878,3285377520],t.S=[1518500249,1859775393,2400959708,3395469782],e?(t.C=e.C.slice(0),t.A=e.A.slice(0),t._=e._):t.reset()}reset(){const e=this;return e.C=e.v.slice(0),e.A=[],e._=0,e}update(e){const t=this;"string"==typeof e&&(e=I.I.k(e));const n=t.A=_.concat(t.A,e),r=t._,i=t._=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}R(e,t){return t<<e|t>>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},B:class{constructor(e){const t=this,n=t.U=P,r=[[],[]];t.K=[new n,new n];const s=t.K[0].blockSize/32;e.length>s&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.m(t)}function ae(e,t){return e.k(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,te:new x(r[0]),ne:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.te.append([t]),n=~e.te.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.ne.append([s>>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=573,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;573>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function Le(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}He.ke=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ve=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.Se=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.ze=e=>256>e?je[e]:je[256+(e>>>7)],He.Ce=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],He.xe=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],He.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le.Ie=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}Le.Ee=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Me=new Le(Le.Ie,He.Ce,257,286,15),Le.Ue=new Le(Le.Ee,He.xe,0,30,15),Le.Ke=new Le(null,He.Ae,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ke[n]+256+1)]++,M[2*He.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.xe[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Oe[c],s=e.Te[c],c++,0===r?Y(s,t):(i=He.ke[s],Y(i+256+1,t),o=He.Ce[i],0!==o&&(s-=He.ve[i],X(s,o)),r--,i=He.ze(r),Y(i,n),o=He.xe[i],0!==o&&(r-=He.Se[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*He._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le.Ie,Le.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i<e.fe&&$e(t,r[i+1],r[i],e.ue)&&i++,!$e(t,s,r[i],e.ue));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.Le=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.qe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ne=new i(4*T),s=4*T,e.Oe=new o(T),e.Te=new i(T),D=S,V=G,(t=>(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Xe,c=0,K.se=E,K.oe=Le.Me,N.se=M,N.oe=Le.Ue,O.se=U,O.oe=Le.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Xe?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Be!=Je[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Je[D].De,R=Je[D].Pe,B=Je[D].Ve,I=Je[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ze=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.et||!r.tt&&0!==r.je||n==Ye&&4!=i)return r.Fe=Qe[4],Oe;if(0===r.nt)return r.Fe=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Qe[7],-5;if(n==Ye&&0!==t.je)return r.Fe=Qe[7],-5;if(0!==t.je||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.nt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.nt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le.Ie),$(),9>1+H+10-F&&(X(2,3),Y(256,Le.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={Le(e,t){const n=this;return n.qe=new et,t||(t=15),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):Oe},Xe(){const e=this;if(!e.qe)return Oe;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):Oe},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):Oe},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Fe="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=st),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Fe="oversubscribed literal/length tree":-4!=h&&(w.Fe="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Fe="oversubscribed distance tree":h==it?(w.Fe="incomplete distance tree",h=st):-4!=h&&(w.Fe="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ct,h=o.ft,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.lt(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--u);else o.ut.set(o.ut.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.ut[y++]=o.ut[S++],o.ut[y++]=o.ut[S++],k-=2):(o.ut.set(o.ut.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.ut[y++]=o.ut[S++]}while(0!=--k);else o.ut.set(o.ut.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,1):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.ut[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ct=w,o.ft=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.wt=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ct,A=e.ft,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Fe="invalid literal/length code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Fe="invalid distance code",m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,v--,x|=(255&y.lt(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);e.ut[S++]=e.ut[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);m=0,e.ut[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.ht(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);t=8;case 8:return m=1,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);case 9:return m=st,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m);default:return m=rt,e.ct=x,e.ft=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.ht(y,m)}},e.dt=()=>{}}ht.yt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ft=0,n.ct=0,n.ut=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.dt(e),s=0,n.ft=0,n.ct=0,n.read=n.write=0},n.reset(e,null),n.ht=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==it&&(t=0),e.nt-=r,e.Je+=r,e.et.set(n.ut.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.wt=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.yt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Fe="invalid block type",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Fe="invalid stored block lengths",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.ut.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Fe="too many length or distance symbols",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);t=0,b--,f|=(255&e.lt(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Fe="invalid bit length repeat",t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,1!=(t=w.wt(n,e,t)))return n.ht(e,t);if(t=0,w.dt(e),m=e.rt,b=e.je,f=n.ct,y=n.ft,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.ht(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);s=8;case 8:return t=1,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);case 9:return t=st,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t);default:return t=rt,n.ct=f,n.ft=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.ht(e,t)}}},n.dt=e=>{n.reset(e,null),n.ut=null,d=null},n.bt=(e,t,r)=>{n.ut.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),0):rt}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.dt(t),e.vt=null,0),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),rt):(e.Ct=r,n.kt.vt=new yt(n,1<<r),t(n),0)),e._t=(e,t)=>{let n,r;if(!e||!e.kt||!e.tt)return rt;const s=e.kt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.lt(e.rt++)))){s.mode=mt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=mt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.lt(e.rt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.lt(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.lt(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.lt(e.rt++),s.mode=6,2);case 6:return s.mode=mt,e.Fe="need dictionary",s.marker=0,rt;case 7:if(n=s.vt.wt(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,1;case mt:return st;default:return rt}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return rt;const i=e.kt;return s<1<<i.Ct||(s=(1<<i.Ct)-1,r=n-s),i.vt.bt(t,r,s),i.mode=7,0},e.Pt=e=>{let n,r,s,i,o;if(!e||!e.kt)return rt;const c=e.kt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.je))return it;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.lt(r)==bt[s]?s++:s=0!==e.lt(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?st:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,0)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===it){if(0!==t.je)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Fe);if((c||1===a)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}kt.prototype={At(e){const t=this;return t.kt=new gt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):rt},xt(){const e=this;if(!e.kt)return rt;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):rt},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):rt},lt(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
104
104
  `,p=()=>d.useDataURI?"data:text/javascript,"+encodeURIComponent(c):URL.createObjectURL(new Blob([c],{type:"text/javascript"}));h({workerScripts:{inflate:[p],deflate:[p]}})}const Ub="Writer iterator completed too soon",zb="text/plain",Wb="Content-Type",$b=64*1024,jd="writable";class Ru{constructor(){this.size=0}init(){this.initialized=!0}}class Ed extends Ru{get readable(){const d=this,{chunkSize:c=$b}=d,p=new ReadableStream({start(){this.chunkOffset=0},async pull(g){const{offset:C=0,size:x,diskNumberStart:w}=p,{chunkOffset:V}=this;g.enqueue(await Du(d,C+V,Math.min(c,x-V),w)),V+c>x?g.close():this.chunkOffset+=c}});return p}}class Gb extends Ed{constructor(d){super(),Object.assign(this,{blob:d,size:d.size})}async readUint8Array(d,c){const p=this,g=d+c;let x=await(d||g<p.size?p.blob.slice(d,g):p.blob).arrayBuffer();return x.byteLength>c&&(x=x.slice(d,g)),new Uint8Array(x)}}class Zb extends Ru{constructor(d){super();const c=this,p=new TransformStream,g=[];d&&g.push([Wb,d]),Object.defineProperty(c,jd,{get(){return p.writable}}),c.blob=new Response(p.readable,{headers:g}).blob()}getData(){return this.blob}}class Kb extends Gb{constructor(d){super(new Blob([d],{type:zb}))}}class Jb extends Ed{constructor(d){super(),this.readers=d}async init(){const d=this,{readers:c}=d;d.lastDiskNumber=0,d.lastDiskOffset=0,await Promise.all(c.map(async(p,g)=>{await p.init(),g!=c.length-1&&(d.lastDiskOffset+=p.size),d.size+=p.size})),super.init()}async readUint8Array(d,c,p=0){const g=this,{readers:C}=this;let x,w=p;w==-1&&(w=C.length-1);let V=d;for(;V>=C[w].size;)V-=C[w].size,w++;const v=C[w],P=v.size;if(V+c<=P)x=await Du(v,V,c);else{const I=P-V;x=new Uint8Array(c),x.set(await Du(v,V,I)),x.set(await g.readUint8Array(d+I,c-I,p),I)}return g.lastDiskNumber=Math.max(w,g.lastDiskNumber),x}}class Vd extends Ru{constructor(d,c=4294967295){super();const p=this;Object.assign(p,{diskNumber:0,diskOffset:0,size:0,maxSize:c,availableSize:c});let g,C,x;const w=new WritableStream({async write(P){const{availableSize:I}=p;if(x)P.length>=I?(await V(P.slice(0,I)),await v(),p.diskOffset+=g.size,p.diskNumber++,x=null,await this.write(P.slice(I))):await V(P);else{const{value:L,done:H}=await d.next();if(H&&!L)throw new Error(Ub);g=L,g.size=0,g.maxSize&&(p.maxSize=g.maxSize),p.availableSize=p.maxSize,await ds(g),C=L.writable,x=C.getWriter(),await this.write(P)}},async close(){await x.ready,await v()}});Object.defineProperty(p,jd,{get(){return w}});async function V(P){const I=P.length;I&&(await x.ready,await x.write(P),g.size+=I,p.size+=I,p.availableSize-=I)}async function v(){C.size=g.size,await x.close()}}}async function ds(h,d){if(h.init&&!h.initialized)await h.init(d);else return Promise.resolve()}function Yb(h){return Array.isArray(h)&&(h=new Jb(h)),h instanceof ReadableStream&&(h={readable:h}),h}function Xb(h){h.writable===It&&typeof h.next==as&&(h=new Vd(h)),h instanceof WritableStream&&(h={writable:h});const{writable:d}=h;return d.size===It&&(d.size=0),h instanceof Vd||Object.assign(h,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),h}function Du(h,d,c,p){return h.readUint8Array(d,c,p)}"\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("").length==256;const e0="filename",t0="rawFilename",r0="comment",n0="rawComment",i0="uncompressedSize",o0="compressedSize",s0="offset",Od="diskNumberStart",Td="lastModDate",a0="rawLastModDate",Id="lastAccessDate",Rd="creationDate",Dd="internalFileAttribute",Ad="externalFileAttribute",Ld="msDosCompatible",Au="zip64",kd="encrypted",Md="version",Nd="versionMadeBy",_d="zipCrypto",l0=[e0,t0,o0,i0,Td,a0,r0,n0,Id,Rd,s0,Od,Od,Dd,Ad,Ld,Au,kd,Md,Nd,_d,"directory","bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class Fd{constructor(d){l0.forEach(c=>this[c]=d[c])}}const u0="File already exists",c0="Zip file comment exceeds 64KB",f0="File entry comment exceeds 64KB",p0="File entry name exceeds 64KB",qd="Version exceeds 65535",d0="The strength must equal 1, 2, or 3",h0="Extra field type exceeds 65535",g0="Extra field data exceeds 64KB",Lu="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",m0="Undefined uncompressed size",Bd=new Uint8Array([7,0,2,0,65,69,3,0,0]);let ku=0;const Hd=[];class y0{constructor(d,c={}){d=Xb(d);const p=d.availableSize!==It&&d.availableSize>0&&d.availableSize!==1/0&&d.maxSize!==It&&d.maxSize>0&&d.maxSize!==1/0;Object.assign(this,{writer:d,addSplitZipSignature:p,options:c,config:nb(),files:new Map,filenames:new Set,offset:c.offset===It?d.writable.size:c.offset,pendingEntriesSize:0,pendingAddFileCalls:new Set,bufferedWrites:0})}async add(d="",c,p={}){const g=this,{pendingAddFileCalls:C,config:x}=g;ku<x.maxWorkers?ku++:await new Promise(V=>Hd.push(V));let w;try{if(d=d.trim(),g.filenames.has(d))throw new Error(u0);return g.filenames.add(d),w=v0(g,d,c,p),C.add(w),await w}catch(V){throw g.filenames.delete(d),V}finally{C.delete(w);const V=Hd.shift();V?V():ku--}}async close(d=new Uint8Array,c={}){const p=this,{pendingAddFileCalls:g,writer:C}=this,{writable:x}=C;for(;g.size;)await Promise.allSettled(Array.from(g));return await V0(this,d,c),Ct(p,c,"preventClose")||await x.getWriter().close(),C.getData?C.getData():x}}async function v0(h,d,c,p){d=d.trim(),p.directory&&!d.endsWith(xu)?d+=xu:p.directory=d.endsWith(xu);const g=Ct(h,p,"encodeText",La);let C=g(d);if(C===It&&(C=La(d)),ft(C)>Dr)throw new Error(p0);const x=p.comment||"";let w=g(x);if(w===It&&(w=La(x)),ft(w)>Dr)throw new Error(f0);const V=Ct(h,p,Md,eb);if(V>Dr)throw new Error(qd);const v=Ct(h,p,Nd,20);if(v>Dr)throw new Error(qd);const P=Ct(h,p,Td,new Date),I=Ct(h,p,Id),L=Ct(h,p,Rd),H=Ct(h,p,Ld,!0),q=Ct(h,p,Dd,0),A=Ct(h,p,Ad,0),S=Ct(h,p,"passThrough");let R,k;S||(R=Ct(h,p,"password"),k=Ct(h,p,"rawPassword"));const M=Ct(h,p,"encryptionStrength",3),J=Ct(h,p,_d),K=Ct(h,p,"extendedTimestamp",!0),U=Ct(h,p,"keepOrder",!0),$=Ct(h,p,"level"),Q=Ct(h,p,"useWebWorkers"),B=Ct(h,p,"bufferedWrite"),ee=Ct(h,p,"dataDescriptorSignature",!1),oe=Ct(h,p,"signal"),le=Ct(h,p,"useUnicodeFileNames",!0),G=Ct(h,p,"useCompressionStream"),te=Ct(h,p,"compressionMethod");let X=Ct(h,p,"dataDescriptor",!0),N=Ct(h,p,Au);if(!J&&(R!==It||k!==It)&&!(M>=1&&M<=3))throw new Error(d0);let ce=new Uint8Array;const{extraField:ge}=p;if(ge){let zt=0,Wt=0;ge.forEach(Rt=>zt+=4+ft(Rt)),ce=new Uint8Array(zt),ge.forEach((Rt,er)=>{if(er>Dr)throw new Error(h0);if(ft(Rt)>Dr)throw new Error(g0);Kt(ce,new Uint16Array([er]),Wt),Kt(ce,new Uint16Array([ft(Rt)]),Wt+2),Kt(ce,Rt,Wt+4),Wt+=4+ft(Rt)})}let Ae=0,fe=0,ke=0;if(S&&({uncompressedSize:ke}=p,ke===It))throw new Error(m0);const we=N===!0;c&&(c=Yb(c),await ds(c),S?Ae=Qd(ke):c.size===It?(X=!0,(N||N===It)&&(N=!0,ke=Ae=Rr+1)):(ke=c.size,Ae=Qd(ke)));const{diskOffset:De,diskNumber:Ge,maxSize:Be}=h.writer,Ce=we||ke>Rr,He=we||Ae>Rr,st=we||h.offset+h.pendingEntriesSize-De>Rr,Qt=Ct(h,p,"supportZip64SplitFile",!0)&&we||Ge+Math.ceil(h.pendingEntriesSize/Be)>Dr;if(st||Ce||He||Qt){if(N===!1||!U)throw new Error(Lu);N=!0}N=N||!1;const Xt=Ct(h,p,kd),{signature:kt}=p;p=Object.assign({},p,{rawFilename:C,rawComment:w,version:V,versionMadeBy:v,lastModDate:P,lastAccessDate:I,creationDate:L,rawExtraField:ce,zip64:N,zip64UncompressedSize:Ce,zip64CompressedSize:He,zip64Offset:st,zip64DiskNumberStart:Qt,password:R,rawPassword:k,level:!G&&h.config.CompressionStream===It&&h.config.CompressionStreamNative===It?0:$,useWebWorkers:Q,encryptionStrength:M,extendedTimestamp:K,zipCrypto:J,bufferedWrite:B,keepOrder:U,useUnicodeFileNames:le,dataDescriptor:X,dataDescriptorSignature:ee,signal:oe,msDosCompatible:H,internalFileAttribute:q,externalFileAttribute:A,useCompressionStream:G,passThrough:S,encrypted:!!(R&&ft(R)||k&&ft(k))||S&&Xt,signature:kt,compressionMethod:te});const Ut=x0(p),dr=P0(p),at=ft(Ut.localHeaderArray,dr.dataDescriptorArray);fe=at+Ae,h.options.usdz&&(fe+=fe+64),h.pendingEntriesSize+=fe;let mt;try{mt=await b0(h,d,c,{headerInfo:Ut,dataDescriptorInfo:dr,metadataSize:at},p)}finally{h.pendingEntriesSize-=fe}return Object.assign(mt,{name:d,comment:x,extraField:ge}),new Fd(mt)}async function b0(h,d,c,p,g){const{files:C,writer:x}=h,{keepOrder:w,dataDescriptor:V,signal:v}=g,{headerInfo:P}=p,{usdz:I}=h.options,L=Array.from(C.values()).pop();let H={},q,A,S,R,k,M,J;C.set(d,H);try{let Q;w&&(Q=L&&L.lock,K()),(g.bufferedWrite||h.writerLocked||h.bufferedWrites&&w||!V)&&!I?(M=new TransformStream,J=new Response(M.readable).blob(),M.writable.size=0,q=!0,h.bufferedWrites++,await ds(x)):(M=x,await U()),await ds(M);const{writable:B}=x;let{diskOffset:ee}=x;if(h.addSplitZipSignature){delete h.addSplitZipSignature;const le=new Uint8Array(4),G=ur(le);ct(G,0,Lp),await bn(B,le),h.offset+=4}I&&w0(p,h.offset-ee),q||(await Q,await $(B));const{diskNumber:oe}=x;if(k=!0,H.diskNumberStart=oe,H=await C0(c,M,H,p,h.config,g),k=!1,C.set(d,H),H.filename=d,q){await M.writable.getWriter().close();let le=await J;await Q,await U(),R=!0,V||(le=await j0(H,le,B,g)),await $(B),H.diskNumberStart=x.diskNumber,ee=x.diskOffset,await le.stream().pipeTo(B,{preventClose:!0,preventAbort:!0,signal:v}),B.size+=le.size,R=!1}if(H.offset=h.offset-ee,H.zip64)E0(H,g);else if(H.offset>Rr)throw new Error(Lu);return h.offset+=H.size,H}catch(Q){if(q&&R||!q&&k){if(h.hasCorruptedEntries=!0,Q)try{Q.corruptedEntry=!0}catch{}q?h.offset+=M.writable.size:h.offset=M.writable.size}throw C.delete(d),Q}finally{q&&h.bufferedWrites--,S&&S(),A&&A()}function K(){H.lock=new Promise(Q=>S=Q)}async function U(){h.writerLocked=!0;const{lockWriter:Q}=h;h.lockWriter=new Promise(B=>A=()=>{h.writerLocked=!1,B()}),await Q}async function $(Q){ft(P.localHeaderArray)>x.availableSize&&(x.availableSize=0,await bn(Q,new Uint8Array))}}async function C0(h,d,{diskNumberStart:c,lock:p},g,C,x){const{headerInfo:w,dataDescriptorInfo:V,metadataSize:v}=g,{localHeaderArray:P,headerArray:I,lastModDate:L,rawLastModDate:H,encrypted:q,compressed:A,version:S,compressionMethod:R,rawExtraFieldExtendedTimestamp:k,extraFieldExtendedTimestampFlag:M,rawExtraFieldNTFS:J,rawExtraFieldAES:K}=w,{dataDescriptorArray:U}=V,{rawFilename:$,lastAccessDate:Q,creationDate:B,password:ee,rawPassword:oe,level:le,zip64:G,zip64UncompressedSize:te,zip64CompressedSize:X,zip64Offset:N,zip64DiskNumberStart:ce,zipCrypto:ge,dataDescriptor:Ae,directory:fe,versionMadeBy:ke,rawComment:we,rawExtraField:De,useWebWorkers:Ge,onstart:Be,onprogress:Ce,onend:He,signal:st,encryptionStrength:Ke,extendedTimestamp:Qt,msDosCompatible:Xt,internalFileAttribute:kt,externalFileAttribute:Ut,useCompressionStream:dr,passThrough:at}=x,mt={lock:p,versionMadeBy:ke,zip64:G,directory:!!fe,filenameUTF8:!0,rawFilename:$,commentUTF8:!0,rawComment:we,rawExtraFieldExtendedTimestamp:k,rawExtraFieldNTFS:J,rawExtraFieldAES:K,rawExtraField:De,extendedTimestamp:Qt,msDosCompatible:Xt,internalFileAttribute:kt,externalFileAttribute:Ut,diskNumberStart:c};let{signature:zt,uncompressedSize:Wt}=x,Rt=0;at||(Wt=0);const{writable:er}=d;if(h){h.chunkSize=ib(C),await bn(er,P);const Dt=h.readable,rr=Dt.size=h.size,xr={options:{codecType:vd,level:le,rawPassword:oe,password:ee,encryptionStrength:Ke,zipCrypto:q&&ge,passwordVerification:q&&ge&&H>>8&255,signed:!at,compressed:A&&!at,encrypted:q&&!at,useWebWorkers:Ge,useCompressionStream:dr,transferStreams:!1},config:C,streamOptions:{signal:st,size:rr,onstart:Be,onprogress:Ce,onend:He}},hr=await Bb({readable:Dt,writable:er},xr);Rt=hr.outputSize,at||(Wt=hr.inputSize,zt=hr.signature),er.size+=Wt}else await bn(er,P);let tr;if(G){let Dt=4;te&&(Dt+=8),X&&(Dt+=8),N&&(Dt+=8),ce&&(Dt+=4),tr=new Uint8Array(Dt)}else tr=new Uint8Array;return S0({signature:zt,rawExtraFieldZip64:tr,compressedSize:Rt,uncompressedSize:Wt,headerInfo:w,dataDescriptorInfo:V},x),Ae&&await bn(er,U),Object.assign(mt,{uncompressedSize:Wt,compressedSize:Rt,lastModDate:L,rawLastModDate:H,creationDate:B,lastAccessDate:Q,encrypted:q,zipCrypto:ge,size:v+Rt,compressionMethod:R,version:S,headerArray:I,signature:zt,rawExtraFieldZip64:tr,extraFieldExtendedTimestampFlag:M,zip64UncompressedSize:te,zip64CompressedSize:X,zip64Offset:N,zip64DiskNumberStart:ce}),mt}function x0(h){const{rawFilename:d,lastModDate:c,lastAccessDate:p,creationDate:g,level:C,zip64:x,zipCrypto:w,useUnicodeFileNames:V,dataDescriptor:v,directory:P,rawExtraField:I,encryptionStrength:L,extendedTimestamp:H,encrypted:q}=h,A=C!==0&&!P;let{version:S,compressionMethod:R}=h,k;if(q&&!w){k=new Uint8Array(ft(Bd)+2);const N=ur(k);gt(N,0,Wv),Kt(k,Bd,2),_a(N,8,L)}else k=new Uint8Array;let M,J,K;if(H){J=new Uint8Array(9+(p?4:0)+(g?4:0));const N=ur(J);gt(N,0,Np),gt(N,2,ft(J)-4),K=1+(p?2:0)+(g?4:0),_a(N,4,K);let ce=5;ct(N,ce,Math.floor(c.getTime()/1e3)),ce+=4,p&&(ct(N,ce,Math.floor(p.getTime()/1e3)),ce+=4),g&&ct(N,ce,Math.floor(g.getTime()/1e3));try{M=new Uint8Array(36);const ge=ur(M),Ae=Mu(c);gt(ge,0,$v),gt(ge,2,32),gt(ge,8,Gv),gt(ge,10,24),Ar(ge,12,Ae),Ar(ge,20,Mu(p)||Ae),Ar(ge,28,Mu(g)||Ae)}catch{M=new Uint8Array}}else M=J=new Uint8Array;let U=0;V&&(U=U|Yv),v&&(U=U|Jv),R===It&&(R=A?Ap:Mv),R==Ap&&(C>=1&&C<3&&(U=U|6),C>=3&&C<5&&(U=U|1),C===9&&(U=U|2)),x&&(S=S>_p?S:_p),q&&(U=U|Kv,w||(S=S>Fp?S:Fp,k[9]=R,R=Nv));const $=new Uint8Array(26),Q=ur($);gt(Q,0,S),gt(Q,2,U),gt(Q,4,R);const B=new Uint32Array(1),ee=ur(B);let oe;c<Bp?oe=Bp:c>qp?oe=qp:oe=c,gt(ee,0,(oe.getHours()<<6|oe.getMinutes())<<5|oe.getSeconds()/2),gt(ee,2,(oe.getFullYear()-1980<<4|oe.getMonth()+1)<<5|oe.getDate());const le=B[0];ct(Q,6,le),gt(Q,22,ft(d));const G=ft(k,J,M,I);gt(Q,24,G);const te=new Uint8Array(30+ft(d)+G),X=ur(te);return ct(X,0,_v),Kt(te,$,4),Kt(te,d,30),Kt(te,k,30+ft(d)),Kt(te,J,30+ft(d,k)),Kt(te,M,30+ft(d,k,J)),Kt(te,I,30+ft(d,k,J,M)),{localHeaderArray:te,headerArray:$,headerView:Q,lastModDate:c,rawLastModDate:le,encrypted:q,compressed:A,version:S,compressionMethod:R,extraFieldExtendedTimestampFlag:K,rawExtraFieldExtendedTimestamp:J,rawExtraFieldNTFS:M,rawExtraFieldAES:k,extraFieldLength:G}}function w0(h,d){const{headerInfo:c}=h;let{localHeaderArray:p,extraFieldLength:g}=c,C=ur(p),x=64-(d+ft(p))%64;x<4&&(x+=64);const w=new Uint8Array(x),V=ur(w);gt(V,0,Zv),gt(V,2,x-2);const v=p;c.localHeaderArray=p=new Uint8Array(ft(v)+x),Kt(p,v),Kt(p,w,ft(v)),C=ur(p),gt(C,28,g+x),h.metadataSize+=x}function P0(h){const{zip64:d,dataDescriptor:c,dataDescriptorSignature:p}=h;let g=new Uint8Array,C,x=0;return c&&(g=new Uint8Array(d?p?24:20:p?16:12),C=ur(g),p&&(x=4,ct(C,0,Fv))),{dataDescriptorArray:g,dataDescriptorView:C,dataDescriptorOffset:x}}function S0(h,d){const{signature:c,rawExtraFieldZip64:p,compressedSize:g,uncompressedSize:C,headerInfo:x,dataDescriptorInfo:w}=h,{headerView:V,encrypted:v}=x,{dataDescriptorView:P,dataDescriptorOffset:I}=w,{zip64:L,zip64UncompressedSize:H,zip64CompressedSize:q,zipCrypto:A,dataDescriptor:S}=d;if((!v||A)&&c!==It&&(ct(V,10,c),S&&ct(P,I,c)),L){const R=ur(p);gt(R,0,zv),gt(R,2,ft(p)-4);let k=4;H&&(ct(V,18,Rr),Ar(R,k,BigInt(C)),k+=8),q&&(ct(V,14,Rr),Ar(R,k,BigInt(g))),S&&(Ar(P,I+4,BigInt(g)),Ar(P,I+12,BigInt(C)))}else ct(V,14,g),ct(V,18,C),S&&(ct(P,I+4,g),ct(P,I+8,C))}async function j0(h,d,c,{zipCrypto:p}){let g;g=await d.slice(0,26).arrayBuffer(),g.byteLength!=26&&(g=g.slice(0,26));const C=new DataView(g);return(!h.encrypted||p)&&ct(C,14,h.signature),h.zip64?(ct(C,18,Rr),ct(C,22,Rr)):(ct(C,18,h.compressedSize),ct(C,22,h.uncompressedSize)),await bn(c,new Uint8Array(g)),d.slice(g.byteLength)}function E0(h,d){const{rawExtraFieldZip64:c,offset:p,diskNumberStart:g}=h,{zip64UncompressedSize:C,zip64CompressedSize:x,zip64Offset:w,zip64DiskNumberStart:V}=d,v=ur(c);let P=4;C&&(P+=8),x&&(P+=8),w&&(Ar(v,P,BigInt(p)),P+=8),V&&ct(v,P,g)}async function V0(h,d,c){const{files:p,writer:g}=h,{diskOffset:C,writable:x}=g;let{diskNumber:w}=g,V=0,v=0,P=h.offset-C,I=p.size;for(const[,K]of p){const{rawFilename:U,rawExtraFieldZip64:$,rawExtraFieldAES:Q,rawComment:B,rawExtraFieldNTFS:ee,rawExtraField:oe,extendedTimestamp:le,extraFieldExtendedTimestampFlag:G,lastModDate:te}=K;let X;if(le){X=new Uint8Array(9);const N=ur(X);gt(N,0,Np),gt(N,2,5),_a(N,4,G),ct(N,5,Math.floor(te.getTime()/1e3))}else X=new Uint8Array;K.rawExtraFieldCDExtendedTimestamp=X,v+=46+ft(U,B,$,Q,ee,X,oe)}const L=new Uint8Array(v),H=ur(L);await ds(g);let q=0;for(const[K,U]of Array.from(p.values()).entries()){const{offset:$,rawFilename:Q,rawExtraFieldZip64:B,rawExtraFieldAES:ee,rawExtraFieldCDExtendedTimestamp:oe,rawExtraFieldNTFS:le,rawExtraField:G,rawComment:te,versionMadeBy:X,headerArray:N,directory:ce,zip64:ge,zip64UncompressedSize:Ae,zip64CompressedSize:fe,zip64DiskNumberStart:ke,zip64Offset:we,msDosCompatible:De,internalFileAttribute:Ge,externalFileAttribute:Be,diskNumberStart:Ce,uncompressedSize:He,compressedSize:st}=U,Ke=ft(B,ee,oe,le,G);ct(H,V,qv),gt(H,V+4,X);const Qt=ur(N);Ae||ct(Qt,18,He),fe||ct(Qt,14,st),Kt(L,N,V+6),gt(H,V+30,Ke),gt(H,V+32,ft(te)),gt(H,V+34,ge&&ke?Dr:Ce),gt(H,V+36,Ge),Be?ct(H,V+38,Be):ce&&De&&_a(H,V+38,Xv),ct(H,V+42,ge&&we?Rr:$),Kt(L,Q,V+46),Kt(L,B,V+46+ft(Q)),Kt(L,ee,V+46+ft(Q,B)),Kt(L,oe,V+46+ft(Q,B,ee)),Kt(L,le,V+46+ft(Q,B,ee,oe)),Kt(L,G,V+46+ft(Q,B,ee,oe,le)),Kt(L,te,V+46+ft(Q)+Ke);const Xt=46+ft(Q,te)+Ke;if(V-q>g.availableSize&&(g.availableSize=0,await bn(x,L.slice(q,V)),q=V),V+=Xt,c.onprogress)try{await c.onprogress(K+1,p.size,new Fd(U))}catch{}}await bn(x,q?L.slice(q):L);let A=g.diskNumber;const{availableSize:S}=g;S<Cu&&A++;let R=Ct(h,c,Au);if(P>Rr||v>Rr||I>Dr||A>Dr){if(R===!1)throw new Error(Lu);R=!0}const k=new Uint8Array(R?Uv:Cu),M=ur(k);V=0,R&&(ct(M,0,Hv),Ar(M,4,BigInt(44)),gt(M,12,45),gt(M,14,45),ct(M,16,A),ct(M,20,w),Ar(M,24,BigInt(I)),Ar(M,32,BigInt(I)),Ar(M,40,BigInt(v)),Ar(M,48,BigInt(P)),ct(M,56,Qv),Ar(M,64,BigInt(P)+BigInt(v)),ct(M,72,A+1),Ct(h,c,"supportZip64SplitFile",!0)&&(A=Dr,w=Dr),I=Dr,P=Rr,v=Rr,V+=Mp+kp),ct(M,V,Bv),gt(M,V+4,A),gt(M,V+6,w),gt(M,V+8,I),gt(M,V+10,I),ct(M,V+12,v),ct(M,V+16,P);const J=ft(d);if(J)if(J<=Dr)gt(M,V+20,J);else throw new Error(c0);await bn(x,k),J&&await bn(x,d)}async function bn(h,d){const c=h.getWriter();try{await c.ready,h.size+=ft(d),await c.write(d)}finally{c.releaseLock()}}function Mu(h){if(h)return(BigInt(h.getTime())+BigInt(116444736e5))*BigInt(1e4)}function Ct(h,d,c,p){const g=d[c]===It?h.options[c]:d[c];return g===It?p:g}function Qd(h){return h+5*(Math.floor(h/16383)+1)}function _a(h,d,c){h.setUint8(d,c)}function gt(h,d,c){h.setUint16(d,c,!0)}function ct(h,d,c){h.setUint32(d,c,!0)}function Ar(h,d,c){h.setBigUint64(d,c,!0)}function Kt(h,d,c){h.set(d,c)}function ur(h){return new DataView(h.buffer)}function ft(...h){let d=0;return h.forEach(c=>c&&(d+=c.length)),d}let Ud;try{Ud=typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Bn&&Bn.tagName.toUpperCase()==="SCRIPT"&&Bn.src||new URL("reactive.umd.js",document.baseURI).href}catch{}wu({baseURL:Ud}),Qb(wu),wu({Deflate:hv,Inflate:kv});var Rn;(function(h){h.Documents="DOCUMENTS",h.Data="DATA",h.Library="LIBRARY",h.Cache="CACHE",h.External="EXTERNAL",h.ExternalStorage="EXTERNAL_STORAGE"})(Rn||(Rn={}));var Fa;(function(h){h.UTF8="utf8",h.ASCII="ascii",h.UTF16="utf16"})(Fa||(Fa={}));const Ei=Ko("Filesystem",{web:()=>Promise.resolve().then(()=>t1).then(h=>new h.FilesystemWeb)});Yl("Upload",[{name:"upload",defaultValue:!0,type:"boolean",description:"Upload the data at the end of the experiment?"},{name:"download",defaultValue:!1,type:"boolean",description:"Locally download the data at the end of the experiment?"}]);function zd(h){if(h==null)return"";const d=String(h);return d.includes(",")||d.includes('"')||d.includes(`
105
105
  `)?`"${d.replace(/"/g,'""')}"`:d}function Nu(h){if(!h||h.length===0)return"";const d=new Set;h.forEach(C=>{Object.keys(C).forEach(x=>{d.add(x)})});const c=Array.from(d),p=c.map(C=>zd(C)).join(","),g=h.map(C=>c.map(x=>{const w=C[x];return zd(w)}).join(","));return[p,...g].join(`
106
- `)}const O0={CanvasBlock:h=>{const d=h.responseData;return Array.isArray(d)?d.map(c=>({block:h.name,...c})):[]}},T0=({responseData:h,...d})=>({...d,...Object.entries(h||{}).reduce((c,[p,g])=>({...c,[`data_${p}`]:g}),{})});function I0(h,d,c,p,g){const C=c.flatMap(v=>h.filter(I=>I.name===v).map(I=>{const L=I.type&&p[I.type];return L?L(I):[T0(I)]}));if(!C.some(v=>v&&typeof v=="object"&&!Array.isArray(v)&&Object.keys(v).some(P=>Array.isArray(v[P])))){const v=C.flatMap(P=>Array.isArray(P)?P:[]).map(P=>g?g(P):P);return{filename:d,encoding:"utf8",content:Nu(v)}}const w=new Set;C.forEach(v=>{v&&typeof v=="object"&&!Array.isArray(v)&&Object.keys(v).forEach(P=>{Array.isArray(v[P])&&w.add(P)})});const V=[];for(const v of w){const P=C.flatMap(L=>Array.isArray(L)?L:L&&typeof L=="object"&&L[v]?L[v]:[]).map(L=>g?g(L):L),I=d.replace(/\.csv$/,"");V.push({filename:`${I}_${v}.csv`,encoding:"utf8",content:Nu(P)})}return V.length===1?V[0]:V}const R0=()=>{const h=window.electronAPI;return{directoryExists:async d=>{const c=await h.directoryExists(d);return c.success&&c.exists},createDirectory:async d=>{await h.createDirectory(d)},saveFile:async(d,c,p)=>{await h.saveFile(d,c,p)}}},D0=h=>{const d=c=>h?c?`${h}/${c}`:h:c;return{directoryExists:async c=>{try{if(h)try{await Ei.readdir({path:h,directory:Rn.Documents})}catch{return!1}const p=d(c);return(await Ei.readdir({path:p,directory:Rn.Documents})).files.length>=0}catch{return!1}},createDirectory:async c=>{try{if(h)try{await Ei.mkdir({path:h,directory:Rn.Documents,recursive:!1})}catch{}const p=d(c);await Ei.mkdir({path:p,directory:Rn.Documents,recursive:!0})}catch(p){throw console.error("Error creating directory:",p),p}},saveFile:async(c,p,g)=>{const C=d(g);await Ei.writeFile({path:`${C}/${c}`,data:p,directory:Rn.Documents,encoding:"utf8"})}}},A0=h=>{const d=Jo();switch(d){case"desktop":return{backend:R0(),type:d};case"mobile":return{backend:D0(h),type:d};case"web":return{backend:null,type:d}}},L0=async(h,d)=>{let c=d;if(await h.directoryExists(c)){let p=1;for(c=`${d}_${p}`;await h.directoryExists(c);)p++,c=`${d}_${p}`}return c};function Wd({data:h,next:d,store:c,sessionID:p,generateFiles:g,sessionCSVBuilder:C,trialCSVBuilder:x,uploadRaw:w=!0,autoUpload:V=!1,androidFolderName:v}){const[P,I]=ne.useState("initial"),L=ne.useRef(!1),H=lo("upload",!0,"boolean"),q=lo("download",!1,"boolean"),A=Wy({mutationFn:async k=>await Jy("/data",k),onSuccess:k=>{k.status===200?(I("success"),d({})):I("error")},onError:()=>{I("error")}}),S=ne.useCallback(async k=>{const M=new y0(new Zb);for(const $ of k)await M.add($.filename,new Kb($.content));const J=await M.close(),K=URL.createObjectURL(J),U=document.createElement("a");U.href=K,U.download="study-data.zip",document.body.appendChild(U),U.click(),document.body.removeChild(U),URL.revokeObjectURL(K)},[]),R=ne.useCallback(async()=>{var J,K;if(I("uploading"),L.current)return;L.current=!0;const k=p??Ky(),M=g?g(k,h,c):[];if(w&&M.push({filename:`${k}.raw.json`,content:JSON.stringify(h),encoding:"utf8"}),C){let U={};const $=(K=(J=h==null?void 0:h[0])==null?void 0:J.responseData)==null?void 0:K.params;$&&typeof $=="object"&&$!==null&&(U=Object.entries($).reduce((B,[ee,oe])=>{if(oe&&typeof oe=="object"&&"defaultValue"in oe){const le=oe.value??oe.defaultValue;B[ee]=le}return B},{}));let Q={sessionID:k,userAgent:h[0].responseData.userAgent,...U};if(C.trials&&Array.isArray(C.trials)&&C.trials.length>0)for(const B of C.trials){const ee=h.find(oe=>oe.name===B);ee!=null&&ee.responseData&&typeof ee.responseData=="object"&&ee.responseData!==null&&(Q={...Q,...ee.responseData})}M.push({content:Nu([C.fun?C.fun(Q):Q]),filename:`${k}${C.filename}.csv`,encoding:"utf8"})}if(x)for(const U of x.builders){const $=I0(h,`${k}${U.filename}.csv`,U.trials??[],{...O0,...x.flatteners},U.fun);Array.isArray($)?M.push(...$):M.push($)}try{const U={sessionId:k,files:M.map(B=>({...B,encoding:B.encoding??"utf8"}))};if(q&&await S(M),!H){d({});return}const{backend:$,type:Q}=A0(v);if(Q==="web")A.mutate(U);else if($)try{const B=await L0($,k);await $.createDirectory(B);for(const ee of M)await $.saveFile(ee.filename,ee.content,B);I("success"),d({})}catch(B){console.error(`Error saving files with ${Q}:`,B),I("error")}}catch(U){console.error("Error uploading:",U),I("error")}},[p,g,h,w,q,H,S,d,A]);return ne.useEffect(()=>{V&&!L.current&&R&&R()},[V,R]),ne.useEffect(()=>{P==="error"&&(L.current=!1)},[P]),W.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10",children:[P=="initial"&&!V&&W.jsxs(W.Fragment,{children:[W.jsx("p",{className:"",children:"Thank you for participating! Please click the button below to submit your data."}),W.jsx("button",{onClick:R,className:"mt-8 cursor-pointer bg-white px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"Submit Data"})]}),P=="uploading"&&W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"w-8 h-8 border-4 border-blue-500 border-t-transparent rounded-full animate-spin"}),W.jsx("p",{className:"",children:"Uploading your data..."})]}),P=="success"&&W.jsx(W.Fragment,{}),P=="error"&&W.jsxs(W.Fragment,{children:[W.jsxs("div",{className:"text-red-500 mb-4",children:[W.jsx("p",{className:"",children:"Sorry, there was an error uploading your data."}),W.jsx("p",{children:"Please try again or contact the researcher."})]}),W.jsx("button",{onClick:R,className:"px-4 py-2 cursor-pointer bg-blue-500 text-white rounded-sm hover:bg-blue-600 transition-colors",children:"Try Again"})]})]})}var $d;(function(h){h.Dark="DARK",h.Light="LIGHT",h.Default="DEFAULT"})($d||($d={}));var Gd;(function(h){h.None="NONE",h.Slide="SLIDE",h.Fade="FADE"})(Gd||(Gd={}));const Zd=Ko("StatusBar"),Kd=Ko("ImmersiveMode",{web:()=>Promise.resolve().then(()=>n1).then(h=>new h.ImmersiveModeWeb)});function Jd({content:h,buttonText:d,next:c,data:p,updateStore:g,delayMs:C=0}){const x=W.jsxs("div",{className:"flex flex-col items-center",children:[!!h&&h,!h&&W.jsx("p",{className:"",children:"Please click the Button below to enter Fullscreen mode."})]}),[w,V]=ne.useState(!1),v=ne.useRef(!1),P=ne.useRef(null),I=ne.useCallback(()=>{P.current&&(clearTimeout(P.current),P.current=null)},[]),L=ne.useCallback(()=>{document.removeEventListener("fullscreenchange",q),document.removeEventListener("webkitfullscreenchange",q),document.removeEventListener("mozfullscreenchange",q),document.removeEventListener("MSFullscreenChange",q),I(),v.current=!1},[I]),H=ne.useCallback(()=>{I(),V(!0),P.current=setTimeout(()=>{P.current=null,c({})},C)},[c,C,I]),q=ne.useCallback(()=>{if(!v.current)return;const R=ao();L(),R?H():V(!1)},[H,L]),A=ne.useCallback(()=>{L(),v.current=!0,document.addEventListener("fullscreenchange",q),document.addEventListener("webkitfullscreenchange",q),document.addEventListener("mozfullscreenchange",q),document.addEventListener("MSFullscreenChange",q)},[q,L]),S=ne.useCallback(async()=>{V(!0),L();const R=document.documentElement;if(Jo()==="mobile"&&Ci.getPlatform()==="android"&&(Zd.hide(),Kd.enable()),R.requestFullscreen)try{await R.requestFullscreen(),H();return}catch(k){console.error("Fullscreen request failed:",k);return}R.mozRequestFullScreen?(R.mozRequestFullScreen(),A()):R.webkitRequestFullscreen?(R.webkitRequestFullscreen(),A()):R.msRequestFullscreen?(R.msRequestFullscreen(),A()):console.warn("Fullscreen API is not supported by this browser.")},[H,A,L]);return ne.useEffect(()=>()=>{L()},[L]),w?null:W.jsx(ca,{data:p,updateStore:g,content:x,buttonText:d??"Enter Fullscreen Mode",next:S})}function Yd({next:h,delayMs:d=0}){const c=ne.useRef(!1),p=ne.useRef(null),g=ne.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=null)},[]),C=ne.useCallback(()=>{document.removeEventListener("fullscreenchange",w),document.removeEventListener("webkitfullscreenchange",w),document.removeEventListener("mozfullscreenchange",w),document.removeEventListener("MSFullscreenChange",w),g(),c.current=!1},[g]),x=ne.useCallback(()=>{g(),p.current=setTimeout(()=>{p.current=null,h({})},d)},[h,d,g]),w=ne.useCallback(()=>{if(!c.current)return;const v=ao();C(),v||x()},[x,C]),V=ne.useCallback(()=>{C(),c.current=!0,document.addEventListener("fullscreenchange",w),document.addEventListener("webkitfullscreenchange",w),document.addEventListener("mozfullscreenchange",w),document.addEventListener("MSFullscreenChange",w)},[w,C]);return ne.useEffect(()=>((async()=>{if(!ao()){h({});return}if(Jo()==="mobile"&&Ci.getPlatform()==="android"&&(Zd.show(),Kd.disable()),document.exitFullscreen)try{await document.exitFullscreen(),x();return}catch(P){console.error("Exiting fullscreen failed:",P),h({});return}document.mozCancelFullScreen?(document.mozCancelFullScreen(),V()):document.webkitExitFullscreen?(document.webkitExitFullscreen(),V()):document.msExitFullscreen?(document.msExitFullscreen(),V()):(console.warn("Fullscreen API is not supported by this browser."),h({}))})(),()=>{C()}),[x,V,C]),null}function Xd(h){var d,c,p="";if(typeof h=="string"||typeof h=="number")p+=h;else if(typeof h=="object")if(Array.isArray(h)){var g=h.length;for(d=0;d<g;d++)h[d]&&(c=Xd(h[d]))&&(p&&(p+=" "),p+=c)}else for(c in h)h[c]&&(p&&(p+=" "),p+=c);return p}function Zn(){for(var h,d,c=0,p="",g=arguments.length;c<g;c++)(h=arguments[c])&&(d=Xd(h))&&(p&&(p+=" "),p+=d);return p}const hs=h=>typeof h=="number"&&!isNaN(h),Vi=h=>typeof h=="string",Hr=h=>typeof h=="function",qa=h=>Vi(h)||Hr(h)?h:null,_u=h=>ne.isValidElement(h)||Vi(h)||Hr(h)||hs(h);function eh(h,d,c){c===void 0&&(c=300);const{scrollHeight:p,style:g}=h;requestAnimationFrame(()=>{g.minHeight="initial",g.height=p+"px",g.transition=`all ${c}ms`,requestAnimationFrame(()=>{g.height="0",g.padding="0",g.margin="0",setTimeout(d,c)})})}function gs(h){let{enter:d,exit:c,appendPosition:p=!1,collapse:g=!0,collapseDuration:C=300}=h;return function(x){let{children:w,position:V,preventExitTransition:v,done:P,nodeRef:I,isIn:L,playToast:H}=x;const q=p?`${d}--${V}`:d,A=p?`${c}--${V}`:c,S=ne.useRef(0);return ne.useLayoutEffect(()=>{const R=I.current,k=q.split(" "),M=J=>{J.target===I.current&&(H(),R.removeEventListener("animationend",M),R.removeEventListener("animationcancel",M),S.current===0&&J.type!=="animationcancel"&&R.classList.remove(...k))};R.classList.add(...k),R.addEventListener("animationend",M),R.addEventListener("animationcancel",M)},[]),ne.useEffect(()=>{const R=I.current,k=()=>{R.removeEventListener("animationend",k),g?eh(R,P,C):P()};L||(v?k():(S.current=1,R.className+=` ${A}`,R.addEventListener("animationend",k)))},[L]),ne.createElement(ne.Fragment,null,w)}}function th(h,d){return h!=null?{content:h.content,containerId:h.props.containerId,id:h.props.toastId,theme:h.props.theme,type:h.props.type,data:h.props.data||{},isLoading:h.props.isLoading,icon:h.props.icon,status:d}:{}}const br=new Map;let ms=[];const Fu=new Set,k0=h=>Fu.forEach(d=>d(h)),rh=()=>br.size>0;function nh(h,d){var c;if(d)return!((c=br.get(d))==null||!c.isToastActive(h));let p=!1;return br.forEach(g=>{g.isToastActive(h)&&(p=!0)}),p}function ih(h,d){_u(h)&&(rh()||ms.push({content:h,options:d}),br.forEach(c=>{c.buildToast(h,d)}))}function oh(h,d){br.forEach(c=>{d!=null&&d!=null&&d.containerId?(d==null?void 0:d.containerId)===c.id&&c.toggle(h,d==null?void 0:d.id):c.toggle(h,d==null?void 0:d.id)})}function sh(h){const{subscribe:d,getSnapshot:c,setProps:p}=ne.useRef(function(C){const x=C.containerId||1;return{subscribe(w){const V=function(P,I,L){let H=1,q=0,A=[],S=[],R=[],k=I;const M=new Map,J=new Set,K=()=>{R=Array.from(M.values()),J.forEach(Q=>Q())},U=Q=>{S=Q==null?[]:S.filter(B=>B!==Q),K()},$=Q=>{const{toastId:B,onOpen:ee,updateId:oe,children:le}=Q.props,G=oe==null;Q.staleId&&M.delete(Q.staleId),M.set(B,Q),S=[...S,Q.props.toastId].filter(te=>te!==Q.staleId),K(),L(th(Q,G?"added":"updated")),G&&Hr(ee)&&ee(ne.isValidElement(le)&&le.props)};return{id:P,props:k,observe:Q=>(J.add(Q),()=>J.delete(Q)),toggle:(Q,B)=>{M.forEach(ee=>{B!=null&&B!==ee.props.toastId||Hr(ee.toggle)&&ee.toggle(Q)})},removeToast:U,toasts:M,clearQueue:()=>{q-=A.length,A=[]},buildToast:(Q,B)=>{if((we=>{let{containerId:De,toastId:Ge,updateId:Be}=we;const Ce=De?De!==P:P!==1,He=M.has(Ge)&&Be==null;return Ce||He})(B))return;const{toastId:ee,updateId:oe,data:le,staleId:G,delay:te}=B,X=()=>{U(ee)},N=oe==null;N&&q++;const ce={...k,style:k.toastStyle,key:H++,...Object.fromEntries(Object.entries(B).filter(we=>{let[De,Ge]=we;return Ge!=null})),toastId:ee,updateId:oe,data:le,closeToast:X,isIn:!1,className:qa(B.className||k.toastClassName),bodyClassName:qa(B.bodyClassName||k.bodyClassName),progressClassName:qa(B.progressClassName||k.progressClassName),autoClose:!B.isLoading&&(ge=B.autoClose,Ae=k.autoClose,ge===!1||hs(ge)&&ge>0?ge:Ae),deleteToast(){const we=M.get(ee),{onClose:De,children:Ge}=we.props;Hr(De)&&De(ne.isValidElement(Ge)&&Ge.props),L(th(we,"removed")),M.delete(ee),q--,q<0&&(q=0),A.length>0?$(A.shift()):K()}};var ge,Ae;ce.closeButton=k.closeButton,B.closeButton===!1||_u(B.closeButton)?ce.closeButton=B.closeButton:B.closeButton===!0&&(ce.closeButton=!_u(k.closeButton)||k.closeButton);let fe=Q;ne.isValidElement(Q)&&!Vi(Q.type)?fe=ne.cloneElement(Q,{closeToast:X,toastProps:ce,data:le}):Hr(Q)&&(fe=Q({closeToast:X,toastProps:ce,data:le}));const ke={content:fe,props:ce,staleId:G};k.limit&&k.limit>0&&q>k.limit&&N?A.push(ke):hs(te)?setTimeout(()=>{$(ke)},te):$(ke)},setProps(Q){k=Q},setToggle:(Q,B)=>{M.get(Q).toggle=B},isToastActive:Q=>S.some(B=>B===Q),getSnapshot:()=>R}}(x,C,k0);br.set(x,V);const v=V.observe(w);return ms.forEach(P=>ih(P.content,P.options)),ms=[],()=>{v(),br.delete(x)}},setProps(w){var V;(V=br.get(x))==null||V.setProps(w)},getSnapshot(){var w;return(w=br.get(x))==null?void 0:w.getSnapshot()}}}(h)).current;p(h);const g=ne.useSyncExternalStore(d,c,c);return{getToastToRender:function(C){if(!g)return[];const x=new Map;return h.newestOnTop&&g.reverse(),g.forEach(w=>{const{position:V}=w.props;x.has(V)||x.set(V,[]),x.get(V).push(w)}),Array.from(x,w=>C(w[0],w[1]))},isToastActive:nh,count:g==null?void 0:g.length}}function ah(h){const[d,c]=ne.useState(!1),[p,g]=ne.useState(!1),C=ne.useRef(null),x=ne.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:w,pauseOnHover:V,closeToast:v,onClick:P,closeOnClick:I}=h;var L,H;function q(){c(!0)}function A(){c(!1)}function S(M){const J=C.current;x.canDrag&&J&&(x.didMove=!0,d&&A(),x.delta=h.draggableDirection==="x"?M.clientX-x.start:M.clientY-x.start,x.start!==M.clientX&&(x.canCloseOnClick=!1),J.style.transform=`translate3d(${h.draggableDirection==="x"?`${x.delta}px, var(--y)`:`0, calc(${x.delta}px + var(--y))`},0)`,J.style.opacity=""+(1-Math.abs(x.delta/x.removalDistance)))}function R(){document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",R);const M=C.current;if(x.canDrag&&x.didMove&&M){if(x.canDrag=!1,Math.abs(x.delta)>x.removalDistance)return g(!0),h.closeToast(),void h.collapseAll();M.style.transition="transform 0.2s, opacity 0.2s",M.style.removeProperty("transform"),M.style.removeProperty("opacity")}}(H=br.get((L={id:h.toastId,containerId:h.containerId,fn:c}).containerId||1))==null||H.setToggle(L.id,L.fn),ne.useEffect(()=>{if(h.pauseOnFocusLoss)return document.hasFocus()||A(),window.addEventListener("focus",q),window.addEventListener("blur",A),()=>{window.removeEventListener("focus",q),window.removeEventListener("blur",A)}},[h.pauseOnFocusLoss]);const k={onPointerDown:function(M){if(h.draggable===!0||h.draggable===M.pointerType){x.didMove=!1,document.addEventListener("pointermove",S),document.addEventListener("pointerup",R);const J=C.current;x.canCloseOnClick=!0,x.canDrag=!0,J.style.transition="none",h.draggableDirection==="x"?(x.start=M.clientX,x.removalDistance=J.offsetWidth*(h.draggablePercent/100)):(x.start=M.clientY,x.removalDistance=J.offsetHeight*(h.draggablePercent===80?1.5*h.draggablePercent:h.draggablePercent)/100)}},onPointerUp:function(M){const{top:J,bottom:K,left:U,right:$}=C.current.getBoundingClientRect();M.nativeEvent.type!=="touchend"&&h.pauseOnHover&&M.clientX>=U&&M.clientX<=$&&M.clientY>=J&&M.clientY<=K?A():q()}};return w&&V&&(k.onMouseEnter=A,h.stacked||(k.onMouseLeave=q)),I&&(k.onClick=M=>{P&&P(M),x.canCloseOnClick&&v()}),{playToast:q,pauseToast:A,isRunning:d,preventExitTransition:p,toastRef:C,eventHandlers:k}}function M0(h){let{delay:d,isRunning:c,closeToast:p,type:g="default",hide:C,className:x,style:w,controlledProgress:V,progress:v,rtl:P,isIn:I,theme:L}=h;const H=C||V&&v===0,q={...w,animationDuration:`${d}ms`,animationPlayState:c?"running":"paused"};V&&(q.transform=`scaleX(${v})`);const A=Zn("Toastify__progress-bar",V?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${L}`,`Toastify__progress-bar--${g}`,{"Toastify__progress-bar--rtl":P}),S=Hr(x)?x({rtl:P,type:g,defaultClassName:A}):Zn(A,x),R={[V&&v>=1?"onTransitionEnd":"onAnimationEnd"]:V&&v<1?null:()=>{I&&p()}};return ne.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":H},ne.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${L} Toastify__progress-bar--${g}`}),ne.createElement("div",{role:"progressbar","aria-hidden":H?"true":"false","aria-label":"notification timer",className:S,style:q,...R}))}let N0=1;const lh=()=>""+N0++;function _0(h){return h&&(Vi(h.toastId)||hs(h.toastId))?h.toastId:lh()}function ys(h,d){return ih(h,d),d.toastId}function Ba(h,d){return{...d,type:d&&d.type||h,toastId:_0(d)}}function Ha(h){return(d,c)=>ys(d,Ba(h,c))}function Vt(h,d){return ys(h,Ba("default",d))}Vt.loading=(h,d)=>ys(h,Ba("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...d})),Vt.promise=function(h,d,c){let p,{pending:g,error:C,success:x}=d;g&&(p=Vi(g)?Vt.loading(g,c):Vt.loading(g.render,{...c,...g}));const w={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},V=(P,I,L)=>{if(I==null)return void Vt.dismiss(p);const H={type:P,...w,...c,data:L},q=Vi(I)?{render:I}:I;return p?Vt.update(p,{...H,...q}):Vt(q.render,{...H,...q}),L},v=Hr(h)?h():h;return v.then(P=>V("success",x,P)).catch(P=>V("error",C,P)),v},Vt.success=Ha("success"),Vt.info=Ha("info"),Vt.error=Ha("error"),Vt.warning=Ha("warning"),Vt.warn=Vt.warning,Vt.dark=(h,d)=>ys(h,Ba("default",{theme:"dark",...d})),Vt.dismiss=function(h){(function(d){var c;if(rh()){if(d==null||Vi(c=d)||hs(c))br.forEach(p=>{p.removeToast(d)});else if(d&&("containerId"in d||"id"in d)){const p=br.get(d.containerId);p?p.removeToast(d.id):br.forEach(g=>{g.removeToast(d.id)})}}else ms=ms.filter(p=>d!=null&&p.options.toastId!==d)})(h)},Vt.clearWaitingQueue=function(h){h===void 0&&(h={}),br.forEach(d=>{!d.props.limit||h.containerId&&d.id!==h.containerId||d.clearQueue()})},Vt.isActive=nh,Vt.update=function(h,d){d===void 0&&(d={});const c=((p,g)=>{var C;let{containerId:x}=g;return(C=br.get(x||1))==null?void 0:C.toasts.get(p)})(h,d);if(c){const{props:p,content:g}=c,C={delay:100,...p,...d,toastId:d.toastId||h,updateId:lh()};C.toastId!==h&&(C.staleId=h);const x=C.render||g;delete C.render,ys(x,C)}},Vt.done=h=>{Vt.update(h,{progress:1})},Vt.onChange=function(h){return Fu.add(h),()=>{Fu.delete(h)}},Vt.play=h=>oh(!0,h),Vt.pause=h=>oh(!1,h);const F0=typeof window<"u"?ne.useLayoutEffect:ne.useEffect,Qa=h=>{let{theme:d,type:c,isLoading:p,...g}=h;return ne.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:d==="colored"?"currentColor":`var(--toastify-icon-color-${c})`,...g})},Ua={info:function(h){return ne.createElement(Qa,{...h},ne.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(h){return ne.createElement(Qa,{...h},ne.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(h){return ne.createElement(Qa,{...h},ne.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(h){return ne.createElement(Qa,{...h},ne.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ne.createElement("div",{className:"Toastify__spinner"})}},q0=h=>{const{isRunning:d,preventExitTransition:c,toastRef:p,eventHandlers:g,playToast:C}=ah(h),{closeButton:x,children:w,autoClose:V,onClick:v,type:P,hideProgressBar:I,closeToast:L,transition:H,position:q,className:A,style:S,bodyClassName:R,bodyStyle:k,progressClassName:M,progressStyle:J,updateId:K,role:U,progress:$,rtl:Q,toastId:B,deleteToast:ee,isIn:oe,isLoading:le,closeOnClick:G,theme:te}=h,X=Zn("Toastify__toast",`Toastify__toast-theme--${te}`,`Toastify__toast--${P}`,{"Toastify__toast--rtl":Q},{"Toastify__toast--close-on-click":G}),N=Hr(A)?A({rtl:Q,position:q,type:P,defaultClassName:X}):Zn(X,A),ce=function(ke){let{theme:we,type:De,isLoading:Ge,icon:Be}=ke,Ce=null;const He={theme:we,type:De};return Be===!1||(Hr(Be)?Ce=Be({...He,isLoading:Ge}):ne.isValidElement(Be)?Ce=ne.cloneElement(Be,He):Ge?Ce=Ua.spinner():(st=>st in Ua)(De)&&(Ce=Ua[De](He))),Ce}(h),ge=!!$||!V,Ae={closeToast:L,type:P,theme:te};let fe=null;return x===!1||(fe=Hr(x)?x(Ae):ne.isValidElement(x)?ne.cloneElement(x,Ae):function(ke){let{closeToast:we,theme:De,ariaLabel:Ge="close"}=ke;return ne.createElement("button",{className:`Toastify__close-button Toastify__close-button--${De}`,type:"button",onClick:Be=>{Be.stopPropagation(),we(Be)},"aria-label":Ge},ne.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ne.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Ae)),ne.createElement(H,{isIn:oe,done:ee,position:q,preventExitTransition:c,nodeRef:p,playToast:C},ne.createElement("div",{id:B,onClick:v,"data-in":oe,className:N,...g,style:S,ref:p},ne.createElement("div",{...oe&&{role:U},className:Hr(R)?R({type:P}):Zn("Toastify__toast-body",R),style:k},ce!=null&&ne.createElement("div",{className:Zn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!le})},ce),ne.createElement("div",null,w)),fe,ne.createElement(M0,{...K&&!ge?{key:`pb-${K}`}:{},rtl:Q,theme:te,delay:V,isRunning:d,isIn:oe,closeToast:L,hide:I,type:P,style:J,className:M,controlledProgress:ge,progress:$||0})))},za=function(h,d){return d===void 0&&(d=!1),{enter:`Toastify--animate Toastify__${h}-enter`,exit:`Toastify--animate Toastify__${h}-exit`,appendPosition:d}},uh=gs(za("bounce",!0)),B0=gs(za("slide",!0)),H0=gs(za("zoom")),Q0=gs(za("flip")),U0={position:"top-right",transition:uh,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function ch(h){let d={...U0,...h};const c=h.stacked,[p,g]=ne.useState(!0),C=ne.useRef(null),{getToastToRender:x,isToastActive:w,count:V}=sh(d),{className:v,style:P,rtl:I,containerId:L}=d;function H(A){const S=Zn("Toastify__toast-container",`Toastify__toast-container--${A}`,{"Toastify__toast-container--rtl":I});return Hr(v)?v({position:A,rtl:I,defaultClassName:S}):Zn(S,qa(v))}function q(){c&&(g(!0),Vt.play())}return F0(()=>{if(c){var A;const S=C.current.querySelectorAll('[data-in="true"]'),R=12,k=(A=d.position)==null?void 0:A.includes("top");let M=0,J=0;Array.from(S).reverse().forEach((K,U)=>{const $=K;$.classList.add("Toastify__toast--stacked"),U>0&&($.dataset.collapsed=`${p}`),$.dataset.pos||($.dataset.pos=k?"top":"bot");const Q=M*(p?.2:1)+(p?0:R*U);$.style.setProperty("--y",`${k?Q:-1*Q}px`),$.style.setProperty("--g",`${R}`),$.style.setProperty("--s",""+(1-(p?J:0))),M+=$.offsetHeight,J+=.025})}},[p,V,c]),ne.createElement("div",{ref:C,className:"Toastify",id:L,onMouseEnter:()=>{c&&(g(!1),Vt.pause())},onMouseLeave:q},x((A,S)=>{const R=S.length?{...P}:{...P,pointerEvents:"none"};return ne.createElement("div",{className:H(A),style:R,key:`container-${A}`},S.map(k=>{let{content:M,props:J}=k;return ne.createElement(q0,{...J,stacked:c,collapseAll:q,isIn:w(J.toastId,J.containerId),style:J.style,key:`toast-${J.key}`},M)}))}))}const z0=({paramRegistry:h,timelineRepresentation:d})=>{const[c,p]=ne.useState({}),[g,C]=ne.useState([]),[x,w]=ne.useState(""),[V,v]=ne.useState("Copy URL"),[P,I]=ne.useState(!1),[L,H]=ne.useState(!1),[q,A]=ne.useState([]),S=ne.useRef(null),R=[...h].filter(G=>G.name!=="includeSubset"&&G.name!=="excludeSubset").sort((G,te)=>G.name.localeCompare(te.name));ne.useEffect(()=>{const G=new URLSearchParams(window.location.search),te={},X=[];let N=[],ce=!1;const ge=G.get("includeSubset"),Ae=G.get("excludeSubset"),fe=G.get("_b");if(fe)try{const De=atob(fe),Ge=JSON.parse(De);Ge.excludeSubset?(ce=!0,N=Ge.excludeSubset.split(",")):Ge.includeSubset&&(ce=!1,N=Ge.includeSubset.split(","))}catch{Ae?(ce=!0,N=Ae.split(",")):ge&&(ce=!1,N=ge.split(","))}else Ae?(ce=!0,N=Ae.split(",")):ge&&(ce=!1,N=ge.split(","));H(ce),Ae||ge?A(N):d.length>0&&A(ce?[]:Array.from({length:d.length},(De,Ge)=>(Ge+1).toString()));const ke=G.get("_b");if(ke)try{const De=atob(ke),Ge=JSON.parse(De),Be=h.map(Ce=>Ce.name);Object.entries(Ge).forEach(([Ce,He])=>{Be.includes(Ce)?te[Ce]=String(He):Ce!=="_b"&&X.push({name:Ce,value:typeof He=="object"?JSON.stringify(He):String(He),type:typeof He=="boolean"?"boolean":typeof He=="number"?"number":Array.isArray(He)?"array":typeof He=="object"?"json":"string"})}),h.forEach(Ce=>{Ce.name in te||(Ce.type==="boolean"&&Ce.defaultValue!==void 0?te[Ce.name]=String(Ce.defaultValue):te[Ce.name]="")}),I(!0)}catch{we(G)}else we(G);function we(De){h.forEach(Be=>{const Ce=De.get(Be.name);Ce!==null?te[Be.name]=Ce:Be.type==="boolean"&&Be.defaultValue!==void 0&&(te[Be.name]=String(Be.defaultValue))});const Ge=h.map(Be=>Be.name);De.forEach((Be,Ce)=>{if(!Ge.includes(Ce)&&Ce!=="_b"){let He="string";if(Be==="true"||Be==="false")He="boolean";else if(!isNaN(Number(Be)))He="number";else try{const st=JSON.parse(Be);He=Array.isArray(st)?"array":"json"}catch{}X.push({name:Ce,value:Be,type:He})}})}p(te),C(X)},[h]),ne.useEffect(()=>{const G=window.location.pathname.replace(/\/settings$/,"");let te="";const X={...c};if(q.length>0?L?(X.excludeSubset=q.sort().join(","),delete X.includeSubset):q.length!=d.length&&(X.includeSubset=q.sort().join(","),delete X.excludeSubset):(delete X.includeSubset,delete X.excludeSubset),g.forEach(ce=>{ce.name&&ce.value!==""&&ce.name!=="includeSubset"&&ce.name!=="excludeSubset"&&(X[ce.name]=ce.value)}),P){const ce={};Object.entries(X).forEach(([fe,ke])=>{if(ke!==""){const we=h.find(Be=>Be.name===fe),De=g.find(Be=>Be.name===fe),Ge=(we==null?void 0:we.type)||(De==null?void 0:De.type)||"string";if(Ge==="boolean"&&(we==null?void 0:we.defaultValue)!==void 0&&String(we.defaultValue)===ke)return;switch(Ge){case"number":ce[fe]=Number(ke);break;case"boolean":ce[fe]=ke==="true";break;case"array":case"json":try{ce[fe]=JSON.parse(ke)}catch{ce[fe]=ke}break;default:ce[fe]=ke}}});const ge=JSON.stringify(ce);te=`?_b=${btoa(ge)}`}else{const ce=new URLSearchParams;Object.entries(X).forEach(([ge,Ae])=>{if(Ae!==""){const fe=h.find(ke=>ke.name===ge);if((fe==null?void 0:fe.type)==="boolean"&&fe.defaultValue!==void 0&&String(fe.defaultValue)===Ae)return;ce.set(ge,String(Ae))}}),te=ce.toString()?`?${ce.toString()}`:""}const N=`${window.location.origin}${G}${te}`;w(N)},[c,g,P,h,q,L]);const k=(G,te)=>{p(X=>({...X,[G]:te}))},M=(G,te,X)=>{C(N=>{const ce=[...N];return ce[G]={...ce[G],[te]:X},ce})},J=G=>{const te=`${G+1}`;A(X=>X.includes(te)?X.filter(ce=>ce!==te):[...X,te])},K=()=>{H(G=>!G)},U=()=>{C(G=>[...G,{name:"",value:"",type:"string"}])},$=g.filter(G=>G.name!=="includeSubset"&&G.name!=="excludeSubset"),Q=G=>{C(te=>te.filter((X,N)=>N!==G))},B=()=>{S.current&&(S.current.select(),document.execCommand("copy"),v("Copied!"),setTimeout(()=>v("Copy URL"),2e3))},ee=()=>{I(!P)},oe=G=>{const{name:te,type:X,defaultValue:N}=G;if(te==="includeSubset"||te==="excludeSubset")return null;const ce=c[te]||"";switch(X){case"boolean":return W.jsxs(W.Fragment,{children:[W.jsx("button",{onClick:()=>k(te,ce==="true"?"false":"true"),className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${ce==="true"?"bg-blue-600":"bg-gray-200"}`,role:"switch","aria-checked":ce==="true",children:W.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${ce==="true"?"translate-x-5":"translate-x-0"}`})}),W.jsx("span",{className:"ml-4 text-gray-500",children:ce==="true"?"True":"False"})]});case"number":return W.jsx("input",{type:"number",className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:ce,onChange:ge=>k(te,ge.target.value),placeholder:N!==void 0?`Default: ${N}`:"Enter number..."});case"array":case"json":return W.jsx("textarea",{className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:ce,onChange:ge=>k(te,ge.target.value),placeholder:X==="array"?"Enter comma-separated values or JSON array":"Enter JSON object",rows:3});case"string":default:return W.jsx("input",{type:"text",className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:ce,onChange:ge=>k(te,ge.target.value),placeholder:N!==void 0&&N!==""?`Default: ${N}`:"Enter value..."})}},le=(G,te)=>G.name==="includeSubset"||G.name==="excludeSubset"?null:W.jsxs("div",{className:"grid grid-cols-12 gap-2 items-center mb-2",children:[W.jsx("div",{className:"col-span-3",children:W.jsx("input",{type:"text",className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:G.name,onChange:X=>M(te,"name",X.target.value),placeholder:"Parameter name"})}),W.jsx("div",{className:"col-span-2",children:W.jsxs("select",{className:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md",value:G.type,onChange:X=>M(te,"type",X.target.value),children:[W.jsx("option",{value:"string",children:"String"}),W.jsx("option",{value:"number",children:"Number"}),W.jsx("option",{value:"boolean",children:"Boolean"}),W.jsx("option",{value:"array",children:"Array"}),W.jsx("option",{value:"json",children:"JSON"})]})}),W.jsx("div",{className:"col-span-6",children:G.type==="boolean"?W.jsx(W.Fragment,{children:W.jsx("button",{onClick:()=>M(te,"value",G.value==="true"?"false":"true"),className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${G.value==="true"?"bg-blue-600":"bg-gray-200"}`,role:"switch","aria-checked":G.value==="true",children:W.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${G.value==="true"?"translate-x-5":"translate-x-0"}`})})}):G.type==="array"||G.type==="json"?W.jsx("textarea",{className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:G.value,onChange:X=>M(te,"value",X.target.value),placeholder:G.type==="array"?"Enter JSON array [1,2,3]":'Enter JSON object {"key":"value"}',rows:1}):G.type==="number"?W.jsx("input",{type:"number",className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:G.value,onChange:X=>M(te,"value",X.target.value),placeholder:"Enter number..."}):W.jsx("input",{type:"text",className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:G.value,onChange:X=>M(te,"value",X.target.value),placeholder:"Enter value..."})}),W.jsx("div",{className:"col-span-1",children:W.jsx("button",{onClick:()=>Q(te),className:"inline-flex cursor-pointer items-center justify-center p-2 border border-transparent rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500","aria-label":"Remove parameter",children:W.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:W.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})})]});return W.jsxs("div",{className:"max-w-4xl mx-auto p-6",children:[W.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Experiment Parameters"}),W.jsx("p",{className:"text-gray-700 mb-6",children:"Configure the experiment by setting parameter values below. Fields left empty will be assigned their default value. Once configured, you can copy the URL to run the experiment with these settings."}),W.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-md mb-8",children:[W.jsxs("div",{className:"px-4 py-5 border-b border-gray-200 sm:px-6",children:[W.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Registered Parameters"}),W.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Parameters defined in the experiment configuration."})]}),W.jsx("ul",{className:"divide-y divide-gray-200",children:R.map(G=>W.jsx("li",{className:"px-4 py-4 sm:px-6",children:W.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[W.jsx("div",{className:"col-span-2",children:W.jsxs("div",{className:"flex flex-col h-full",children:[W.jsxs("div",{className:"flex items-center",children:[W.jsx("label",{className:"text-base font-medium text-gray-900",children:G.name}),W.jsx("span",{className:"ml-2 inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-medium bg-gray-100 text-gray-600",children:G.type})]}),G.description&&W.jsx("p",{className:"mt-1 text-sm text-gray-500 flex-grow",children:G.description}),G.defaultValue!==void 0&&W.jsxs("p",{className:"mt-auto pt-2 text-xs text-gray-500",children:["Default: ",W.jsxs("code",{children:[" ",JSON.stringify(G.defaultValue)]})]})]})}),W.jsx("div",{className:"col-span-1 flex items-center",children:oe(G)})]})},G.name))})]}),W.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-md mb-8",children:[W.jsx("div",{className:"px-4 py-5 border-b border-gray-200 sm:px-6",children:W.jsxs("div",{className:"flex justify-between items-center",children:[W.jsxs("div",{children:[W.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Custom Parameters"}),W.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Add any additional parameters to be stored in the data for this run."})]}),W.jsxs("button",{onClick:U,className:"inline-flex cursor-pointer items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:[W.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"-ml-1 mr-2 h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:W.jsx("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})}),"Add Parameter"]})]})}),W.jsx("div",{className:"px-4 py-5 sm:px-6",children:$.length===0?W.jsx("p",{className:"text-sm text-gray-500 italic",children:'No custom parameters added. Click "Add Parameter" to create one.'}):W.jsxs("div",{children:[W.jsxs("div",{className:"grid grid-cols-12 gap-2 mb-2",children:[W.jsx("div",{className:"col-span-3",children:W.jsx("label",{className:"block text-xs font-medium text-gray-500",children:"PARAMETER NAME"})}),W.jsx("div",{className:"col-span-2",children:W.jsx("label",{className:"block text-xs font-medium text-gray-500",children:"TYPE"})}),W.jsx("div",{className:"col-span-6",children:W.jsx("label",{className:"block text-xs font-medium text-gray-500",children:"VALUE"})}),W.jsx("div",{className:"col-span-1"})]}),$.map((G,te)=>W.jsx("div",{children:le(G,te)},te))]})})]}),d.length>0&&W.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-md mb-8",children:[W.jsx("div",{className:"px-4 py-5 border-b border-gray-200 sm:px-6",children:W.jsxs("div",{className:"flex justify-between items-center",children:[W.jsxs("div",{children:[W.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Trial Selection"}),W.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Select which trials to include or exclude from the experiment."})]}),W.jsxs("div",{className:"flex items-center",children:[W.jsx("button",{onClick:K,className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${L?"bg-red-600":"bg-green-600"}`,role:"switch","aria-checked":L,children:W.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${L?"translate-x-5":"translate-x-0"}`})}),W.jsx("span",{className:"ml-2 text-sm text-gray-600",children:L?"Exclude mode":"Include mode"})]})]})}),W.jsxs("div",{className:"px-4 py-5 sm:px-6",children:[W.jsx("p",{className:"mb-4 text-sm font-medium text-gray-500",children:L?"Check trials you want to EXCLUDE from the experiment":"Check trials you want to INCLUDE in the experiment"}),W.jsx("div",{className:"border border-gray-200 rounded-md overflow-hidden",children:W.jsx("ul",{className:"divide-y divide-gray-200",children:d.map((G,te)=>W.jsx("li",{className:"cursor-pointer px-4 py-3 hover:bg-gray-50",onClick:X=>{X.target.type!=="checkbox"&&!X.target.closest("label")&&J(te)},children:W.jsx("div",{className:"flex items-center",children:W.jsxs("div",{className:"flex items-center flex-grow",children:[W.jsx("input",{id:`trial-${te}`,type:"checkbox",className:"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded cursor-pointer",checked:q.includes(`${te+1}`),onChange:()=>J(te)}),W.jsxs("label",{htmlFor:`trial-${te}`,className:"ml-3 flex-grow flex items-center cursor-pointer",children:[W.jsxs("div",{className:"w-8 text-center text-xs text-gray-500 font-medium",children:["#",te+1]}),W.jsx("div",{className:"flex-grow",children:G.name?W.jsx("span",{className:"font-medium text-gray-900",children:G.name}):W.jsx("span",{className:"font-medium text-gray-500",children:G.type})}),W.jsx("div",{className:"ml-2",children:W.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800",children:G.type})})]})]})})},te))})})]})]}),W.jsxs("div",{className:"bg-white shadow sm:rounded-md p-6 mb-8",children:[W.jsxs("div",{className:"flex justify-between items-center mb-4",children:[W.jsx("h2",{className:"text-lg font-medium",children:"Generated URL"}),W.jsxs("div",{className:"flex items-center",children:[W.jsx("button",{onClick:ee,className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${P?"bg-blue-600":"bg-gray-200"}`,role:"switch","aria-checked":P,children:W.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${P?"translate-x-5":"translate-x-0"}`})}),W.jsx("span",{className:"ml-2 text-sm text-gray-600",children:P?"Base64 Encoded":"Plain Parameters"})]})]}),W.jsxs("div",{className:"flex flex-col md:flex-row gap-3",children:[W.jsx("input",{ref:S,type:"text",className:"flex-grow px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:x,readOnly:!0}),W.jsx("button",{onClick:B,className:"inline-flex cursor-pointer justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:V})]}),P&&W.jsxs("p",{className:"mt-4 text-sm text-gray-600",children:[W.jsx("span",{className:"font-medium",children:"Note:"}),' Base64 encoding combines all parameters into a single "_b" parameter, creating shorter URLs that hide parameter details.']})]}),W.jsx("div",{className:"flex justify-center",children:W.jsx("a",{href:x,className:"inline-flex justify-center py-4 px-5 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",children:"Launch Experiment with these Settings"})})]})},W0=new qy;function $0({children:h,disableSettings:d}){return window.location.pathname.endsWith("/settings")&&!d?W.jsx(z0,{paramRegistry:ua.getRegistry(),timelineRepresentation:ua.getTimelineRepresentation()}):W.jsxs(Qy,{client:W0,children:[h,W.jsx(ch,{position:"top-center",autoClose:3e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!1,pauseOnHover:!0,theme:"light",toastClassName:()=>"relative flex p-4 min-h-10 rounded-none justify-between overflow-hidden cursor-pointer border-2 border-black shadow-[2px_2px_0px_rgba(0,0,0,1)] bg-white",bodyClassName:"text-black font-sans"})]})}function fh(h){return`user_${h}`}function ph(h){const d=[],c={};let p=0;function g(V){return`${V}_auto_${p++}`}function C(V){return(v,P)=>V(P,v)}function x(V){return(v,P)=>{const I=V(P,v);return typeof I=="object"&&I!==null?{...v,...I}:(console.warn("Store update function did not return an object. Store remains unchanged.",{data:P,store:v}),v)}}function w(V){for(const v of V){let P=!1;if(typeof v=="object"&&v!==null&&"type"in v)switch(v.type){case"MARKER":{const L=v;c[fh(L.id)]=d.length,P=!0;break}case"IF_GOTO":{const L=v,H=C(L.cond);d.push({type:"IfGoto",cond:H,marker:fh(L.marker)}),P=!0;break}case"UPDATE_STORE":{const H=x(v.fun);d.push({type:"UpdateStore",fun:H}),P=!0;break}case"IF_BLOCK":{const L=v,H=g("if_end"),q=C(L.cond);d.push({type:"IfGoto",cond:(A,S)=>!q(A,S),marker:H}),w(L.timeline),c[H]=d.length,P=!0;break}case"WHILE_BLOCK":{const L=v,H=g("while_start"),q=g("while_end"),A=C(L.cond);c[H]=d.length,d.push({type:"IfGoto",cond:(S,R)=>!A(S,R),marker:q}),w(L.timeline),d.push({type:"IfGoto",cond:()=>!0,marker:H}),c[q]=d.length,P=!0;break}}P||d.push({type:"ExecuteContent",content:v})}}return w(h),{instructions:d,markers:c}}function dh({next:h}){const[d,c]=ne.useState("checking");return ne.useEffect(()=>{if(d!=="checking")return;(async()=>{if(Jo()!=="mobile"||Ci.getPlatform()!=="android"){h({});return}try{await Ei.writeFile({path:"permission_check.txt",data:"Testing permissions",directory:Rn.Documents,encoding:Fa.UTF8});try{await Ei.deleteFile({path:"permission_check.txt",directory:Rn.Documents})}catch(g){console.log("Cleanup error:",g)}c("granted"),h({})}catch(g){console.error("Permission denied or error:",g),c("denied")}})()},[h,d]),d==="checking"?null:W.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10",children:[W.jsx("p",{children:"Storage permission is required to save your data."}),W.jsx("p",{children:"Please grant permission when prompted."}),W.jsxs("p",{children:['If there is no popup, go to "Settings" ',">",' "Apps" ',">",' "Name of the App" ',">",' "Permissions" ',">",' "Storage" ',">",' "Allow"']}),W.jsx("button",{onClick:()=>c("checking"),className:"mt-8 bg-white px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"Try Again"})]})}function G0(h){return typeof h=="function"}function Z0(h){return typeof h=="object"&&h!==null&&typeof h.draw=="function"}function hh({next:h,updateStore:d,timeline:c,width:p,height:g,store:C,styleCanvas:x,initCanvas:w}){const{instructions:V,markers:v}=ne.useMemo(()=>ph(c),[c]),P=ne.useRef(0),I=ne.useRef(0),L=ne.useRef(!0),H=ne.useRef(null),q=ne.useRef(null),A=ne.useRef([]),S=ne.useRef(C??{}),R=ne.useRef(null),k=ne.useRef(0),M=ne.useRef(null);ne.useEffect(()=>{const le=S.current._reactiveScreenRefreshRate,G=typeof le=="number"&&le>=20&&le<=300;M.current=G?1e3/le:null},[C]);const J=ne.useCallback(le=>{if(le.type!=="ExecuteContent")return null;const G=le.content;if(G0(G))try{return G(A.current,S.current)}catch(te){return console.error("Error executing dynamic canvas slide generator:",te),null}else if(Z0(G))return G;return console.warn("ExecuteContent instruction content is not a valid CanvasSlide or Generator:",G),null},[]),K=ne.useCallback(()=>{const le=q.current;if(!le)return{};const G=le.getContext("2d");if(!G)return{};const te=window.devicePixelRatio||1,X=le.width/te,N=le.height/te;return{ctx:G,canvasWidth:X,canvasHeight:N}},[]),U=ne.useCallback(()=>{const{ctx:le,canvasWidth:G,canvasHeight:te}=K();le&&(le.fillStyle="white",le.fillRect(0,0,G,te),L.current=!1)},[K]),$=ne.useCallback(le=>{const{ctx:G,canvasWidth:te,canvasHeight:X}=K();if(G){if(G.fillStyle="white",G.fillRect(0,0,te,X),x)try{x(G,te,X)}catch(N){console.error("Error during styleCanvas function:",N)}else G.fillStyle="black";try{le.draw(G,te,X)}catch(N){console.error("Error during slide draw function:",N)}I.current=or(),L.current=!0,H.current=null,k.current+=1}},[K]);let Q;const B=ne.useCallback(()=>{const le=or(),G=P.current;if(G<0||G>=V.length){R.current&&cancelAnimationFrame(R.current),R.current=null;return}const te=V[G],X=J(te);if(!X){R.current&&cancelAnimationFrame(R.current),R.current=null;return}const N=X.displayDuration??1/0,ce=X.responseTimeLimit??1/0,ge=X.allowedKeys??!1,Ae=ge===!1||Array.isArray(ge)&&ge.length===0;let fe=!1;const ke=le-I.current+(M.current!==null?M.current*.5:0);L.current&&N!==1/0&&ke>=N&&(U(),(Ae||ce===1/0)&&(fe=!0)),!fe&&ce!==1/0&&ke>=ce&&(fe=!0,L.current&&N!==1/0&&ke<N&&U()),fe?Q():L.current&&N!==1/0&&ke<N||ce!==1/0&&ke<ce?R.current=requestAnimationFrame(B):(R.current&&cancelAnimationFrame(R.current),R.current=null)},[V,J,U]),ee=ne.useCallback(()=>{let le=!1;for(R.current&&cancelAnimationFrame(R.current),R.current=null;!le&&P.current<V.length;){const G=V[P.current];switch(G.type){case"IfGoto":if(G.cond(S.current,A.current)){const te=v[G.marker];te!==void 0?P.current=te:(console.error(`Marker ${G.marker} not found`),P.current++)}else P.current++;continue;case"UpdateStore":{S.current={...S.current,...G.fun(S.current,A.current)},P.current++;continue}case"ExecuteContent":{if(le=!0,q.current){const te=J(G);if(te){$(te);const X=te.displayDuration??1/0,N=te.responseTimeLimit??1/0;(X!==1/0||N!==1/0)&&(R.current=requestAnimationFrame(B))}else{console.error("Failed to resolve slide content during control flow:",G),P.current++,le=!1;continue}}else{console.error("Canvas element not found during control flow.");return}break}default:console.warn("Unknown instruction type during control flow:",G),P.current++;continue}}!le&&P.current>=V.length&&(R.current&&cancelAnimationFrame(R.current),R.current=null,d(S.current),h(A.current))},[V,v,J,$,B,h]);Q=ne.useCallback(()=>{const le=H.current,G=or();R.current&&cancelAnimationFrame(R.current),R.current=null;const te=P.current;if(te>=V.length||V[te].type!=="ExecuteContent"){P.current++,ee();return}const X=V[te],N=J(X);if(N&&!N.ignoreData){let ce={index:P.current,trialNumber:k.current-1,start:I.current,end:G,duration:G-I.current,key:le?le.key:null,reactionTime:le?le.reactionTime:null};const ge=typeof N.metadata=="function"?N.metadata(A.current,S.current):N.metadata;N.nestMetadata?ce={...ce,metadata:ge}:ce={...ge,...ce},A.current.push(ce)}P.current++,H.current=null,ee()},[V,J,ee]);const oe=ne.useCallback(le=>{const G=or(),te=P.current;if(te>=V.length||!L.current)return;const X=V[te];if(X.type!=="ExecuteContent")return;const N=J(X);if(!N)return;const ce=N.responseTimeLimit??1/0,ge=G-I.current<ce,Ae=N.allowedKeys??!1;if((Ae===!0||Array.isArray(Ae)&&Ae.includes(le.key))&&ge){const ke=N.endSlideOnResponse??!0,we=N.hideOnResponse??!1,De=N.ignoreData??!1;(!H.current||!ke)&&(!H.current&&!De&&(H.current={key:le.key,time:G,reactionTime:G-I.current}),we&&U(),ke&&Q())}},[V,J,Q,U]);return ne.useEffect(()=>{const le=q.current;if(!le)return;const G=ao()?window.screen.width:window.innerWidth,te=ao()?window.screen.height:window.innerHeight;let X,N;const ce=(Ce,He)=>{if(typeof Ce=="number")return Ce;if(typeof Ce=="string"&&Ce.includes("%")){const st=parseFloat(Ce);if(!isNaN(st))return He*st/100}return null};let ge=ce(p,G),Ae=ce(g,te);const fe=typeof p=="string"&&/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(p),ke=typeof g=="string"&&/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(g);if(ge!==null&&Ae!==null)X=ge,N=Ae;else if(ge!==null&&Ae===null&&!ke)X=ge,N=ge;else if(Ae!==null&&ge===null&&!fe)N=Ae,X=Ae;else if(ge===null&&Ae===null&&!fe&&!ke){const Ce=Math.min(G,te);X=Ce,N=Ce}else{let Ce=ge,He=Ae;if(ke&&Ce===null&&(Ce=He??te),fe&&He===null&&(He=Ce??G),Ce===null&&He===null){const st=Math.min(G,te);Ce=st,He=st}else Ce===null?Ce=He:He===null&&(He=Ce);X=Ce,N=He??0}if(fe&&!ke)try{const Ce=p.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);Ce&&(X=N/parseFloat(Ce[2])*parseFloat(Ce[1]))}catch{console.error("Invalid width ratio string:",p)}else if(ke&&!fe)try{const Ce=g.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);Ce&&(N=X/parseFloat(Ce[1])*parseFloat(Ce[2]))}catch{console.error("Invalid height ratio string:",g)}else if(fe&&ke){console.warn(`Both width (${p}) and height (${g}) are ratios. Prioritizing width.`);try{const Ce=p.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);if(Ce){X=te/parseFloat(Ce[2])*parseFloat(Ce[1]);const He=g.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);He?N=X/parseFloat(He[1])*parseFloat(He[2]):N=X}else{const He=Math.min(G,te);X=He,N=He}}catch(Ce){console.error("Error parsing ratios:",Ce);const He=Math.min(G,te);X=He,N=He}}const we=window.devicePixelRatio||1,De=Math.round(X),Ge=Math.round(N);le.width=Math.round(De*we),le.height=Math.round(Ge*we),le.style.width=De+"px",le.style.height=Ge+"px";const Be=le.getContext("2d");if(Be&&Be.scale(we,we),w&&Be)try{w(Be,De,Ge)}catch(Ce){console.error("Error during canvas initialization:",Ce)}return window.addEventListener("keydown",oe),ee(),()=>{window.removeEventListener("keydown",oe),R.current&&cancelAnimationFrame(R.current)}},[c,p,g,oe,ee]),W.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:W.jsx("canvas",{ref:q})})}function gh({check:h,content:d=W.jsx("div",{children:"Your device doesn't meet the requirements for this experiment."}),data:c,store:p,updateStore:g,next:C}){const[x,w]=ne.useState(!1),V=ne.useRef(!1);return ne.useEffect(()=>{if(V.current)return;(async()=>{const P=window.innerWidth,I=window.innerHeight,L=window.screen.width,H=window.screen.height,q=navigator.userAgent;let A="Unknown",S="Unknown";if(q.indexOf("Chrome")>-1){A="Chrome";const B=q.match(/Chrome\/(\d+\.\d+)/);S=B?B[1]:"Unknown"}else if(q.indexOf("Firefox")>-1){A="Firefox";const B=q.match(/Firefox\/(\d+\.\d+)/);S=B?B[1]:"Unknown"}else if(q.indexOf("Safari")>-1){A="Safari";const B=q.match(/Version\/(\d+\.\d+)/);S=B?B[1]:"Unknown"}else if(q.indexOf("Edge")>-1){A="Edge";const B=q.match(/Edge\/(\d+\.\d+)/);S=B?B[1]:"Unknown"}else if(q.indexOf("MSIE")>-1||q.indexOf("Trident/")>-1){A="Internet Explorer";const B=q.match(/(?:MSIE |rv:)(\d+\.\d+)/);S=B?B[1]:"Unknown"}const R=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(q);let k="Unknown";/Windows/.test(q)?k="Windows":/Macintosh|Mac OS X/.test(q)?k="MacOS":/Linux/.test(q)?k="Linux":/Android/.test(q)?k="Android":/iOS|iPhone|iPad|iPod/.test(q)&&(k="iOS");const M=!!(window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext),J=!!(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen||document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled);let K=!1,U=!1;try{const B=await navigator.mediaDevices.enumerateDevices();K=B.some(ee=>ee.kind==="videoinput"),U=B.some(ee=>ee.kind==="audioinput")}catch(B){console.error("Error checking media devices:",B)}const $={windowWidth:P,windowHeight:I,screenWidth:L,screenHeight:H,browser:A,browserVersion:S,isMobile:R,operatingSystem:k,hasWebAudio:M,hasFullscreen:J,hasWebcam:K,hasMicrophone:U};g({_reactiveDeviceInfo:$}),(h?h($,c,p):!0)&&!V.current?(V.current=!0,C($)):w(!0)})()},[h,c,g,C]),x?W.jsx("div",{className:"max-w-prose mx-auto mt-20 mb-20 px-4",children:W.jsx("article",{className:"prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed",children:d})}):null}function K0({next:h,updateStore:d,store:c,title:p="Settings",description:g,fields:C,saveButtonText:x="Save Configuration"}){const[w,V]=ne.useState({}),[v,P]=ne.useState({}),[I,L]=ne.useState({});ne.useEffect(()=>{const R={};C.forEach(M=>{R[M.storeKey]=(c==null?void 0:c[M.storeKey])!==void 0?c[M.storeKey]:M.defaultValue}),V(R);const k={};C.forEach(M=>{k[M.storeKey]=!1}),L(k)},[c,C]);const H=(R,k)=>{if(R.type==="integer"||R.type==="float"){if(k==null||k==="")return"This field is required";if(R.min!==void 0&&k<R.min)return`Value must be at least ${R.min}`;if(R.max!==void 0&&k>R.max)return`Value must be at most ${R.max}`}else if(R.type==="string"){if(R.minLength!==void 0&&k.length<R.minLength)return`Must be at least ${R.minLength} characters`;if(R.maxLength!==void 0&&k.length>R.maxLength)return`Must be at most ${R.maxLength} characters`}if(R.validate){const M=R.validate(k);if(M!==!0&&M!=="")return typeof M=="string"?M:"Invalid value"}return null};ne.useEffect(()=>{const R={};C.forEach(k=>{const M=w[k.storeKey];if(!I[k.storeKey])return;const J=H(k,M);J&&(R[k.storeKey]=J)}),P(R)},[w,C,I]);const q=(R,k)=>{V(M=>({...M,[R]:k})),L(M=>({...M,[R]:!0}))},A=()=>{const R={};C.forEach(M=>{R[M.storeKey]=!0}),L(R);const k={};C.forEach(M=>{const J=w[M.storeKey];if(M.type==="integer"||M.type==="float"?J==null||J===""?k[M.storeKey]="This field is required":M.min!==void 0&&J<M.min?k[M.storeKey]=`Value must be at least ${M.min}`:M.max!==void 0&&J>M.max&&(k[M.storeKey]=`Value must be at most ${M.max}`):M.type==="string"&&(M.minLength!==void 0&&J.length<M.minLength?k[M.storeKey]=`Must be at least ${M.minLength} characters`:M.maxLength!==void 0&&J.length>M.maxLength&&(k[M.storeKey]=`Must be at most ${M.maxLength} characters`)),M.validate&&!k[M.storeKey]){const K=M.validate(J);K!==!0&&K!==""&&(k[M.storeKey]=typeof K=="string"?K:"Invalid value")}}),P(k),Object.keys(k).length===0&&(d(w),h(w))},S=Object.keys(v).length>0;return W.jsxs("div",{className:"max-w-prose mx-auto mt-20 mb-20 px-4",children:[W.jsx("h1",{className:"text-4xl font-bold mb-6",children:p}),g&&W.jsx("article",{className:"prose prose-lg mb-10",children:g}),W.jsx("div",{className:"mt-12 space-y-12",children:C.map(R=>W.jsxs("div",{className:"space-y-2",children:[W.jsxs("label",{className:"block text-xl font-medium text-gray-900",children:[R.label,R.type==="integer"&&R.min!==void 0&&R.max!==void 0&&` (${R.min}-${R.max})`,R.type==="float"&&R.min!==void 0&&R.max!==void 0&&` (${R.min}-${R.max})`]}),R.prompt&&W.jsx("p",{className:"mb-4 text-base text-gray-700 mb-2",children:R.prompt}),R.type==="boolean"&&W.jsxs("div",{className:"flex items-center",children:[W.jsxs("div",{className:`relative cursor-pointer w-10 h-10 flex items-center justify-center border-2 border-black rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none ${w[R.storeKey]?"bg-blue-600 text-white":"bg-white"}`,onClick:()=>q(R.storeKey,!w[R.storeKey]),children:[W.jsx("input",{type:"checkbox",checked:!!w[R.storeKey],onChange:k=>q(R.storeKey,k.target.checked),className:"absolute opacity-0 h-0 w-0"}),w[R.storeKey]&&W.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})]}),W.jsx("span",{className:"ml-3 text-lg",children:"Enabled"})]}),(R.type==="integer"||R.type==="float")&&W.jsxs("div",{className:"flex items-center space-x-4",children:[R.min!==void 0&&R.max!==void 0&&W.jsx("button",{onClick:()=>q(R.storeKey,Math.max(R.min||0,(w[R.storeKey]||0)-(R.step||1))),className:"cursor-pointer bg-white h-10 w-10 flex items-center justify-center border-2 border-black font-bold text-black text-lg rounded-full shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"-"}),W.jsx("input",{type:"text",value:w[R.storeKey]||"",onChange:k=>{const M=k.target.value;let J;R.type==="integer"?J=M===""?"":parseInt(M,10):R.type==="float"&&(J=M===""?"":parseFloat(M)),(M===""||!isNaN(J))&&q(R.storeKey,J)},step:R.step||(R.type==="integer"?1:.1),min:R.min,max:R.max,className:"w-24 px-4 py-2 text-center border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"}),R.min!==void 0&&R.max!==void 0&&W.jsx("button",{onClick:()=>q(R.storeKey,Math.min(R.max||1/0,(w[R.storeKey]||0)+(R.step||1))),className:"cursor-pointer bg-white h-10 w-10 flex items-center justify-center border-2 border-black font-bold text-black text-lg rounded-full shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"+"})]}),R.type==="string"&&W.jsx("input",{type:"text",value:w[R.storeKey]||"",onChange:k=>q(R.storeKey,k.target.value),className:"w-full px-4 py-2 border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"}),v[R.storeKey]&&I[R.storeKey]&&W.jsx("div",{className:"text-red-500 text-sm mt-1",children:v[R.storeKey]}),R.component&&W.jsx("div",{className:"mt-4",children:ne.createElement(R.component,{value:w[R.storeKey]})})]},R.storeKey))}),W.jsx("div",{className:"mt-12 flex justify-center",children:W.jsx("button",{onClick:A,disabled:S,className:`bg-white cursor-pointer px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none ${S?"opacity-50 cursor-not-allowed":""}`,children:x})})]})}const J0={Text:ca,ProlificEnding:Ef,EnterFullscreen:Jd,ExitFullscreen:Yd,Quest:Nf,Upload:Wd,MicrophoneCheck:Df,PlainInput:jf,RequestFilePermission:dh,CanvasBlock:hh,CheckDevice:gh,StoreUI:K0},Y0={voicerecorder:gy};function mh(h){return typeof h=="object"&&h!==null&&typeof h.type=="string"}function X0({timeline:h,config:d={showProgressBar:!1},components:c={},questions:p={}}){const g=ne.useMemo(()=>ph(h),[h]),[C,x]=ne.useState(0),w=ne.useRef((()=>{const K={},U=new URLSearchParams(window.location.search);for(const[ee,oe]of U.entries())K[ee]=oe;const $=ua.getRegistry()||[],Q={};for(const[ee,oe]of Object.entries(K))Q[ee]={value:oe,registered:!1,defaultValue:void 0,type:void 0,description:void 0};for(const ee of $)Q[ee.name]={value:ee.value!==void 0?ee.value:K[ee.name],registered:!0,defaultValue:ee.defaultValue,type:ee.type,description:ee.description};return[{index:-1,trialNumber:-1,start:or(),end:or(),duration:0,type:"",name:"",responseData:{userAgent:navigator.userAgent,params:Q}}]})()),[V,v]=ne.useState(0),P=ne.useRef(or()),I=ne.useRef({}),L={...J0,...c},H={...Y0,...p},q=ne.useMemo(()=>{const K=g.instructions.length;return K>0?C/K:0},[C,g.instructions]);ne.useEffect(()=>{window.scrollTo(0,0)},[C]);function A(K){I.current={...I.current,...K}}function S(K,U,$){const Q=or(),B=g.instructions[C],ee=U!==void 0?U:P.current,oe=$!==void 0?$:Q;if((B==null?void 0:B.type)==="ExecuteContent"){const te=B.content;if(mh(te)){let X={index:C,trialNumber:V+1,start:ee,end:oe,duration:oe-ee,type:te.type,name:te.name??"",responseData:K};const N=typeof te.metadata=="function"?te.metadata(w.current,I.current):te.metadata;te.nestMetadata?X={...X,metadata:N}:X={...N,...X},w.current=[...w.current,X],v(ce=>ce+1)}else console.log("ExecuteContent finished, but content wasn't standard component format:",te)}let le=C+1,G=!1;for(;le<g.instructions.length;){const te=g.instructions[le];switch(te.type){case"IfGoto":if(te.cond(I.current,w.current)){const X=g.markers[te.marker];if(X!==void 0){le=X;continue}else console.error(`Marker ${te.marker} not found`),le++}else le++;break;case"UpdateStore":A(te.fun(I.current,w.current)),le++;break;case"ExecuteContent":G=!0,P.current=or(),x(le);return;default:console.error("Unknown instruction type encountered:",te),le++;break}}G||x(le)}const R=ne.useCallback(K=>{let U=0;const $=or(),Q=2e4;let B,ee=$;const oe=1e3,le=()=>{const N=or()-$;return N>0?Math.round(U*1e3/N):null},G=()=>{B&&cancelAnimationFrame(B)},te=X=>{U++;const N=X-$;X-ee>=oe&&(K(le()),ee=X),N<Q?B=requestAnimationFrame(te):(G(),K(le()))};return B=requestAnimationFrame(te),G},[]),k=({children:K,collectRefreshRate:U})=>{const $=ne.useRef(null),Q=ne.useRef(null);ne.useEffect(()=>{if($.current=or(),U)return R(oe=>{Q.current=oe,A({_reactiveScreenRefreshRate:oe})})},[]);const B=ne.Children.map(K,ee=>{if(ne.isValidElement(ee)){const oe=(le,G,te)=>{const X=or(),N=G!==void 0?G:$.current;S(le,N??void 0,(te!==void 0?te:X)??void 0)};return ne.cloneElement(ee,{...ee.props,next:oe})}return ee});return W.jsx(W.Fragment,{children:B})},M=g.instructions[C];let J=null;if((M==null?void 0:M.type)==="ExecuteContent"){const K=M.content;if(mh(K)){const U=L[K.type];if(U){const $=typeof K.props=="function"?K.props(w.current,I.current):K.props||{};J=W.jsx(k,{collectRefreshRate:K.collectRefreshRate,children:W.jsx(U,{next:S,updateStore:A,store:I.current,data:w.current,...K.type==="Quest"?{customQuestions:H}:{},...$})},C)}else console.error(`No component found for type: ${K.type}`),J=W.jsxs("div",{children:['Error: Component type "',K.type,'" not found.']})}else console.warn("ExecuteContent instruction does not contain standard component data:",K),J=W.jsx("div",{children:"Non-component content encountered."})}else C>=g.instructions.length&&(J=W.jsx(W.Fragment,{}));return W.jsxs("div",{className:"w-full h-full",children:[W.jsx("div",{className:` ${d.showProgressBar?"":"hidden "} px-4 mt-4 sm:mt-12 max-w-2xl mx-auto flex-1 h-6 bg-gray-200 rounded-full overflow-hidden`,children:W.jsx("div",{className:`h-full bg-gray-200 rounded-full duration-300 ${q>0?" border-black border-2":""}`,style:{width:`${q*100}%`,backgroundImage:`repeating-linear-gradient(
106
+ `)}const O0={CanvasBlock:h=>{const d=h.responseData;return Array.isArray(d)?d.map(c=>({block:h.name,...c})):[]}},T0=({responseData:h,...d})=>({...d,...Object.entries(h||{}).reduce((c,[p,g])=>({...c,[`data_${p}`]:g}),{})});function I0(h,d,c,p,g){const C=c.flatMap(v=>h.filter(I=>I.name===v).map(I=>{const L=I.type&&p[I.type],H=L?L(I):[T0(I)];return Array.isArray(H)&&H.length===0||H&&typeof H=="object"&&!Array.isArray(H)&&!Object.values(H).some(A=>Array.isArray(A)&&A.length>0)?null:H})).filter(v=>v!==null);if(!C.some(v=>v&&typeof v=="object"&&!Array.isArray(v)&&Object.keys(v).some(P=>Array.isArray(v[P])))){const v=C.flatMap(P=>Array.isArray(P)?P:[]).map(P=>g?g(P):P);return v.length===0?[]:{filename:d,encoding:"utf8",content:Nu(v)}}const w=new Set;C.forEach(v=>{v&&typeof v=="object"&&!Array.isArray(v)&&Object.keys(v).forEach(P=>{Array.isArray(v[P])&&w.add(P)})});const V=[];for(const v of w){const P=C.flatMap(L=>Array.isArray(L)?L:L&&typeof L=="object"&&L[v]?L[v]:[]).map(L=>g?g(L):L);if(P.length===0)continue;const I=d.replace(/\.csv$/,"");V.push({filename:`${I}_${v}.csv`,encoding:"utf8",content:Nu(P)})}return V.length===0?[]:V.length===1?V[0]:V}const R0=()=>{const h=window.electronAPI;return{directoryExists:async d=>{const c=await h.directoryExists(d);return c.success&&c.exists},createDirectory:async d=>{await h.createDirectory(d)},saveFile:async(d,c,p)=>{await h.saveFile(d,c,p)}}},D0=h=>{const d=c=>h?c?`${h}/${c}`:h:c;return{directoryExists:async c=>{try{if(h)try{await Ei.readdir({path:h,directory:Rn.Documents})}catch{return!1}const p=d(c);return(await Ei.readdir({path:p,directory:Rn.Documents})).files.length>=0}catch{return!1}},createDirectory:async c=>{try{if(h)try{await Ei.mkdir({path:h,directory:Rn.Documents,recursive:!1})}catch{}const p=d(c);await Ei.mkdir({path:p,directory:Rn.Documents,recursive:!0})}catch(p){throw console.error("Error creating directory:",p),p}},saveFile:async(c,p,g)=>{const C=d(g);await Ei.writeFile({path:`${C}/${c}`,data:p,directory:Rn.Documents,encoding:"utf8"})}}},A0=h=>{const d=Jo();switch(d){case"desktop":return{backend:R0(),type:d};case"mobile":return{backend:D0(h),type:d};case"web":return{backend:null,type:d}}},L0=async(h,d)=>{let c=d;if(await h.directoryExists(c)){let p=1;for(c=`${d}_${p}`;await h.directoryExists(c);)p++,c=`${d}_${p}`}return c};function Wd({data:h,next:d,store:c,sessionID:p,generateFiles:g,sessionCSVBuilder:C,trialCSVBuilder:x,uploadRaw:w=!0,autoUpload:V=!1,androidFolderName:v}){const[P,I]=ne.useState("initial"),L=ne.useRef(!1),H=lo("upload",!0,"boolean"),q=lo("download",!1,"boolean"),A=Wy({mutationFn:async k=>await Jy("/data",k),onSuccess:k=>{k.status===200?(I("success"),d({})):I("error")},onError:()=>{I("error")}}),S=ne.useCallback(async k=>{const M=new y0(new Zb);for(const $ of k)await M.add($.filename,new Kb($.content));const J=await M.close(),K=URL.createObjectURL(J),U=document.createElement("a");U.href=K,U.download="study-data.zip",document.body.appendChild(U),U.click(),document.body.removeChild(U),URL.revokeObjectURL(K)},[]),R=ne.useCallback(async()=>{var J,K;if(I("uploading"),L.current)return;L.current=!0;const k=p??Ky(),M=g?g(k,h,c):[];if(w&&M.push({filename:`${k}.raw.json`,content:JSON.stringify(h),encoding:"utf8"}),C){let U={};const $=(K=(J=h==null?void 0:h[0])==null?void 0:J.responseData)==null?void 0:K.params;$&&typeof $=="object"&&$!==null&&(U=Object.entries($).reduce((B,[ee,oe])=>{if(oe&&typeof oe=="object"&&"defaultValue"in oe){const le=oe.value??oe.defaultValue;B[ee]=le}return B},{}));let Q={sessionID:k,userAgent:h[0].responseData.userAgent,...U};if(C.trials&&Array.isArray(C.trials)&&C.trials.length>0)for(const B of C.trials){const ee=h.find(oe=>oe.name===B);ee!=null&&ee.responseData&&typeof ee.responseData=="object"&&ee.responseData!==null&&(Q={...Q,...ee.responseData})}M.push({content:Nu([C.fun?C.fun(Q):Q]),filename:`${k}${C.filename}.csv`,encoding:"utf8"})}if(x)for(const U of x.builders){const $=I0(h,`${k}${U.filename}.csv`,U.trials??[],{...O0,...x.flatteners},U.fun);Array.isArray($)?$.length>0&&M.push(...$):M.push($)}try{const U={sessionId:k,files:M.map(B=>({...B,encoding:B.encoding??"utf8"}))};if(q&&await S(M),!H){d({});return}const{backend:$,type:Q}=A0(v);if(Q==="web")A.mutate(U);else if($)try{const B=await L0($,k);await $.createDirectory(B);for(const ee of M)await $.saveFile(ee.filename,ee.content,B);I("success"),d({})}catch(B){console.error(`Error saving files with ${Q}:`,B),I("error")}}catch(U){console.error("Error uploading:",U),I("error")}},[p,g,h,w,q,H,S,d,A]);return ne.useEffect(()=>{V&&!L.current&&R&&R()},[V,R]),ne.useEffect(()=>{P==="error"&&(L.current=!1)},[P]),W.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10",children:[P=="initial"&&!V&&W.jsxs(W.Fragment,{children:[W.jsx("p",{className:"",children:"Thank you for participating! Please click the button below to submit your data."}),W.jsx("button",{onClick:R,className:"mt-8 cursor-pointer bg-white px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"Submit Data"})]}),P=="uploading"&&W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"w-8 h-8 border-4 border-blue-500 border-t-transparent rounded-full animate-spin"}),W.jsx("p",{className:"",children:"Uploading your data..."})]}),P=="success"&&W.jsx(W.Fragment,{}),P=="error"&&W.jsxs(W.Fragment,{children:[W.jsxs("div",{className:"text-red-500 mb-4",children:[W.jsx("p",{className:"",children:"Sorry, there was an error uploading your data."}),W.jsx("p",{children:"Please try again or contact the researcher."})]}),W.jsx("button",{onClick:R,className:"px-4 py-2 cursor-pointer bg-blue-500 text-white rounded-sm hover:bg-blue-600 transition-colors",children:"Try Again"})]})]})}var $d;(function(h){h.Dark="DARK",h.Light="LIGHT",h.Default="DEFAULT"})($d||($d={}));var Gd;(function(h){h.None="NONE",h.Slide="SLIDE",h.Fade="FADE"})(Gd||(Gd={}));const Zd=Ko("StatusBar"),Kd=Ko("ImmersiveMode",{web:()=>Promise.resolve().then(()=>n1).then(h=>new h.ImmersiveModeWeb)});function Jd({content:h,buttonText:d,next:c,data:p,updateStore:g,delayMs:C=0}){const x=W.jsxs("div",{className:"flex flex-col items-center",children:[!!h&&h,!h&&W.jsx("p",{className:"",children:"Please click the Button below to enter Fullscreen mode."})]}),[w,V]=ne.useState(!1),v=ne.useRef(!1),P=ne.useRef(null),I=ne.useCallback(()=>{P.current&&(clearTimeout(P.current),P.current=null)},[]),L=ne.useCallback(()=>{document.removeEventListener("fullscreenchange",q),document.removeEventListener("webkitfullscreenchange",q),document.removeEventListener("mozfullscreenchange",q),document.removeEventListener("MSFullscreenChange",q),I(),v.current=!1},[I]),H=ne.useCallback(()=>{I(),V(!0),P.current=setTimeout(()=>{P.current=null,c({})},C)},[c,C,I]),q=ne.useCallback(()=>{if(!v.current)return;const R=ao();L(),R?H():V(!1)},[H,L]),A=ne.useCallback(()=>{L(),v.current=!0,document.addEventListener("fullscreenchange",q),document.addEventListener("webkitfullscreenchange",q),document.addEventListener("mozfullscreenchange",q),document.addEventListener("MSFullscreenChange",q)},[q,L]),S=ne.useCallback(async()=>{V(!0),L();const R=document.documentElement;if(Jo()==="mobile"&&Ci.getPlatform()==="android"&&(Zd.hide(),Kd.enable()),R.requestFullscreen)try{await R.requestFullscreen(),H();return}catch(k){console.error("Fullscreen request failed:",k);return}R.mozRequestFullScreen?(R.mozRequestFullScreen(),A()):R.webkitRequestFullscreen?(R.webkitRequestFullscreen(),A()):R.msRequestFullscreen?(R.msRequestFullscreen(),A()):console.warn("Fullscreen API is not supported by this browser.")},[H,A,L]);return ne.useEffect(()=>()=>{L()},[L]),w?null:W.jsx(ca,{data:p,updateStore:g,content:x,buttonText:d??"Enter Fullscreen Mode",next:S})}function Yd({next:h,delayMs:d=0}){const c=ne.useRef(!1),p=ne.useRef(null),g=ne.useCallback(()=>{p.current&&(clearTimeout(p.current),p.current=null)},[]),C=ne.useCallback(()=>{document.removeEventListener("fullscreenchange",w),document.removeEventListener("webkitfullscreenchange",w),document.removeEventListener("mozfullscreenchange",w),document.removeEventListener("MSFullscreenChange",w),g(),c.current=!1},[g]),x=ne.useCallback(()=>{g(),p.current=setTimeout(()=>{p.current=null,h({})},d)},[h,d,g]),w=ne.useCallback(()=>{if(!c.current)return;const v=ao();C(),v||x()},[x,C]),V=ne.useCallback(()=>{C(),c.current=!0,document.addEventListener("fullscreenchange",w),document.addEventListener("webkitfullscreenchange",w),document.addEventListener("mozfullscreenchange",w),document.addEventListener("MSFullscreenChange",w)},[w,C]);return ne.useEffect(()=>((async()=>{if(!ao()){h({});return}if(Jo()==="mobile"&&Ci.getPlatform()==="android"&&(Zd.show(),Kd.disable()),document.exitFullscreen)try{await document.exitFullscreen(),x();return}catch(P){console.error("Exiting fullscreen failed:",P),h({});return}document.mozCancelFullScreen?(document.mozCancelFullScreen(),V()):document.webkitExitFullscreen?(document.webkitExitFullscreen(),V()):document.msExitFullscreen?(document.msExitFullscreen(),V()):(console.warn("Fullscreen API is not supported by this browser."),h({}))})(),()=>{C()}),[x,V,C]),null}function Xd(h){var d,c,p="";if(typeof h=="string"||typeof h=="number")p+=h;else if(typeof h=="object")if(Array.isArray(h)){var g=h.length;for(d=0;d<g;d++)h[d]&&(c=Xd(h[d]))&&(p&&(p+=" "),p+=c)}else for(c in h)h[c]&&(p&&(p+=" "),p+=c);return p}function Zn(){for(var h,d,c=0,p="",g=arguments.length;c<g;c++)(h=arguments[c])&&(d=Xd(h))&&(p&&(p+=" "),p+=d);return p}const hs=h=>typeof h=="number"&&!isNaN(h),Vi=h=>typeof h=="string",Hr=h=>typeof h=="function",qa=h=>Vi(h)||Hr(h)?h:null,_u=h=>ne.isValidElement(h)||Vi(h)||Hr(h)||hs(h);function eh(h,d,c){c===void 0&&(c=300);const{scrollHeight:p,style:g}=h;requestAnimationFrame(()=>{g.minHeight="initial",g.height=p+"px",g.transition=`all ${c}ms`,requestAnimationFrame(()=>{g.height="0",g.padding="0",g.margin="0",setTimeout(d,c)})})}function gs(h){let{enter:d,exit:c,appendPosition:p=!1,collapse:g=!0,collapseDuration:C=300}=h;return function(x){let{children:w,position:V,preventExitTransition:v,done:P,nodeRef:I,isIn:L,playToast:H}=x;const q=p?`${d}--${V}`:d,A=p?`${c}--${V}`:c,S=ne.useRef(0);return ne.useLayoutEffect(()=>{const R=I.current,k=q.split(" "),M=J=>{J.target===I.current&&(H(),R.removeEventListener("animationend",M),R.removeEventListener("animationcancel",M),S.current===0&&J.type!=="animationcancel"&&R.classList.remove(...k))};R.classList.add(...k),R.addEventListener("animationend",M),R.addEventListener("animationcancel",M)},[]),ne.useEffect(()=>{const R=I.current,k=()=>{R.removeEventListener("animationend",k),g?eh(R,P,C):P()};L||(v?k():(S.current=1,R.className+=` ${A}`,R.addEventListener("animationend",k)))},[L]),ne.createElement(ne.Fragment,null,w)}}function th(h,d){return h!=null?{content:h.content,containerId:h.props.containerId,id:h.props.toastId,theme:h.props.theme,type:h.props.type,data:h.props.data||{},isLoading:h.props.isLoading,icon:h.props.icon,status:d}:{}}const br=new Map;let ms=[];const Fu=new Set,k0=h=>Fu.forEach(d=>d(h)),rh=()=>br.size>0;function nh(h,d){var c;if(d)return!((c=br.get(d))==null||!c.isToastActive(h));let p=!1;return br.forEach(g=>{g.isToastActive(h)&&(p=!0)}),p}function ih(h,d){_u(h)&&(rh()||ms.push({content:h,options:d}),br.forEach(c=>{c.buildToast(h,d)}))}function oh(h,d){br.forEach(c=>{d!=null&&d!=null&&d.containerId?(d==null?void 0:d.containerId)===c.id&&c.toggle(h,d==null?void 0:d.id):c.toggle(h,d==null?void 0:d.id)})}function sh(h){const{subscribe:d,getSnapshot:c,setProps:p}=ne.useRef(function(C){const x=C.containerId||1;return{subscribe(w){const V=function(P,I,L){let H=1,q=0,A=[],S=[],R=[],k=I;const M=new Map,J=new Set,K=()=>{R=Array.from(M.values()),J.forEach(Q=>Q())},U=Q=>{S=Q==null?[]:S.filter(B=>B!==Q),K()},$=Q=>{const{toastId:B,onOpen:ee,updateId:oe,children:le}=Q.props,G=oe==null;Q.staleId&&M.delete(Q.staleId),M.set(B,Q),S=[...S,Q.props.toastId].filter(te=>te!==Q.staleId),K(),L(th(Q,G?"added":"updated")),G&&Hr(ee)&&ee(ne.isValidElement(le)&&le.props)};return{id:P,props:k,observe:Q=>(J.add(Q),()=>J.delete(Q)),toggle:(Q,B)=>{M.forEach(ee=>{B!=null&&B!==ee.props.toastId||Hr(ee.toggle)&&ee.toggle(Q)})},removeToast:U,toasts:M,clearQueue:()=>{q-=A.length,A=[]},buildToast:(Q,B)=>{if((we=>{let{containerId:De,toastId:Ge,updateId:Be}=we;const Ce=De?De!==P:P!==1,He=M.has(Ge)&&Be==null;return Ce||He})(B))return;const{toastId:ee,updateId:oe,data:le,staleId:G,delay:te}=B,X=()=>{U(ee)},N=oe==null;N&&q++;const ce={...k,style:k.toastStyle,key:H++,...Object.fromEntries(Object.entries(B).filter(we=>{let[De,Ge]=we;return Ge!=null})),toastId:ee,updateId:oe,data:le,closeToast:X,isIn:!1,className:qa(B.className||k.toastClassName),bodyClassName:qa(B.bodyClassName||k.bodyClassName),progressClassName:qa(B.progressClassName||k.progressClassName),autoClose:!B.isLoading&&(ge=B.autoClose,Ae=k.autoClose,ge===!1||hs(ge)&&ge>0?ge:Ae),deleteToast(){const we=M.get(ee),{onClose:De,children:Ge}=we.props;Hr(De)&&De(ne.isValidElement(Ge)&&Ge.props),L(th(we,"removed")),M.delete(ee),q--,q<0&&(q=0),A.length>0?$(A.shift()):K()}};var ge,Ae;ce.closeButton=k.closeButton,B.closeButton===!1||_u(B.closeButton)?ce.closeButton=B.closeButton:B.closeButton===!0&&(ce.closeButton=!_u(k.closeButton)||k.closeButton);let fe=Q;ne.isValidElement(Q)&&!Vi(Q.type)?fe=ne.cloneElement(Q,{closeToast:X,toastProps:ce,data:le}):Hr(Q)&&(fe=Q({closeToast:X,toastProps:ce,data:le}));const ke={content:fe,props:ce,staleId:G};k.limit&&k.limit>0&&q>k.limit&&N?A.push(ke):hs(te)?setTimeout(()=>{$(ke)},te):$(ke)},setProps(Q){k=Q},setToggle:(Q,B)=>{M.get(Q).toggle=B},isToastActive:Q=>S.some(B=>B===Q),getSnapshot:()=>R}}(x,C,k0);br.set(x,V);const v=V.observe(w);return ms.forEach(P=>ih(P.content,P.options)),ms=[],()=>{v(),br.delete(x)}},setProps(w){var V;(V=br.get(x))==null||V.setProps(w)},getSnapshot(){var w;return(w=br.get(x))==null?void 0:w.getSnapshot()}}}(h)).current;p(h);const g=ne.useSyncExternalStore(d,c,c);return{getToastToRender:function(C){if(!g)return[];const x=new Map;return h.newestOnTop&&g.reverse(),g.forEach(w=>{const{position:V}=w.props;x.has(V)||x.set(V,[]),x.get(V).push(w)}),Array.from(x,w=>C(w[0],w[1]))},isToastActive:nh,count:g==null?void 0:g.length}}function ah(h){const[d,c]=ne.useState(!1),[p,g]=ne.useState(!1),C=ne.useRef(null),x=ne.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:w,pauseOnHover:V,closeToast:v,onClick:P,closeOnClick:I}=h;var L,H;function q(){c(!0)}function A(){c(!1)}function S(M){const J=C.current;x.canDrag&&J&&(x.didMove=!0,d&&A(),x.delta=h.draggableDirection==="x"?M.clientX-x.start:M.clientY-x.start,x.start!==M.clientX&&(x.canCloseOnClick=!1),J.style.transform=`translate3d(${h.draggableDirection==="x"?`${x.delta}px, var(--y)`:`0, calc(${x.delta}px + var(--y))`},0)`,J.style.opacity=""+(1-Math.abs(x.delta/x.removalDistance)))}function R(){document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",R);const M=C.current;if(x.canDrag&&x.didMove&&M){if(x.canDrag=!1,Math.abs(x.delta)>x.removalDistance)return g(!0),h.closeToast(),void h.collapseAll();M.style.transition="transform 0.2s, opacity 0.2s",M.style.removeProperty("transform"),M.style.removeProperty("opacity")}}(H=br.get((L={id:h.toastId,containerId:h.containerId,fn:c}).containerId||1))==null||H.setToggle(L.id,L.fn),ne.useEffect(()=>{if(h.pauseOnFocusLoss)return document.hasFocus()||A(),window.addEventListener("focus",q),window.addEventListener("blur",A),()=>{window.removeEventListener("focus",q),window.removeEventListener("blur",A)}},[h.pauseOnFocusLoss]);const k={onPointerDown:function(M){if(h.draggable===!0||h.draggable===M.pointerType){x.didMove=!1,document.addEventListener("pointermove",S),document.addEventListener("pointerup",R);const J=C.current;x.canCloseOnClick=!0,x.canDrag=!0,J.style.transition="none",h.draggableDirection==="x"?(x.start=M.clientX,x.removalDistance=J.offsetWidth*(h.draggablePercent/100)):(x.start=M.clientY,x.removalDistance=J.offsetHeight*(h.draggablePercent===80?1.5*h.draggablePercent:h.draggablePercent)/100)}},onPointerUp:function(M){const{top:J,bottom:K,left:U,right:$}=C.current.getBoundingClientRect();M.nativeEvent.type!=="touchend"&&h.pauseOnHover&&M.clientX>=U&&M.clientX<=$&&M.clientY>=J&&M.clientY<=K?A():q()}};return w&&V&&(k.onMouseEnter=A,h.stacked||(k.onMouseLeave=q)),I&&(k.onClick=M=>{P&&P(M),x.canCloseOnClick&&v()}),{playToast:q,pauseToast:A,isRunning:d,preventExitTransition:p,toastRef:C,eventHandlers:k}}function M0(h){let{delay:d,isRunning:c,closeToast:p,type:g="default",hide:C,className:x,style:w,controlledProgress:V,progress:v,rtl:P,isIn:I,theme:L}=h;const H=C||V&&v===0,q={...w,animationDuration:`${d}ms`,animationPlayState:c?"running":"paused"};V&&(q.transform=`scaleX(${v})`);const A=Zn("Toastify__progress-bar",V?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${L}`,`Toastify__progress-bar--${g}`,{"Toastify__progress-bar--rtl":P}),S=Hr(x)?x({rtl:P,type:g,defaultClassName:A}):Zn(A,x),R={[V&&v>=1?"onTransitionEnd":"onAnimationEnd"]:V&&v<1?null:()=>{I&&p()}};return ne.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":H},ne.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${L} Toastify__progress-bar--${g}`}),ne.createElement("div",{role:"progressbar","aria-hidden":H?"true":"false","aria-label":"notification timer",className:S,style:q,...R}))}let N0=1;const lh=()=>""+N0++;function _0(h){return h&&(Vi(h.toastId)||hs(h.toastId))?h.toastId:lh()}function ys(h,d){return ih(h,d),d.toastId}function Ba(h,d){return{...d,type:d&&d.type||h,toastId:_0(d)}}function Ha(h){return(d,c)=>ys(d,Ba(h,c))}function Vt(h,d){return ys(h,Ba("default",d))}Vt.loading=(h,d)=>ys(h,Ba("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...d})),Vt.promise=function(h,d,c){let p,{pending:g,error:C,success:x}=d;g&&(p=Vi(g)?Vt.loading(g,c):Vt.loading(g.render,{...c,...g}));const w={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},V=(P,I,L)=>{if(I==null)return void Vt.dismiss(p);const H={type:P,...w,...c,data:L},q=Vi(I)?{render:I}:I;return p?Vt.update(p,{...H,...q}):Vt(q.render,{...H,...q}),L},v=Hr(h)?h():h;return v.then(P=>V("success",x,P)).catch(P=>V("error",C,P)),v},Vt.success=Ha("success"),Vt.info=Ha("info"),Vt.error=Ha("error"),Vt.warning=Ha("warning"),Vt.warn=Vt.warning,Vt.dark=(h,d)=>ys(h,Ba("default",{theme:"dark",...d})),Vt.dismiss=function(h){(function(d){var c;if(rh()){if(d==null||Vi(c=d)||hs(c))br.forEach(p=>{p.removeToast(d)});else if(d&&("containerId"in d||"id"in d)){const p=br.get(d.containerId);p?p.removeToast(d.id):br.forEach(g=>{g.removeToast(d.id)})}}else ms=ms.filter(p=>d!=null&&p.options.toastId!==d)})(h)},Vt.clearWaitingQueue=function(h){h===void 0&&(h={}),br.forEach(d=>{!d.props.limit||h.containerId&&d.id!==h.containerId||d.clearQueue()})},Vt.isActive=nh,Vt.update=function(h,d){d===void 0&&(d={});const c=((p,g)=>{var C;let{containerId:x}=g;return(C=br.get(x||1))==null?void 0:C.toasts.get(p)})(h,d);if(c){const{props:p,content:g}=c,C={delay:100,...p,...d,toastId:d.toastId||h,updateId:lh()};C.toastId!==h&&(C.staleId=h);const x=C.render||g;delete C.render,ys(x,C)}},Vt.done=h=>{Vt.update(h,{progress:1})},Vt.onChange=function(h){return Fu.add(h),()=>{Fu.delete(h)}},Vt.play=h=>oh(!0,h),Vt.pause=h=>oh(!1,h);const F0=typeof window<"u"?ne.useLayoutEffect:ne.useEffect,Qa=h=>{let{theme:d,type:c,isLoading:p,...g}=h;return ne.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:d==="colored"?"currentColor":`var(--toastify-icon-color-${c})`,...g})},Ua={info:function(h){return ne.createElement(Qa,{...h},ne.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(h){return ne.createElement(Qa,{...h},ne.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(h){return ne.createElement(Qa,{...h},ne.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(h){return ne.createElement(Qa,{...h},ne.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ne.createElement("div",{className:"Toastify__spinner"})}},q0=h=>{const{isRunning:d,preventExitTransition:c,toastRef:p,eventHandlers:g,playToast:C}=ah(h),{closeButton:x,children:w,autoClose:V,onClick:v,type:P,hideProgressBar:I,closeToast:L,transition:H,position:q,className:A,style:S,bodyClassName:R,bodyStyle:k,progressClassName:M,progressStyle:J,updateId:K,role:U,progress:$,rtl:Q,toastId:B,deleteToast:ee,isIn:oe,isLoading:le,closeOnClick:G,theme:te}=h,X=Zn("Toastify__toast",`Toastify__toast-theme--${te}`,`Toastify__toast--${P}`,{"Toastify__toast--rtl":Q},{"Toastify__toast--close-on-click":G}),N=Hr(A)?A({rtl:Q,position:q,type:P,defaultClassName:X}):Zn(X,A),ce=function(ke){let{theme:we,type:De,isLoading:Ge,icon:Be}=ke,Ce=null;const He={theme:we,type:De};return Be===!1||(Hr(Be)?Ce=Be({...He,isLoading:Ge}):ne.isValidElement(Be)?Ce=ne.cloneElement(Be,He):Ge?Ce=Ua.spinner():(st=>st in Ua)(De)&&(Ce=Ua[De](He))),Ce}(h),ge=!!$||!V,Ae={closeToast:L,type:P,theme:te};let fe=null;return x===!1||(fe=Hr(x)?x(Ae):ne.isValidElement(x)?ne.cloneElement(x,Ae):function(ke){let{closeToast:we,theme:De,ariaLabel:Ge="close"}=ke;return ne.createElement("button",{className:`Toastify__close-button Toastify__close-button--${De}`,type:"button",onClick:Be=>{Be.stopPropagation(),we(Be)},"aria-label":Ge},ne.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ne.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Ae)),ne.createElement(H,{isIn:oe,done:ee,position:q,preventExitTransition:c,nodeRef:p,playToast:C},ne.createElement("div",{id:B,onClick:v,"data-in":oe,className:N,...g,style:S,ref:p},ne.createElement("div",{...oe&&{role:U},className:Hr(R)?R({type:P}):Zn("Toastify__toast-body",R),style:k},ce!=null&&ne.createElement("div",{className:Zn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!le})},ce),ne.createElement("div",null,w)),fe,ne.createElement(M0,{...K&&!ge?{key:`pb-${K}`}:{},rtl:Q,theme:te,delay:V,isRunning:d,isIn:oe,closeToast:L,hide:I,type:P,style:J,className:M,controlledProgress:ge,progress:$||0})))},za=function(h,d){return d===void 0&&(d=!1),{enter:`Toastify--animate Toastify__${h}-enter`,exit:`Toastify--animate Toastify__${h}-exit`,appendPosition:d}},uh=gs(za("bounce",!0)),B0=gs(za("slide",!0)),H0=gs(za("zoom")),Q0=gs(za("flip")),U0={position:"top-right",transition:uh,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function ch(h){let d={...U0,...h};const c=h.stacked,[p,g]=ne.useState(!0),C=ne.useRef(null),{getToastToRender:x,isToastActive:w,count:V}=sh(d),{className:v,style:P,rtl:I,containerId:L}=d;function H(A){const S=Zn("Toastify__toast-container",`Toastify__toast-container--${A}`,{"Toastify__toast-container--rtl":I});return Hr(v)?v({position:A,rtl:I,defaultClassName:S}):Zn(S,qa(v))}function q(){c&&(g(!0),Vt.play())}return F0(()=>{if(c){var A;const S=C.current.querySelectorAll('[data-in="true"]'),R=12,k=(A=d.position)==null?void 0:A.includes("top");let M=0,J=0;Array.from(S).reverse().forEach((K,U)=>{const $=K;$.classList.add("Toastify__toast--stacked"),U>0&&($.dataset.collapsed=`${p}`),$.dataset.pos||($.dataset.pos=k?"top":"bot");const Q=M*(p?.2:1)+(p?0:R*U);$.style.setProperty("--y",`${k?Q:-1*Q}px`),$.style.setProperty("--g",`${R}`),$.style.setProperty("--s",""+(1-(p?J:0))),M+=$.offsetHeight,J+=.025})}},[p,V,c]),ne.createElement("div",{ref:C,className:"Toastify",id:L,onMouseEnter:()=>{c&&(g(!1),Vt.pause())},onMouseLeave:q},x((A,S)=>{const R=S.length?{...P}:{...P,pointerEvents:"none"};return ne.createElement("div",{className:H(A),style:R,key:`container-${A}`},S.map(k=>{let{content:M,props:J}=k;return ne.createElement(q0,{...J,stacked:c,collapseAll:q,isIn:w(J.toastId,J.containerId),style:J.style,key:`toast-${J.key}`},M)}))}))}const z0=({paramRegistry:h,timelineRepresentation:d})=>{const[c,p]=ne.useState({}),[g,C]=ne.useState([]),[x,w]=ne.useState(""),[V,v]=ne.useState("Copy URL"),[P,I]=ne.useState(!1),[L,H]=ne.useState(!1),[q,A]=ne.useState([]),S=ne.useRef(null),R=[...h].filter(G=>G.name!=="includeSubset"&&G.name!=="excludeSubset").sort((G,te)=>G.name.localeCompare(te.name));ne.useEffect(()=>{const G=new URLSearchParams(window.location.search),te={},X=[];let N=[],ce=!1;const ge=G.get("includeSubset"),Ae=G.get("excludeSubset"),fe=G.get("_b");if(fe)try{const De=atob(fe),Ge=JSON.parse(De);Ge.excludeSubset?(ce=!0,N=Ge.excludeSubset.split(",")):Ge.includeSubset&&(ce=!1,N=Ge.includeSubset.split(","))}catch{Ae?(ce=!0,N=Ae.split(",")):ge&&(ce=!1,N=ge.split(","))}else Ae?(ce=!0,N=Ae.split(",")):ge&&(ce=!1,N=ge.split(","));H(ce),Ae||ge?A(N):d.length>0&&A(ce?[]:Array.from({length:d.length},(De,Ge)=>(Ge+1).toString()));const ke=G.get("_b");if(ke)try{const De=atob(ke),Ge=JSON.parse(De),Be=h.map(Ce=>Ce.name);Object.entries(Ge).forEach(([Ce,He])=>{Be.includes(Ce)?te[Ce]=String(He):Ce!=="_b"&&X.push({name:Ce,value:typeof He=="object"?JSON.stringify(He):String(He),type:typeof He=="boolean"?"boolean":typeof He=="number"?"number":Array.isArray(He)?"array":typeof He=="object"?"json":"string"})}),h.forEach(Ce=>{Ce.name in te||(Ce.type==="boolean"&&Ce.defaultValue!==void 0?te[Ce.name]=String(Ce.defaultValue):te[Ce.name]="")}),I(!0)}catch{we(G)}else we(G);function we(De){h.forEach(Be=>{const Ce=De.get(Be.name);Ce!==null?te[Be.name]=Ce:Be.type==="boolean"&&Be.defaultValue!==void 0&&(te[Be.name]=String(Be.defaultValue))});const Ge=h.map(Be=>Be.name);De.forEach((Be,Ce)=>{if(!Ge.includes(Ce)&&Ce!=="_b"){let He="string";if(Be==="true"||Be==="false")He="boolean";else if(!isNaN(Number(Be)))He="number";else try{const st=JSON.parse(Be);He=Array.isArray(st)?"array":"json"}catch{}X.push({name:Ce,value:Be,type:He})}})}p(te),C(X)},[h]),ne.useEffect(()=>{const G=window.location.pathname.replace(/\/settings$/,"");let te="";const X={...c};if(q.length>0?L?(X.excludeSubset=q.sort().join(","),delete X.includeSubset):q.length!=d.length&&(X.includeSubset=q.sort().join(","),delete X.excludeSubset):(delete X.includeSubset,delete X.excludeSubset),g.forEach(ce=>{ce.name&&ce.value!==""&&ce.name!=="includeSubset"&&ce.name!=="excludeSubset"&&(X[ce.name]=ce.value)}),P){const ce={};Object.entries(X).forEach(([fe,ke])=>{if(ke!==""){const we=h.find(Be=>Be.name===fe),De=g.find(Be=>Be.name===fe),Ge=(we==null?void 0:we.type)||(De==null?void 0:De.type)||"string";if(Ge==="boolean"&&(we==null?void 0:we.defaultValue)!==void 0&&String(we.defaultValue)===ke)return;switch(Ge){case"number":ce[fe]=Number(ke);break;case"boolean":ce[fe]=ke==="true";break;case"array":case"json":try{ce[fe]=JSON.parse(ke)}catch{ce[fe]=ke}break;default:ce[fe]=ke}}});const ge=JSON.stringify(ce);te=`?_b=${btoa(ge)}`}else{const ce=new URLSearchParams;Object.entries(X).forEach(([ge,Ae])=>{if(Ae!==""){const fe=h.find(ke=>ke.name===ge);if((fe==null?void 0:fe.type)==="boolean"&&fe.defaultValue!==void 0&&String(fe.defaultValue)===Ae)return;ce.set(ge,String(Ae))}}),te=ce.toString()?`?${ce.toString()}`:""}const N=`${window.location.origin}${G}${te}`;w(N)},[c,g,P,h,q,L]);const k=(G,te)=>{p(X=>({...X,[G]:te}))},M=(G,te,X)=>{C(N=>{const ce=[...N];return ce[G]={...ce[G],[te]:X},ce})},J=G=>{const te=`${G+1}`;A(X=>X.includes(te)?X.filter(ce=>ce!==te):[...X,te])},K=()=>{H(G=>!G)},U=()=>{C(G=>[...G,{name:"",value:"",type:"string"}])},$=g.filter(G=>G.name!=="includeSubset"&&G.name!=="excludeSubset"),Q=G=>{C(te=>te.filter((X,N)=>N!==G))},B=()=>{S.current&&(S.current.select(),document.execCommand("copy"),v("Copied!"),setTimeout(()=>v("Copy URL"),2e3))},ee=()=>{I(!P)},oe=G=>{const{name:te,type:X,defaultValue:N}=G;if(te==="includeSubset"||te==="excludeSubset")return null;const ce=c[te]||"";switch(X){case"boolean":return W.jsxs(W.Fragment,{children:[W.jsx("button",{onClick:()=>k(te,ce==="true"?"false":"true"),className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${ce==="true"?"bg-blue-600":"bg-gray-200"}`,role:"switch","aria-checked":ce==="true",children:W.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${ce==="true"?"translate-x-5":"translate-x-0"}`})}),W.jsx("span",{className:"ml-4 text-gray-500",children:ce==="true"?"True":"False"})]});case"number":return W.jsx("input",{type:"number",className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:ce,onChange:ge=>k(te,ge.target.value),placeholder:N!==void 0?`Default: ${N}`:"Enter number..."});case"array":case"json":return W.jsx("textarea",{className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:ce,onChange:ge=>k(te,ge.target.value),placeholder:X==="array"?"Enter comma-separated values or JSON array":"Enter JSON object",rows:3});case"string":default:return W.jsx("input",{type:"text",className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:ce,onChange:ge=>k(te,ge.target.value),placeholder:N!==void 0&&N!==""?`Default: ${N}`:"Enter value..."})}},le=(G,te)=>G.name==="includeSubset"||G.name==="excludeSubset"?null:W.jsxs("div",{className:"grid grid-cols-12 gap-2 items-center mb-2",children:[W.jsx("div",{className:"col-span-3",children:W.jsx("input",{type:"text",className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:G.name,onChange:X=>M(te,"name",X.target.value),placeholder:"Parameter name"})}),W.jsx("div",{className:"col-span-2",children:W.jsxs("select",{className:"block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md",value:G.type,onChange:X=>M(te,"type",X.target.value),children:[W.jsx("option",{value:"string",children:"String"}),W.jsx("option",{value:"number",children:"Number"}),W.jsx("option",{value:"boolean",children:"Boolean"}),W.jsx("option",{value:"array",children:"Array"}),W.jsx("option",{value:"json",children:"JSON"})]})}),W.jsx("div",{className:"col-span-6",children:G.type==="boolean"?W.jsx(W.Fragment,{children:W.jsx("button",{onClick:()=>M(te,"value",G.value==="true"?"false":"true"),className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${G.value==="true"?"bg-blue-600":"bg-gray-200"}`,role:"switch","aria-checked":G.value==="true",children:W.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${G.value==="true"?"translate-x-5":"translate-x-0"}`})})}):G.type==="array"||G.type==="json"?W.jsx("textarea",{className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:G.value,onChange:X=>M(te,"value",X.target.value),placeholder:G.type==="array"?"Enter JSON array [1,2,3]":'Enter JSON object {"key":"value"}',rows:1}):G.type==="number"?W.jsx("input",{type:"number",className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:G.value,onChange:X=>M(te,"value",X.target.value),placeholder:"Enter number..."}):W.jsx("input",{type:"text",className:"block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:G.value,onChange:X=>M(te,"value",X.target.value),placeholder:"Enter value..."})}),W.jsx("div",{className:"col-span-1",children:W.jsx("button",{onClick:()=>Q(te),className:"inline-flex cursor-pointer items-center justify-center p-2 border border-transparent rounded-md text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500","aria-label":"Remove parameter",children:W.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:W.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})})]});return W.jsxs("div",{className:"max-w-4xl mx-auto p-6",children:[W.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Experiment Parameters"}),W.jsx("p",{className:"text-gray-700 mb-6",children:"Configure the experiment by setting parameter values below. Fields left empty will be assigned their default value. Once configured, you can copy the URL to run the experiment with these settings."}),W.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-md mb-8",children:[W.jsxs("div",{className:"px-4 py-5 border-b border-gray-200 sm:px-6",children:[W.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Registered Parameters"}),W.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Parameters defined in the experiment configuration."})]}),W.jsx("ul",{className:"divide-y divide-gray-200",children:R.map(G=>W.jsx("li",{className:"px-4 py-4 sm:px-6",children:W.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[W.jsx("div",{className:"col-span-2",children:W.jsxs("div",{className:"flex flex-col h-full",children:[W.jsxs("div",{className:"flex items-center",children:[W.jsx("label",{className:"text-base font-medium text-gray-900",children:G.name}),W.jsx("span",{className:"ml-2 inline-flex items-center px-2 py-0.5 rounded-lg text-xs font-medium bg-gray-100 text-gray-600",children:G.type})]}),G.description&&W.jsx("p",{className:"mt-1 text-sm text-gray-500 flex-grow",children:G.description}),G.defaultValue!==void 0&&W.jsxs("p",{className:"mt-auto pt-2 text-xs text-gray-500",children:["Default: ",W.jsxs("code",{children:[" ",JSON.stringify(G.defaultValue)]})]})]})}),W.jsx("div",{className:"col-span-1 flex items-center",children:oe(G)})]})},G.name))})]}),W.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-md mb-8",children:[W.jsx("div",{className:"px-4 py-5 border-b border-gray-200 sm:px-6",children:W.jsxs("div",{className:"flex justify-between items-center",children:[W.jsxs("div",{children:[W.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Custom Parameters"}),W.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Add any additional parameters to be stored in the data for this run."})]}),W.jsxs("button",{onClick:U,className:"inline-flex cursor-pointer items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:[W.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"-ml-1 mr-2 h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:W.jsx("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})}),"Add Parameter"]})]})}),W.jsx("div",{className:"px-4 py-5 sm:px-6",children:$.length===0?W.jsx("p",{className:"text-sm text-gray-500 italic",children:'No custom parameters added. Click "Add Parameter" to create one.'}):W.jsxs("div",{children:[W.jsxs("div",{className:"grid grid-cols-12 gap-2 mb-2",children:[W.jsx("div",{className:"col-span-3",children:W.jsx("label",{className:"block text-xs font-medium text-gray-500",children:"PARAMETER NAME"})}),W.jsx("div",{className:"col-span-2",children:W.jsx("label",{className:"block text-xs font-medium text-gray-500",children:"TYPE"})}),W.jsx("div",{className:"col-span-6",children:W.jsx("label",{className:"block text-xs font-medium text-gray-500",children:"VALUE"})}),W.jsx("div",{className:"col-span-1"})]}),$.map((G,te)=>W.jsx("div",{children:le(G,te)},te))]})})]}),d.length>0&&W.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-md mb-8",children:[W.jsx("div",{className:"px-4 py-5 border-b border-gray-200 sm:px-6",children:W.jsxs("div",{className:"flex justify-between items-center",children:[W.jsxs("div",{children:[W.jsx("h2",{className:"text-lg font-medium text-gray-900",children:"Trial Selection"}),W.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Select which trials to include or exclude from the experiment."})]}),W.jsxs("div",{className:"flex items-center",children:[W.jsx("button",{onClick:K,className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${L?"bg-red-600":"bg-green-600"}`,role:"switch","aria-checked":L,children:W.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${L?"translate-x-5":"translate-x-0"}`})}),W.jsx("span",{className:"ml-2 text-sm text-gray-600",children:L?"Exclude mode":"Include mode"})]})]})}),W.jsxs("div",{className:"px-4 py-5 sm:px-6",children:[W.jsx("p",{className:"mb-4 text-sm font-medium text-gray-500",children:L?"Check trials you want to EXCLUDE from the experiment":"Check trials you want to INCLUDE in the experiment"}),W.jsx("div",{className:"border border-gray-200 rounded-md overflow-hidden",children:W.jsx("ul",{className:"divide-y divide-gray-200",children:d.map((G,te)=>W.jsx("li",{className:"cursor-pointer px-4 py-3 hover:bg-gray-50",onClick:X=>{X.target.type!=="checkbox"&&!X.target.closest("label")&&J(te)},children:W.jsx("div",{className:"flex items-center",children:W.jsxs("div",{className:"flex items-center flex-grow",children:[W.jsx("input",{id:`trial-${te}`,type:"checkbox",className:"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded cursor-pointer",checked:q.includes(`${te+1}`),onChange:()=>J(te)}),W.jsxs("label",{htmlFor:`trial-${te}`,className:"ml-3 flex-grow flex items-center cursor-pointer",children:[W.jsxs("div",{className:"w-8 text-center text-xs text-gray-500 font-medium",children:["#",te+1]}),W.jsx("div",{className:"flex-grow",children:G.name?W.jsx("span",{className:"font-medium text-gray-900",children:G.name}):W.jsx("span",{className:"font-medium text-gray-500",children:G.type})}),W.jsx("div",{className:"ml-2",children:W.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800",children:G.type})})]})]})})},te))})})]})]}),W.jsxs("div",{className:"bg-white shadow sm:rounded-md p-6 mb-8",children:[W.jsxs("div",{className:"flex justify-between items-center mb-4",children:[W.jsx("h2",{className:"text-lg font-medium",children:"Generated URL"}),W.jsxs("div",{className:"flex items-center",children:[W.jsx("button",{onClick:ee,className:`relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${P?"bg-blue-600":"bg-gray-200"}`,role:"switch","aria-checked":P,children:W.jsx("span",{className:`pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200 ${P?"translate-x-5":"translate-x-0"}`})}),W.jsx("span",{className:"ml-2 text-sm text-gray-600",children:P?"Base64 Encoded":"Plain Parameters"})]})]}),W.jsxs("div",{className:"flex flex-col md:flex-row gap-3",children:[W.jsx("input",{ref:S,type:"text",className:"flex-grow px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",value:x,readOnly:!0}),W.jsx("button",{onClick:B,className:"inline-flex cursor-pointer justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:V})]}),P&&W.jsxs("p",{className:"mt-4 text-sm text-gray-600",children:[W.jsx("span",{className:"font-medium",children:"Note:"}),' Base64 encoding combines all parameters into a single "_b" parameter, creating shorter URLs that hide parameter details.']})]}),W.jsx("div",{className:"flex justify-center",children:W.jsx("a",{href:x,className:"inline-flex justify-center py-4 px-5 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",children:"Launch Experiment with these Settings"})})]})},W0=new qy;function $0({children:h,disableSettings:d}){return window.location.pathname.endsWith("/settings")&&!d?W.jsx(z0,{paramRegistry:ua.getRegistry(),timelineRepresentation:ua.getTimelineRepresentation()}):W.jsxs(Qy,{client:W0,children:[h,W.jsx(ch,{position:"top-center",autoClose:3e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!1,pauseOnHover:!0,theme:"light",toastClassName:()=>"relative flex p-4 min-h-10 rounded-none justify-between overflow-hidden cursor-pointer border-2 border-black shadow-[2px_2px_0px_rgba(0,0,0,1)] bg-white",bodyClassName:"text-black font-sans"})]})}function fh(h){return`user_${h}`}function ph(h){const d=[],c={};let p=0;function g(V){return`${V}_auto_${p++}`}function C(V){return(v,P)=>V(P,v)}function x(V){return(v,P)=>{const I=V(P,v);return typeof I=="object"&&I!==null?{...v,...I}:(console.warn("Store update function did not return an object. Store remains unchanged.",{data:P,store:v}),v)}}function w(V){for(const v of V){let P=!1;if(typeof v=="object"&&v!==null&&"type"in v)switch(v.type){case"MARKER":{const L=v;c[fh(L.id)]=d.length,P=!0;break}case"IF_GOTO":{const L=v,H=C(L.cond);d.push({type:"IfGoto",cond:H,marker:fh(L.marker)}),P=!0;break}case"UPDATE_STORE":{const H=x(v.fun);d.push({type:"UpdateStore",fun:H}),P=!0;break}case"IF_BLOCK":{const L=v,H=g("if_end"),q=C(L.cond);d.push({type:"IfGoto",cond:(A,S)=>!q(A,S),marker:H}),w(L.timeline),c[H]=d.length,P=!0;break}case"WHILE_BLOCK":{const L=v,H=g("while_start"),q=g("while_end"),A=C(L.cond);c[H]=d.length,d.push({type:"IfGoto",cond:(S,R)=>!A(S,R),marker:q}),w(L.timeline),d.push({type:"IfGoto",cond:()=>!0,marker:H}),c[q]=d.length,P=!0;break}}P||d.push({type:"ExecuteContent",content:v})}}return w(h),{instructions:d,markers:c}}function dh({next:h}){const[d,c]=ne.useState("checking");return ne.useEffect(()=>{if(d!=="checking")return;(async()=>{if(Jo()!=="mobile"||Ci.getPlatform()!=="android"){h({});return}try{await Ei.writeFile({path:"permission_check.txt",data:"Testing permissions",directory:Rn.Documents,encoding:Fa.UTF8});try{await Ei.deleteFile({path:"permission_check.txt",directory:Rn.Documents})}catch(g){console.log("Cleanup error:",g)}c("granted"),h({})}catch(g){console.error("Permission denied or error:",g),c("denied")}})()},[h,d]),d==="checking"?null:W.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-6 text-xl mt-16 px-10",children:[W.jsx("p",{children:"Storage permission is required to save your data."}),W.jsx("p",{children:"Please grant permission when prompted."}),W.jsxs("p",{children:['If there is no popup, go to "Settings" ',">",' "Apps" ',">",' "Name of the App" ',">",' "Permissions" ',">",' "Storage" ',">",' "Allow"']}),W.jsx("button",{onClick:()=>c("checking"),className:"mt-8 bg-white px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"Try Again"})]})}function G0(h){return typeof h=="function"}function Z0(h){return typeof h=="object"&&h!==null&&typeof h.draw=="function"}function hh({next:h,updateStore:d,timeline:c,width:p,height:g,store:C,styleCanvas:x,initCanvas:w}){const{instructions:V,markers:v}=ne.useMemo(()=>ph(c),[c]),P=ne.useRef(0),I=ne.useRef(0),L=ne.useRef(!0),H=ne.useRef(null),q=ne.useRef(null),A=ne.useRef([]),S=ne.useRef(C??{}),R=ne.useRef(null),k=ne.useRef(0),M=ne.useRef(null);ne.useEffect(()=>{const le=S.current._reactiveScreenRefreshRate,G=typeof le=="number"&&le>=20&&le<=300;M.current=G?1e3/le:null},[C]);const J=ne.useCallback(le=>{if(le.type!=="ExecuteContent")return null;const G=le.content;if(G0(G))try{return G(A.current,S.current)}catch(te){return console.error("Error executing dynamic canvas slide generator:",te),null}else if(Z0(G))return G;return console.warn("ExecuteContent instruction content is not a valid CanvasSlide or Generator:",G),null},[]),K=ne.useCallback(()=>{const le=q.current;if(!le)return{};const G=le.getContext("2d");if(!G)return{};const te=window.devicePixelRatio||1,X=le.width/te,N=le.height/te;return{ctx:G,canvasWidth:X,canvasHeight:N}},[]),U=ne.useCallback(()=>{const{ctx:le,canvasWidth:G,canvasHeight:te}=K();le&&(le.fillStyle="white",le.fillRect(0,0,G,te),L.current=!1)},[K]),$=ne.useCallback(le=>{const{ctx:G,canvasWidth:te,canvasHeight:X}=K();if(G){if(G.fillStyle="white",G.fillRect(0,0,te,X),x)try{x(G,te,X)}catch(N){console.error("Error during styleCanvas function:",N)}else G.fillStyle="black";try{le.draw(G,te,X)}catch(N){console.error("Error during slide draw function:",N)}I.current=or(),L.current=!0,H.current=null,k.current+=1}},[K]);let Q;const B=ne.useCallback(()=>{const le=or(),G=P.current;if(G<0||G>=V.length){R.current&&cancelAnimationFrame(R.current),R.current=null;return}const te=V[G],X=J(te);if(!X){R.current&&cancelAnimationFrame(R.current),R.current=null;return}const N=X.displayDuration??1/0,ce=X.responseTimeLimit??1/0,ge=X.allowedKeys??!1,Ae=ge===!1||Array.isArray(ge)&&ge.length===0;let fe=!1;const ke=le-I.current+(M.current!==null?M.current*.5:0);L.current&&N!==1/0&&ke>=N&&(U(),(Ae||ce===1/0)&&(fe=!0)),!fe&&ce!==1/0&&ke>=ce&&(fe=!0,L.current&&N!==1/0&&ke<N&&U()),fe?Q():L.current&&N!==1/0&&ke<N||ce!==1/0&&ke<ce?R.current=requestAnimationFrame(B):(R.current&&cancelAnimationFrame(R.current),R.current=null)},[V,J,U]),ee=ne.useCallback(()=>{let le=!1;for(R.current&&cancelAnimationFrame(R.current),R.current=null;!le&&P.current<V.length;){const G=V[P.current];switch(G.type){case"IfGoto":if(G.cond(S.current,A.current)){const te=v[G.marker];te!==void 0?P.current=te:(console.error(`Marker ${G.marker} not found`),P.current++)}else P.current++;continue;case"UpdateStore":{S.current={...S.current,...G.fun(S.current,A.current)},P.current++;continue}case"ExecuteContent":{if(le=!0,q.current){const te=J(G);if(te){$(te);const X=te.displayDuration??1/0,N=te.responseTimeLimit??1/0;(X!==1/0||N!==1/0)&&(R.current=requestAnimationFrame(B))}else{console.error("Failed to resolve slide content during control flow:",G),P.current++,le=!1;continue}}else{console.error("Canvas element not found during control flow.");return}break}default:console.warn("Unknown instruction type during control flow:",G),P.current++;continue}}!le&&P.current>=V.length&&(R.current&&cancelAnimationFrame(R.current),R.current=null,d(S.current),h(A.current))},[V,v,J,$,B,h]);Q=ne.useCallback(()=>{const le=H.current,G=or();R.current&&cancelAnimationFrame(R.current),R.current=null;const te=P.current;if(te>=V.length||V[te].type!=="ExecuteContent"){P.current++,ee();return}const X=V[te],N=J(X);if(N&&!N.ignoreData){let ce={index:P.current,trialNumber:k.current-1,start:I.current,end:G,duration:G-I.current,key:le?le.key:null,reactionTime:le?le.reactionTime:null};const ge=typeof N.metadata=="function"?N.metadata(A.current,S.current):N.metadata;N.nestMetadata?ce={...ce,metadata:ge}:ce={...ge,...ce},A.current.push(ce)}P.current++,H.current=null,ee()},[V,J,ee]);const oe=ne.useCallback(le=>{const G=or(),te=P.current;if(te>=V.length||!L.current)return;const X=V[te];if(X.type!=="ExecuteContent")return;const N=J(X);if(!N)return;const ce=N.responseTimeLimit??1/0,ge=G-I.current<ce,Ae=N.allowedKeys??!1;if((Ae===!0||Array.isArray(Ae)&&Ae.includes(le.key))&&ge){const ke=N.endSlideOnResponse??!0,we=N.hideOnResponse??!1,De=N.ignoreData??!1;(!H.current||!ke)&&(!H.current&&!De&&(H.current={key:le.key,time:G,reactionTime:G-I.current}),we&&U(),ke&&Q())}},[V,J,Q,U]);return ne.useEffect(()=>{const le=q.current;if(!le)return;const G=ao()?window.screen.width:window.innerWidth,te=ao()?window.screen.height:window.innerHeight;let X,N;const ce=(Ce,He)=>{if(typeof Ce=="number")return Ce;if(typeof Ce=="string"&&Ce.includes("%")){const st=parseFloat(Ce);if(!isNaN(st))return He*st/100}return null};let ge=ce(p,G),Ae=ce(g,te);const fe=typeof p=="string"&&/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(p),ke=typeof g=="string"&&/^\d+(?:\.\d+)?:\d+(?:\.\d+)?$/.test(g);if(ge!==null&&Ae!==null)X=ge,N=Ae;else if(ge!==null&&Ae===null&&!ke)X=ge,N=ge;else if(Ae!==null&&ge===null&&!fe)N=Ae,X=Ae;else if(ge===null&&Ae===null&&!fe&&!ke){const Ce=Math.min(G,te);X=Ce,N=Ce}else{let Ce=ge,He=Ae;if(ke&&Ce===null&&(Ce=He??te),fe&&He===null&&(He=Ce??G),Ce===null&&He===null){const st=Math.min(G,te);Ce=st,He=st}else Ce===null?Ce=He:He===null&&(He=Ce);X=Ce,N=He??0}if(fe&&!ke)try{const Ce=p.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);Ce&&(X=N/parseFloat(Ce[2])*parseFloat(Ce[1]))}catch{console.error("Invalid width ratio string:",p)}else if(ke&&!fe)try{const Ce=g.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);Ce&&(N=X/parseFloat(Ce[1])*parseFloat(Ce[2]))}catch{console.error("Invalid height ratio string:",g)}else if(fe&&ke){console.warn(`Both width (${p}) and height (${g}) are ratios. Prioritizing width.`);try{const Ce=p.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);if(Ce){X=te/parseFloat(Ce[2])*parseFloat(Ce[1]);const He=g.match(/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/);He?N=X/parseFloat(He[1])*parseFloat(He[2]):N=X}else{const He=Math.min(G,te);X=He,N=He}}catch(Ce){console.error("Error parsing ratios:",Ce);const He=Math.min(G,te);X=He,N=He}}const we=window.devicePixelRatio||1,De=Math.round(X),Ge=Math.round(N);le.width=Math.round(De*we),le.height=Math.round(Ge*we),le.style.width=De+"px",le.style.height=Ge+"px";const Be=le.getContext("2d");if(Be&&Be.scale(we,we),w&&Be)try{w(Be,De,Ge)}catch(Ce){console.error("Error during canvas initialization:",Ce)}return window.addEventListener("keydown",oe),ee(),()=>{window.removeEventListener("keydown",oe),R.current&&cancelAnimationFrame(R.current)}},[c,p,g,oe,ee]),W.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:W.jsx("canvas",{ref:q})})}function gh({check:h,content:d=W.jsx("div",{children:"Your device doesn't meet the requirements for this experiment."}),data:c,store:p,updateStore:g,next:C}){const[x,w]=ne.useState(!1),V=ne.useRef(!1);return ne.useEffect(()=>{if(V.current)return;(async()=>{const P=window.innerWidth,I=window.innerHeight,L=window.screen.width,H=window.screen.height,q=navigator.userAgent;let A="Unknown",S="Unknown";if(q.indexOf("Chrome")>-1){A="Chrome";const B=q.match(/Chrome\/(\d+\.\d+)/);S=B?B[1]:"Unknown"}else if(q.indexOf("Firefox")>-1){A="Firefox";const B=q.match(/Firefox\/(\d+\.\d+)/);S=B?B[1]:"Unknown"}else if(q.indexOf("Safari")>-1){A="Safari";const B=q.match(/Version\/(\d+\.\d+)/);S=B?B[1]:"Unknown"}else if(q.indexOf("Edge")>-1){A="Edge";const B=q.match(/Edge\/(\d+\.\d+)/);S=B?B[1]:"Unknown"}else if(q.indexOf("MSIE")>-1||q.indexOf("Trident/")>-1){A="Internet Explorer";const B=q.match(/(?:MSIE |rv:)(\d+\.\d+)/);S=B?B[1]:"Unknown"}const R=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(q);let k="Unknown";/Windows/.test(q)?k="Windows":/Macintosh|Mac OS X/.test(q)?k="MacOS":/Linux/.test(q)?k="Linux":/Android/.test(q)?k="Android":/iOS|iPhone|iPad|iPod/.test(q)&&(k="iOS");const M=!!(window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext),J=!!(document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen||document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled);let K=!1,U=!1;try{const B=await navigator.mediaDevices.enumerateDevices();K=B.some(ee=>ee.kind==="videoinput"),U=B.some(ee=>ee.kind==="audioinput")}catch(B){console.error("Error checking media devices:",B)}const $={windowWidth:P,windowHeight:I,screenWidth:L,screenHeight:H,browser:A,browserVersion:S,isMobile:R,operatingSystem:k,hasWebAudio:M,hasFullscreen:J,hasWebcam:K,hasMicrophone:U};g({_reactiveDeviceInfo:$}),(h?h($,c,p):!0)&&!V.current?(V.current=!0,C($)):w(!0)})()},[h,c,g,C]),x?W.jsx("div",{className:"max-w-prose mx-auto mt-20 mb-20 px-4",children:W.jsx("article",{className:"prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed",children:d})}):null}function K0({next:h,updateStore:d,store:c,title:p="Settings",description:g,fields:C,saveButtonText:x="Save Configuration"}){const[w,V]=ne.useState({}),[v,P]=ne.useState({}),[I,L]=ne.useState({});ne.useEffect(()=>{const R={};C.forEach(M=>{R[M.storeKey]=(c==null?void 0:c[M.storeKey])!==void 0?c[M.storeKey]:M.defaultValue}),V(R);const k={};C.forEach(M=>{k[M.storeKey]=!1}),L(k)},[c,C]);const H=(R,k)=>{if(R.type==="integer"||R.type==="float"){if(k==null||k==="")return"This field is required";if(R.min!==void 0&&k<R.min)return`Value must be at least ${R.min}`;if(R.max!==void 0&&k>R.max)return`Value must be at most ${R.max}`}else if(R.type==="string"){if(R.minLength!==void 0&&k.length<R.minLength)return`Must be at least ${R.minLength} characters`;if(R.maxLength!==void 0&&k.length>R.maxLength)return`Must be at most ${R.maxLength} characters`}if(R.validate){const M=R.validate(k);if(M!==!0&&M!=="")return typeof M=="string"?M:"Invalid value"}return null};ne.useEffect(()=>{const R={};C.forEach(k=>{const M=w[k.storeKey];if(!I[k.storeKey])return;const J=H(k,M);J&&(R[k.storeKey]=J)}),P(R)},[w,C,I]);const q=(R,k)=>{V(M=>({...M,[R]:k})),L(M=>({...M,[R]:!0}))},A=()=>{const R={};C.forEach(M=>{R[M.storeKey]=!0}),L(R);const k={};C.forEach(M=>{const J=w[M.storeKey];if(M.type==="integer"||M.type==="float"?J==null||J===""?k[M.storeKey]="This field is required":M.min!==void 0&&J<M.min?k[M.storeKey]=`Value must be at least ${M.min}`:M.max!==void 0&&J>M.max&&(k[M.storeKey]=`Value must be at most ${M.max}`):M.type==="string"&&(M.minLength!==void 0&&J.length<M.minLength?k[M.storeKey]=`Must be at least ${M.minLength} characters`:M.maxLength!==void 0&&J.length>M.maxLength&&(k[M.storeKey]=`Must be at most ${M.maxLength} characters`)),M.validate&&!k[M.storeKey]){const K=M.validate(J);K!==!0&&K!==""&&(k[M.storeKey]=typeof K=="string"?K:"Invalid value")}}),P(k),Object.keys(k).length===0&&(d(w),h(w))},S=Object.keys(v).length>0;return W.jsxs("div",{className:"max-w-prose mx-auto mt-20 mb-20 px-4",children:[W.jsx("h1",{className:"text-4xl font-bold mb-6",children:p}),g&&W.jsx("article",{className:"prose prose-lg mb-10",children:g}),W.jsx("div",{className:"mt-12 space-y-12",children:C.map(R=>W.jsxs("div",{className:"space-y-2",children:[W.jsxs("label",{className:"block text-xl font-medium text-gray-900",children:[R.label,R.type==="integer"&&R.min!==void 0&&R.max!==void 0&&` (${R.min}-${R.max})`,R.type==="float"&&R.min!==void 0&&R.max!==void 0&&` (${R.min}-${R.max})`]}),R.prompt&&W.jsx("p",{className:"mb-4 text-base text-gray-700 mb-2",children:R.prompt}),R.type==="boolean"&&W.jsxs("div",{className:"flex items-center",children:[W.jsxs("div",{className:`relative cursor-pointer w-10 h-10 flex items-center justify-center border-2 border-black rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none ${w[R.storeKey]?"bg-blue-600 text-white":"bg-white"}`,onClick:()=>q(R.storeKey,!w[R.storeKey]),children:[W.jsx("input",{type:"checkbox",checked:!!w[R.storeKey],onChange:k=>q(R.storeKey,k.target.checked),className:"absolute opacity-0 h-0 w-0"}),w[R.storeKey]&&W.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:W.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})]}),W.jsx("span",{className:"ml-3 text-lg",children:"Enabled"})]}),(R.type==="integer"||R.type==="float")&&W.jsxs("div",{className:"flex items-center space-x-4",children:[R.min!==void 0&&R.max!==void 0&&W.jsx("button",{onClick:()=>q(R.storeKey,Math.max(R.min||0,(w[R.storeKey]||0)-(R.step||1))),className:"cursor-pointer bg-white h-10 w-10 flex items-center justify-center border-2 border-black font-bold text-black text-lg rounded-full shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"-"}),W.jsx("input",{type:"text",value:w[R.storeKey]||"",onChange:k=>{const M=k.target.value;let J;R.type==="integer"?J=M===""?"":parseInt(M,10):R.type==="float"&&(J=M===""?"":parseFloat(M)),(M===""||!isNaN(J))&&q(R.storeKey,J)},step:R.step||(R.type==="integer"?1:.1),min:R.min,max:R.max,className:"w-24 px-4 py-2 text-center border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"}),R.min!==void 0&&R.max!==void 0&&W.jsx("button",{onClick:()=>q(R.storeKey,Math.min(R.max||1/0,(w[R.storeKey]||0)+(R.step||1))),className:"cursor-pointer bg-white h-10 w-10 flex items-center justify-center border-2 border-black font-bold text-black text-lg rounded-full shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",children:"+"})]}),R.type==="string"&&W.jsx("input",{type:"text",value:w[R.storeKey]||"",onChange:k=>q(R.storeKey,k.target.value),className:"w-full px-4 py-2 border-2 border-black rounded-xl text-lg focus:outline-none focus:ring-2 focus:ring-blue-500"}),v[R.storeKey]&&I[R.storeKey]&&W.jsx("div",{className:"text-red-500 text-sm mt-1",children:v[R.storeKey]}),R.component&&W.jsx("div",{className:"mt-4",children:ne.createElement(R.component,{value:w[R.storeKey]})})]},R.storeKey))}),W.jsx("div",{className:"mt-12 flex justify-center",children:W.jsx("button",{onClick:A,disabled:S,className:`bg-white cursor-pointer px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none ${S?"opacity-50 cursor-not-allowed":""}`,children:x})})]})}const J0={Text:ca,ProlificEnding:Ef,EnterFullscreen:Jd,ExitFullscreen:Yd,Quest:Nf,Upload:Wd,MicrophoneCheck:Df,PlainInput:jf,RequestFilePermission:dh,CanvasBlock:hh,CheckDevice:gh,StoreUI:K0},Y0={voicerecorder:gy};function mh(h){return typeof h=="object"&&h!==null&&typeof h.type=="string"}function X0({timeline:h,config:d={showProgressBar:!1},components:c={},questions:p={}}){const g=ne.useMemo(()=>ph(h),[h]),[C,x]=ne.useState(0),w=ne.useRef((()=>{const K={},U=new URLSearchParams(window.location.search);for(const[ee,oe]of U.entries())K[ee]=oe;const $=ua.getRegistry()||[],Q={};for(const[ee,oe]of Object.entries(K))Q[ee]={value:oe,registered:!1,defaultValue:void 0,type:void 0,description:void 0};for(const ee of $)Q[ee.name]={value:ee.value!==void 0?ee.value:K[ee.name],registered:!0,defaultValue:ee.defaultValue,type:ee.type,description:ee.description};return[{index:-1,trialNumber:-1,start:or(),end:or(),duration:0,type:"",name:"",responseData:{userAgent:navigator.userAgent,params:Q}}]})()),[V,v]=ne.useState(0),P=ne.useRef(or()),I=ne.useRef({}),L={...J0,...c},H={...Y0,...p},q=ne.useMemo(()=>{const K=g.instructions.length;return K>0?C/K:0},[C,g.instructions]);ne.useEffect(()=>{window.scrollTo(0,0)},[C]);function A(K){I.current={...I.current,...K}}function S(K,U,$){const Q=or(),B=g.instructions[C],ee=U!==void 0?U:P.current,oe=$!==void 0?$:Q;if((B==null?void 0:B.type)==="ExecuteContent"){const te=B.content;if(mh(te)){let X={index:C,trialNumber:V+1,start:ee,end:oe,duration:oe-ee,type:te.type,name:te.name??"",responseData:K};const N=typeof te.metadata=="function"?te.metadata(w.current,I.current):te.metadata;te.nestMetadata?X={...X,metadata:N}:X={...N,...X},w.current=[...w.current,X],v(ce=>ce+1)}else console.log("ExecuteContent finished, but content wasn't standard component format:",te)}let le=C+1,G=!1;for(;le<g.instructions.length;){const te=g.instructions[le];switch(te.type){case"IfGoto":if(te.cond(I.current,w.current)){const X=g.markers[te.marker];if(X!==void 0){le=X;continue}else console.error(`Marker ${te.marker} not found`),le++}else le++;break;case"UpdateStore":A(te.fun(I.current,w.current)),le++;break;case"ExecuteContent":G=!0,P.current=or(),x(le);return;default:console.error("Unknown instruction type encountered:",te),le++;break}}G||x(le)}const R=ne.useCallback(K=>{let U=0;const $=or(),Q=2e4;let B,ee=$;const oe=1e3,le=()=>{const N=or()-$;return N>0?Math.round(U*1e3/N):null},G=()=>{B&&cancelAnimationFrame(B)},te=X=>{U++;const N=X-$;X-ee>=oe&&(K(le()),ee=X),N<Q?B=requestAnimationFrame(te):(G(),K(le()))};return B=requestAnimationFrame(te),G},[]),k=({children:K,collectRefreshRate:U})=>{const $=ne.useRef(null),Q=ne.useRef(null);ne.useEffect(()=>{if($.current=or(),U)return R(oe=>{Q.current=oe,A({_reactiveScreenRefreshRate:oe})})},[]);const B=ne.Children.map(K,ee=>{if(ne.isValidElement(ee)){const oe=(le,G,te)=>{const X=or(),N=G!==void 0?G:$.current;S(le,N??void 0,(te!==void 0?te:X)??void 0)};return ne.cloneElement(ee,{...ee.props,next:oe})}return ee});return W.jsx(W.Fragment,{children:B})},M=g.instructions[C];let J=null;if((M==null?void 0:M.type)==="ExecuteContent"){const K=M.content;if(mh(K)){const U=L[K.type];if(U){const $=typeof K.props=="function"?K.props(w.current,I.current):K.props||{};J=W.jsx(k,{collectRefreshRate:K.collectRefreshRate,children:W.jsx(U,{next:S,updateStore:A,store:I.current,data:w.current,...K.type==="Quest"?{customQuestions:H}:{},...$})},C)}else console.error(`No component found for type: ${K.type}`),J=W.jsxs("div",{children:['Error: Component type "',K.type,'" not found.']})}else console.warn("ExecuteContent instruction does not contain standard component data:",K),J=W.jsx("div",{children:"Non-component content encountered."})}else C>=g.instructions.length&&(J=W.jsx(W.Fragment,{}));return W.jsxs("div",{className:"w-full h-full",children:[W.jsx("div",{className:` ${d.showProgressBar?"":"hidden "} px-4 mt-4 sm:mt-12 max-w-2xl mx-auto flex-1 h-6 bg-gray-200 rounded-full overflow-hidden`,children:W.jsx("div",{className:`h-full bg-gray-200 rounded-full duration-300 ${q>0?" border-black border-2":""}`,style:{width:`${q*100}%`,backgroundImage:`repeating-linear-gradient(
107
107
  -45deg, #E5E7EB, #E5E7EB 10px, #D1D5DB 10px, #D1D5DB 20px
108
108
  )`,transition:"width 300ms ease-in-out"}})}),J]})}function yh(h){const d=h.split("/").filter(p=>p!=="."),c=[];return d.forEach(p=>{p===".."&&c.length>0&&c[c.length-1]!==".."?c.pop():c.push(p)}),c.join("/")}function e1(h,d){h=yh(h),d=yh(d);const c=h.split("/"),p=d.split("/");return h!==d&&c.every((g,C)=>g===p[C])}class Wa extends aa{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=async d=>{var c,p;const g=Cf(d,d.webFetchExtra),C=await fetch(d.url,g);let x;if(!d.progress)x=await C.blob();else if(!(C!=null&&C.body))x=new Blob;else{const V=C.body.getReader();let v=0;const P=[],I=C.headers.get("content-type"),L=parseInt(C.headers.get("content-length")||"0",10);for(;;){const{done:A,value:S}=await V.read();if(A)break;P.push(S),v+=(S==null?void 0:S.length)||0;const R={url:d.url,bytes:v,contentLength:L};this.notifyListeners("progress",R)}const H=new Uint8Array(v);let q=0;for(const A of P)typeof A>"u"||(H.set(A,q),q+=A.length);x=new Blob([H.buffer],{type:I||void 0})}return{path:(await this.writeFile({path:d.path,directory:(c=d.directory)!==null&&c!==void 0?c:void 0,recursive:(p=d.recursive)!==null&&p!==void 0?p:!1,data:x})).uri,blob:x}}}async initDb(){if(this._db!==void 0)return this._db;if(!("indexedDB"in window))throw this.unavailable("This browser doesn't support IndexedDB");return new Promise((d,c)=>{const p=indexedDB.open(this.DB_NAME,this.DB_VERSION);p.onupgradeneeded=Wa.doUpgrade,p.onsuccess=()=>{this._db=p.result,d(p.result)},p.onerror=()=>c(p.error),p.onblocked=()=>{console.warn("db blocked")}})}static doUpgrade(d){const p=d.target.result;switch(d.oldVersion){case 0:case 1:default:p.objectStoreNames.contains("FileStorage")&&p.deleteObjectStore("FileStorage"),p.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}}async dbRequest(d,c){const p=this._writeCmds.indexOf(d)!==-1?"readwrite":"readonly";return this.initDb().then(g=>new Promise((C,x)=>{const v=g.transaction(["FileStorage"],p).objectStore("FileStorage")[d](...c);v.onsuccess=()=>C(v.result),v.onerror=()=>x(v.error)}))}async dbIndexRequest(d,c,p){const g=this._writeCmds.indexOf(c)!==-1?"readwrite":"readonly";return this.initDb().then(C=>new Promise((x,w)=>{const I=C.transaction(["FileStorage"],g).objectStore("FileStorage").index(d)[c](...p);I.onsuccess=()=>x(I.result),I.onerror=()=>w(I.error)}))}getPath(d,c){const p=c!==void 0?c.replace(/^[/]+|[/]+$/g,""):"";let g="";return d!==void 0&&(g+="/"+d),c!==""&&(g+="/"+p),g}async clear(){(await this.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()}async readFile(d){const c=this.getPath(d.directory,d.path),p=await this.dbRequest("get",[c]);if(p===void 0)throw Error("File does not exist.");return{data:p.content?p.content:""}}async writeFile(d){const c=this.getPath(d.directory,d.path);let p=d.data;const g=d.encoding,C=d.recursive,x=await this.dbRequest("get",[c]);if(x&&x.type==="directory")throw Error("The supplied path is a directory.");const w=c.substr(0,c.lastIndexOf("/"));if(await this.dbRequest("get",[w])===void 0){const I=w.indexOf("/",1);if(I!==-1){const L=w.substr(I);await this.mkdir({path:L,directory:d.directory,recursive:C})}}if(!g&&!(p instanceof Blob)&&(p=p.indexOf(",")>=0?p.split(",")[1]:p,!this.isBase64String(p)))throw Error("The supplied data is not valid base64 content.");const v=Date.now(),P={path:c,folder:w,type:"file",size:p instanceof Blob?p.size:p.length,ctime:v,mtime:v,content:p};return await this.dbRequest("put",[P]),{uri:P.path}}async appendFile(d){const c=this.getPath(d.directory,d.path);let p=d.data;const g=d.encoding,C=c.substr(0,c.lastIndexOf("/")),x=Date.now();let w=x;const V=await this.dbRequest("get",[c]);if(V&&V.type==="directory")throw Error("The supplied path is a directory.");if(await this.dbRequest("get",[C])===void 0){const I=C.indexOf("/",1);if(I!==-1){const L=C.substr(I);await this.mkdir({path:L,directory:d.directory,recursive:!0})}}if(!g&&!this.isBase64String(p))throw Error("The supplied data is not valid base64 content.");if(V!==void 0){if(V.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");V.content!==void 0&&!g?p=btoa(atob(V.content)+atob(p)):p=V.content+p,w=V.ctime}const P={path:c,folder:C,type:"file",size:p.length,ctime:w,mtime:x,content:p};await this.dbRequest("put",[P])}async deleteFile(d){const c=this.getPath(d.directory,d.path);if(await this.dbRequest("get",[c])===void 0)throw Error("File does not exist.");if((await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(c)])).length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[c])}async mkdir(d){const c=this.getPath(d.directory,d.path),p=d.recursive,g=c.substr(0,c.lastIndexOf("/")),C=(c.match(/\//g)||[]).length,x=await this.dbRequest("get",[g]),w=await this.dbRequest("get",[c]);if(C===1)throw Error("Cannot create Root directory");if(w!==void 0)throw Error("Current directory does already exist.");if(!p&&C!==2&&x===void 0)throw Error("Parent directory must exist");if(p&&C!==2&&x===void 0){const P=g.substr(g.indexOf("/",1));await this.mkdir({path:P,directory:d.directory,recursive:p})}const V=Date.now(),v={path:c,folder:g,type:"directory",size:0,ctime:V,mtime:V};await this.dbRequest("put",[v])}async rmdir(d){const{path:c,directory:p,recursive:g}=d,C=this.getPath(p,c),x=await this.dbRequest("get",[C]);if(x===void 0)throw Error("Folder does not exist.");if(x.type!=="directory")throw Error("Requested path is not a directory");const w=await this.readdir({path:c,directory:p});if(w.files.length!==0&&!g)throw Error("Folder is not empty");for(const V of w.files){const v=`${c}/${V.name}`;(await this.stat({path:v,directory:p})).type==="file"?await this.deleteFile({path:v,directory:p}):await this.rmdir({path:v,directory:p,recursive:g})}await this.dbRequest("delete",[C])}async readdir(d){const c=this.getPath(d.directory,d.path),p=await this.dbRequest("get",[c]);if(d.path!==""&&p===void 0)throw Error("Folder does not exist.");const g=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(c)]);return{files:await Promise.all(g.map(async x=>{let w=await this.dbRequest("get",[x]);return w===void 0&&(w=await this.dbRequest("get",[x+"/"])),{name:x.substring(c.length+1),type:w.type,size:w.size,ctime:w.ctime,mtime:w.mtime,uri:w.path}}))}}async getUri(d){const c=this.getPath(d.directory,d.path);let p=await this.dbRequest("get",[c]);return p===void 0&&(p=await this.dbRequest("get",[c+"/"])),{uri:(p==null?void 0:p.path)||c}}async stat(d){const c=this.getPath(d.directory,d.path);let p=await this.dbRequest("get",[c]);if(p===void 0&&(p=await this.dbRequest("get",[c+"/"])),p===void 0)throw Error("Entry does not exist.");return{type:p.type,size:p.size,ctime:p.ctime,mtime:p.mtime,uri:p.path}}async rename(d){await this._copy(d,!0)}async copy(d){return this._copy(d,!1)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(d,c=!1){let{toDirectory:p}=d;const{to:g,from:C,directory:x}=d;if(!g||!C)throw Error("Both to and from must be provided");p||(p=x);const w=this.getPath(x,C),V=this.getPath(p,g);if(w===V)return{uri:V};if(e1(w,V))throw Error("To path cannot contain the from path");let v;try{v=await this.stat({path:g,directory:p})}catch{const q=g.split("/");q.pop();const A=q.join("/");if(q.length>0&&(await this.stat({path:A,directory:p})).type!=="directory")throw new Error("Parent directory of the to path is a file")}if(v&&v.type==="directory")throw new Error("Cannot overwrite a directory with a file");const P=await this.stat({path:C,directory:x}),I=async(H,q,A)=>{const S=this.getPath(p,H),R=await this.dbRequest("get",[S]);R.ctime=q,R.mtime=A,await this.dbRequest("put",[R])},L=P.ctime?P.ctime:Date.now();switch(P.type){case"file":{const H=await this.readFile({path:C,directory:x});c&&await this.deleteFile({path:C,directory:x});let q;!(H.data instanceof Blob)&&!this.isBase64String(H.data)&&(q=Fa.UTF8);const A=await this.writeFile({path:g,directory:p,data:H.data,encoding:q});return c&&await I(g,L,P.mtime),A}case"directory":{if(v)throw Error("Cannot move a directory over an existing object");try{await this.mkdir({path:g,directory:p,recursive:!1}),c&&await I(g,L,P.mtime)}catch{}const H=(await this.readdir({path:C,directory:x})).files;for(const q of H)await this._copy({from:`${C}/${q.name}`,to:`${g}/${q.name}`,directory:x,toDirectory:p},c);c&&await this.rmdir({path:C,directory:x})}}return{uri:V}}isBase64String(d){try{return btoa(atob(d))==d}catch{return!1}}}Wa._debug=!0;const t1=Object.freeze(Object.defineProperty({__proto__:null,FilesystemWeb:Wa},Symbol.toStringTag,{value:"Module"}));class r1 extends aa{async enable(){console.log("Immersive mode is only available on Android")}async disable(){console.log("Immersive mode is only available on Android")}}const n1=Object.freeze(Object.defineProperty({__proto__:null,ImmersiveModeWeb:r1},Symbol.toStringTag,{value:"Module"}));_e.Bounce=uh,_e.CanvasBlock=hh,_e.CheckDevice=gh,_e.EnterFullscreen=Jd,_e.ExitFullscreen=Yd,_e.ExperimentProvider=$0,_e.ExperimentRunner=X0,_e.Flip=Q0,_e.Icons=Ua,_e.MicCheck=Df,_e.Param=ua,_e.PlainInput=jf,_e.ProlificEnding=Ef,_e.Quest=Nf,_e.RequestFilePermission=dh,_e.Slide=B0,_e.Text=ca,_e.ToastContainer=ch,_e.Upload=Wd,_e.Zoom=H0,_e.canvasCountdown=ty,_e.chunk=yf,_e.collapseToast=eh,_e.cssTransition=gs,_e.getParam=lo,_e.getPlatform=Jo,_e.isDesktop=Xm,_e.isFullscreen=ao,_e.now=or,_e.pipe=mf,_e.registerArrayExtensions=zm,_e.registerComponentParams=Yl,_e.registerExperimentParams=wf,_e.sample=hf,_e.shuffle=gf,_e.subsetExperimentByParam=ey,_e.toast=Vt,_e.useToast=ah,_e.useToastContainer=sh,Object.defineProperty(_e,Symbol.toStringTag,{value:"Module"})});