@builder.io/sdk-react 0.5.9 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/lib/browser/index.cjs +97 -0
- package/lib/browser/index.mjs +2598 -0
- package/lib/browser/server-entry-2e639417.js +2 -0
- package/lib/browser/server-entry-f7504f89.mjs +534 -0
- package/lib/browser/server-entry.cjs +1 -0
- package/lib/browser/server-entry.mjs +16 -0
- package/lib/edge/index.cjs +117 -0
- package/lib/edge/index.mjs +5042 -0
- package/lib/edge/server-entry-2e639417.js +2 -0
- package/lib/edge/server-entry-f7504f89.mjs +534 -0
- package/lib/edge/server-entry.cjs +1 -0
- package/lib/edge/server-entry.mjs +16 -0
- package/lib/node/index.cjs +97 -0
- package/lib/node/index.mjs +2598 -0
- package/lib/node/server-entry-2e639417.js +2 -0
- package/lib/node/server-entry-f7504f89.mjs +534 -0
- package/lib/node/server-entry.cjs +1 -0
- package/lib/node/server-entry.mjs +16 -0
- package/package.json +101 -11
- package/types/constants/sdk-version.d.ts +1 -0
- package/types/functions/deopt.d.ts +4 -0
- package/types/functions/evaluate/edge-runtime/edge-runtime.d.ts +2 -0
- package/types/functions/evaluate/edge-runtime/index.d.ts +1 -0
- package/types/functions/evaluate/placeholder-runtime.d.ts +2 -0
- package/{dist → types}/functions/fetch-builder-props.d.ts +2 -1
- package/{dist → types}/functions/get-content/index.d.ts +4 -5
- package/types/functions/is-edge-runtime.d.ts +4 -0
- package/{dist → types}/index-helpers/blocks-exports.d.ts +2 -2
- package/dist/blocks/BaseText.js +0 -9
- package/dist/blocks/button/button.js +0 -12
- package/dist/blocks/button/component-info.js +0 -34
- package/dist/blocks/columns/columns.js +0 -121
- package/dist/blocks/columns/component-info.js +0 -219
- package/dist/blocks/custom-code/component-info.js +0 -23
- package/dist/blocks/custom-code/custom-code.js +0 -51
- package/dist/blocks/embed/component-info.js +0 -39
- package/dist/blocks/embed/embed.js +0 -42
- package/dist/blocks/embed/helpers.js +0 -2
- package/dist/blocks/form/component-info.js +0 -232
- package/dist/blocks/form/form.js +0 -6
- package/dist/blocks/fragment/component-info.js +0 -7
- package/dist/blocks/fragment/fragment.js +0 -6
- package/dist/blocks/helpers.js +0 -40
- package/dist/blocks/image/component-info.js +0 -122
- package/dist/blocks/image/image.helpers.js +0 -47
- package/dist/blocks/image/image.js +0 -82
- package/dist/blocks/img/component-info.js +0 -15
- package/dist/blocks/img/img.js +0 -10
- package/dist/blocks/input/component-info.js +0 -46
- package/dist/blocks/input/input.js +0 -7
- package/dist/blocks/raw-text/component-info.js +0 -10
- package/dist/blocks/raw-text/raw-text.js +0 -6
- package/dist/blocks/section/component-info.js +0 -40
- package/dist/blocks/section/section.js +0 -17
- package/dist/blocks/select/component-info.js +0 -43
- package/dist/blocks/select/select.js +0 -7
- package/dist/blocks/submit-button/component-info.js +0 -26
- package/dist/blocks/submit-button/submit-button.js +0 -6
- package/dist/blocks/symbol/component-info.js +0 -34
- package/dist/blocks/symbol/symbol.helpers.js +0 -31
- package/dist/blocks/symbol/symbol.js +0 -45
- package/dist/blocks/text/component-info.js +0 -19
- package/dist/blocks/text/text.js +0 -8
- package/dist/blocks/textarea/component-info.js +0 -37
- package/dist/blocks/textarea/textarea.js +0 -6
- package/dist/blocks/video/component-info.js +0 -82
- package/dist/blocks/video/video.js +0 -50
- package/dist/components/block/block.helpers.js +0 -69
- package/dist/components/block/block.js +0 -94
- package/dist/components/block/components/block-styles.js +0 -65
- package/dist/components/block/components/block-wrapper.js +0 -36
- package/dist/components/block/components/component-ref/component-ref.helpers.js +0 -22
- package/dist/components/block/components/component-ref/component-ref.js +0 -23
- package/dist/components/block/components/interactive-element.js +0 -20
- package/dist/components/block/components/repeated-block.js +0 -11
- package/dist/components/block/types.js +0 -1
- package/dist/components/blocks/blocks-wrapper.js +0 -38
- package/dist/components/blocks/blocks.js +0 -17
- package/dist/components/content/components/enable-editor.js +0 -271
- package/dist/components/content/components/styles.helpers.js +0 -58
- package/dist/components/content/components/styles.js +0 -32
- package/dist/components/content/content.helpers.js +0 -30
- package/dist/components/content/content.js +0 -85
- package/dist/components/content/content.types.js +0 -1
- package/dist/components/content/index.js +0 -1
- package/dist/components/content/wrap-component-ref.js +0 -6
- package/dist/components/content-variants/content-variants.js +0 -52
- package/dist/components/content-variants/content-variants.types.js +0 -1
- package/dist/components/content-variants/helpers.js +0 -189
- package/dist/components/inlined-script.js +0 -6
- package/dist/components/inlined-styles.js +0 -6
- package/dist/constants/builder-registered-components.js +0 -60
- package/dist/constants/device-sizes.js +0 -45
- package/dist/constants/sdk-version.d.ts +0 -1
- package/dist/constants/sdk-version.js +0 -1
- package/dist/constants/target.js +0 -2
- package/dist/context/builder.context.js +0 -12
- package/dist/context/components.context.js +0 -2
- package/dist/context/types.js +0 -1
- package/dist/functions/apply-patch-with-mutation.js +0 -54
- package/dist/functions/camel-to-kebab-case.js +0 -1
- package/dist/functions/evaluate/browser-runtime/browser.js +0 -31
- package/dist/functions/evaluate/browser-runtime/index.js +0 -1
- package/dist/functions/evaluate/evaluate.js +0 -47
- package/dist/functions/evaluate/helpers.js +0 -10
- package/dist/functions/evaluate/index.js +0 -1
- package/dist/functions/evaluate/node-runtime/index.js +0 -1
- package/dist/functions/evaluate/non-node-runtime/acorn-interpreter.js +0 -3111
- package/dist/functions/evaluate/non-node-runtime/index.d.ts +0 -1
- package/dist/functions/evaluate/non-node-runtime/index.js +0 -2
- package/dist/functions/evaluate/non-node-runtime/non-node-runtime.d.ts +0 -2
- package/dist/functions/evaluate/non-node-runtime/non-node-runtime.js +0 -83
- package/dist/functions/event-handler-name.js +0 -4
- package/dist/functions/extract-text-styles.js +0 -22
- package/dist/functions/fast-clone.js +0 -4
- package/dist/functions/fetch-builder-props.js +0 -25
- package/dist/functions/get-block-actions-handler.js +0 -10
- package/dist/functions/get-block-actions.js +0 -28
- package/dist/functions/get-block-component-options.js +0 -10
- package/dist/functions/get-block-properties.js +0 -72
- package/dist/functions/get-builder-search-params/index.js +0 -38
- package/dist/functions/get-content/generate-content-url.js +0 -33
- package/dist/functions/get-content/index.js +0 -100
- package/dist/functions/get-content/types.js +0 -1
- package/dist/functions/get-fetch.js +0 -11
- package/dist/functions/get-global-this.js +0 -15
- package/dist/functions/get-processed-block.js +0 -46
- package/dist/functions/get-react-native-block-styles.js +0 -17
- package/dist/functions/is-browser.js +0 -3
- package/dist/functions/is-editing.js +0 -5
- package/dist/functions/is-iframe.js +0 -4
- package/dist/functions/is-non-node-server.d.ts +0 -4
- package/dist/functions/is-non-node-server.js +0 -8
- package/dist/functions/is-previewing.js +0 -11
- package/dist/functions/on-change.js +0 -28
- package/dist/functions/register-component.js +0 -38
- package/dist/functions/register.js +0 -27
- package/dist/functions/sanitize-react-native-block-styles.js +0 -61
- package/dist/functions/set-editor-settings.js +0 -12
- package/dist/functions/set.js +0 -14
- package/dist/functions/track/helpers.js +0 -51
- package/dist/functions/track/index.js +0 -71
- package/dist/functions/track/interaction.js +0 -53
- package/dist/functions/transform-block-properties.js +0 -5
- package/dist/functions/transform-block.js +0 -4
- package/dist/helpers/ab-tests.js +0 -122
- package/dist/helpers/canTrack.js +0 -2
- package/dist/helpers/cookie.js +0 -55
- package/dist/helpers/css.js +0 -27
- package/dist/helpers/flatten.js +0 -19
- package/dist/helpers/localStorage.js +0 -24
- package/dist/helpers/logger.js +0 -7
- package/dist/helpers/nullable.js +0 -1
- package/dist/helpers/preview-lru-cache/get.js +0 -3
- package/dist/helpers/preview-lru-cache/helpers.js +0 -0
- package/dist/helpers/preview-lru-cache/init.js +0 -6
- package/dist/helpers/preview-lru-cache/set.js +0 -5
- package/dist/helpers/preview-lru-cache/types.js +0 -0
- package/dist/helpers/sessionId.js +0 -30
- package/dist/helpers/time.js +0 -2
- package/dist/helpers/url.js +0 -15
- package/dist/helpers/uuid.js +0 -15
- package/dist/helpers/visitorId.js +0 -30
- package/dist/index-helpers/blocks-exports.js +0 -19
- package/dist/index-helpers/top-of-file.js +0 -4
- package/dist/index.js +0 -7
- package/dist/scripts/init-editing.js +0 -110
- package/dist/server-index.js +0 -10
- package/dist/types/api-version.js +0 -1
- package/dist/types/builder-block.js +0 -1
- package/dist/types/builder-content.js +0 -1
- package/dist/types/builder-props.js +0 -1
- package/dist/types/can-track.js +0 -1
- package/dist/types/components.js +0 -1
- package/dist/types/deep-partial.js +0 -1
- package/dist/types/element.js +0 -1
- package/dist/types/enforced-partials.js +0 -1
- package/dist/types/input.js +0 -1
- package/dist/types/targets.js +0 -1
- package/dist/types/typescript.js +0 -1
- /package/{dist → types}/blocks/BaseText.d.ts +0 -0
- /package/{dist → types}/blocks/button/button.d.ts +0 -0
- /package/{dist → types}/blocks/button/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/columns/columns.d.ts +0 -0
- /package/{dist → types}/blocks/columns/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/custom-code/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/custom-code/custom-code.d.ts +0 -0
- /package/{dist → types}/blocks/embed/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/embed/embed.d.ts +0 -0
- /package/{dist → types}/blocks/embed/helpers.d.ts +0 -0
- /package/{dist → types}/blocks/form/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/form/form.d.ts +0 -0
- /package/{dist → types}/blocks/fragment/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/fragment/fragment.d.ts +0 -0
- /package/{dist → types}/blocks/helpers.d.ts +0 -0
- /package/{dist → types}/blocks/image/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/image/image.d.ts +0 -0
- /package/{dist → types}/blocks/image/image.helpers.d.ts +0 -0
- /package/{dist → types}/blocks/img/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/img/img.d.ts +0 -0
- /package/{dist → types}/blocks/input/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/input/input.d.ts +0 -0
- /package/{dist → types}/blocks/raw-text/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/raw-text/raw-text.d.ts +0 -0
- /package/{dist → types}/blocks/section/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/section/section.d.ts +0 -0
- /package/{dist → types}/blocks/select/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/select/select.d.ts +0 -0
- /package/{dist → types}/blocks/submit-button/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/submit-button/submit-button.d.ts +0 -0
- /package/{dist → types}/blocks/symbol/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/symbol/symbol.d.ts +0 -0
- /package/{dist → types}/blocks/symbol/symbol.helpers.d.ts +0 -0
- /package/{dist → types}/blocks/text/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/text/text.d.ts +0 -0
- /package/{dist → types}/blocks/textarea/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/textarea/textarea.d.ts +0 -0
- /package/{dist → types}/blocks/video/component-info.d.ts +0 -0
- /package/{dist → types}/blocks/video/video.d.ts +0 -0
- /package/{dist → types}/components/block/block.d.ts +0 -0
- /package/{dist → types}/components/block/block.helpers.d.ts +0 -0
- /package/{dist → types}/components/block/components/block-styles.d.ts +0 -0
- /package/{dist → types}/components/block/components/block-wrapper.d.ts +0 -0
- /package/{dist → types}/components/block/components/component-ref/component-ref.d.ts +0 -0
- /package/{dist → types}/components/block/components/component-ref/component-ref.helpers.d.ts +0 -0
- /package/{dist → types}/components/block/components/interactive-element.d.ts +0 -0
- /package/{dist → types}/components/block/components/repeated-block.d.ts +0 -0
- /package/{dist → types}/components/block/types.d.ts +0 -0
- /package/{dist → types}/components/blocks/blocks-wrapper.d.ts +0 -0
- /package/{dist → types}/components/blocks/blocks.d.ts +0 -0
- /package/{dist → types}/components/content/components/enable-editor.d.ts +0 -0
- /package/{dist → types}/components/content/components/styles.d.ts +0 -0
- /package/{dist → types}/components/content/components/styles.helpers.d.ts +0 -0
- /package/{dist → types}/components/content/content.d.ts +0 -0
- /package/{dist → types}/components/content/content.helpers.d.ts +0 -0
- /package/{dist → types}/components/content/content.types.d.ts +0 -0
- /package/{dist → types}/components/content/index.d.ts +0 -0
- /package/{dist → types}/components/content/wrap-component-ref.d.ts +0 -0
- /package/{dist → types}/components/content-variants/content-variants.d.ts +0 -0
- /package/{dist → types}/components/content-variants/content-variants.types.d.ts +0 -0
- /package/{dist → types}/components/content-variants/helpers.d.ts +0 -0
- /package/{dist → types}/components/inlined-script.d.ts +0 -0
- /package/{dist → types}/components/inlined-styles.d.ts +0 -0
- /package/{dist → types}/constants/builder-registered-components.d.ts +0 -0
- /package/{dist → types}/constants/device-sizes.d.ts +0 -0
- /package/{dist → types}/constants/target.d.ts +0 -0
- /package/{dist → types}/context/builder.context.d.ts +0 -0
- /package/{dist → types}/context/components.context.d.ts +0 -0
- /package/{dist → types}/context/types.d.ts +0 -0
- /package/{dist → types}/functions/apply-patch-with-mutation.d.ts +0 -0
- /package/{dist → types}/functions/camel-to-kebab-case.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/browser-runtime/browser.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/browser-runtime/index.d.ts +0 -0
- /package/{dist/functions/evaluate/non-node-runtime → types/functions/evaluate/edge-runtime}/acorn-interpreter.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/evaluate.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/helpers.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/index.d.ts +0 -0
- /package/{dist → types}/functions/evaluate/node-runtime/index.d.ts +0 -0
- /package/{dist → types}/functions/event-handler-name.d.ts +0 -0
- /package/{dist → types}/functions/extract-text-styles.d.ts +0 -0
- /package/{dist → types}/functions/fast-clone.d.ts +0 -0
- /package/{dist → types}/functions/get-block-actions-handler.d.ts +0 -0
- /package/{dist → types}/functions/get-block-actions.d.ts +0 -0
- /package/{dist → types}/functions/get-block-component-options.d.ts +0 -0
- /package/{dist → types}/functions/get-block-properties.d.ts +0 -0
- /package/{dist → types}/functions/get-builder-search-params/index.d.ts +0 -0
- /package/{dist → types}/functions/get-content/generate-content-url.d.ts +0 -0
- /package/{dist → types}/functions/get-content/types.d.ts +0 -0
- /package/{dist → types}/functions/get-fetch.d.ts +0 -0
- /package/{dist → types}/functions/get-global-this.d.ts +0 -0
- /package/{dist → types}/functions/get-processed-block.d.ts +0 -0
- /package/{dist → types}/functions/get-react-native-block-styles.d.ts +0 -0
- /package/{dist → types}/functions/is-browser.d.ts +0 -0
- /package/{dist → types}/functions/is-editing.d.ts +0 -0
- /package/{dist → types}/functions/is-iframe.d.ts +0 -0
- /package/{dist → types}/functions/is-previewing.d.ts +0 -0
- /package/{dist → types}/functions/on-change.d.ts +0 -0
- /package/{dist → types}/functions/register-component.d.ts +0 -0
- /package/{dist → types}/functions/register.d.ts +0 -0
- /package/{dist → types}/functions/sanitize-react-native-block-styles.d.ts +0 -0
- /package/{dist → types}/functions/set-editor-settings.d.ts +0 -0
- /package/{dist → types}/functions/set.d.ts +0 -0
- /package/{dist → types}/functions/track/helpers.d.ts +0 -0
- /package/{dist → types}/functions/track/index.d.ts +0 -0
- /package/{dist → types}/functions/track/interaction.d.ts +0 -0
- /package/{dist → types}/functions/transform-block-properties.d.ts +0 -0
- /package/{dist → types}/functions/transform-block.d.ts +0 -0
- /package/{dist → types}/helpers/ab-tests.d.ts +0 -0
- /package/{dist → types}/helpers/canTrack.d.ts +0 -0
- /package/{dist → types}/helpers/cookie.d.ts +0 -0
- /package/{dist → types}/helpers/css.d.ts +0 -0
- /package/{dist → types}/helpers/flatten.d.ts +0 -0
- /package/{dist → types}/helpers/localStorage.d.ts +0 -0
- /package/{dist → types}/helpers/logger.d.ts +0 -0
- /package/{dist → types}/helpers/nullable.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/get.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/helpers.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/init.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/set.d.ts +0 -0
- /package/{dist → types}/helpers/preview-lru-cache/types.d.ts +0 -0
- /package/{dist → types}/helpers/sessionId.d.ts +0 -0
- /package/{dist → types}/helpers/time.d.ts +0 -0
- /package/{dist → types}/helpers/url.d.ts +0 -0
- /package/{dist → types}/helpers/uuid.d.ts +0 -0
- /package/{dist → types}/helpers/visitorId.d.ts +0 -0
- /package/{dist → types}/index-helpers/top-of-file.d.ts +0 -0
- /package/{dist → types}/index.d.ts +0 -0
- /package/{dist → types}/scripts/init-editing.d.ts +0 -0
- /package/{dist → types}/server-index.d.ts +0 -0
- /package/{dist → types}/types/api-version.d.ts +0 -0
- /package/{dist → types}/types/builder-block.d.ts +0 -0
- /package/{dist → types}/types/builder-content.d.ts +0 -0
- /package/{dist → types}/types/builder-props.d.ts +0 -0
- /package/{dist → types}/types/can-track.d.ts +0 -0
- /package/{dist → types}/types/components.d.ts +0 -0
- /package/{dist → types}/types/deep-partial.d.ts +0 -0
- /package/{dist → types}/types/element.d.ts +0 -0
- /package/{dist → types}/types/enforced-partials.d.ts +0 -0
- /package/{dist → types}/types/input.d.ts +0 -0
- /package/{dist → types}/types/targets.d.ts +0 -0
- /package/{dist → types}/types/typescript.d.ts +0 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),I=require("react"),S=require("./server-entry-2e639417.js");function Yn(e){return c.jsxs(c.Fragment,{children:[e.link?c.jsx(c.Fragment,{children:c.jsx("a",{role:"button",...e.attributes,href:e.link,target:e.openLinkInNewTab?"_blank":void 0,children:e.text})}):c.jsx(c.Fragment,{children:c.jsx("button",{...e.attributes,style:e.attributes.style,className:e.attributes.className+" button-3e7bc8b2",children:e.text})}),c.jsx("style",{children:`.button-3e7bc8b2 {
|
|
2
|
+
all: unset;
|
|
3
|
+
}`})]})}const qn={small:{min:320,default:321,max:640},medium:{min:641,default:642,max:991},large:{min:990,default:991,max:1200}},Mn=(e,t=qn)=>`@media (max-width: ${t[e].max}px)`,Zn=({small:e,medium:t})=>{const r=S.fastClone(qn);if(!e||!t)return r;const n=Math.floor(e/2);r.small={max:e,min:n,default:n+1};const i=r.small.max+1;r.medium={max:t,min:i,default:i+1};const a=r.medium.max+1;return r.large={max:2e3,min:a,default:a+1},r},Qn=(e,t,r)=>{if(Object(e)!==e)return e;const n=Array.isArray(t)?t:t.toString().match(/[^.[\]]+/g);return n.slice(0,-1).reduce((i,a,s)=>Object(i[a])===i[a]?i[a]:i[a]=Math.abs(Number(n[s+1]))>>0===+n[s+1]?[]:{},e)[n[n.length-1]]=r,e};var D,Nr=function(e){function t(o){return 48>o?o===36:58>o?!0:65>o?!1:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Or.test(String.fromCharCode(o))}function r(o){return 65>o?o===36:91>o?!0:97>o?o===95:123>o?!0:170<=o&&Fn.test(String.fromCharCode(o))}function n(o,l){for(var u=b,p=1,P=0;;){rt.lastIndex=P;var X=rt.exec(u);if(X&&X.index<o)++p,P=X.index+X[0].length;else break}throw u={line:p,ab:o-P},l+=" ("+u.line+":"+u.ab+")",l=new SyntaxError(l),l.j=o,l.X=u,l.o=f,l}function i(o){o=o.split(" ");for(var l=Object.create(null),u=0;u<o.length;u++)l[o[u]]=!0;return function(p){return l[p]||!1}}function a(){this.line=Se,this.ab=f-ce}function s(o,l){ke=f,N.C&&(xt=new a),O=o,h(),ae=l,Me=o.m}function d(){for(var o=f,l=N.va&&N.C&&new a,u=b.charCodeAt(f+=2);f<we&&u!==10&&u!==13&&u!==8232&&u!==8233;)++f,u=b.charCodeAt(f);N.va&&N.va(!1,b.slice(o+2,f),o,f,l,N.C&&new a)}function h(){for(;f<we;){var o=b.charCodeAt(f);if(o===32)++f;else if(o===13)++f,o=b.charCodeAt(f),o===10&&++f,N.C&&(++Se,ce=f);else if(o===10||o===8232||o===8233)++f,N.C&&(++Se,ce=f);else if(8<o&&14>o)++f;else if(o===47)if(o=b.charCodeAt(f+1),o===42){o=void 0;var l=N.va&&N.C&&new a,u=f,p=b.indexOf("*/",f+=2);if(p===-1&&n(f-2,"Unterminated comment"),f=p+2,N.C)for(rt.lastIndex=u;(o=rt.exec(b))&&o.index<f;)++Se,ce=o.index+o[0].length;N.va&&N.va(!0,b.slice(u+2,p),u,f,l,N.C&&new a)}else if(o===47)d();else break;else if(o===160)++f;else if(5760<=o&&Rr.test(String.fromCharCode(o)))++f;else break}}function m(o){switch(o){case 46:o=b.charCodeAt(f+1),48<=o&&57>=o?E(!0):(++f,s(jn));return;case 40:return++f,s(fe);case 41:return++f,s(le);case 59:return++f,s(de);case 44:return++f,s(ve);case 91:return++f,s(At);case 93:return++f,s(Rt);case 123:return++f,s(_e);case 125:return++f,s(Ee);case 58:return++f,s(Le);case 63:return++f,s(Tn);case 48:if(o=b.charCodeAt(f+1),o===120||o===88){f+=2,o=_(16),o===null&&n(z+2,"Expected hexadecimal number"),r(b.charCodeAt(f))&&n(f,"Identifier directly after number"),s(Be,o);return}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E(!1);case 34:case 39:f++;for(var l="";;){f>=we&&n(z,"Unterminated string constant");var u=b.charCodeAt(f);if(u===o){++f,s(Qe,l);break}if(u===92){u=b.charCodeAt(++f);var p=/^[0-7]+/.exec(b.slice(f,f+3));for(p&&(p=p[0]);p&&255<parseInt(p,8);)p=p.slice(0,-1);if(p==="0"&&(p=null),++f,p)re&&n(f-2,"Octal literal in strict mode"),l+=String.fromCharCode(parseInt(p,8)),f+=p.length-1;else switch(u){case 110:l+=`
|
|
4
|
+
`;break;case 114:l+="\r";break;case 120:l+=String.fromCharCode(j(2));break;case 117:l+=String.fromCharCode(j(4));break;case 85:l+=String.fromCharCode(j(8));break;case 116:l+=" ";break;case 98:l+="\b";break;case 118:l+="\v";break;case 102:l+="\f";break;case 48:l+="\0";break;case 13:b.charCodeAt(f)===10&&++f;case 10:N.C&&(ce=f,++Se);break;default:l+=String.fromCharCode(u)}}else u!==13&&u!==10&&u!==8232&&u!==8233||n(z,"Unterminated string constant"),l+=String.fromCharCode(u),++f}return;case 47:o=b.charCodeAt(f+1),Me?(++f,M()):o===61?x(be,2):x(In,1);return;case 37:case 42:b.charCodeAt(f+1)===61?x(be,2):x(Tr,1);return;case 124:case 38:l=b.charCodeAt(f+1),l===o?x(o===124?On:Pn,2):l===61?x(be,2):x(o===124?Sr:wr,1);return;case 94:b.charCodeAt(f+1)===61?x(be,2):x(br,1);return;case 43:case 45:l=b.charCodeAt(f+1),l===o?l===45&&b.charCodeAt(f+2)===62&&nt.test(b.slice(ye,f))?(f+=3,d(),h(),y()):x(xr,2):l===61?x(be,2):x(jr,1);return;case 60:case 62:l=b.charCodeAt(f+1),u=1,l===o?(u=o===62&&b.charCodeAt(f+2)===62?3:2,b.charCodeAt(f+u)===61?x(be,u+1):x(Er,u)):l===33&&o===60&&b.charCodeAt(f+2)===45&&b.charCodeAt(f+3)===45?(f+=4,d(),h(),y()):(l===61&&(u=b.charCodeAt(f+2)===61?3:2),x(Cr,u));return;case 61:case 33:b.charCodeAt(f+1)===61?x(kr,b.charCodeAt(f+2)===61?3:2):x(o===61?An:Rn,1);return;case 126:return x(Rn,1)}return!1}function y(o){if(o?f=z+1:z=f,N.C&&(vt=new a),o)return M();if(f>=we)return s(wt);if(o=b.charCodeAt(f),r(o)||o===92)return V();if(m(o)===!1){if(o=String.fromCharCode(o),o==="\\"||Fn.test(o))return V();n(f,"Unexpected character '"+o+"'")}}function x(o,l){var u=b.slice(f,f+l);f+=l,s(o,u)}function M(){for(var o,l,u=f;;){f>=we&&n(u,"Unterminated regexp");var p=b.charAt(f);if(nt.test(p)&&n(u,"Unterminated regexp"),o)o=!1;else{if(p==="[")l=!0;else if(p==="]"&&l)l=!1;else if(p==="/"&&!l)break;o=p==="\\"}++f}o=b.slice(u,f),++f,(l=$())&&!/^[gmi]*$/.test(l)&&n(u,"Invalid regexp flag");try{var P=new RegExp(o,l)}catch(X){throw X instanceof SyntaxError&&n(u,X.message),X}s(sn,P)}function _(o,l){for(var u=f,p=0,P=l===void 0?1/0:l,X=0;X<P;++X){var Q=b.charCodeAt(f);if(Q=97<=Q?Q-97+10:65<=Q?Q-65+10:48<=Q&&57>=Q?Q-48:1/0,Q>=o)break;++f,p=p*o+Q}return f===u||l!==void 0&&f-u!==l?null:p}function E(o){var l=f,u=!1,p=b.charCodeAt(f)===48;o||_(10)!==null||n(l,"Invalid number"),b.charCodeAt(f)===46&&(++f,_(10),u=!0),o=b.charCodeAt(f),(o===69||o===101)&&(o=b.charCodeAt(++f),o!==43&&o!==45||++f,_(10)===null&&n(l,"Invalid number"),u=!0),r(b.charCodeAt(f))&&n(f,"Identifier directly after number"),o=b.slice(l,f);var P;u?P=parseFloat(o):p&&o.length!==1?/[89]/.test(o)||re?n(l,"Invalid number"):P=parseInt(o,8):P=parseInt(o,10),s(Be,P)}function j(o){return o=_(16,o),o===null&&n(z,"Bad character escape sequence"),o}function $(){je=!1;for(var o,l=!0,u=f;;){var p=b.charCodeAt(f);if(t(p))je&&(o+=b.charAt(f)),++f;else if(p===92){je||(o=b.slice(u,f)),je=!0,b.charCodeAt(++f)!==117&&n(f,"Expecting Unicode escape sequence \\uXXXX"),++f,p=j(4);var P=String.fromCharCode(p);P||n(f-1,"Invalid Unicode escape"),(l?r(p):t(p))||n(f-4,"Invalid Unicode escape"),o+=P}else break;l=!1}return je?o:b.slice(u,f)}function V(){var o=$(),l=Ce;!je&&Ar(o)&&(l=vr[o]),s(l,o)}function v(){St=z,ye=ke,bt=xt,y()}function W(o){if(re=o,f=z,N.C)for(;f<ce;)ce=b.lastIndexOf(`
|
|
5
|
+
`,ce-2)+1,--Se;h(),y()}function ie(){this.type=null,this.start=z,this.end=null}function oe(){this.start=vt,this.end=null,yt&&(this.source=yt)}function K(){var o=new ie;return N.C&&(o.X=new oe),N.vb&&(o.sourceFile=N.vb),N.Xa&&(o.j=[z,0]),o}function Z(o){var l=new ie;return l.start=o.start,N.C&&(l.X=new oe,l.X.start=o.X.start),N.Xa&&(l.j=[o.j[0],0]),l}function A(o,l){return o.type=l,o.end=ye,N.C&&(o.X.end=bt),N.Xa&&(o.j[1]=ye),o}function L(o){return o.type==="ExpressionStatement"&&o.la.type==="Literal"&&o.la.value==="use strict"}function T(o){return O===o?(v(),!0):!1}function F(){return!N.fc&&(O===wt||O===Ee||nt.test(b.slice(ye,z)))}function U(){T(de)||F()||H()}function R(o){O===o?v():H()}function H(){n(z,"Unexpected token")}function se(o){o.type!=="Identifier"&&o.type!=="MemberExpression"&&n(o.start,"Assigning to rvalue"),re&&o.type==="Identifier"&&tt(o.name)&&n(o.start,"Assigning to "+o.name+" in strict mode")}function ne(){(O===In||O===be&&ae==="/=")&&y(!0);var o=O,l=K();switch(o){case kt:case un:v();var u=o===kt;T(de)||F()?l.label=null:O!==Ce?H():(l.label=ue(),U());for(var p=0;p<G.length;++p){var P=G[p];if((l.label===null||P.name===l.label.name)&&(P.kind!==null&&(u||P.kind==="loop")||l.label&&u))break}return p===G.length&&n(l.start,"Unsyntactic "+o.l),A(l,u?"BreakStatement":"ContinueStatement");case cn:return v(),U(),A(l,"DebuggerStatement");case dn:return v(),G.push(Ot),l.body=ne(),G.pop(),R(It),l.test=Pe(),U(),A(l,"DoWhileStatement");case mn:return v(),G.push(Ot),R(fe),O===de?ft(l,null):O===Tt?(o=K(),v(),on(o,!0),A(o,"VariableDeclaration"),o.fa.length===1&&T(et)?rn(l,o):ft(l,o)):(o=q(!1,!0),T(et)?(se(o),rn(l,o)):ft(l,o));case Et:return v(),mt(l,!0);case gn:return v(),l.test=Pe(),l.da=ne(),l.alternate=T(hn)?ne():null,A(l,"IfStatement");case yn:return Ue||N.Ib||n(z,"'return' outside of function"),v(),T(de)||F()?l.K=null:(l.K=q(),U()),A(l,"ReturnStatement");case jt:for(v(),l.Qb=Pe(),l.tb=[],R(_e),G.push(Pr);O!==Ee;)O===Ct||O===fn?(o=O===Ct,p&&A(p,"SwitchCase"),l.tb.push(p=K()),p.da=[],v(),o?p.test=q():(u&&n(St,"Multiple default clauses"),u=!0,p.test=null),R(Le)):(p||H(),p.da.push(ne()));return p&&A(p,"SwitchCase"),v(),G.pop(),A(l,"SwitchStatement");case vn:return v(),nt.test(b.slice(ye,z))&&n(ye,"Illegal newline after throw"),l.K=q(),U(),A(l,"ThrowStatement");case xn:return v(),l.block=Ne(),l.Ea=null,O===ln&&(o=K(),v(),R(fe),o.Ua=ue(),re&&tt(o.Ua.name)&&n(o.Ua.start,"Binding "+o.Ua.name+" in strict mode"),R(le),o.body=Ne(),l.Ea=A(o,"CatchClause")),l.fb=T(pn)?Ne():null,l.Ea||l.fb||n(l.start,"Missing catch or finally clause"),A(l,"TryStatement");case Tt:return v(),on(l),U(),A(l,"VariableDeclaration");case It:return v(),l.test=Pe(),G.push(Ot),l.body=ne(),G.pop(),A(l,"WhileStatement");case Sn:return re&&n(z,"'with' in strict mode"),v(),l.object=Pe(),l.body=ne(),A(l,"WithStatement");case _e:return Ne();case de:return v(),A(l,"EmptyStatement");default:if(u=ae,P=q(),o===Ce&&P.type==="Identifier"&&T(Le)){for(p=0;p<G.length;++p)G[p].name===u&&n(P.start,"Label '"+u+"' is already declared");return G.push({name:u,kind:O.W?"loop":O===jt?"switch":null}),l.body=ne(),G.pop(),l.label=P,A(l,"LabeledStatement")}return l.la=P,U(),A(l,"ExpressionStatement")}}function Pe(){R(fe);var o=q();return R(le),o}function Ne(o){var l=K(),u=!0,p=!1;for(l.body=[],R(_e);!T(Ee);){var P=ne();if(l.body.push(P),u&&o&&L(P)){var X=p;W(p=!0)}u=!1}return p&&!X&&W(!1),A(l,"BlockStatement")}function ft(o,l){return o.ua=l,R(de),o.test=O===de?null:q(),R(de),o.update=O===le?null:q(),R(le),o.body=ne(),G.pop(),A(o,"ForStatement")}function rn(o,l){return o.left=l,o.right=q(),R(le),o.body=ne(),G.pop(),A(o,"ForInStatement")}function on(o,l){for(o.fa=[],o.kind="var";;){var u=K();if(u.id=ue(),re&&tt(u.id.name)&&n(u.id.start,"Binding "+u.id.name+" in strict mode"),u.ua=T(An)?q(!0,l):null,o.fa.push(A(u,"VariableDeclarator")),!T(ve))break}}function q(o,l){var u=dt(l);if(!o&&O===ve){for(o=Z(u),o.xb=[u];T(ve);)o.xb.push(dt(l));return A(o,"SequenceExpression")}return u}function dt(o){var l=ht(pt(),-1,o);if(T(Tn)){var u=Z(l);u.test=l,u.da=q(!0),R(Le),u.alternate=q(!0,o),l=A(u,"ConditionalExpression")}return O.Cb?(u=Z(l),u.operator=ae,u.left=l,v(),u.right=dt(o),se(l),A(u,"AssignmentExpression")):l}function ht(o,l,u){var p=O.L;if(p!==null&&(!u||O!==et)&&p>l){var P=Z(o);return P.left=o,P.operator=ae,o=O,v(),P.right=ht(pt(),p,u),p=A(P,o===On||o===Pn?"LogicalExpression":"BinaryExpression"),ht(p,l,u)}return o}function pt(){if(O.prefix){var o=K(),l=O.$b;return o.operator=ae,Me=o.prefix=!0,v(),o.K=pt(),l?se(o.K):re&&o.operator==="delete"&&o.K.type==="Identifier"&&n(o.start,"Deleting local variable in strict mode"),A(o,l?"UpdateExpression":"UnaryExpression")}for(l=Fe(Ze());O.cc&&!F();)o=Z(l),o.operator=ae,o.prefix=!1,o.K=l,se(l),v(),l=A(o,"UpdateExpression");return l}function Fe(o,l){if(T(jn)){var u=Z(o);return u.object=o,u.Wa=ue(!0),u.bb=!1,Fe(A(u,"MemberExpression"),l)}return T(At)?(u=Z(o),u.object=o,u.Wa=q(),u.bb=!0,R(Rt),Fe(A(u,"MemberExpression"),l)):!l&&T(fe)?(u=Z(o),u.callee=o,u.arguments=gt(le,!1),Fe(A(u,"CallExpression"),l)):o}function Ze(){switch(O){case wn:var o=K();return v(),A(o,"ThisExpression");case Ce:return ue();case Be:case Qe:case sn:return o=K(),o.value=ae,o.raw=b.slice(z,ke),v(),A(o,"Literal");case kn:case Cn:case En:return o=K(),o.value=O.$a,o.raw=O.l,v(),A(o,"Literal");case fe:o=vt;var l=z;v();var u=q();return u.start=l,u.end=ke,N.C&&(u.X.start=o,u.X.end=xt),N.Xa&&(u.j=[l,ke]),R(le),u;case At:return o=K(),v(),o.elements=gt(Rt,!0,!0),A(o,"ArrayExpression");case _e:for(o=K(),l=!0,u=!1,o.h=[],v();!T(Ee);){if(l)l=!1;else if(R(ve),N.sb&&T(Ee))break;var p={key:O===Be||O===Qe?Ze():ue(!0)},P=!1;if(T(Le)){p.value=q(!0);var X=p.kind="init"}else p.key.type!=="Identifier"||p.key.name!=="get"&&p.key.name!=="set"?H():(P=u=!0,X=p.kind=p.key.name,p.key=O===Be||O===Qe?Ze():ue(!0),O!==fe&&H(),p.value=mt(K(),!1));if(p.key.type==="Identifier"&&(re||u))for(var Q=0;Q<o.h.length;++Q){var Te=o.h[Q];if(Te.key.name===p.key.name){var Pt=X===Te.kind||P&&Te.kind==="init"||X==="init"&&(Te.kind==="get"||Te.kind==="set");Pt&&!re&&X==="init"&&Te.kind==="init"&&(Pt=!1),Pt&&n(p.key.start,"Redefinition of property")}}o.h.push(p)}return A(o,"ObjectExpression");case Et:return o=K(),v(),mt(o,!1);case bn:return o=K(),v(),o.callee=Fe(Ze(),!0),o.arguments=T(fe)?gt(le,!1):yr,A(o,"NewExpression")}H()}function mt(o,l){O===Ce?o.id=ue():l?H():o.id=null,o.oa=[];var u=!0;for(R(fe);!T(le);)u?u=!1:R(ve),o.oa.push(ue());u=Ue;var p=G;if(Ue=!0,G=[],o.body=Ne(!0),Ue=u,G=p,re||o.body.body.length&&L(o.body.body[0])){for(u=o.id?-1:0;u<o.oa.length;++u)if(p=0>u?o.id:o.oa[u],(Nn(p.name)||tt(p.name))&&n(p.start,"Defining '"+p.name+"' in strict mode"),0<=u)for(var P=0;P<u;++P)p.name===o.oa[P].name&&n(p.start,"Argument name clash in strict mode")}return A(o,l?"FunctionDeclaration":"FunctionExpression")}function gt(o,l,u){for(var p=[],P=!0;!T(o);){if(P)P=!1;else if(R(ve),l&&N.sb&&T(o))break;p.push(u&&O===ve?null:q(!0))}return p}function ue(o){var l=K();return o&&N.yb==="everywhere"&&(o=!1),O===Ce?(!o&&(N.yb&&Ir(ae)||re&&Nn(ae))&&b.slice(z,ke).indexOf("\\")===-1&&n(z,"The keyword '"+ae+"' is reserved"),l.name=ae):o&&O.l?l.name=O.l:H(),Me=!1,v(),A(l,"Identifier")}e.version="0.5.0";var N,b="",we,yt;e.parse=function(o,l){b=String(o),we=b.length,N=l||{};for(var u in an)Object.prototype.hasOwnProperty.call(N,u)||(N[u]=an[u]);for(yt=N.sourceFile,Se=1,f=ce=0,Me=!0,h(),u=N.dc,St=ye=f,N.C&&(bt=new a),Ue=re=!1,G=[],y(),o=u||K(),l=!0,u||(o.body=[]);O!==wt;)u=ne(),o.body.push(u),l&&L(u)&&W(!0),l=!1;return A(o,"Program")};var an={fc:!1,sb:!0,yb:!1,Ib:!1,C:!1,va:null,Xa:!1,dc:null,sourceFile:null,vb:null},f=0,z=0,ke=0,vt,xt,O,ae,Me,Se,ce,St=0,ye=0,bt,Ue,G,re,yr=[],Be={type:"num"},sn={type:"regexp"},Qe={type:"string"},Ce={type:"name"},wt={type:"eof"},kt={l:"break"},Ct={l:"case",m:!0},ln={l:"catch"},un={l:"continue"},cn={l:"debugger"},fn={l:"default"},dn={l:"do",W:!0},hn={l:"else",m:!0},pn={l:"finally"},mn={l:"for",W:!0},Et={l:"function"},gn={l:"if"},yn={l:"return",m:!0},jt={l:"switch"},vn={l:"throw",m:!0},xn={l:"try"},Tt={l:"var"},It={l:"while",W:!0},Sn={l:"with"},bn={l:"new",m:!0},wn={l:"this"},kn={l:"null",$a:null},Cn={l:"true",$a:!0},En={l:"false",$a:!1},et={l:"in",L:7,m:!0},vr={break:kt,case:Ct,catch:ln,continue:un,debugger:cn,default:fn,do:dn,else:hn,finally:pn,for:mn,function:Et,if:gn,return:yn,switch:jt,throw:vn,try:xn,var:Tt,while:It,with:Sn,null:kn,true:Cn,false:En,new:bn,in:et,instanceof:{l:"instanceof",L:7,m:!0},this:wn,typeof:{l:"typeof",prefix:!0,m:!0},void:{l:"void",prefix:!0,m:!0},delete:{l:"delete",prefix:!0,m:!0}},At={type:"[",m:!0},Rt={type:"]"},_e={type:"{",m:!0},Ee={type:"}"},fe={type:"(",m:!0},le={type:")"},ve={type:",",m:!0},de={type:";",m:!0},Le={type:":",m:!0},jn={type:"."},Tn={type:"?",m:!0},In={L:10,m:!0},An={Cb:!0,m:!0},be={Cb:!0,m:!0},xr={cc:!0,prefix:!0,$b:!0},Rn={prefix:!0,m:!0},On={L:1,m:!0},Pn={L:2,m:!0},Sr={L:3,m:!0},br={L:4,m:!0},wr={L:5,m:!0},kr={L:6,m:!0},Cr={L:7,m:!0},Er={L:8,m:!0},jr={L:9,prefix:!0,m:!0},Tr={L:10,m:!0},Ir=i("class enum extends super const export import"),Nn=i("implements interface let package private protected public static yield"),tt=i("eval arguments"),Ar=i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),Rr=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Fn=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),Or=RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"),nt=/[\n\r\u2028\u2029]/,rt=/\r\n|[\n\r\u2028\u2029]/g,je,Ot={kind:"loop"},Pr={kind:"switch"}},Bt=Bt=typeof globalThis>"u"?void 0:globalThis;Nr(Bt.j||(Bt.j={}));function g(e,t){typeof e=="string"&&(e=Ae(e,"code"));var r=e.constructor;this.ya=function(){return new r({options:{}})};var n=this.ya(),i;for(i in e)n[i]=i==="body"?e[i].slice():e[i];this.ra=n,this.ca=[],this.qb=t,this.za=!1,this.ba=[],this.Ya=0,this.rb=Object.create(null),e=/^step([A-Z]\w*)$/;var a,s;for(s in this)typeof this[s]=="function"&&(a=s.match(e))&&(this.rb[a[1]]=this[s].bind(this));this.N=Lt(this,this.ra,null),this.Na=this.N.object,this.ra=Ae(this.ba.join(`
|
|
6
|
+
`),"polyfills"),this.ba=void 0,at(this.ra),a=new k(this.ra,this.N),a.done=!1,this.o=[a],this.Eb(),this.value=void 0,this.ra=n,a=new k(this.ra,this.N),a.done=!1,this.o.length=0,this.o[0]=a}var Un={C:!0,kc:5},Vt={configurable:!0,enumerable:!0,writable:!1},w={configurable:!0,enumerable:!1,writable:!0},te={configurable:!0,enumerable:!1,writable:!1},$e={configurable:!1,enumerable:!1,writable:!1},Bn={configurable:!1,enumerable:!0,writable:!0},er={STEP_ERROR:!0},Oe={SCOPE_REFERENCE:!0},ze={VALUE_IN_DESCRIPTOR:!0},Ie={REGEXP_TIMEOUT:!0},_n=[],pe=null,Ke=null,xe=typeof globalThis>"u"?void 0:globalThis,Fr=["onmessage = function(e) {","var result;","var data = e.data;","switch (data[0]) {","case 'split':","result = data[1].split(data[2], data[3]);","break;","case 'match':","result = data[1].match(data[2]);","break;","case 'search':","result = data[1].search(data[2]);","break;","case 'replace':","result = data[1].replace(data[2], data[3]);","break;","case 'exec':","var regexp = data[1];","regexp.lastIndex = data[2];","result = [regexp.exec(data[3]), data[1].lastIndex];","break;","default:","throw Error('Unknown RegExp operation: ' + data[0]);","}","postMessage(result);","close();","};"];function Wt(e){var t=e>>>0;return t===Number(e)?t:NaN}function Ge(e){var t=e>>>0;return String(t)===String(e)&&t!==4294967295?t:NaN}function at(e,t,r){t?e.start=t:delete e.start,r?e.end=r:delete e.end;for(var n in e)if(n!=="loc"&&e.hasOwnProperty(n)){var i=e[n];i&&typeof i=="object"&&at(i,t,r)}}g.prototype.REGEXP_MODE=2;g.prototype.REGEXP_THREAD_TIMEOUT=1e3;g.prototype.POLYFILL_TIMEOUT=1e3;D=g.prototype;D.P=!1;D.Ka=!1;D.Kb=0;D.ic=0;function Ae(e,t){var r={},n;for(n in Un)r[n]=Un[n];return r.sourceFile=t,xe.j.parse(e,r)}D.Jb=function(e){var t=this.o[0];if(!t||t.node.type!=="Program")throw Error("Expecting original AST to start with a Program node");if(typeof e=="string"&&(e=Ae(e,"appendCode"+this.Kb++)),!e||e.type!=="Program")throw Error("Expecting new AST to start with a Program node");Xe(this,e,t.scope),Array.prototype.push.apply(t.node.body,e.body),t.node.body.jb=null,t.done=!1};D.lb=function(){var e=this.o,t;do{var r=e[e.length-1];if(this.za)break;if(!r||r.node.type==="Program"&&r.done){if(!this.ca.length)return!1;if(r=this.ca[0],!r||r.time>Date.now())r=null;else{this.ca.shift(),0<=r.interval&&rr(this,r,r.interval);var n=new k(r.node,r.scope);r.zb&&(n.ia=2,n.B=this.Na,n.U=r.zb,n.Qa=!0,n.F=r.Lb),r=n}if(!r)break}n=r.node;var i=Ke;Ke=this;try{var a=this.rb[n.type](e,r,n)}catch(s){if(s!==er)throw this.value!==s&&(this.value=void 0),s}finally{Ke=i}if(a&&e.push(a),this.P)throw this.value=void 0,Error("Getter not supported in this context");if(this.Ka)throw this.value=void 0,Error("Setter not supported in this context");t||n.end||(t=Date.now()+this.POLYFILL_TIMEOUT)}while(!n.end&&t>Date.now());return!0};D.Eb=function(){for(;!this.za&&this.lb(););return this.za};function Mr(e,t){e.g(t,"NaN",NaN,$e),e.g(t,"Infinity",1/0,$e),e.g(t,"undefined",void 0,$e),e.g(t,"window",t,Vt),e.g(t,"this",t,$e),e.g(t,"self",t),e.M=new B(null),e.Z=new B(e.M),Ur(e,t),Br(e,t),t.xa=e.M,e.g(t,"constructor",e.v,w),_r(e,t),Lr(e,t),$r(e,t),Dr(e,t),Vr(e,t),Wr(e,t),Hr(e,t),Kr(e,t),Gr(e,t);var r=e.i(function(){throw EvalError("Can't happen")},!1);r.eval=!0,e.g(t,"eval",r,w),e.g(t,"parseInt",e.i(parseInt,!1),w),e.g(t,"parseFloat",e.i(parseFloat,!1),w),e.g(t,"isNaN",e.i(isNaN,!1),w),e.g(t,"isFinite",e.i(isFinite,!1),w);for(var n=[[escape,"escape"],[unescape,"unescape"],[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i<n.length;i++)r=function(a){return function(s){try{return a(s)}catch(d){C(e,e.Gb,d.message)}}}(n[i][0]),e.g(t,n[i][1],e.i(r,!1),w);r=function(a){return Ln(e,!1,arguments)},e.g(t,"setTimeout",e.i(r,!1),w),r=function(a){return Ln(e,!0,arguments)},e.g(t,"setInterval",e.i(r,!1),w),r=function(a){$n(e,a)},e.g(t,"clearTimeout",e.i(r,!1),w),r=function(a){$n(e,a)},e.g(t,"clearInterval",e.i(r,!1),w),e.OBJECT=e.v,e.OBJECT_PROTO=e.M,e.FUNCTION=e.O,e.FUNCTION_PROTO=e.Z,e.ARRAY=e.qa,e.ARRAY_PROTO=e.La,e.REGEXP=e.I,e.REGEXP_PROTO=e.Ma,e.DATE=e.$,e.DATE_PROTO=e.nb,e.qb&&e.qb(e,t)}D.Wb=0;function Ur(e,t){var r=/^[A-Za-z_$][\w$]*$/,n=function(i){var a=arguments.length?String(arguments[arguments.length-1]):"",s=Array.prototype.slice.call(arguments,0,-1).join(",").trim();if(s){s=s.split(/\s*,\s*/);for(var d=0;d<s.length;d++){var h=s[d];r.test(h)||C(e,e.T,"Invalid function argument: "+h)}s=s.join(", ")}try{var m=Ae("(function("+s+") {"+a+"})","function"+e.Wb++)}catch(y){C(e,e.T,"Invalid code: "+y.message)}return m.body.length!==1&&C(e,e.T,"Invalid code in function body"),Gt(e,m.body[0].la,e.N,"anonymous")};e.O=e.i(n,!0),e.g(t,"Function",e.O,w),e.g(e.O,"prototype",e.Z,w),e.g(e.Z,"constructor",e.O,w),e.Z.Ta=function(){},e.Z.Ta.id=e.Ya++,e.Z.Ab=!0,e.g(e.Z,"length",0,te),e.Z.H="Function",n=function(i,a){var s=e.o[e.o.length-1];s.U=this,s.B=i,s.F=[],a!=null&&(a instanceof B?s.F=tr(e,a):C(e,e.j,"CreateListFromArrayLike called on non-object")),s.eb=!1},J(e,e.O,"apply",n),n=function(i){var a=e.o[e.o.length-1];a.U=this,a.B=i,a.F=[];for(var s=1;s<arguments.length;s++)a.F.push(arguments[s]);a.eb=!1},J(e,e.O,"call",n),e.ba.push("Object.defineProperty(Function.prototype, 'bind',","{configurable: true, writable: true, value:","function bind(oThis) {","if (typeof this !== 'function') {","throw TypeError('What is trying to be bound is not callable');","}","var aArgs = Array.prototype.slice.call(arguments, 1),","fToBind = this,","fNOP = function() {},","fBound = function() {","return fToBind.apply(this instanceof fNOP","? this",": oThis,","aArgs.concat(Array.prototype.slice.call(arguments)));","};","if (this.prototype) {","fNOP.prototype = this.prototype;","}","fBound.prototype = new fNOP();","return fBound;","}","});",""),n=function(){return String(this)},J(e,e.O,"toString",n),e.g(e.O,"toString",e.i(n,!1),w),n=function(){return this.valueOf()},J(e,e.O,"valueOf",n),e.g(e.O,"valueOf",e.i(n,!1),w)}function Br(e,t){function r(i){i!=null||C(e,e.j,"Cannot convert '"+i+"' to object")}var n=function(i){if(i==null)return ge(e)?this:e.s(e.M);if(!(i instanceof B)){var a=e.s(me(e,i));return a.data=i,a}return i};e.v=e.i(n,!0),e.g(e.v,"prototype",e.M,w),e.g(e.M,"constructor",e.v,w),e.g(t,"Object",e.v,w),n=function(i){return r(i),he(e,Object.getOwnPropertyNames(i instanceof B?i.h:i))},e.g(e.v,"getOwnPropertyNames",e.i(n,!1),w),n=function(i){return r(i),i instanceof B&&(i=i.h),he(e,Object.keys(i))},e.g(e.v,"keys",e.i(n,!1),w),n=function(i){return i===null?e.s(null):(i instanceof B||C(e,e.j,"Object prototype may only be an Object or null, not "+i),e.s(i))},e.g(e.v,"create",e.i(n,!1),w),e.ba.push("(function() {","var create_ = Object.create;","Object.create = function create(proto, props) {","var obj = create_(proto);","props && Object.defineProperties(obj, props);","return obj;","};","})();",""),n=function(i,a,s){return a=String(a),i instanceof B||C(e,e.j,"Object.defineProperty called on non-object: "+i),s instanceof B||C(e,e.j,"Property description must be an object"),!i.preventExtensions||a in i.h||C(e,e.j,"Can't define property '"+a+"', object is not extensible"),e.g(i,a,ze,s.h),i},e.g(e.v,"defineProperty",e.i(n,!1),w),e.ba.push("(function() {","var defineProperty_ = Object.defineProperty;","Object.defineProperty = function defineProperty(obj, prop, d1) {","var d2 = {};","if ('configurable' in d1) d2.configurable = d1.configurable;","if ('enumerable' in d1) d2.enumerable = d1.enumerable;","if ('writable' in d1) d2.writable = d1.writable;","if ('value' in d1) d2.value = d1.value;","if ('get' in d1) d2.get = d1.get;","if ('set' in d1) d2.set = d1.set;","return defineProperty_(obj, prop, d2);","};","})();","Object.defineProperty(Object, 'defineProperties',","{configurable: true, writable: true, value:","function defineProperties(obj, props) {","var keys = Object.keys(props);","for (var i = 0; i < keys.length; i++) {","Object.defineProperty(obj, keys[i], props[keys[i]]);","}","return obj;","}","});",""),n=function(i,a){if(i instanceof B||C(e,e.j,"Object.getOwnPropertyDescriptor called on non-object: "+i),a=String(a),a in i.h){var s=Object.getOwnPropertyDescriptor(i.h,a),d=i.V[a];return i=i.Y[a],a=e.s(e.M),d||i?(e.g(a,"get",d),e.g(a,"set",i)):(e.g(a,"value",s.value),e.g(a,"writable",s.writable)),e.g(a,"configurable",s.configurable),e.g(a,"enumerable",s.enumerable),a}},e.g(e.v,"getOwnPropertyDescriptor",e.i(n,!1),w),n=function(i){return r(i),me(e,i)},e.g(e.v,"getPrototypeOf",e.i(n,!1),w),n=function(i){return!!i&&!i.preventExtensions},e.g(e.v,"isExtensible",e.i(n,!1),w),n=function(i){return i instanceof B&&(i.preventExtensions=!0),i},e.g(e.v,"preventExtensions",e.i(n,!1),w),J(e,e.v,"toString",B.prototype.toString),J(e,e.v,"toLocaleString",B.prototype.toString),J(e,e.v,"valueOf",B.prototype.valueOf),n=function(i){return r(this),this instanceof B?String(i)in this.h:this.hasOwnProperty(i)},J(e,e.v,"hasOwnProperty",n),n=function(i){return r(this),this instanceof B?Object.prototype.propertyIsEnumerable.call(this.h,i):this.propertyIsEnumerable(i)},J(e,e.v,"propertyIsEnumerable",n),n=function(i){for(;;){if(i=me(e,i),!i)return!1;if(i===this)return!0}},J(e,e.v,"isPrototypeOf",n)}function _r(e,t){var r=function(n){var i=ge(e)?this:Re(e),a=arguments[0];if(arguments.length===1&&typeof a=="number")isNaN(Wt(a))&&C(e,e.ob,"Invalid array length: "+a),i.h.length=a;else{for(a=0;a<arguments.length;a++)i.h[a]=arguments[a];i.h.length=a}return i};e.qa=e.i(r,!0),e.La=e.qa.h.prototype,e.g(t,"Array",e.qa,w),r=function(n){return n&&n.H==="Array"},e.g(e.qa,"isArray",e.i(r,!1),w),e.g(e.La,"length",0,{configurable:!1,enumerable:!1,writable:!0}),e.La.H="Array",e.ba.push("(function() {","function createArrayMethod_(f) {","Object.defineProperty(Array.prototype, f.name,","{configurable: true, writable: true, value: f});","}","createArrayMethod_(","function pop() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","len--;","var x = o[len];","delete o[len];","o.length = len;","return x;","}",");","createArrayMethod_(","function push(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","for (var i = 0; i < arguments.length; i++) {","o[len] = arguments[i];","len++;","}","o.length = len;","return len;","}",");","createArrayMethod_(","function shift() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","o.length = 0;","return undefined;","}","var value = o[0];","for (var i = 0; i < len - 1; i++) {","if ((i + 1) in o) {","o[i] = o[i + 1];","} else {","delete o[i];","}","}","delete o[i];","o.length = len - 1;","return value;","}",");","createArrayMethod_(","function unshift(var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 0) {","len = 0;","}","for (var i = len - 1; i >= 0; i--) {","if (i in o) {","o[i + arguments.length] = o[i];","} else {","delete o[i + arguments.length];","}","}","for (var i = 0; i < arguments.length; i++) {","o[i] = arguments[i];","}","return (o.length = len + arguments.length);","}",");","createArrayMethod_(","function reverse() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len || len < 2) {","return o;","}","for (var i = 0; i < len / 2 - 0.5; i++) {","var x = o[i];","var hasX = i in o;","if ((len - i - 1) in o) {","o[i] = o[len - i - 1];","} else {","delete o[i];","}","if (hasX) {","o[len - i - 1] = x;","} else {","delete o[len - i - 1];","}","}","return o;","}",");","createArrayMethod_(","function indexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var n = fromIndex | 0;","if (!len || n >= len) {","return -1;","}","var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);","while (i < len) {","if (i in o && o[i] === searchElement) {","return i;","}","i++;","}","return -1;","}",");","createArrayMethod_(","function lastIndexOf(searchElement, fromIndex) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","if (!len) {","return -1;","}","var n = len - 1;","if (arguments.length > 1) {","n = fromIndex | 0;","if (n) {","n = (n > 0 || -1) * Math.floor(Math.abs(n));","}","}","var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);","while (i >= 0) {","if (i in o && o[i] === searchElement) {","return i;","}","i--;","}","return -1;","}",");","createArrayMethod_(","function slice(start, end) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","start = (start >= 0) ? start : Math.max(0, len + start);","if (typeof end !== 'undefined') {","if (end !== Infinity) {","end |= 0;","}","if (end < 0) {","end = len + end;","} else {","end = Math.min(end, len);","}","} else {","end = len;","}","var size = end - start;","var cloned = new Array(size);","for (var i = 0; i < size; i++) {","if ((start + i) in o) {","cloned[i] = o[start + i];","}","}","return cloned;","}",");","createArrayMethod_(","function splice(start, deleteCount, var_args) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","start |= 0;","if (start < 0) {","start = Math.max(len + start, 0);","} else {","start = Math.min(start, len);","}","if (arguments.length < 1) {","deleteCount = len - start;","} else {","deleteCount |= 0;","deleteCount = Math.max(0, Math.min(deleteCount, len - start));","}","var removed = [];","for (var i = start; i < start + deleteCount; i++) {","if (i in o) {","removed.push(o[i]);","} else {","removed.length++;","}","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = start + deleteCount; i < len - deleteCount; i++) {","if ((i + deleteCount) in o) {","o[i] = o[i + deleteCount];","} else {","delete o[i];","}","}","for (var i = len - deleteCount; i < len; i++) {","delete o[i];","}","len -= deleteCount;","var arl = arguments.length - 2;","for (var i = len - 1; i >= start; i--) {","if (i in o) {","o[i + arl] = o[i];","} else {","delete o[i + arl];","}","}","len += arl;","for (var i = 2; i < arguments.length; i++) {","o[start + i - 2] = arguments[i];","}","o.length = len;","return removed;","}",");","createArrayMethod_(","function concat(var_args) {","if (!this) throw TypeError();","var o = Object(this);","var cloned = [];","for (var i = -1; i < arguments.length; i++) {","var value = (i === -1) ? o : arguments[i];","if (Array.isArray(value)) {","for (var j = 0, l = value.length; j < l; j++) {","if (j in value) {","cloned.push(value[j]);","} else {","cloned.length++;","}","}","} else {","cloned.push(value);","}","}","return cloned;","}",");","createArrayMethod_(","function join(opt_separator) {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var sep = typeof opt_separator === 'undefined' ?","',' : ('' + opt_separator);","var str = '';","for (var i = 0; i < len; i++) {","if (i && sep) str += sep;","str += (o[i] === null || o[i] === undefined) ? '' : o[i];","}","return str;","}",");","createArrayMethod_(","function every(callbackfn, thisArg) {","if (!this || typeof callbackfn !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o && !callbackfn.call(t, o[k], k, o)) return false;","k++;","}","return true;","}",");","createArrayMethod_(","function filter(fun, var_args) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o) {","var val = o[i];","if (fun.call(thisArg, val, i, o)) res.push(val);","}","}","return res;","}",");","createArrayMethod_(","function forEach(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","while (k < len) {","if (k in o) callback.call(t, o[k], k, o);","k++;","}","}",");","createArrayMethod_(","function map(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var t, k = 0;","var o = Object(this), len = o.length >>> 0;","if (arguments.length > 1) t = thisArg;","var a = new Array(len);","while (k < len) {","if (k in o) a[k] = callback.call(t, o[k], k, o);","k++;","}","return a;","}",");","createArrayMethod_(","function reduce(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in o)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k++];","}","for (; k < len; k++) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function reduceRight(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in o)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = o[k--];","}","for (; k >= 0; k--) {","if (k in o) value = callback(value, o[k], k, o);","}","return value;","}",");","createArrayMethod_(","function some(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var o = Object(this), len = o.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in o && fun.call(thisArg, o[i], i, o)) return true;","}","return false;","}",");","createArrayMethod_(","function sort(opt_comp) {","if (!this) throw TypeError();","if (typeof opt_comp !== 'function') {","opt_comp = undefined;","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :","(String(this[j]) > String(this[j + 1]))) {","var swap = this[j];","var hasSwap = j in this;","if ((j + 1) in this) {","this[j] = this[j + 1];","} else {","delete this[j];","}","if (hasSwap) {","this[j + 1] = swap;","} else {","delete this[j + 1];","}","changes++;","}","}","if (!changes) break;","}","return this;","}",");","createArrayMethod_(","function toLocaleString() {","if (!this) throw TypeError();","var o = Object(this), len = o.length >>> 0;","var out = [];","for (var i = 0; i < len; i++) {","out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();","}","return out.join(',');","}",");","})();","")}function Lr(e,t){var r=function(n){return n=arguments.length?xe.String(n):"",ge(e)?(this.data=n,this):n};for(e.J=e.i(r,!0),e.g(t,"String",e.J,w),e.g(e.J,"fromCharCode",e.i(String.fromCharCode,!1),w),t="charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "),r=0;r<t.length;r++)J(e,e.J,t[r],String.prototype[t[r]]);r=function(n,i,a){i=e.R(i),a=e.R(a);try{return String(this).localeCompare(n,i,a)}catch(s){C(e,e.D,"localeCompare: "+s.message)}},J(e,e.J,"localeCompare",r),r=function(n,i,a){var s=String(this);if(i=i?Number(i):void 0,Y(e,n,e.I)&&(n=n.data,Ve(e,n,a),e.REGEXP_MODE===2)){if(pe)n=De(e,"string.split(separator, limit)",{string:s,separator:n,limit:i},n,a),n!==Ie&&a(he(e,n));else{var d=e.ha(),h=We(e,n,d,a);d.onmessage=function(m){clearTimeout(h),a(he(e,m.data))},d.postMessage(["split",s,n,i])}return}n=s.split(n,i),a(he(e,n))},He(e,e.J,"split",r),r=function(n,i){var a=String(this);if(n=Y(e,n,e.I)?n.data:new RegExp(n),Ve(e,n,i),e.REGEXP_MODE===2)if(pe)n=De(e,"string.match(regexp)",{string:a,regexp:n},n,i),n!==Ie&&i(n&&he(e,n));else{var s=e.ha(),d=We(e,n,s,i);s.onmessage=function(h){clearTimeout(d),i(h.data&&he(e,h.data))},s.postMessage(["match",a,n])}else n=a.match(n),i(n&&he(e,n))},He(e,e.J,"match",r),r=function(n,i){var a=String(this);if(Y(e,n,e.I)?n=n.data:n=new RegExp(n),Ve(e,n,i),e.REGEXP_MODE===2)if(pe)n=De(e,"string.search(regexp)",{string:a,regexp:n},n,i),n!==Ie&&i(n);else{var s=e.ha(),d=We(e,n,s,i);s.onmessage=function(h){clearTimeout(d),i(h.data)},s.postMessage(["search",a,n])}else i(a.search(n))},He(e,e.J,"search",r),r=function(n,i,a){var s=String(this);if(i=String(i),Y(e,n,e.I)&&(n=n.data,Ve(e,n,a),e.REGEXP_MODE===2)){if(pe)n=De(e,"string.replace(substr, newSubstr)",{string:s,substr:n,newSubstr:i},n,a),n!==Ie&&a(n);else{var d=e.ha(),h=We(e,n,d,a);d.onmessage=function(m){clearTimeout(h),a(m.data)},d.postMessage(["replace",s,n,i])}return}a(s.replace(n,i))},He(e,e.J,"replace",r),e.ba.push("(function() {","var replace_ = String.prototype.replace;","String.prototype.replace = function replace(substr, newSubstr) {","if (typeof newSubstr !== 'function') {","return replace_.call(this, substr, newSubstr);","}","var str = this;","if (substr instanceof RegExp) {","var subs = [];","var m = substr.exec(str);","while (m) {","m.push(m.index, str);","var inject = newSubstr.apply(null, m);","subs.push([m.index, m[0].length, inject]);","m = substr.global ? substr.exec(str) : null;","}","for (var i = subs.length - 1; i >= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")}function $r(e,t){e.mb=e.i(function(r){return r=xe.Boolean(r),ge(e)?(this.data=r,this):r},!0),e.g(t,"Boolean",e.mb,w)}function Dr(e,t){var r=function(n){return n=arguments.length?xe.Number(n):0,ge(e)?(this.data=n,this):n};for(e.aa=e.i(r,!0),e.g(t,"Number",e.aa,w),t=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],r=0;r<t.length;r++)e.g(e.aa,t[r],Number[t[r]],$e);r=function(n){try{return Number(this).toExponential(n)}catch(i){C(e,e.D,i.message)}},J(e,e.aa,"toExponential",r),r=function(n){try{return Number(this).toFixed(n)}catch(i){C(e,e.D,i.message)}},J(e,e.aa,"toFixed",r),r=function(n){try{return Number(this).toPrecision(n)}catch(i){C(e,e.D,i.message)}},J(e,e.aa,"toPrecision",r),r=function(n){try{return Number(this).toString(n)}catch(i){C(e,e.D,i.message)}},J(e,e.aa,"toString",r),r=function(n,i){n=n?e.R(n):void 0,i=i?e.R(i):void 0;try{return Number(this).toLocaleString(n,i)}catch(a){C(e,e.D,"toLocaleString: "+a.message)}},J(e,e.aa,"toLocaleString",r)}function Vr(e,t){var r=function(i,a){if(!ge(e))return xe.Date();var s=[null].concat(Array.from(arguments));return this.data=new(Function.prototype.bind.apply(xe.Date,s)),this};e.$=e.i(r,!0),e.nb=e.$.h.prototype,e.g(t,"Date",e.$,w),e.g(e.$,"now",e.i(Date.now,!1),w),e.g(e.$,"parse",e.i(Date.parse,!1),w),e.g(e.$,"UTC",e.i(Date.UTC,!1),w),t="getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");for(var n=0;n<t.length;n++)r=function(i){return function(a){var s=this.data;s instanceof Date||C(e,e.j,i+" not called on a Date");for(var d=[],h=0;h<arguments.length;h++)d[h]=e.R(arguments[h]);return s[i].apply(s,d)}}(t[n]),J(e,e.$,t[n],r)}function Wr(e,t){var r=function(n,i){if(ge(e))var a=this;else{if(i===void 0&&Y(e,n,e.I))return n;a=e.s(e.Ma)}n=n===void 0?"":String(n),i=i?String(i):"",/^[gmi]*$/.test(i)||C(e,e.T,"Invalid regexp flag: "+i);try{var s=new xe.RegExp(n,i)}catch(d){C(e,e.T,d.message)}return Ht(e,a,s),a};e.I=e.i(r,!0),e.Ma=e.I.h.prototype,e.g(t,"RegExp",e.I,w),e.g(e.I.h.prototype,"global",void 0,te),e.g(e.I.h.prototype,"ignoreCase",void 0,te),e.g(e.I.h.prototype,"multiline",void 0,te),e.g(e.I.h.prototype,"source","(?:)",te),e.ba.push("Object.defineProperty(RegExp.prototype, 'test',","{configurable: true, writable: true, value:","function test(str) {","return !!this.exec(str);","}","});"),r=function(n,i){function a(y){if(y){var x=he(e,y);return e.g(x,"index",y.index),e.g(x,"input",y.input),x}return null}var s=this.data;if(n=String(n),s.lastIndex=Number(e.G(this,"lastIndex")),Ve(e,s,i),e.REGEXP_MODE===2)if(pe)n=De(e,"regexp.exec(string)",{string:n,regexp:s},s,i),n!==Ie&&(e.g(this,"lastIndex",s.lastIndex),i(a(n)));else{var d=e.ha(),h=We(e,s,d,i),m=this;d.onmessage=function(y){clearTimeout(h),e.g(m,"lastIndex",y.data[1]),i(a(y.data[0]))},d.postMessage(["exec",s,s.lastIndex,n])}else n=s.exec(n),e.g(this,"lastIndex",s.lastIndex),i(a(n))},He(e,e.I,"exec",r)}function Hr(e,t){function r(n){var i=e.i(function(a){var s=ge(e)?this:e.Aa(i);return _t(e,s,a),s},!0);return e.g(i,"prototype",e.Aa(e.D),w),e.g(i.h.prototype,"name",n,w),e.g(t,n,i,w),i}e.D=e.i(function(n){var i=ge(e)?this:e.Aa(e.D);return _t(e,i,n),i},!0),e.g(t,"Error",e.D,w),e.g(e.D.h.prototype,"message","",w),e.g(e.D.h.prototype,"name","Error",w),r("EvalError"),e.ob=r("RangeError"),e.pb=r("ReferenceError"),e.T=r("SyntaxError"),e.j=r("TypeError"),e.Gb=r("URIError")}function Kr(e,t){var r=e.s(e.M);e.g(t,"Math",r,w);var n="E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");for(t=0;t<n.length;t++)e.g(r,n[t],Math[n[t]],te);for(n="abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "),t=0;t<n.length;t++)e.g(r,n[t],e.i(Math[n[t]],!1),w)}function Gr(e,t){var r=e.s(e.M);e.g(t,"JSON",r,w),t=function(n){try{var i=JSON.parse(String(n))}catch(a){C(e,e.T,a.message)}return e.Ia(i)},e.g(r,"parse",e.i(t,!1)),t=function(n,i,a){i&&i.H==="Function"?C(e,e.j,"Function replacer on JSON.stringify not supported"):i&&i.H==="Array"?(i=tr(e,i),i=i.filter(function(d){return typeof d=="string"||typeof d=="number"})):i=null,typeof a!="string"&&typeof a!="number"&&(a=void 0),n=e.R(n);try{var s=JSON.stringify(n,i,a)}catch(d){C(e,e.j,d.message)}return s},e.g(r,"stringify",e.i(t,!1))}function Y(e,t,r){if(t==null||!r)return!1;if(r=r.h.prototype,t===r)return!0;for(t=me(e,t);t;){if(t===r)return!0;t=t.xa}return!1}function Ht(e,t,r){t.data=new RegExp(r.source,r.flags),e.g(t,"lastIndex",r.lastIndex,w),e.g(t,"source",r.source,te),e.g(t,"global",r.global,te),e.g(t,"ignoreCase",r.ignoreCase,te),e.g(t,"multiline",r.multiline,te)}function _t(e,t,r){r&&e.g(t,"message",String(r),w),r=[];for(var n=e.o.length-1;0<=n;n--){var i=e.o[n],a=i.node;a.type==="CallExpression"&&(i=i.U)&&r.length&&(r[r.length-1].Ob=e.G(i,"name")),!a.X||r.length&&a.type!=="CallExpression"||r.push({Nb:a.X})}for(n=String(e.G(t,"name")),a=String(e.G(t,"message")),a=n+": "+a+`
|
|
7
|
+
`,n=0;n<r.length;n++){var s=r[n].Nb;i=r[n].Ob,s=s.source+":"+s.start.line+":"+s.start.ab,a=i?a+(" at "+i+" ("+s+`)
|
|
8
|
+
`):a+(" at "+s+`
|
|
9
|
+
`)}e.g(t,"stack",a.trim(),w)}D.ha=function(){var e=this.ha.Mb;return e||(e=new Blob([Fr.join(`
|
|
10
|
+
`)],{type:"application/javascript"}),this.ha.Mb=e),new Worker(URL.createObjectURL(e))};function De(e,t,r,n,i){var a={timeout:e.REGEXP_THREAD_TIMEOUT};try{return pe.runInNewContext(t,r,a)}catch{i(null),C(e,e.D,"RegExp Timeout: "+n)}return Ie}function Ve(e,t,r){if(e.REGEXP_MODE===0)var n=!1;else if(e.REGEXP_MODE===1)n=!0;else if(pe)n=!0;else if(typeof Worker=="function"&&typeof URL=="function")n=!0;else if(typeof require=="function"){try{pe=require("vm")}catch{}n=!!pe}else n=!1;n||(r(null),C(e,e.D,"Regular expressions not supported: "+t))}function We(e,t,r,n){return setTimeout(function(){r.terminate(),n(null);try{C(e,e.D,"RegExp Timeout: "+t)}catch{}},e.REGEXP_THREAD_TIMEOUT)}D.Aa=function(e){return this.s(e&&e.h.prototype)};D.s=function(e){if(typeof e!="object")throw Error("Non object prototype");return e=new B(e),Y(this,e,this.D)&&(e.H="Error"),e};function Re(e){var t=e.s(e.La);return e.g(t,"length",0,{configurable:!1,enumerable:!1,writable:!0}),t.H="Array",t}function Kt(e,t,r){var n=e.s(e.Z);return r?(r=e.s(e.M),e.g(n,"prototype",r,w),e.g(r,"constructor",n,w)):n.Ab=!0,e.g(n,"length",t,te),n.H="Function",n}function Gt(e,t,r,n){var i=Kt(e,t.oa.length,!0);return i.Va=r,i.node=t,e.g(i,"name",t.id?String(t.id.name):n||"",te),i}D.i=function(e,t){return t=Kt(this,e.length,t),t.Ta=e,e.id=this.Ya++,this.g(t,"name",e.name,te),t};D.ub=function(e){var t=Kt(this,e.length,!0);return t.Za=e,e.id=this.Ya++,this.g(t,"name",e.name,te),t};D.Ia=function(e){if(e instanceof B)throw Error("Object is already pseudo");if(e==null||e===!0||e===!1||typeof e=="string"||typeof e=="number")return e;if(e instanceof RegExp){var t=this.s(this.Ma);return Ht(this,t,e),t}if(e instanceof Date)return t=this.s(this.nb),t.data=new Date(e.valueOf()),t;if(typeof e=="function"){var r=this;return t=Object.getOwnPropertyDescriptor(e,"prototype"),this.i(function(){var i=Array.prototype.slice.call(arguments).map(function(a){return r.R(a)});return i=e.apply(r,i),r.Ia(i)},!!t)}if(Array.isArray(e)){t=Re(this);for(var n=0;n<e.length;n++)n in e&&this.g(t,n,this.Ia(e[n]));return t}t=this.s(this.M);for(n in e)this.g(t,n,this.Ia(e[n]));return t};D.R=function(e,t){if(typeof e!="object"&&typeof e!="function"||e===null)return e;if(!(e instanceof B))throw Error("Object is not pseudo");if(Y(this,e,this.I))return t=new RegExp(e.data.source,e.data.flags),t.lastIndex=e.data.lastIndex,t;if(Y(this,e,this.$))return new Date(e.data.valueOf());t=t||{hb:[],Sa:[]};var r=t.hb.indexOf(e);if(r!==-1)return t.Sa[r];if(t.hb.push(e),Y(this,e,this.qa)){r=[],t.Sa.push(r);for(var n=this.G(e,"length"),i=0;i<n;i++)st(this,e,i)&&(r[i]=this.R(this.G(e,i),t))}else for(n in r={},t.Sa.push(r),e.h)i=this.R(e.h[n],t),Object.defineProperty(r,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t.hb.pop(),t.Sa.pop(),r};function he(e,t){for(var r=Re(e),n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++)e.g(r,n[i],t[n[i]]);return r}function tr(e,t){var r=[],n;for(n in t.h)r[n]=e.G(t,n);return r.length=Wt(e.G(t,"length"))||0,r}function me(e,t){switch(typeof t){case"number":return e.aa.h.prototype;case"boolean":return e.mb.h.prototype;case"string":return e.J.h.prototype}return t?t.xa:null}D.G=function(e,t){if(this.P)throw Error("Getter not supported in that context");if(t=String(t),e!=null||C(this,this.j,"Cannot read property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof B))throw TypeError("Expecting native value or pseudo object");if(t==="length"){if(Y(this,e,this.J))return String(e).length}else if(64>t.charCodeAt(0)&&Y(this,e,this.J)){var r=Ge(t);if(!isNaN(r)&&r<String(e).length)return String(e)[r]}do if(e.h&&t in e.h)return(r=e.V[t])?(this.P=!0,r):e.h[t];while(e=me(this,e))};function st(e,t,r){if(!(t instanceof B))throw TypeError("Primitive data type has no properties");if(r=String(r),r==="length"&&Y(e,t,e.J))return!0;if(Y(e,t,e.J)){var n=Ge(r);if(!isNaN(n)&&n<String(t).length)return!0}do if(t.h&&r in t.h)return!0;while(t=me(e,t));return!1}D.g=function(e,t,r,n){if(this.Ka)throw Error("Setter not supported in that context");if(t=String(t),e!=null||C(this,this.j,"Cannot set property '"+t+"' of "+e),typeof e=="object"&&!(e instanceof B))throw TypeError("Expecting native value or pseudo object");n&&("get"in n||"set"in n)&&("value"in n||"writable"in n)&&C(this,this.j,"Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");var i=!this.o||zt(this).S;if(e instanceof B){if(Y(this,e,this.J)){var a=Ge(t);if(t==="length"||!isNaN(a)&&a<String(e).length){i&&C(this,this.j,"Cannot assign to read only property '"+t+"' of String '"+e.data+"'");return}}if(e.H==="Array")if(a=e.h.length,t==="length"){if(n){if(!("value"in n))return;r=n.value}if(r=Wt(r),isNaN(r)&&C(this,this.ob,"Invalid array length"),r<a)for(s in e.h){var s=Ge(s);!isNaN(s)&&r<=s&&delete e.h[s]}}else isNaN(s=Ge(t))||(e.h.length=Math.max(a,s+1));if(!e.preventExtensions||t in e.h)if(n){i={},"get"in n&&n.get&&(e.V[t]=n.get,i.get=this.g.ac),"set"in n&&n.set&&(e.Y[t]=n.set,i.set=this.g.bc),"configurable"in n&&(i.configurable=n.configurable),"enumerable"in n&&(i.enumerable=n.enumerable),"writable"in n&&(i.writable=n.writable,delete e.V[t],delete e.Y[t]),"value"in n?(i.value=n.value,delete e.V[t],delete e.Y[t]):r!==ze&&(i.value=r,delete e.V[t],delete e.Y[t]);try{Object.defineProperty(e.h,t,i)}catch{C(this,this.j,"Cannot redefine property: "+t)}"get"in n&&!n.get&&delete e.V[t],"set"in n&&!n.set&&delete e.Y[t]}else{if(r===ze)throw ReferenceError("Value not specified");for(n=e;!(t in n.h);)if(n=me(this,n),!n){n=e;break}if(n.Y&&n.Y[t])return this.Ka=!0,n.Y[t];if(n.V&&n.V[t])i&&C(this,this.j,"Cannot set property '"+t+"' of object '"+e+"' which only has a getter");else try{e.h[t]=r}catch{i&&C(this,this.j,"Cannot assign to read only property '"+t+"' of object '"+e+"'")}}else i&&C(this,this.j,"Can't add property '"+t+"', object is not extensible")}else i&&C(this,this.j,"Can't create property '"+t+"' on '"+e+"'")};D.g.ac=function(){throw Error("Placeholder getter")};D.g.bc=function(){throw Error("Placeholder setter")};function J(e,t,r,n){e.g(t.h.prototype,r,e.i(n,!1),w)}function He(e,t,r,n){e.g(t.h.prototype,r,e.ub(n),w)}function zt(e){if(e=e.o[e.o.length-1].scope,!e)throw Error("No scope found");return e}function Lt(e,t,r){var n=!1;if(r&&r.S)n=!0;else{var i=t.body&&t.body[0];i&&i.la&&i.la.type==="Literal"&&i.la.value==="use strict"&&(n=!0)}return i=e.s(null),n=new ir(r,n,i),r||Mr(e,n.object),Xe(e,t,n),n}function Xt(e,t,r){if(!t)throw Error("parentScope required");return e=r||e.s(null),new ir(t,t.S,e)}function Jt(e,t){for(var r=zt(e);r&&r!==e.N;){if(t in r.object.h)return r.object.h[t];r=r.Va}if(r===e.N&&st(e,r.object,t))return e.G(r.object,t);r=e.o[e.o.length-1].node,r.type==="UnaryExpression"&&r.operator==="typeof"||C(e,e.pb,t+" is not defined")}function nr(e,t,r){for(var n=zt(e),i=n.S;n&&n!==e.N;){if(t in n.object.h){try{n.object.h[t]=r}catch{i&&C(e,e.j,"Cannot assign to read only variable '"+t+"'")}return}n=n.Va}if(n===e.N&&(!i||st(e,n.object,t)))return e.g(n.object,t,r);C(e,e.pb,t+" is not defined")}function Xe(e,t,r){if(t.jb)var n=t.jb;else{switch(n=Object.create(null),t.type){case"VariableDeclaration":for(var i=0;i<t.fa.length;i++)n[t.fa[i].id.name]=!0;break;case"FunctionDeclaration":n[t.id.name]=t;break;case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"Program":case"SwitchCase":case"SwitchStatement":case"TryStatement":case"WithStatement":case"WhileStatement":var a=t.constructor,s;for(s in t)if(s!=="loc"){var d=t[s];if(d&&typeof d=="object"){if(Array.isArray(d)){for(i=0;i<d.length;i++)if(d[i]&&d[i].constructor===a){var h=Xe(e,d[i],r);for(s in h)n[s]=h[s]}}else if(d.constructor===a)for(s in h=Xe(e,d,r),h)n[s]=h[s]}}}t.jb=n}for(s in n)n[s]===!0?e.g(r.object,s,void 0,Bn):e.g(r.object,s,Gt(e,n[s],r),Bn);return n}function ge(e){return e.o[e.o.length-1].isConstructor}function Yt(e,t){return t[0]===Oe?Jt(e,t[1]):e.G(t[0],t[1])}function qt(e,t,r){return t[0]===Oe?nr(e,t[1],r):e.g(t[0],t[1],r)}function C(e,t,r){throw e.N?(r!==void 0&&t instanceof B&&(t=e.Aa(t),_t(e,t,r)),Ye(e,4,t),er):r===void 0?t:r}function Ye(e,t,r,n){if(t===0)throw TypeError("Should not unwind for NORMAL completions");var i=e.o;e:for(;0<i.length;i.pop()){var a=i[i.length-1];switch(a.node.type){case"TryStatement":a.ea={type:t,value:r,label:n};return;case"CallExpression":case"NewExpression":if(t===3){a.value=r;return}if(t!==4)throw Error("Unsynatctic break/continue not rejected by Acorn");break;case"Program":a.done=!0;break e}if(t===1){if(n?a.labels&&a.labels.indexOf(n)!==-1:a.W||a.Zb){i.pop();return}}else if(t===2&&(n?a.labels&&a.labels.indexOf(n)!==-1:a.W))return}throw Y(e,r,e.D)?(t={EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError},n=String(e.G(r,"name")),i=e.G(r,"message").valueOf(),t=(t[n]||Error)(i),t.stack=String(e.G(r,"stack"))):t=String(r),e.value=t,t}function ee(e,t){switch(t.type){case"ArrayExpression":return"[...]";case"BinaryExpression":case"LogicalExpression":return ee(e,t.left)+" "+t.operator+" "+ee(e,t.right);case"CallExpression":return ee(e,t.callee)+"(...)";case"ConditionalExpression":return ee(e,t.test)+" ? "+ee(e,t.da)+" : "+ee(e,t.alternate);case"Identifier":return t.name;case"Literal":return t.raw;case"MemberExpression":var r=ee(e,t.object);return e=ee(e,t.Wa),t.bb?r+"["+e+"]":r+"."+e;case"NewExpression":return"new "+ee(e,t.callee)+"(...)";case"ObjectExpression":return"{...}";case"ThisExpression":return"this";case"UnaryExpression":return t.operator+" "+ee(e,t.K);case"UpdateExpression":return r=ee(e,t.K),t.prefix?t.operator+r:r+t.operator}return"???"}function Ln(e,t,r){var n=e.o[e.o.length-1],i=Array.from(r),a=i.shift();r=Math.max(Number(i.shift()||0),0);var s=e.ya();if(a instanceof B&&a.H==="Function"){var d=a;s.type="CallExpression",n=n.scope}else{try{var h=Ae(String(a),"taskCode"+e.ic++)}catch(m){C(e,e.T,"Invalid code: "+m.message)}s.type="EvalProgram_",s.body=h.body,n=n.node.arguments[0],at(s,n?n.start:void 0,n?n.end:void 0),n=e.N,i.length=0}return t=new zr(d,i,n,s,t?r:-1),rr(e,t,r),t.Db}function rr(e,t,r){t.time=Date.now()+r,e.ca.push(t),e.ca.sort(function(n,i){return n.time-i.time})}function $n(e,t){for(var r=0;r<e.ca.length;r++)if(e.ca[r].Db==t){e.ca.splice(r,1);break}}function qe(e,t,r){if(!e.P)throw Error("Unexpected call to createGetter");e.P=!1,r=Array.isArray(r)?r[0]:r;var n=e.ya();return n.type="CallExpression",e=new k(n,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[],e}function Zt(e,t,r,n){if(!e.Ka)throw Error("Unexpected call to createSetter");e.Ka=!1,r=Array.isArray(r)?r[0]:e.Na;var i=e.ya();return i.type="CallExpression",e=new k(i,e.o[e.o.length-1].scope),e.ia=2,e.B=r,e.U=t,e.Qa=!0,e.F=[n],e}function Nt(e,t){return t==null?e.Na:t instanceof B?t:(e=e.s(me(e,t)),e.data=t,e)}D.Xb=function(){return this.N};D.Yb=function(){return this.o};D.ec=function(e){this.o=e};function k(e,t){this.node=e,this.scope=t}function ir(e,t,r){this.Va=e,this.S=t,this.object=r}function B(e){this.V=Object.create(null),this.Y=Object.create(null),this.h=Object.create(null),this.xa=e}D=B.prototype;D.xa=null;D.H="Object";D.data=null;D.toString=function(){if(!Ke)return"[object Interpreter.Object]";if(!(this instanceof B))return String(this);if(this.H==="Array"){var e=_n;e.push(this);try{var t=[],r=this.h.length,n=!1;1024<r&&(r=1e3,n=!0);for(var i=0;i<r;i++){var a=this.h[i];t[i]=a instanceof B&&e.indexOf(a)!==-1?"...":a}n&&t.push("...")}finally{e.pop()}return t.join(",")}if(this.H==="Error"){if(e=_n,e.indexOf(this)!==-1)return"[object Error]";r=this;do if("name"in r.h){t=r.h.name;break}while(r=r.xa);r=this;do if("message"in r.h){n=r.h.message;break}while(r=r.xa);e.push(this);try{t=t&&String(t),n=n&&String(n)}finally{e.pop()}return n?t+": "+n:String(t)}return this.data!==null?String(this.data):"[object "+this.H+"]"};D.valueOf=function(){return!Ke||this.data===void 0||this.data===null||this.data instanceof RegExp?this:this.data instanceof Date?this.data.valueOf():this.data};function zr(e,t,r,n,i){this.zb=e,this.Lb=t,this.scope=r,this.node=n,this.interval=i,this.Db=++Xr,this.time=0}var Xr=0;g.prototype.stepArrayExpression=function(e,t,r){r=r.elements;var n=t.A||0;for(t.Oa?(this.g(t.Oa,n,t.value),n++):(t.Oa=Re(this),t.Oa.h.length=r.length);n<r.length;){if(r[n])return t.A=n,new k(r[n],t.scope);n++}e.pop(),e[e.length-1].value=t.Oa};g.prototype.stepAssignmentExpression=function(e,t,r){if(!t.ja)return t.ja=!0,t=new k(r.left,t.scope),t.sa=!0,t;if(!t.Da)return t.Fa||(t.Fa=t.value),t.Ba&&(t.ma=t.value),!t.Ba&&r.operator!=="="&&(e=Yt(this,t.Fa),t.ma=e,this.P)?(t.Ba=!0,qe(this,e,t.Fa)):(t.Da=!0,r.operator==="="&&r.left.type==="Identifier"&&(t.Pa=r.left.name),new k(r.right,t.scope));if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{var n=t.ma,i=t.value;switch(r.operator){case"=":n=i;break;case"+=":n+=i;break;case"-=":n-=i;break;case"*=":n*=i;break;case"/=":n/=i;break;case"%=":n%=i;break;case"<<=":n<<=i;break;case">>=":n>>=i;break;case">>>=":n>>>=i;break;case"&=":n&=i;break;case"^=":n^=i;break;case"|=":n|=i;break;default:throw SyntaxError("Unknown assignment expression: "+r.operator)}if(r=qt(this,t.Fa,n))return t.ta=!0,t.ib=n,Zt(this,r,t.Fa,n);e.pop(),e[e.length-1].value=n}};g.prototype.stepBinaryExpression=function(e,t,r){if(!t.ja)return t.ja=!0,new k(r.left,t.scope);if(!t.Da)return t.Da=!0,t.ma=t.value,new k(r.right,t.scope);e.pop();var n=t.ma;switch(t=t.value,r.operator){case"==":r=n==t;break;case"!=":r=n!=t;break;case"===":r=n===t;break;case"!==":r=n!==t;break;case">":r=n>t;break;case">=":r=n>=t;break;case"<":r=n<t;break;case"<=":r=n<=t;break;case"+":r=n+t;break;case"-":r=n-t;break;case"*":r=n*t;break;case"/":r=n/t;break;case"%":r=n%t;break;case"&":r=n&t;break;case"|":r=n|t;break;case"^":r=n^t;break;case"<<":r=n<<t;break;case">>":r=n>>t;break;case">>>":r=n>>>t;break;case"in":t instanceof B||C(this,this.j,"'in' expects an object, not '"+t+"'"),r=st(this,t,n);break;case"instanceof":Y(this,t,this.O)||C(this,this.j,"'instanceof' expects an object, not '"+t+"'"),r=n instanceof B?Y(this,n,t):!1;break;default:throw SyntaxError("Unknown binary operator: "+r.operator)}e[e.length-1].value=r};g.prototype.stepBlockStatement=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new k(r,t.scope);e.pop()};g.prototype.stepBreakStatement=function(e,t,r){Ye(this,1,void 0,r.label&&r.label.name)};g.prototype.Hb=0;g.prototype.stepCallExpression=function(e,t,r){if(!t.ia){t.ia=1;var n=new k(r.callee,t.scope);return n.sa=!0,n}if(t.ia===1){t.ia=2;var i=t.value;if(Array.isArray(i)){if(t.U=Yt(this,i),i[0]===Oe?t.Pb=i[1]==="eval":t.B=i[0],i=t.U,this.P)return t.ia=1,qe(this,i,t.value)}else t.U=i;t.F=[],t.A=0}if(i=t.U,!t.Qa){if(t.A!==0&&t.F.push(t.value),r.arguments[t.A])return new k(r.arguments[t.A++],t.scope);if(r.type==="NewExpression"){if(i instanceof B&&!i.Ab||C(this,this.j,ee(this,r.callee)+" is not a constructor"),i===this.qa)t.B=Re(this);else{var a=i.h.prototype;(typeof a!="object"||a===null)&&(a=this.M),t.B=this.s(a)}t.isConstructor=!0}t.Qa=!0}if(t.eb)e.pop(),e[e.length-1].value=t.isConstructor&&typeof t.value!="object"?t.B:t.value;else{if(t.eb=!0,i instanceof B||C(this,this.j,ee(this,r.callee)+" is not a function"),e=i.node){for(r=Lt(this,e.body,i.Va),n=Re(this),i=0;i<t.F.length;i++)this.g(n,i,t.F[i]);for(this.g(r.object,"arguments",n),i=0;i<e.oa.length;i++)this.g(r.object,e.oa[i].name,t.F.length>i?t.F[i]:void 0);return r.S||(t.B=Nt(this,t.B)),this.g(r.object,"this",t.B,Vt),t.value=void 0,new k(e.body,r)}if(i.eval)if(i=t.F[0],typeof i!="string")t.value=i;else{try{n=Ae(String(i),"eval"+this.Hb++)}catch(d){C(this,this.T,"Invalid code: "+d.message)}return i=this.ya(),i.type="EvalProgram_",i.body=n.body,at(i,r.start,r.end),r=t.Pb?t.scope:this.N,r.S?r=Lt(this,n,r):Xe(this,n,r),this.value=void 0,new k(i,r)}else if(i.Ta)t.scope.S||(t.B=Nt(this,t.B)),t.value=i.Ta.apply(t.B,t.F);else if(i.Za){var s=this;n=i.Za.length-1,n=t.F.concat(Array(n)).slice(0,n),n.push(function(d){t.value=d,s.za=!1}),this.za=!0,t.scope.S||(t.B=Nt(this,t.B)),i.Za.apply(t.B,n)}else C(this,this.j,ee(this,r.callee)+" is not callable")}};g.prototype.stepConditionalExpression=function(e,t,r){var n=t.na||0;if(n===0)return t.na=1,new k(r.test,t.scope);if(n===1){if(t.na=2,(n=!!t.value)&&r.da)return new k(r.da,t.scope);if(!n&&r.alternate)return new k(r.alternate,t.scope);this.value=void 0}e.pop(),r.type==="ConditionalExpression"&&(e[e.length-1].value=t.value)};g.prototype.stepContinueStatement=function(e,t,r){Ye(this,2,void 0,r.label&&r.label.name)};g.prototype.stepDebuggerStatement=function(e){e.pop()};g.prototype.stepDoWhileStatement=function(e,t,r){if(r.type==="DoWhileStatement"&&t.ga===void 0&&(t.value=!0,t.ga=!0),!t.ga)return t.ga=!0,new k(r.test,t.scope);if(!t.value)e.pop();else if(r.body)return t.ga=!1,t.W=!0,new k(r.body,t.scope)};g.prototype.stepEmptyStatement=function(e){e.pop()};g.prototype.stepEvalProgram_=function(e,t,r){var n=t.A||0;if(r=r.body[n])return t.A=n+1,new k(r,t.scope);e.pop(),e[e.length-1].value=this.value};g.prototype.stepExpressionStatement=function(e,t,r){if(!t.ka)return this.value=void 0,t.ka=!0,new k(r.la,t.scope);e.pop(),this.value=t.value};g.prototype.stepForInStatement=function(e,t,r){if(!t.Ub&&(t.Ub=!0,r.left.fa&&r.left.fa[0].ua))return t.scope.S&&C(this,this.T,"for-in loop variable declaration may not have an initializer"),new k(r.left,t.scope);if(!t.Ca)return t.Ca=!0,t.pa||(t.pa=t.value),new k(r.right,t.scope);if(t.W||(t.W=!0,t.u=t.value,t.kb=Object.create(null)),t.Ra===void 0)e:for(;;){if(t.u instanceof B)for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u.h));;){var n=t.wa.shift();if(n===void 0)break;if(Object.prototype.hasOwnProperty.call(t.u.h,n)&&!t.kb[n]&&(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u.h,n))){t.Ra=n;break e}}else if(t.u!==null&&t.u!==void 0){for(t.wa||(t.wa=Object.getOwnPropertyNames(t.u));n=t.wa.shift(),n!==void 0;)if(t.kb[n]=!0,Object.prototype.propertyIsEnumerable.call(t.u,n)){t.Ra=n;break e}}if(t.u=me(this,t.u),t.wa=null,t.u===null){e.pop();return}}if(!t.wb)if(t.wb=!0,e=r.left,e.type==="VariableDeclaration")t.pa=[Oe,e.fa[0].id.name];else return t.pa=null,t=new k(e,t.scope),t.sa=!0,t;if(t.pa||(t.pa=t.value),!t.ta&&(t.ta=!0,e=t.Ra,n=qt(this,t.pa,e)))return Zt(this,n,t.pa,e);if(t.Ra=void 0,t.wb=!1,t.ta=!1,r.body)return new k(r.body,t.scope)};g.prototype.stepForStatement=function(e,t,r){switch(t.na){default:if(t.na=1,r.ua)return new k(r.ua,t.scope);break;case 1:if(t.na=2,r.test)return new k(r.test,t.scope);break;case 2:if(t.na=3,r.test&&!t.value)e.pop();else return t.W=!0,new k(r.body,t.scope);break;case 3:if(t.na=1,r.update)return new k(r.update,t.scope)}};g.prototype.stepFunctionDeclaration=function(e){e.pop()};g.prototype.stepFunctionExpression=function(e,t,r){e.pop(),t=e[e.length-1],e=t.scope,r.id&&(e=Xt(this,e)),t.value=Gt(this,r,e,t.Pa),r.id&&this.g(e.object,r.id.name,t.value,Vt)};g.prototype.stepIdentifier=function(e,t,r){if(e.pop(),t.sa)e[e.length-1].value=[Oe,r.name];else{if(t=Jt(this,r.name),this.P)return qe(this,t,this.Na);e[e.length-1].value=t}};g.prototype.stepIfStatement=g.prototype.stepConditionalExpression;g.prototype.stepLabeledStatement=function(e,t,r){return e.pop(),e=t.labels||[],e.push(r.label.name),t=new k(r.body,t.scope),t.labels=e,t};g.prototype.stepLiteral=function(e,t,r){e.pop(),t=r.value,t instanceof RegExp&&(r=this.s(this.Ma),Ht(this,r,t),t=r),e[e.length-1].value=t};g.prototype.stepLogicalExpression=function(e,t,r){if(r.operator!=="&&"&&r.operator!=="||")throw SyntaxError("Unknown logical operator: "+r.operator);if(!t.ja)return t.ja=!0,new k(r.left,t.scope);if(t.Da)e.pop(),e[e.length-1].value=t.value;else if(r.operator==="&&"&&!t.value||r.operator==="||"&&t.value)e.pop(),e[e.length-1].value=t.value;else return t.Da=!0,new k(r.right,t.scope)};g.prototype.stepMemberExpression=function(e,t,r){if(!t.Ca)return t.Ca=!0,new k(r.object,t.scope);if(r.bb)if(t.Vb)r=t.value;else return t.u=t.value,t.Vb=!0,new k(r.Wa,t.scope);else t.u=t.value,r=r.Wa.name;if(e.pop(),t.sa)e[e.length-1].value=[t.u,r];else{if(r=this.G(t.u,r),this.P)return qe(this,r,t.u);e[e.length-1].value=r}};g.prototype.stepNewExpression=g.prototype.stepCallExpression;g.prototype.stepObjectExpression=function(e,t,r){var n=t.A||0,i=r.h[n];if(t.u){var a=t.Pa;t.Ja[a]||(t.Ja[a]={}),t.Ja[a][i.kind]=t.value,t.A=++n,i=r.h[n]}else t.u=this.s(this.M),t.Ja=Object.create(null);if(i){var s=i.key;if(s.type==="Identifier")a=s.name;else if(s.type==="Literal")a=s.value;else throw SyntaxError("Unknown object structure: "+s.type);return t.Pa=a,new k(i.value,t.scope)}for(s in t.Ja)r=t.Ja[s],"get"in r||"set"in r?this.g(t.u,s,ze,{configurable:!0,enumerable:!0,get:r.get,set:r.set}):this.g(t.u,s,r.init);e.pop(),e[e.length-1].value=t.u};g.prototype.stepProgram=function(e,t,r){if(e=r.body.shift())return t.done=!1,new k(e,t.scope);t.done=!0};g.prototype.stepReturnStatement=function(e,t,r){if(r.K&&!t.ka)return t.ka=!0,new k(r.K,t.scope);Ye(this,3,t.value)};g.prototype.stepSequenceExpression=function(e,t,r){var n=t.A||0;if(r=r.xb[n])return t.A=n+1,new k(r,t.scope);e.pop(),e[e.length-1].value=t.value};g.prototype.stepSwitchStatement=function(e,t,r){if(!t.ga)return t.ga=1,new k(r.Qb,t.scope);for(t.ga===1&&(t.ga=2,t.hc=t.value,t.cb=-1);;){var n=t.gb||0,i=r.tb[n];if(t.Ha||!i||i.test)if(i||t.Ha||t.cb===-1)if(i){if(!t.Ha&&!t.Fb&&i.test)return t.Fb=!0,new k(i.test,t.scope);if(t.Ha||t.value===t.hc){t.Ha=!0;var a=t.A||0;if(i.da[a])return t.Zb=!0,t.A=a+1,new k(i.da[a],t.scope)}t.Fb=!1,t.A=0,t.gb=n+1}else{e.pop();break}else t.Ha=!0,t.gb=t.cb;else t.cb=n,t.gb=n+1}};g.prototype.stepThisExpression=function(e){e.pop(),e[e.length-1].value=Jt(this,"this")};g.prototype.stepThrowStatement=function(e,t,r){if(t.ka)C(this,t.value);else return t.ka=!0,new k(r.K,t.scope)};g.prototype.stepTryStatement=function(e,t,r){if(!t.Rb)return t.Rb=!0,new k(r.block,t.scope);if(t.ea&&t.ea.type===4&&!t.Tb&&r.Ea)return t.Tb=!0,e=Xt(this,t.scope),this.g(e.object,r.Ea.Ua.name,t.ea.value),t.ea=void 0,new k(r.Ea.body,e);if(!t.Sb&&r.fb)return t.Sb=!0,new k(r.fb,t.scope);e.pop(),t.ea&&Ye(this,t.ea.type,t.ea.value,t.ea.label)};g.prototype.stepUnaryExpression=function(e,t,r){if(!t.ka)return t.ka=!0,e=new k(r.K,t.scope),e.sa=r.operator==="delete",e;e.pop();var n=t.value;switch(r.operator){case"-":n=-n;break;case"+":n=+n;break;case"!":n=!n;break;case"~":n=~n;break;case"delete":if(r=!0,Array.isArray(n)){var i=n[0];i===Oe&&(i=t.scope),n=String(n[1]);try{delete i.h[n]}catch{t.scope.S?C(this,this.j,"Cannot delete property '"+n+"' of '"+i+"'"):r=!1}}n=r;break;case"typeof":n=n&&n.H==="Function"?"function":typeof n;break;case"void":n=void 0;break;default:throw SyntaxError("Unknown unary operator: "+r.operator)}e[e.length-1].value=n};g.prototype.stepUpdateExpression=function(e,t,r){if(!t.ja)return t.ja=!0,e=new k(r.K,t.scope),e.sa=!0,e;if(t.Ga||(t.Ga=t.value),t.Ba&&(t.ma=t.value),!t.Ba){var n=Yt(this,t.Ga);if(t.ma=n,this.P)return t.Ba=!0,qe(this,n,t.Ga)}if(t.ta)e.pop(),e[e.length-1].value=t.ib;else{if(n=Number(t.ma),r.operator==="++")var i=n+1;else if(r.operator==="--")i=n-1;else throw SyntaxError("Unknown update expression: "+r.operator);if(r=r.prefix?i:n,n=qt(this,t.Ga,i))return t.ta=!0,t.ib=r,Zt(this,n,t.Ga,i);e.pop(),e[e.length-1].value=r}};g.prototype.stepVariableDeclaration=function(e,t,r){r=r.fa;var n=t.A||0,i=r[n];for(t.Bb&&i&&(nr(this,i.id.name,t.value),t.Bb=!1,i=r[++n]);i;){if(i.ua)return t.A=n,t.Bb=!0,t.Pa=i.id.name,new k(i.ua,t.scope);i=r[++n]}e.pop()};g.prototype.stepWithStatement=function(e,t,r){return t.Ca?(e.pop(),e=Xt(this,t.scope,t.value),new k(r.body,e)):(t.Ca=!0,new k(r.object,t.scope))};g.prototype.stepWhileStatement=g.prototype.stepDoWhileStatement;xe.Interpreter=g;g.prototype.step=g.prototype.lb;g.prototype.run=g.prototype.Eb;g.prototype.appendCode=g.prototype.Jb;g.prototype.createObject=g.prototype.Aa;g.prototype.createObjectProto=g.prototype.s;g.prototype.createAsyncFunction=g.prototype.ub;g.prototype.createNativeFunction=g.prototype.i;g.prototype.getProperty=g.prototype.G;g.prototype.setProperty=g.prototype.g;g.prototype.nativeToPseudo=g.prototype.Ia;g.prototype.pseudoToNative=g.prototype.R;g.prototype.getGlobalScope=g.prototype.Xb;g.prototype.getStateStack=g.prototype.Yb;g.prototype.setStateStack=g.prototype.ec;g.VALUE_IN_DESCRIPTOR=ze;const Jr=({builder:e,context:t,event:r,state:n})=>Object.entries({state:n,Builder:e,builder:e,context:t,event:r}),Yr=e=>e.split(`
|
|
11
|
+
`).map(t=>{const r=t.trim();if(t.includes("__awaiter"))return;if(!r.startsWith("state."))return t;const[i,a]=r.split("="),d=`setRootState('${i.replace("state.","").trim()}', ${a.trim()})`;return`
|
|
12
|
+
${t}
|
|
13
|
+
${d}
|
|
14
|
+
`}).filter(Boolean).join(`
|
|
15
|
+
`),Dn=e=>e+"JSON",qr=({builder:e,context:t,event:r,rootState:n,localState:i,rootSetState:a,code:s})=>{const d={...n,...i},h=Jr({builder:e,context:t,event:r,state:d}),m=h.map(([E])=>{const j=Dn(E);return`var ${E} = ${j} === undefined ? undefined : JSON.parse(${j});`}).join(`
|
|
16
|
+
`),y=Yr(s);if(y===""){S.logger.warn("Skipping evaluation of empty code block.");return}const x=`
|
|
17
|
+
function theFunction() {
|
|
18
|
+
${m}
|
|
19
|
+
|
|
20
|
+
${y}
|
|
21
|
+
}
|
|
22
|
+
theFunction();
|
|
23
|
+
`,M=(E,j)=>{const $=Qn(d,E,j);a==null||a($)},_=function(E,j){h.forEach(([$,V])=>{const v=JSON.stringify(V);E.setProperty(j,Dn($),v)}),E.setProperty(j,"setRootState",E.createNativeFunction(M))};try{const E=new g(x,_);return E.run(),E.pseudoToNative(E.value)}catch(E){S.logger.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.",{e:E});return}};function Je({code:e,context:t,localState:r,rootState:n,rootSetState:i,event:a,isExpression:s=!0}){if(e===""){S.logger.warn("Skipping evaluation of empty code block.");return}const d={isEditing:S.isEditing(),isBrowser:S.isBrowser(),isServer:!S.isBrowser(),getUserAttributes:()=>S.getUserAttributes()},y={code:s&&!(e.includes(";")||e.includes(" return ")||e.trim().startsWith("return "))?`return (${e});`:e,builder:d,context:t,event:a,rootSetState:i,rootState:n,localState:r};try{return qr(y)}catch(x){S.logger.error("Failed code evaluation: "+x.message,{code:e});return}}const Zr=({block:e,context:t,localState:r,rootState:n,rootSetState:i})=>{if(!e.bindings)return e;const a=S.fastClone(e),s={...a,properties:{...a.properties},actions:{...a.actions}};for(const d in e.bindings){const h=e.bindings[d],m=Je({code:h,localState:r,rootState:n,rootSetState:i,context:t});Qn(s,d,m)}return s};function Qt({block:e,context:t,shouldEvaluateBindings:r,localState:n,rootState:i,rootSetState:a}){const s=e;return r?Zr({block:s,localState:n,rootState:i,rootSetState:a,context:t}):s}const Qr=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),or=e=>Object.entries(e).map(([r,n])=>{if(typeof n=="string")return`${Qr(r)}: ${n};`}).filter(S.checkIsDefined),ei=e=>or(e).join(`
|
|
24
|
+
`),Ft=({mediaQuery:e,className:t,styles:r})=>{const n=`.${t} {
|
|
25
|
+
${ei(r)}
|
|
26
|
+
}`;return e?`${e} {
|
|
27
|
+
${n}
|
|
28
|
+
}`:n};function lt(e){return c.jsx("style",{dangerouslySetInnerHTML:{__html:e.styles},id:e.id})}function en(e){const[t,r]=I.useState(()=>Qt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0}));function n(){return S.checkIsDefined(t.hide)?!t.hide:S.checkIsDefined(t.show)?t.show:!0}function i(){var j;const a=t.responsiveStyles,s=e.context.content,d=Zn(((j=s==null?void 0:s.meta)==null?void 0:j.breakpoints)||{}),h=a==null?void 0:a.large,m=a==null?void 0:a.medium,y=a==null?void 0:a.small,x=t.id;if(!x)return"";const M=h?Ft({className:x,styles:h}):"",_=m?Ft({className:x,styles:m,mediaQuery:Mn("medium",d)}):"",E=y?Ft({className:x,styles:y,mediaQuery:Mn("small",d)}):"";return[M,_,E].join(" ")}return c.jsx(c.Fragment,{children:i()&&n()?c.jsx(c.Fragment,{children:c.jsx(lt,{styles:i()})}):null})}function ti(e){var t;return{...(t=e.component)==null?void 0:t.options,...e.options,builderBlock:e}}const ni=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Mt=e=>typeof e=="string"&&ni.includes(e.toLowerCase()),ri=({block:e,context:t,registeredComponents:r})=>{var a;const n=(a=Qt({block:e,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context,shouldEvaluateBindings:!1}).component)==null?void 0:a.name;if(!n)return null;const i=r[n];if(i)return i;console.warn(`
|
|
29
|
+
Could not find a registered component named "${n}".
|
|
30
|
+
If you registered it, is the file that registered it imported by the file that needs to render it?`)},ii=({block:e,context:t})=>{const{repeat:r,...n}=e;if(!(r!=null&&r.collection))return;const i=Je({code:r.collection,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,context:t.context});if(!Array.isArray(i))return;const a=r.collection.split(".").pop(),s=r.itemName||(a?a+"Item":"item");return i.map((h,m)=>({context:{...t,localState:{...t.localState,$index:m,$item:h,[s]:h,[`$${s}Index`]:m}},block:n}))},tn=I.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{}});function oi(e){const[t,r]=I.useState(()=>e.repeatContext);return c.jsx(tn.Provider,{value:t,children:c.jsx(ut,{block:e.block,context:t,registeredComponents:e.registeredComponents})})}function ai(e){return e.charAt(0).toUpperCase()+e.slice(1)}const si=e=>`on${ai(e)}`,li=(e,t)=>r=>Je({code:e,context:t.context,localState:t.localState,rootState:t.rootState,rootSetState:t.rootSetState,event:r,isExpression:!1});function $t(e){const t={},r=e.block.actions??{};for(const n in r){if(!r.hasOwnProperty(n))continue;const i=r[n];let a=si(n);if(e.stripPrefix)switch(S.TARGET){case"vue2":case"vue3":a=a.replace("v-on:","");break;case"svelte":a=a.replace("on:","");break}t[a]=li(i,e)}return t}function ui(e){return e.className=e.class,delete e.class,e}const ci=e=>({href:e.href});function ot({block:e,context:t}){var n;const r={...ci(e),...e.properties,"builder-id":e.id,style:e.style?fi(e.style):void 0,class:[e.id,"builder-block",e.class,(n=e.properties)==null?void 0:n.class].filter(Boolean).join(" ")};return ui(r)}function fi(e){switch(S.TARGET){case"svelte":case"vue2":case"vue3":case"solid":return or(e).join(" ");case"qwik":case"reactNative":case"react":case"rsc":return e}}function di(e){return c.jsx(e.Wrapper,{...e.wrapperProps,attributes:{...ot({block:e.block,context:e.context}),...$t({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context})},children:e.children})}const hi=({componentOptions:e,builderBlock:t,context:r,componentRef:n,includeBlockProps:i,isInteractive:a,contextValue:s})=>a?{Wrapper:n,block:t,context:r,wrapperProps:e}:{...e,...i?{attributes:ot({block:t,context:s})}:{}};function Vn(e){var n,i;const[t,r]=I.useState(()=>e.isInteractive?di:e.componentRef);return c.jsx(c.Fragment,{children:e.componentRef?c.jsx(c.Fragment,{children:c.jsxs(t,{...hi({componentOptions:e.componentOptions,builderBlock:e.builderBlock,context:e.context,componentRef:e.componentRef,includeBlockProps:e.includeBlockProps,isInteractive:e.isInteractive,contextValue:e.context}),children:[(n=e.blockChildren)==null?void 0:n.map(a=>c.jsx(ut,{block:a,context:e.context,registeredComponents:e.registeredComponents},"block-"+a.id)),(i=e.blockChildren)==null?void 0:i.map(a=>c.jsx(en,{block:a,context:e.context},"block-style-"+a.id))]})}):null})}function Wn(e){return c.jsxs(c.Fragment,{children:[" ",e.hasChildren?c.jsx(c.Fragment,{children:c.jsxs(e.Wrapper,{...ot({block:e.block,context:e.context}),...$t({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0}),children:[" ",e.children," "]})}):c.jsx(c.Fragment,{children:c.jsx(e.Wrapper,{...ot({block:e.block,context:e.context}),...$t({block:e.block,rootState:e.context.rootState,rootSetState:e.context.rootSetState,localState:e.context.localState,context:e.context.context,stripPrefix:!0})})})," "]})}function ut(e){var y,x,M,_;function t(){return ri({block:e.block,context:e.context,registeredComponents:e.registeredComponents})}function r(){return ii({block:e.block,context:e.context})}function n(){return r()?e.block:Qt({block:e.block,localState:e.context.localState,rootState:e.context.rootState,rootSetState:e.context.rootSetState,context:e.context.context,shouldEvaluateBindings:!0})}function i(){return e.block.tagName||"div"}function a(){return"hide"in n()?!n().hide:"show"in n()?n().show:!0}function s(){var j;return!((j=t==null?void 0:t())!=null&&j.component)&&!r()?n().children??[]:[]}function d(){var E,j,$,V,v;return{blockChildren:n().children??[],componentRef:(E=t==null?void 0:t())==null?void 0:E.component,componentOptions:{...ti(n()),builderContext:e.context,...((j=t==null?void 0:t())==null?void 0:j.name)==="Symbol"||(($=t==null?void 0:t())==null?void 0:$.name)==="Columns"?{builderComponents:e.registeredComponents}:{}},context:h,registeredComponents:e.registeredComponents,builderBlock:n(),includeBlockProps:((V=t==null?void 0:t())==null?void 0:V.noWrap)===!0,isInteractive:!((v=t==null?void 0:t())!=null&&v.isRSC)}}const[h,m]=I.useState(()=>e.context);return c.jsx(c.Fragment,{children:a()?c.jsx(c.Fragment,{children:(y=t==null?void 0:t())!=null&&y.noWrap?c.jsx(c.Fragment,{children:c.jsx(Vn,{...d()})}):c.jsxs(c.Fragment,{children:[Mt(i())?c.jsx(c.Fragment,{children:c.jsx(Wn,{Wrapper:i(),block:n(),context:e.context,hasChildren:!1})}):null,!Mt(i())&&r()?c.jsx(c.Fragment,{children:(x=r())==null?void 0:x.map((E,j)=>c.jsx(oi,{repeatContext:E.context,block:E.block,registeredComponents:e.registeredComponents},j))}):null,!Mt(i())&&!r()?c.jsx(c.Fragment,{children:c.jsxs(Wn,{Wrapper:i(),block:n(),context:e.context,hasChildren:!0,children:[c.jsx(Vn,{...d()}),(M=s())==null?void 0:M.map(E=>c.jsx(ut,{block:E,context:h,registeredComponents:e.registeredComponents},"block-"+E.id)),(_=s())==null?void 0:_.map(E=>c.jsx(en,{block:E,context:h},"block-style-"+E.id))]})}):null]})}):null})}function pi(e){function t(){var i;return"builder-blocks"+((i=e.blocks)!=null&&i.length?"":" no-blocks")}function r(){var i,a;S.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.clickEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}function n(){var i,a;S.isEditing()&&!((i=e.blocks)!=null&&i.length)&&((a=window.parent)==null||a.postMessage({type:"builder.hoverEmptyBlocks",data:{parentElementId:e.parent,dataPath:e.path}},"*"))}return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:t()+" div-5821bd52","builder-path":e.path,"builder-parent-id":e.parent,style:e.styleProp,onClick:i=>r(),onMouseEnter:i=>n(),onKeyPress:i=>r(),children:e.children}),c.jsx("style",{children:`.div-5821bd52 {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: stretch;
|
|
34
|
+
}`})]})}const ar=I.createContext({registeredComponents:{}});function ct(e){var n,i;const t=I.useContext(tn),r=I.useContext(ar);return c.jsxs(pi,{blocks:e.blocks,parent:e.parent,path:e.path,styleProp:e.styleProp,children:[e.blocks?c.jsx(c.Fragment,{children:(n=e.blocks)==null?void 0:n.map(a=>c.jsx(ut,{block:a,context:e.context||t,registeredComponents:e.registeredComponents||r.registeredComponents},"render-block-"+a.id))}):null,e.blocks?c.jsx(c.Fragment,{children:(i=e.blocks)==null?void 0:i.map(a=>c.jsx(en,{block:a,context:e.context||t},"block-style-"+a.id))}):null]})}function sr(e){var V;const[t,r]=I.useState(()=>typeof e.space=="number"?e.space||0:20),[n,i]=I.useState(()=>e.columns||[]),[a,s]=I.useState(()=>e.stackColumnsAt||"tablet");function d(v){var W;return((W=n[v])==null?void 0:W.width)||100/n.length}function h(v){const W=t*(n.length-1)/n.length;return`calc(${d(v)}% - ${W}px)`}function m({stackedStyle:v,desktopStyle:W}){return a==="tablet"?v:W}function y({stackedStyle:v,desktopStyle:W}){return a==="never"?W:v}const[x,M]=I.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function _(){return{"--flex-dir":x,"--flex-dir-tablet":m({stackedStyle:x,desktopStyle:"row"})}}function E(v){const W=v===0?0:t,ie=h(v),oe=`${W}px`,K="100%",Z=0;return{width:ie,["marginLeft"]:oe,"--column-width-mobile":y({stackedStyle:K,desktopStyle:ie}),"--column-margin-left-mobile":y({stackedStyle:Z,desktopStyle:oe}),"--column-width-tablet":m({stackedStyle:K,desktopStyle:ie}),"--column-margin-left-tablet":m({stackedStyle:Z,desktopStyle:oe})}}function j(v){var ie,oe;return Zn(((oe=(ie=e.builderContext.content)==null?void 0:ie.meta)==null?void 0:oe.breakpoints)||{})[v].max}function $(){return`
|
|
35
|
+
@media (max-width: ${j("medium")}px) {
|
|
36
|
+
.${e.builderBlock.id}-breakpoints {
|
|
37
|
+
flex-direction: var(--flex-dir-tablet);
|
|
38
|
+
align-items: stretch;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.${e.builderBlock.id}-breakpoints > .builder-column {
|
|
42
|
+
width: var(--column-width-tablet) !important;
|
|
43
|
+
margin-left: var(--column-margin-left-tablet) !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (max-width: ${j("small")}px) {
|
|
48
|
+
.${e.builderBlock.id}-breakpoints {
|
|
49
|
+
flex-direction: var(--flex-dir);
|
|
50
|
+
align-items: stretch;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.${e.builderBlock.id}-breakpoints > .builder-column {
|
|
54
|
+
width: var(--column-width-mobile) !important;
|
|
55
|
+
margin-left: var(--column-margin-left-mobile) !important;
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
`}return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:`builder-columns ${e.builderBlock.id}-breakpoints div-d734ad62`,style:_(),children:[c.jsx(c.Fragment,{children:c.jsx(lt,{styles:$()})}),(V=e.columns)==null?void 0:V.map((v,W)=>I.createElement("div",{className:"builder-column div-d734ad62-2",style:E(W),key:W},c.jsx(ct,{path:`component.options.columns.${W}.blocks`,parent:e.builderBlock.id,styleProp:{flexGrow:"1"},context:e.builderContext,registeredComponents:e.builderComponents,blocks:v.blocks})))]}),c.jsx("style",{children:`.div-d734ad62 {
|
|
59
|
+
display: flex;
|
|
60
|
+
line-height: normal;
|
|
61
|
+
}.div-d734ad62-2 {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
align-items: stretch;
|
|
65
|
+
}`})]})}function lr(e){return c.jsx("span",{children:e.children})}function Hn(e){return e.replace(/http(s)?:/,"")}function mi(e="",t,r){const n=new RegExp("([?&])"+t+"=.*?(&|$)","i"),i=e.indexOf("?")!==-1?"&":"?";return e.match(n)?e.replace(n,"$1"+t+"="+encodeURIComponent(r)+"$2"):e+i+t+"="+encodeURIComponent(r)}function gi(e,t){if(!e||!(e!=null&&e.match(/cdn\.shopify\.com/))||!t)return e;if(t==="master")return Hn(e);const r=e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);if(r){const n=e.split(r[0]),i=r[3],a=t.match("x")?t:`${t}x`;return Hn(`${n[0]}_${a}${i}`)}return null}function Ut(e){if(!e)return e;const t=[100,200,400,800,1200,1600,2e3];if(e.match(/builder\.io/)){let r=e;const n=Number(e.split("?width=")[1]);return isNaN(n)||(r=`${r} ${n}w`),t.filter(i=>i!==n).map(i=>`${mi(e,"width",i)} ${i}w`).concat([r]).join(", ")}return e.match(/cdn\.shopify\.com/)?t.map(r=>[gi(e,`${r}x${r}`),r]).filter(([r])=>!!r).map(([r,n])=>`${r} ${n}w`).concat([e]).join(", "):e}function ur(e){var i,a,s,d;function t(){var y;const m=e.image||e.src;if(!m||!(m.match(/builder\.io/)||m.match(/cdn\.shopify\.com/)))return e.srcset;if(e.srcset&&((y=e.image)!=null&&y.includes("builder.io/api/v1/image"))){if(!e.srcset.includes(e.image.split("?")[0]))return console.debug("Removed given srcset"),Ut(m)}else if(e.image&&!e.srcset)return Ut(m);return Ut(m)}function r(){var h;return(h=t==null?void 0:t())!=null&&h.match(/builder\.io/)&&!e.noWebp?t().replace(/\?/g,"?format=webp&"):""}function n(){const h={position:"absolute",height:"100%",width:"100%",left:"0px",top:"0px"};return e.aspectRatio?h:void 0}return c.jsxs(c.Fragment,{children:[c.jsxs(c.Fragment,{children:[c.jsxs("picture",{children:[r()?c.jsx(c.Fragment,{children:c.jsx("source",{type:"image/webp",srcSet:r()})}):null,c.jsx("img",{loading:"lazy",alt:e.altText,role:e.altText?"presentation":void 0,style:{objectPosition:e.backgroundPosition||"center",objectFit:e.backgroundSize||"cover",...n()},className:"builder-image"+(e.className?" "+e.className:"")+" img-ef11a6be",src:e.image,srcSet:t(),sizes:e.sizes})]}),e.aspectRatio&&!((a=(i=e.builderBlock)==null?void 0:i.children)!=null&&a.length&&e.fitContent)?c.jsx(c.Fragment,{children:c.jsx("div",{className:"builder-image-sizer div-ef11a6be",style:{paddingTop:e.aspectRatio*100+"%"}})}):null,(d=(s=e.builderBlock)==null?void 0:s.children)!=null&&d.length&&e.fitContent?c.jsx(c.Fragment,{children:e.children}):null,!e.fitContent&&e.children?c.jsx(c.Fragment,{children:c.jsx("div",{className:"div-ef11a6be-2",children:e.children})}):null]}),c.jsx("style",{children:`.img-ef11a6be {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
transition: opacity 0.2s ease-in-out;
|
|
68
|
+
}.div-ef11a6be {
|
|
69
|
+
width: 100%;
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
font-size: 0;
|
|
72
|
+
}.div-ef11a6be-2 {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
align-items: stretch;
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: 0;
|
|
78
|
+
left: 0;
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
}`})]})}function cr(e){return c.jsx("section",{...e.attributes,style:{width:"100%",alignSelf:"stretch",flexGrow:1,boxSizing:"border-box",maxWidth:e.maxWidth||1200,display:"flex",flexDirection:"column",alignItems:"stretch",marginLeft:"auto",marginRight:"auto"},children:e.children})}const it=e=>Object.values((e==null?void 0:e.variations)||{}).map(t=>({...t,testVariationId:t.id,id:e==null?void 0:e.id})),yi=({canTrack:e,content:t})=>!(!(it(t).length>0)||!e||S.isBrowser());function vi(e,t,r){var s;function n(){function d(E,j,$){let V="";if($){const v=new Date;v.setTime(v.getTime()+$*24*60*60*1e3),V="; expires="+v.toUTCString()}document.cookie=E+"="+(j||"")+V+"; path=/; Secure; SameSite=None"}function h(E){const j=E+"=",$=document.cookie.split(";");for(let V=0;V<$.length;V++){let v=$[V];for(;v.charAt(0)===" ";)v=v.substring(1,v.length);if(v.indexOf(j)===0)return v.substring(j.length,v.length)}return null}const m=`builder.tests.${e}`,y=h(m),x=t.map(E=>E.id).concat(e);if(y&&x.includes(y))return y;let M=0;const _=Math.random();for(let E=0;E<t.length;E++){const j=t[E],$=j.testRatio;if(M+=$,_<M)return d(m,j.id),j.id}return d(m,e),e}const i=n(),a=(s=document.currentScript)==null?void 0:s.previousElementSibling;if(r){a.remove();const d=document.currentScript;d==null||d.remove()}else{const d=t.concat({id:e}).filter(h=>h.id!==i).map(h=>`.variant-${h.id} { display: none; }
|
|
82
|
+
`).join("");a.innerHTML=d}}function xi(e,t,r){var h;if(!navigator.cookieEnabled)return;function n(m){const y=m+"=",x=document.cookie.split(";");for(let M=0;M<x.length;M++){let _=x[M];for(;_.charAt(0)===" ";)_=_.substring(1,_.length);if(_.indexOf(y)===0)return _.substring(y.length,_.length)}return null}const i=`builder.tests.${t}`,a=n(i),s=(h=document.currentScript)==null?void 0:h.parentElement,d=e===t;if(a===e){if(d)return;s==null||s.removeAttribute("hidden"),s==null||s.removeAttribute("aria-hidden")}else{d&&(r?s==null||s.remove():(s==null||s.setAttribute("hidden","true"),s==null||s.setAttribute("aria-hidden","true")));return}}const Si=e=>e==="react"||e==="reactNative",fr=Si(S.TARGET),dr="builderIoAbTest",hr="builderIoRenderContent",bi=()=>{const e=vi.toString().replace(/\s+/g," "),t=xi.toString().replace(/\s+/g," ");return`
|
|
83
|
+
window.${dr} = ${e}
|
|
84
|
+
window.${hr} = ${t}
|
|
85
|
+
`},wi=(e,t)=>`
|
|
86
|
+
window.${dr}("${t}",${JSON.stringify(e)}, ${fr})`,ki=({contentId:e,variationId:t})=>`
|
|
87
|
+
window.${hr}("${t}", "${e}", ${fr})`,Ci={name:"Core:Button",image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",defaultStyles:{appearance:"none",paddingTop:"15px",paddingBottom:"15px",paddingLeft:"25px",paddingRight:"25px",backgroundColor:"#000000",color:"white",borderRadius:"4px",textAlign:"center",cursor:"pointer"},inputs:[{name:"text",type:"text",defaultValue:"Click me!",bubble:!0},{name:"link",type:"url",bubble:!0},{name:"openLinkInNewTab",type:"boolean",defaultValue:!1,friendlyName:"Open link in new tab"}],static:!0,noWrap:!0},Ei={name:"Columns",isRSC:!0,inputs:[{name:"columns",type:"array",broadcast:!0,subFields:[{name:"blocks",type:"array",hideFromUI:!0,defaultValue:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{name:"width",type:"number",hideFromUI:!0,helperText:"Width %, e.g. set to 50 to fill half of the space"},{name:"link",type:"url",helperText:"Optionally set a url that clicking this column will link to"}],defaultValue:[{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]},{blocks:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto",minHeight:"20px",minWidth:"20px",overflow:"hidden"}},component:{name:"Image",options:{image:"https://builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",backgroundPosition:"center",backgroundSize:"cover",aspectRatio:.7004048582995948}}},{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{display:"flex",flexDirection:"column",alignItems:"stretch",flexShrink:"0",position:"relative",marginTop:"30px",textAlign:"center",lineHeight:"normal",height:"auto"}},component:{name:"Text",options:{text:"<p>Enter some text...</p>"}}}]}],onChange:e=>{function t(){r.forEach(n=>{n.delete("width")})}const r=e.get("columns");Array.isArray(r)&&r.find(i=>i.get("width"))&&(r.find(a=>!a.get("width"))||r.reduce((d,h)=>d+h.get("width"),0)!==100)&&t()}},{name:"space",type:"number",defaultValue:20,helperText:"Size of gap between columns",advanced:!0},{name:"stackColumnsAt",type:"string",defaultValue:"tablet",helperText:"Convert horizontal columns to vertical at what device size",enum:["tablet","mobile","never"],advanced:!0},{name:"reverseColumnsWhenStacked",type:"boolean",defaultValue:!1,helperText:"When stacking columns for mobile devices, reverse the ordering",advanced:!0}]},ji={name:"Fragment",static:!0,hidden:!0,canHaveChildren:!0,noWrap:!0},Ti={name:"Image",static:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",defaultStyles:{position:"relative",minHeight:"20px",minWidth:"20px",overflow:"hidden"},canHaveChildren:!0,inputs:[{name:"image",type:"file",bubble:!0,allowedFileTypes:["jpeg","jpg","png","svg"],required:!0,defaultValue:"https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",onChange:e=>{e.delete("srcset"),e.delete("noWebp");function r(s,d=6e4){return new Promise((h,m)=>{const y=document.createElement("img");let x=!1;y.onload=()=>{x=!0,h(y)},y.addEventListener("error",M=>{console.warn("Image load failed",M.error),m(M.error)}),y.src=s,setTimeout(()=>{x||m(new Error("Image load timed out"))},d)})}function n(s){return Math.round(s*1e3)/1e3}const i=e.get("image"),a=e.get("aspectRatio");if(fetch(i).then(s=>s.blob()).then(s=>{s.type.includes("svg")&&e.set("noWebp",!0)}),i&&(!a||a===.7041))return r(i).then(s=>{const d=e.get("aspectRatio");e.get("image")===i&&(!d||d===.7041)&&s.width&&s.height&&(e.set("aspectRatio",n(s.height/s.width)),e.set("height",s.height),e.set("width",s.width))})}},{name:"backgroundSize",type:"text",defaultValue:"cover",enum:[{label:"contain",value:"contain",helperText:"The image should never get cropped"},{label:"cover",value:"cover",helperText:"The image should fill it's box, cropping when needed"}]},{name:"backgroundPosition",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"altText",type:"string",helperText:"Text to display when the user has images off"},{name:"height",type:"number",hideFromUI:!0},{name:"width",type:"number",hideFromUI:!0},{name:"sizes",type:"string",hideFromUI:!0},{name:"srcset",type:"string",hideFromUI:!0},{name:"lazy",type:"boolean",defaultValue:!0,hideFromUI:!0},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the image's aspect ratio",defaultValue:!0},{name:"aspectRatio",type:"number",helperText:"This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",advanced:!0,defaultValue:.7041}]},Ii={name:"Core:Section",static:!0,image:"https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",inputs:[{name:"maxWidth",type:"number",defaultValue:1200},{name:"lazyLoad",type:"boolean",defaultValue:!1,advanced:!0,description:"Only render this section when in view"}],defaultStyles:{paddingLeft:"20px",paddingRight:"20px",paddingTop:"50px",paddingBottom:"50px",marginTop:"0px",width:"100vw",marginLeft:"calc(50% - 50vw)"},canHaveChildren:!0,defaultChildren:[{"@type":"@builder.io/sdk:Element",responsiveStyles:{large:{textAlign:"center"}},component:{name:"Text",options:{text:"<p><b>I am a section! My content keeps from getting too wide, so that it's easy to read even on big screens.</b></p><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>"}}}]},Ai={name:"Symbol",noWrap:!0,static:!0,isRSC:!0,inputs:[{name:"symbol",type:"uiSymbol"},{name:"dataOnly",helperText:"Make this a data symbol that doesn't display any UI",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"inheritState",helperText:"Inherit the parent component state and data",type:"boolean",defaultValue:!1,advanced:!0},{name:"renderToLiquid",helperText:"Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",type:"boolean",defaultValue:!1,advanced:!0,hideFromUI:!0},{name:"useChildren",hideFromUI:!0,type:"boolean"}]},Ri={name:"Text",static:!0,isRSC:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",inputs:[{name:"text",type:"html",required:!0,autoFocus:!0,bubble:!0,defaultValue:"Enter some text..."}],defaultStyles:{lineHeight:"normal",height:"auto",textAlign:"center"}};function pr(e){var t;return c.jsx("span",{className:"builder-text",dangerouslySetInnerHTML:{__html:((t=e.text)==null?void 0:t.toString())||""},style:{outline:"none"}})}const Oi={name:"Video",canHaveChildren:!0,defaultStyles:{minHeight:"20px",minWidth:"20px"},image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-videocam-24px%20(1).svg?alt=media&token=49a84e4a-b20e-4977-a650-047f986874bb",inputs:[{name:"video",type:"file",allowedFileTypes:["mp4"],bubble:!0,defaultValue:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",required:!0},{name:"posterImage",type:"file",allowedFileTypes:["jpeg","png"],helperText:"Image to show before the video plays"},{name:"autoPlay",type:"boolean",defaultValue:!0},{name:"controls",type:"boolean",defaultValue:!1},{name:"muted",type:"boolean",defaultValue:!0},{name:"loop",type:"boolean",defaultValue:!0},{name:"playsInline",type:"boolean",defaultValue:!0},{name:"fit",type:"text",defaultValue:"cover",enum:["contain","cover","fill","auto"]},{name:"preload",type:"text",defaultValue:"metadata",enum:["auto","metadata","none"]},{name:"fitContent",type:"boolean",helperText:"When child blocks are provided, fit to them instead of using the aspect ratio",defaultValue:!0,advanced:!0},{name:"position",type:"text",defaultValue:"center",enum:["center","top","left","right","bottom","top left","top right","bottom left","bottom right"]},{name:"height",type:"number",advanced:!0},{name:"width",type:"number",advanced:!0},{name:"aspectRatio",type:"number",advanced:!0,defaultValue:.7004048582995948},{name:"lazyLoad",type:"boolean",helperText:'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',defaultValue:!0,advanced:!0}]};function mr(e){var n;function t(){return{...e.autoPlay===!0?{autoPlay:!0}:{},...e.muted===!0?{muted:!0}:{},...e.controls===!0?{controls:!0}:{},...e.loop===!0?{loop:!0}:{},...e.playsInline===!0?{playsInline:!0}:{}}}function r(){return{...e.attributes,...t()}}return c.jsx("video",{...r(),preload:e.preload||"metadata",style:{width:"100%",height:"100%",...(n=e.attributes)==null?void 0:n.style,objectFit:e.fit,objectPosition:e.position,borderRadius:1},src:e.video||"no-src",poster:e.posterImage})}const Pi={name:"Embed",static:!0,inputs:[{name:"url",type:"url",required:!0,defaultValue:"",helperText:"e.g. enter a youtube url, google map, etc",onChange:e=>{const t=e.get("url");if(t)return e.set("content","Loading..."),fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then(n=>n.json()).then(n=>{e.get("url")===t&&(n.html?e.set("content",n.html):e.set("content","Invalid url, please try another"))}).catch(n=>{e.set("content","There was an error embedding this URL, please try again or another URL")});e.delete("content")}},{name:"content",type:"html",defaultValue:'<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',hideFromUI:!0}]},Ni=["text/javascript","application/javascript","application/ecmascript"],Fi=e=>Ni.includes(e.type);function Mi(e){const t=I.useRef(null),[r,n]=I.useState(()=>[]),[i,a]=I.useState(()=>[]),[s,d]=I.useState(()=>!1);function h(){if(!t.current||!t.current.getElementsByTagName)return;const m=t.current.getElementsByTagName("script");for(let y=0;y<m.length;y++){const x=m[y];if(x.src&&!r.includes(x.src)){r.push(x.src);const M=document.createElement("script");M.async=!0,M.src=x.src,document.head.appendChild(M)}else if(Fi(x)&&!i.includes(x.innerText))try{i.push(x.innerText),new Function(x.innerText)()}catch(M){console.warn("`Embed`: Error running script:",M)}}}return I.useEffect(()=>{t.current&&!s&&(d(!0),h())},[t.current,s]),c.jsx("div",{className:"builder-embed",ref:t,dangerouslySetInnerHTML:{__html:e.content}})}function Ui(e){return c.jsx("img",{style:{objectFit:e.backgroundSize||"cover",objectPosition:e.backgroundPosition||"center"},alt:e.altText,src:e.imgSrc||e.image,...e.attributes},S.isEditing()&&e.imgSrc||"default-key")}const Bi={name:"Raw:Img",hideFromInsertMenu:!0,image:"https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",inputs:[{name:"image",bubble:!0,type:"file",allowedFileTypes:["jpeg","jpg","png","svg","gif","webp"],required:!0}],noWrap:!0,static:!0};function _i(e){const t=I.useRef(null),[r,n]=I.useState(()=>[]),[i,a]=I.useState(()=>[]);function s(){if(t.current&&t.current.getElementsByTagName&&typeof window<"u"){const d=t.current.getElementsByTagName("script");for(let h=0;h<d.length;h++){const m=d[h];if(m.src){if(r.includes(m.src))continue;r.push(m.src);const y=document.createElement("script");y.async=!0,y.src=m.src,document.head.appendChild(y)}else if(!m.type||["text/javascript","application/javascript","application/ecmascript"].includes(m.type)){if(i.includes(m.innerText))continue;try{i.push(m.innerText),new Function(m.innerText)()}catch(y){console.warn("`CustomCode`: Error running script:",y)}}}}}return I.useEffect(()=>{s()},[]),c.jsx("div",{ref:t,className:"builder-custom-code"+(e.replaceNodes?" replace-nodes":""),dangerouslySetInnerHTML:{__html:e.code}})}const Li={name:"Custom Code",static:!0,requiredPermissions:["editCode"],inputs:[{name:"code",type:"html",required:!0,defaultValue:"<p>Hello there, I am custom HTML code!</p>",code:!0},{name:"replaceNodes",type:"boolean",helperText:"Preserve server rendered dom nodes",advanced:!0},{name:"scriptsClientOnly",type:"boolean",defaultValue:!1,helperText:"Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",advanced:!0}]},Kn=()=>[{component:Yn,...Ci},{component:sr,...Ei},{component:_i,...Li},{component:Mi,...Pi},{component:lr,...ji},{component:ur,...Ti},{component:Ui,...Bi},{component:cr,...Ii},{component:gr,...Ai},{component:pr,...Ri},{component:mr,...Oi}],$i=e=>{var a;const t=e.family+(e.kind&&!e.kind.includes("#")?", "+e.kind:""),r=t.split(",")[0],n=e.fileUrl??((a=e==null?void 0:e.files)==null?void 0:a.regular);let i="";if(n&&t&&r&&(i+=`
|
|
88
|
+
@font-face {
|
|
89
|
+
font-family: "${t}";
|
|
90
|
+
src: local("${r}"), url('${n}') format('woff2');
|
|
91
|
+
font-display: fallback;
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
}
|
|
94
|
+
`.trim()),e.files)for(const s in e.files){if(!(String(Number(s))===s))continue;const h=e.files[s];h&&h!==n&&(i+=`
|
|
95
|
+
@font-face {
|
|
96
|
+
font-family: "${t}";
|
|
97
|
+
src: url('${h}') format('woff2');
|
|
98
|
+
font-display: fallback;
|
|
99
|
+
font-weight: ${s};
|
|
100
|
+
}
|
|
101
|
+
`.trim())}return i},Di=({customFonts:e})=>{var t;return((t=e==null?void 0:e.map(r=>$i(r)))==null?void 0:t.join(" "))||""},Vi=({cssCode:e,contentId:t})=>e?t?(e==null?void 0:e.replace(/&/g,`div[builder-content-id="${t}"]`))||"":e:"";function Wi(e){const[t,r]=I.useState(()=>`
|
|
102
|
+
${Vi({cssCode:e.cssCode,contentId:e.contentId})}
|
|
103
|
+
${Di({customFonts:e.customFonts})}
|
|
104
|
+
|
|
105
|
+
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
106
|
+
margin: 0;
|
|
107
|
+
}
|
|
108
|
+
.builder-text > p, .builder-text > .builder-paragraph {
|
|
109
|
+
color: inherit;
|
|
110
|
+
line-height: inherit;
|
|
111
|
+
letter-spacing: inherit;
|
|
112
|
+
font-weight: inherit;
|
|
113
|
+
font-size: inherit;
|
|
114
|
+
text-align: inherit;
|
|
115
|
+
font-family: inherit;
|
|
116
|
+
}
|
|
117
|
+
`.trim());return c.jsx(lt,{styles:t})}const Hi=({content:e,data:t,locale:r})=>{var a,s,d;const n={};(s=(a=e==null?void 0:e.data)==null?void 0:a.inputs)==null||s.forEach(h=>{var m;h.name&&h.defaultValue!==void 0&&((m=e==null?void 0:e.data)!=null&&m.state)&&e.data.state[h.name]===void 0&&(n[h.name]=h.defaultValue)});const i={...(d=e==null?void 0:e.data)==null?void 0:d.state,...t,...r?{locale:r}:{}};return{...n,...i}},Ki=({content:e,data:t})=>e?{...e,data:{...e==null?void 0:e.data,...t},meta:e==null?void 0:e.meta}:void 0,Gi="0.6.1",zi=()=>{S.register("insertMenu",{name:"_default",default:!0,items:[{name:"Box"},{name:"Text"},{name:"Image"},{name:"Columns"},{name:"Core:Section"},{name:"Core:Button"},{name:"Embed"},{name:"Custom Code"}]})};let Gn=!1;const Xi=(e={})=>{var t,r;Gn||(Gn=!0,S.isBrowser()&&((t=window.parent)==null||t.postMessage({type:"builder.sdkInfo",data:{target:S.TARGET,version:Gi,supportsPatchUpdates:!1,supportsAddBlockScoping:!0,supportsCustomBreakpoints:!0}},"*"),(r=window.parent)==null||r.postMessage({type:"builder.updateContent",data:{options:e}},"*"),window.addEventListener("message",({data:n})=>{var i,a;if(n!=null&&n.type)switch(n.type){case"builder.evaluate":{const s=n.data.text,d=n.data.arguments||[],h=n.data.id,m=new Function(s);let y,x=null;try{y=m.apply(null,d)}catch(M){x=M}x?(i=window.parent)==null||i.postMessage({type:"builder.evaluateError",data:{id:h,error:x.message}},"*"):y&&typeof y.then=="function"?y.then(M=>{var _;(_=window.parent)==null||_.postMessage({type:"builder.evaluateResult",data:{id:h,result:M}},"*")}).catch(console.error):(a=window.parent)==null||a.postMessage({type:"builder.evaluateResult",data:{result:y,id:h}},"*");break}}})))};function zn(e){return Math.round(e*1e3)/1e3}const Ji=(e,t,r=!0)=>{if(!(e instanceof HTMLElement))return null;let n=r?e:e.parentElement;do{if(!n)return null;if(t(n))return n}while(n=n.parentElement);return null},Yi=e=>Ji(e,t=>{const r=t.getAttribute("builder-id")||t.id;return(r==null?void 0:r.indexOf("builder-"))===0}),Xn=({event:e,target:t})=>{const r=t.getBoundingClientRect(),n=e.clientX-r.left,i=e.clientY-r.top,a=zn(n/r.width),s=zn(i/r.height);return{x:a,y:s}},qi=e=>{const t=e.target,r=t&&Yi(t),n=(r==null?void 0:r.getAttribute("builder-id"))||(r==null?void 0:r.id);return{targetBuilderElement:n||void 0,metadata:{targetOffset:t?Xn({event:e,target:t}):void 0,builderTargetOffset:r?Xn({event:e,target:r}):void 0,builderElementIndex:r&&n?[].slice.call(document.getElementsByClassName(n)).indexOf(r):void 0}}};function Zi(e){var ie,oe,K,Z,A;const t=I.useRef(null),[r,n]=I.useState(()=>S.checkIsDefined(e.canTrack)?e.canTrack:!0),[i,a]=I.useState(()=>0);function s(L){var F,U,R,H,se;const T={...e.builderContextSignal.content,...L,data:{...(F=e.builderContextSignal.content)==null?void 0:F.data,...L==null?void 0:L.data},meta:{...(U=e.builderContextSignal.content)==null?void 0:U.meta,...L==null?void 0:L.meta,breakpoints:((R=L==null?void 0:L.meta)==null?void 0:R.breakpoints)||((se=(H=e.builderContextSignal.content)==null?void 0:H.meta)==null?void 0:se.breakpoints)}};e.setBuilderContextSignal(ne=>({...ne,content:T}))}I.useState(()=>0);const[d,h]=I.useState(()=>!1);function m(L){var F;const{data:T}=L;if(T)switch(T.type){case"builder.configureSdk":{const U=T.data,{breakpoints:R,contentId:H}=U;if(!H||H!==((F=e.builderContextSignal.content)==null?void 0:F.id))return;R&&s({meta:{breakpoints:R}}),a(i+1);break}case"builder.contentUpdate":{const U=T.data,R=U.key||U.alias||U.entry||U.modelName,H=U.data;R===e.model&&(s(H),a(i+1));break}}}function y(){var T,F;const L=(F=(T=e.builderContextSignal.content)==null?void 0:T.data)==null?void 0:F.jsCode;L&&Je({code:L,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState})}const[x,M]=I.useState(()=>({})),[_,E]=I.useState(()=>!1);function j(L){var T,F;if(e.builderContextSignal.content){const U=(T=e.builderContextSignal.content)==null?void 0:T.testVariationId,R=(F=e.builderContextSignal.content)==null?void 0:F.id;S._track({type:"click",canTrack:r,contentId:R,apiKey:e.apiKey,variationId:U!==R?U:void 0,...qi(L),unique:!_})}_||E(!0)}function $(L){return L.replace(/{{([^}]+)}}/g,(T,F)=>Je({code:F,context:e.context||{},localState:void 0,rootState:e.builderContextSignal.rootState,rootSetState:e.builderContextSignal.rootSetState}))}function V({url:L,key:T}){S.fetch(L).then(F=>F.json()).then(F=>{var R,H;const U={...e.builderContextSignal.rootState,[T]:F};(H=(R=e.builderContextSignal).rootSetState)==null||H.call(R,U),x[T]=!0}).catch(F=>{console.error("error fetching dynamic data",L,F)})}function v(){var T,F;const L=((F=(T=e.builderContextSignal.content)==null?void 0:T.data)==null?void 0:F.httpRequests)??{};Object.entries(L).forEach(([U,R])=>{if(R&&(!x[U]||S.isEditing())){const H=$(R);V({url:H,key:U})}})}function W(){S.isEditing()&&window.dispatchEvent(new CustomEvent("builder:component:stateChange",{detail:{state:S.fastClone(e.builderContextSignal.rootState),ref:{name:e.model}}}))}return I.useEffect(()=>{var L,T;if(e.apiKey||S.logger.error("No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."),S.isBrowser()){if(S.isEditing()&&(a(i+1),window.addEventListener("message",m),zi(),Xi({...e.locale?{locale:e.locale}:{},...e.includeRefs?{includeRefs:e.includeRefs}:{},...e.enrich?{enrich:e.enrich}:{}}),Object.values(e.builderContextSignal.componentInfos).forEach(F=>{var R;const U=S.createRegisterComponentMessage(F);(R=window.parent)==null||R.postMessage(U,"*")}),window.addEventListener("builder:component:stateChangeListenerActivated",W)),e.builderContextSignal.content){const F=(L=e.builderContextSignal.content)==null?void 0:L.testVariationId,U=(T=e.builderContextSignal.content)==null?void 0:T.id;S._track({type:"impression",canTrack:r,contentId:U,apiKey:e.apiKey,variationId:F!==U?F:void 0})}if(S.isPreviewing()){const F=new URL(location.href).searchParams,U=F.get("builder.preview"),R=F.get(`builder.preview.${U}`),H=F.get("apiKey")||F.get("builder.space");U===e.model&&H===e.apiKey&&(!e.content||R===e.content.id)&&S.fetchOneEntry({model:e.model,apiKey:e.apiKey,apiVersion:e.builderContextSignal.apiVersion}).then(se=>{se&&s(se)})}y(),v(),W()}},[]),I.useEffect(()=>{e.content&&s(e.content)},[e.content]),I.useEffect(()=>{},[d]),I.useEffect(()=>{y()},[(oe=(ie=e.builderContextSignal.content)==null?void 0:ie.data)==null?void 0:oe.jsCode,e.builderContextSignal.rootState]),I.useEffect(()=>{v()},[(Z=(K=e.builderContextSignal.content)==null?void 0:K.data)==null?void 0:Z.httpRequests]),I.useEffect(()=>{W()},[e.builderContextSignal.rootState]),I.useEffect(()=>()=>{S.isBrowser()&&(window.removeEventListener("message",m),window.removeEventListener("builder:component:stateChangeListenerActivated",W))},[]),c.jsx(tn.Provider,{value:e.builderContextSignal,children:e.builderContextSignal.content?c.jsx(c.Fragment,{children:c.jsx("div",{ref:t,onClick:L=>j(L),"builder-content-id":(A=e.builderContextSignal.content)==null?void 0:A.id,"builder-model":e.model,...e.showContent?{}:{hidden:!0,"aria-hidden":!0},className:e.classNameProp,children:e.children},i)}):null})}function Dt(e){return c.jsx("script",{dangerouslySetInnerHTML:{__html:e.scriptStr},id:e.id})}function Jn(e){var h,m,y,x,M,_,E;const[t,r]=I.useState(()=>{var j,$;return ki({variationId:(j=e.content)==null?void 0:j.testVariationId,contentId:($=e.content)==null?void 0:$.id})});function n(j){d($=>({...$,rootState:j}))}const[i,a]=I.useState(()=>[...Kn(),...S.components,...e.customComponents||[]].reduce((j,{component:$,...V})=>({...j,[V.name]:{component:$,...S.serializeComponentInfo(V)}}),{})),[s,d]=I.useState(()=>({content:Ki({content:e.content,data:e.data}),localState:void 0,rootState:Hi({content:e.content,data:e.data,locale:e.locale}),rootSetState:n,context:e.context||{},apiKey:e.apiKey,apiVersion:e.apiVersion,componentInfos:[...Kn(),...S.components,...e.customComponents||[]].reduce((j,{component:$,...V})=>({...j,[V.name]:S.serializeComponentInfo(V)}),{}),inheritedStyles:{}}));return c.jsx(ar.Provider,{value:{registeredComponents:i},children:c.jsxs(Zi,{content:e.content,model:e.model,context:e.context,apiKey:e.apiKey,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,classNameProp:e.classNameProp,showContent:e.showContent,builderContextSignal:s,setBuilderContextSignal:d,children:[e.isSsrAbTest?c.jsx(c.Fragment,{children:c.jsx(Dt,{scriptStr:t})}):null,c.jsx(c.Fragment,{children:c.jsx(Wi,{contentId:(h=s.content)==null?void 0:h.id,cssCode:(y=(m=s.content)==null?void 0:m.data)==null?void 0:y.cssCode,customFonts:(M=(x=s.content)==null?void 0:x.data)==null?void 0:M.customFonts})}),c.jsx(ct,{blocks:(E=(_=s.content)==null?void 0:_.data)==null?void 0:E.blocks,context:s,registeredComponents:i})]})})}function nn(e){var s,d,h;const[t,r]=I.useState(()=>yi({canTrack:S.getDefaultCanTrack(e.canTrack),content:e.content}));function n(){var m;return wi(it(e.content).map(y=>({id:y.testVariationId,testRatio:y.testRatio})),((m=e.content)==null?void 0:m.id)||"")}function i(){return it(e.content).map(m=>`.variant-${m.testVariationId} { display: none; } `).join("")}function a(){var m;return t?{...e.content,testVariationId:(m=e.content)==null?void 0:m.id}:S.handleABTestingSync({item:e.content,canTrack:S.getDefaultCanTrack(e.canTrack)})}return I.useEffect(()=>{},[]),c.jsxs(c.Fragment,{children:[!e.__isNestedRender&&S.TARGET!=="reactNative"?c.jsx(c.Fragment,{children:c.jsx(Dt,{scriptStr:bi()})}):null,t?c.jsxs(c.Fragment,{children:[c.jsx(lt,{id:`variants-styles-${(s=e.content)==null?void 0:s.id}`,styles:i()}),c.jsx(Dt,{scriptStr:n()}),(d=it(e.content))==null?void 0:d.map(m=>c.jsx(Jn,{content:m,showContent:!1,classNameProp:void 0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t},m.testVariationId))]}):null,c.jsx(Jn,{content:a(),classNameProp:`variant-${(h=e.content)==null?void 0:h.id}`,showContent:!0,model:e.model,data:e.data,context:e.context,apiKey:e.apiKey,apiVersion:e.apiVersion,customComponents:e.customComponents,canTrack:e.canTrack,locale:e.locale,includeRefs:e.includeRefs,enrich:e.enrich,isSsrAbTest:t})]})}const Qi=async({builderContextValue:e,symbol:t})=>{if(t!=null&&t.model&&(e!=null&&e.apiKey))return S.fetchOneEntry({model:t.model,apiKey:e.apiKey,apiVersion:e.apiVersion,...(t==null?void 0:t.entry)&&{query:{id:t.entry}}}).catch(r=>{S.logger.error("Could not fetch symbol content: ",r)})};function gr(e){var a,s,d;function t(){var h,m;return[e.attributes.className,"builder-symbol",(h=e.symbol)!=null&&h.inline?"builder-inline-symbol":void 0,(m=e.symbol)!=null&&m.dynamic||e.dynamic?"builder-dynamic-symbol":void 0].filter(Boolean).join(" ")}const[r,n]=I.useState(()=>{var h;return(h=e.symbol)==null?void 0:h.content});function i(){r||Qi({symbol:e.symbol,builderContextValue:e.builderContext}).then(h=>{h&&n(h)})}return I.useEffect(()=>{i()},[]),I.useEffect(()=>{i()},[e.symbol]),c.jsx("div",{...e.attributes,className:t(),children:c.jsx(nn,{__isNestedRender:!0,apiVersion:e.builderContext.apiVersion,apiKey:e.builderContext.apiKey,context:e.builderContext.context,customComponents:Object.values(e.builderComponents),data:{...(a=e.symbol)==null?void 0:a.data,...e.builderContext.localState,...(s=r==null?void 0:r.data)==null?void 0:s.state},model:(d=e.symbol)==null?void 0:d.model,content:r})})}const eo=ct,to=nn;exports._processContentResult=S._processContentResult;exports.createRegisterComponentMessage=S.createRegisterComponentMessage;exports.fetchBuilderProps=S.fetchBuilderProps;exports.fetchEntries=S.fetchEntries;exports.fetchOneEntry=S.fetchOneEntry;exports.getAllContent=S.getAllContent;exports.getBuilderSearchParams=S.getBuilderSearchParams;exports.getContent=S.getContent;exports.isEditing=S.isEditing;exports.isPreviewing=S.isPreviewing;exports.register=S.register;exports.setEditorSettings=S.setEditorSettings;exports.track=S.track;exports.Blocks=ct;exports.Button=Yn;exports.Columns=sr;exports.Content=nn;exports.Fragment=lr;exports.Image=ur;exports.RenderBlocks=eo;exports.RenderContent=to;exports.Section=cr;exports.Symbol=gr;exports.Text=pr;exports.Video=mr;
|